diff --git a/go.mod b/go.mod index 84109912..12db75a7 100644 --- a/go.mod +++ b/go.mod @@ -1,26 +1,31 @@ module github.com/loft-sh/api/v4 -go 1.22.5 +go 1.24.0 + +toolchain go1.24.4 require ( github.com/ghodss/yaml v1.0.0 - github.com/loft-sh/admin-apis v0.0.0-20240814093917-dc663916b354 - github.com/loft-sh/agentapi/v4 v4.1.0-alpha.17 - github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d - k8s.io/api v0.31.1 - k8s.io/apimachinery v0.31.1 - k8s.io/apiserver v0.31.1 - k8s.io/client-go v0.31.1 + github.com/loft-sh/admin-apis v0.0.0-20250825172409-daa49fc5396e + github.com/loft-sh/agentapi/v4 v4.5.0-next.2 + github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2 + google.golang.org/grpc v1.68.1 + google.golang.org/protobuf v1.36.5 + k8s.io/api v0.33.1 + k8s.io/apimachinery v0.33.1 + k8s.io/apiserver v0.33.1 + k8s.io/client-go v0.33.1 k8s.io/klog/v2 v2.130.1 - k8s.io/kube-openapi v0.0.0-20240521193020-835d969ad83a - sigs.k8s.io/controller-runtime v0.19.0 - sigs.k8s.io/controller-tools v0.16.3 + k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff + k8s.io/metrics v0.33.1 + sigs.k8s.io/controller-runtime v0.20.1 + sigs.k8s.io/controller-tools v0.16.4 ) require ( + cel.dev/expr v0.19.1 // indirect github.com/NYTimes/gziphandler v1.1.1 // indirect github.com/antlr4-go/antlr/v4 v4.13.1 // indirect - github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/blang/semver/v4 v4.0.0 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect @@ -31,82 +36,80 @@ require ( github.com/emicklei/go-restful/v3 v3.12.1 // indirect github.com/evanphx/json-patch/v5 v5.9.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect - github.com/fsnotify/fsnotify v1.7.0 // indirect + github.com/fsnotify/fsnotify v1.8.0 // indirect github.com/fxamacker/cbor/v2 v2.7.0 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-openapi/jsonpointer v0.21.0 // indirect github.com/go-openapi/jsonreference v0.21.0 // indirect github.com/go-openapi/swag v0.23.0 // indirect - github.com/gobuffalo/flect v1.0.2 // indirect + github.com/gobuffalo/flect v1.0.3 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect - github.com/google/cel-go v0.21.0 // indirect - github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 // indirect - github.com/google/go-cmp v0.6.0 // indirect - github.com/google/gofuzz v1.2.0 // indirect - github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 // indirect + github.com/google/btree v1.1.3 // indirect + github.com/google/cel-go v0.23.2 // indirect + github.com/google/gnostic-models v0.6.9 // indirect + github.com/google/go-cmp v0.7.0 // indirect + github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect github.com/google/uuid v1.6.0 // indirect github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect - github.com/imdario/mergo v0.3.16 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.17.10 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/prometheus/client_golang v1.20.4 // indirect + github.com/prometheus/client_golang v1.22.0 // indirect github.com/prometheus/client_model v0.6.1 // indirect - github.com/prometheus/common v0.60.0 // indirect + github.com/prometheus/common v0.62.0 // indirect github.com/prometheus/procfs v0.15.1 // indirect - github.com/spf13/cobra v1.8.1 // indirect - github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/cobra v1.9.1 // indirect + github.com/spf13/pflag v1.0.6 // indirect github.com/stoewer/go-strcase v1.3.0 // indirect github.com/x448/float16 v0.8.4 // indirect - go.etcd.io/etcd/api/v3 v3.5.16 // indirect - go.etcd.io/etcd/client/pkg/v3 v3.5.16 // indirect - go.etcd.io/etcd/client/v3 v3.5.16 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0 // indirect - go.opentelemetry.io/otel v1.30.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.30.0 // indirect - go.opentelemetry.io/otel/metric v1.30.0 // indirect - go.opentelemetry.io/otel/sdk v1.30.0 // indirect - go.opentelemetry.io/otel/trace v1.30.0 // indirect - go.opentelemetry.io/proto/otlp v1.3.1 // indirect + go.etcd.io/etcd/api/v3 v3.5.21 // indirect + go.etcd.io/etcd/client/pkg/v3 v3.5.21 // indirect + go.etcd.io/etcd/client/v3 v3.5.21 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 // indirect + go.opentelemetry.io/otel v1.33.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0 // indirect + go.opentelemetry.io/otel/metric v1.33.0 // indirect + go.opentelemetry.io/otel/sdk v1.33.0 // indirect + go.opentelemetry.io/otel/trace v1.33.0 // indirect + go.opentelemetry.io/proto/otlp v1.4.0 // indirect + go.uber.org/automaxprocs v1.6.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect - golang.org/x/crypto v0.27.0 // indirect - golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect - golang.org/x/mod v0.21.0 // indirect - golang.org/x/net v0.29.0 // indirect - golang.org/x/oauth2 v0.23.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.25.0 // indirect - golang.org/x/term v0.24.0 // indirect - golang.org/x/text v0.18.0 // indirect - golang.org/x/time v0.6.0 // indirect - golang.org/x/tools v0.25.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240930140551-af27646dc61f // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f // indirect - google.golang.org/grpc v1.67.1 // indirect - google.golang.org/protobuf v1.34.2 // indirect + golang.org/x/crypto v0.36.0 // indirect + golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect + golang.org/x/mod v0.24.0 // indirect + golang.org/x/net v0.38.0 // indirect + golang.org/x/oauth2 v0.28.0 // indirect + golang.org/x/sync v0.12.0 // indirect + golang.org/x/sys v0.32.0 // indirect + golang.org/x/term v0.30.0 // indirect + golang.org/x/text v0.23.0 // indirect + golang.org/x/time v0.9.0 // indirect + golang.org/x/tools v0.31.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/apiextensions-apiserver v0.31.1 // indirect - k8s.io/component-base v0.31.1 // indirect - k8s.io/utils v0.0.0-20240921022957-49e7df575cb6 // indirect - sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 // indirect - sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect - sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect + k8s.io/apiextensions-apiserver v0.33.1 // indirect + k8s.io/component-base v0.33.1 // indirect + k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect + sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 // indirect + sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect + sigs.k8s.io/randfill v1.0.0 // indirect + sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect sigs.k8s.io/yaml v1.4.0 // indirect ) diff --git a/go.sum b/go.sum index 7e4f65bc..9b3aaf81 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,9 @@ +cel.dev/expr v0.19.1 h1:NciYrtDRIR0lNCnH1LFJegdjspNx9fI59O7TWcua/W4= +cel.dev/expr v0.19.1/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw= github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ= github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw= -github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= -github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= @@ -16,7 +16,7 @@ github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec= github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= @@ -29,8 +29,8 @@ github.com/evanphx/json-patch/v5 v5.9.0 h1:kcBlZQbplgElYIlo/n1hJbls2z/1awpXxpRi0 github.com/evanphx/json-patch/v5 v5.9.0/go.mod h1:VNkHZ/282BpEyt/tObQO8s5CMPmYYq14uClGH4abBuQ= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= -github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= +github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M= +github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= @@ -50,45 +50,41 @@ github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+Gr github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= -github.com/gobuffalo/flect v1.0.2 h1:eqjPGSo2WmjgY2XlpGwo2NXgL3RucAKo4k4qQMNA5sA= -github.com/gobuffalo/flect v1.0.2/go.mod h1:A5msMlrHtLqh9umBSnvabjsMrCcCpAyzglnDvkbYKHs= +github.com/gobuffalo/flect v1.0.3 h1:xeWBM2nui+qnVvNM4S3foBhCAL2XgPU+a7FdpelbTq4= +github.com/gobuffalo/flect v1.0.3/go.mod h1:A5msMlrHtLqh9umBSnvabjsMrCcCpAyzglnDvkbYKHs= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= -github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI= +github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= -github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= -github.com/google/cel-go v0.21.0 h1:cl6uW/gxN+Hy50tNYvI691+sXxioCnstFzLp2WO4GCI= -github.com/google/cel-go v0.21.0/go.mod h1:rHUlWCcBKgyEk+eV03RPdZUekPp6YcJwV0FxuUksYxc= -github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 h1:0VpGH+cDhbDtdcweoyCVsF3fhN8kejK6rFe/2FFX2nU= -github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49/go.mod h1:BkkQ4L1KS1xMt2aWSPStnn55ChGC0DPOn2FQYj+f25M= +github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= +github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= +github.com/google/cel-go v0.23.2 h1:UdEe3CvQh3Nv+E/j9r1Y//WO0K0cSyD7/y0bzyLIMI4= +github.com/google/cel-go v0.23.2/go.mod h1:52Pb6QsDbC5kvgxvZhiL9QX1oZEkcUF/ZqaPx1J5Wwo= +github.com/google/gnostic-models v0.6.9 h1:MU/8wDLif2qCXZmzncUQ/BOfxWfthHi63KqpoNbWqVw= +github.com/google/gnostic-models v0.6.9/go.mod h1:CiWsm0s6BSQd1hRn8/QmxqB6BesYcbSZxsz9b0KuDBw= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 h1:5iH8iuqE5apketRbSFBy+X1V0o+l+8NF1avt4HWl7cA= -github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= +github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 h1:BHT72Gu3keYf3ZEu2J0b1vyeLSOYI8bm5wbJM/8yDe8= +github.com/google/pprof v0.0.0-20250403155104-27863c87afa6/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= -github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5THxAzdVpqr6/geYxZytqFMBCOtn/ujyeo= +github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674/go.mod h1:r4w70xmWCQKmi1ONH4KIaBptdivuRPyosB9RmPlGEwA= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 h1:asbCHRVmodnJTuQ3qamDwqVOIjwqUPTYmYuemVOx+Ys= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0/go.mod h1:ggCgvZ2r7uOoQjOyu2Y1NhHmEPPzzuhWgcza5M1Ji1I= -github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= -github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 h1:TmHmbvxPmaegwhDubVz0lICL0J5Ka2vwTzhoePEXsGE= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0/go.mod h1:qztMSjm835F2bXf+5HKAPIS5qsmQDqZna/PgVt4rWtI= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jonboulle/clockwork v0.4.0 h1:p4Cf1aMWXnXAUh8lVfewRBx1zaTSYKrKMF2g3ST4RZ4= @@ -99,20 +95,20 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.17.10 h1:oXAz+Vh0PMUvJczoi+flxpnBEPxoER1IaAnU/NMPtT0= -github.com/klauspost/compress v1.17.10/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= +github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo= +github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/loft-sh/admin-apis v0.0.0-20240814093917-dc663916b354 h1:aqT1UeosCYB+3DEzfxW0evhcYHxhoBVAEWtkXLXFimI= -github.com/loft-sh/admin-apis v0.0.0-20240814093917-dc663916b354/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.1.0-alpha.17 h1:yoTwfLkurXmA7ENb8YWQePIVK42vZVSeV4unngNc8c8= -github.com/loft-sh/agentapi/v4 v4.1.0-alpha.17/go.mod h1:CXweRDab9ZcSzcaitULFagYGgSzW8Q12W3cBdKMjR8k= -github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d h1:73wE8wtsnJm4bXtFbTDRG1EgN4LonpPdgzF3HFhP7kA= -github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d/go.mod h1:jmxtfco3FHrInOVcVcUH0TjE76M6bsNgin5B+84D7IQ= +github.com/loft-sh/admin-apis v0.0.0-20250825172409-daa49fc5396e h1:W4fVgGj62HOdefMs5FuJwjA1J5nJmf5iQsXirMiuGoY= +github.com/loft-sh/admin-apis v0.0.0-20250825172409-daa49fc5396e/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= +github.com/loft-sh/agentapi/v4 v4.5.0-next.2 h1:VaDNvsht/uOqXDC0ymiDqdw1llGZuzgAvy/SVcWsvCo= +github.com/loft-sh/agentapi/v4 v4.5.0-next.2/go.mod h1:wERN3GDmvqTcKC2NvsYMPwvfXzEd3pXxRyvDSLTxU48= +github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2 h1:CucC57Nm4cfTsktoj6UaSSh29q/adSLrDcALh377SP4= +github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2/go.mod h1:ROoLzugsusno4FKi+Lju6VN62u9mROLi3MvLrqC3cA4= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -126,87 +122,93 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/ginkgo/v2 v2.20.2 h1:7NVCeyIWROIAheY21RLS+3j2bb52W0W82tkberYytp4= -github.com/onsi/ginkgo/v2 v2.20.2/go.mod h1:K9gyxPIlb+aIvnZ8bd9Ak+YP18w3APlR+5coaZoE2ag= -github.com/onsi/gomega v1.34.2 h1:pNCwDkzrsv7MS9kpaQvVb1aVLahQXyJ/Tv5oAZMI3i8= -github.com/onsi/gomega v1.34.2/go.mod h1:v1xfxRgk0KIsG+QOdm7p8UosrOzPYRo60fd3B/1Dukc= +github.com/onsi/ginkgo/v2 v2.23.4 h1:ktYTpKJAVZnDT4VjxSbiBenUjmlL/5QkBEocaWXiQus= +github.com/onsi/ginkgo/v2 v2.23.4/go.mod h1:Bt66ApGPBFzHyR+JO10Zbt0Gsp4uWxu5mIOTusL46e8= +github.com/onsi/gomega v1.37.0 h1:CdEG8g0S133B4OswTDC/5XPSzE1OeP29QOioj2PID2Y= +github.com/onsi/gomega v1.37.0/go.mod h1:8D9+Txp43QWKhM24yyOBEdpkzN8FvJyAwecBgsU4KU0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_golang v1.20.4 h1:Tgh3Yr67PaOv/uTqloMsCEdeuFTatm5zIq5+qNN23vI= -github.com/prometheus/client_golang v1.20.4/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE= +github.com/prometheus/client_golang v1.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q= +github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0= github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= -github.com/prometheus/common v0.60.0 h1:+V9PAREWNvJMAuJ1x1BaWl9dewMW4YrHZQbx0sJNllA= -github.com/prometheus/common v0.60.0/go.mod h1:h0LYf1R1deLSKtD4Vdg8gy4RuOvENW2J/h19V5NADQw= +github.com/prometheus/common v0.62.0 h1:xasJaQlnWAeyHdUBeGjXmutelfJHWMRr+Fg4QszZ2Io= +github.com/prometheus/common v0.62.0/go.mod h1:vyBcEuLSvWos9B1+CyL7JZ2up+uFzXhkqml0W5zIY1I= github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= -github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= -github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/soheilhy/cmux v0.1.5 h1:jjzc5WVemNEDTLwv9tlmemhC73tI08BNOIGwBOo10Js= github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= -github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= -github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo= +github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0= +github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o= +github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stoewer/go-strcase v1.3.0 h1:g0eASXYtp+yvN9fK8sH94oCIk0fau9uV1/ZdJ0AVEzs= github.com/stoewer/go-strcase v1.3.0/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= 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/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-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/xiang90/probing v0.0.0-20221125231312-a49e3df8f510 h1:S2dVYn90KE98chqDkyE9Z4N61UnQd+KOfgp5Iu53llk= +github.com/xiang90/probing v0.0.0-20221125231312-a49e3df8f510/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -go.etcd.io/bbolt v1.3.9 h1:8x7aARPEXiXbHmtUwAIv7eV2fQFHrLLavdiJ3uzJXoI= -go.etcd.io/bbolt v1.3.9/go.mod h1:zaO32+Ti0PK1ivdPtgMESzuzL2VPoIG1PCQNvOdo/dE= -go.etcd.io/etcd/api/v3 v3.5.16 h1:WvmyJVbjWqK4R1E+B12RRHz3bRGy9XVfh++MgbN+6n0= -go.etcd.io/etcd/api/v3 v3.5.16/go.mod h1:1P4SlIP/VwkDmGo3OlOD7faPeP8KDIFhqvciH5EfN28= -go.etcd.io/etcd/client/pkg/v3 v3.5.16 h1:ZgY48uH6UvB+/7R9Yf4x574uCO3jIx0TRDyetSfId3Q= -go.etcd.io/etcd/client/pkg/v3 v3.5.16/go.mod h1:V8acl8pcEK0Y2g19YlOV9m9ssUe6MgiDSobSoaBAM0E= -go.etcd.io/etcd/client/v2 v2.305.13 h1:RWfV1SX5jTU0lbCvpVQe3iPQeAHETWdOTb6pxhd77C8= -go.etcd.io/etcd/client/v2 v2.305.13/go.mod h1:iQnL7fepbiomdXMb3om1rHq96htNNGv2sJkEcZGDRRg= -go.etcd.io/etcd/client/v3 v3.5.16 h1:sSmVYOAHeC9doqi0gv7v86oY/BTld0SEFGaxsU9eRhE= -go.etcd.io/etcd/client/v3 v3.5.16/go.mod h1:X+rExSGkyqxvu276cr2OwPLBaeqFu1cIl4vmRjAD/50= -go.etcd.io/etcd/pkg/v3 v3.5.13 h1:st9bDWNsKkBNpP4PR1MvM/9NqUPfvYZx/YXegsYEH8M= -go.etcd.io/etcd/pkg/v3 v3.5.13/go.mod h1:N+4PLrp7agI/Viy+dUYpX7iRtSPvKq+w8Y14d1vX+m0= -go.etcd.io/etcd/raft/v3 v3.5.13 h1:7r/NKAOups1YnKcfro2RvGGo2PTuizF/xh26Z2CTAzA= -go.etcd.io/etcd/raft/v3 v3.5.13/go.mod h1:uUFibGLn2Ksm2URMxN1fICGhk8Wu96EfDQyuLhAcAmw= -go.etcd.io/etcd/server/v3 v3.5.13 h1:V6KG+yMfMSqWt+lGnhFpP5z5dRUj1BDRJ5k1fQ9DFok= -go.etcd.io/etcd/server/v3 v3.5.13/go.mod h1:K/8nbsGupHqmr5MkgaZpLlH1QdX1pcNQLAkODy44XcQ= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0 h1:hCq2hNMwsegUvPzI7sPOvtO9cqyy5GbWt/Ybp2xrx8Q= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0/go.mod h1:LqaApwGx/oUmzsbqxkzuBvyoPpkxk3JQWnqfVrJ3wCA= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0 h1:ZIg3ZT/aQ7AfKqdwp7ECpOK6vHqquXXuyTjIO8ZdmPs= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0/go.mod h1:DQAwmETtZV00skUwgD6+0U89g80NKsJE3DCKeLLPQMI= -go.opentelemetry.io/otel v1.30.0 h1:F2t8sK4qf1fAmY9ua4ohFS/K+FUuOPemHUIXHtktrts= -go.opentelemetry.io/otel v1.30.0/go.mod h1:tFw4Br9b7fOS+uEao81PJjVMjW/5fvNCbpsDIXqP0pc= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0 h1:lsInsfvhVIfOI6qHVyysXMNDnjO9Npvl7tlDPJFBVd4= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0/go.mod h1:KQsVNh4OjgjTG0G6EiNi1jVpnaeeKsKMRwbLN+f1+8M= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.30.0 h1:m0yTiGDLUvVYaTFbAvCkVYIYcvwKt3G7OLoN77NUs/8= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.30.0/go.mod h1:wBQbT4UekBfegL2nx0Xk1vBcnzyBPsIVm9hRG4fYcr4= -go.opentelemetry.io/otel/metric v1.30.0 h1:4xNulvn9gjzo4hjg+wzIKG7iNFEaBMX00Qd4QIZs7+w= -go.opentelemetry.io/otel/metric v1.30.0/go.mod h1:aXTfST94tswhWEb+5QjlSqG+cZlmyXy/u8jFpor3WqQ= -go.opentelemetry.io/otel/sdk v1.30.0 h1:cHdik6irO49R5IysVhdn8oaiR9m8XluDaJAs4DfOrYE= -go.opentelemetry.io/otel/sdk v1.30.0/go.mod h1:p14X4Ok8S+sygzblytT1nqG98QG2KYKv++HE0LY/mhg= -go.opentelemetry.io/otel/trace v1.30.0 h1:7UBkkYzeg3C7kQX8VAidWh2biiQbtAKjyIML8dQ9wmc= -go.opentelemetry.io/otel/trace v1.30.0/go.mod h1:5EyKqTzzmyqB9bwtCCq6pDLktPK6fmGf/Dph+8VI02o= -go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0= -go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8= +go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0= +go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I= +go.etcd.io/etcd/api/v3 v3.5.21 h1:A6O2/JDb3tvHhiIz3xf9nJ7REHvtEFJJ3veW3FbCnS8= +go.etcd.io/etcd/api/v3 v3.5.21/go.mod h1:c3aH5wcvXv/9dqIw2Y810LDXJfhSYdHQ0vxmP3CCHVY= +go.etcd.io/etcd/client/pkg/v3 v3.5.21 h1:lPBu71Y7osQmzlflM9OfeIV2JlmpBjqBNlLtcoBqUTc= +go.etcd.io/etcd/client/pkg/v3 v3.5.21/go.mod h1:BgqT/IXPjK9NkeSDjbzwsHySX3yIle2+ndz28nVsjUs= +go.etcd.io/etcd/client/v2 v2.305.21 h1:eLiFfexc2mE+pTLz9WwnoEsX5JTTpLCYVivKkmVXIRA= +go.etcd.io/etcd/client/v2 v2.305.21/go.mod h1:OKkn4hlYNf43hpjEM3Ke3aRdUkhSl8xjKjSf8eCq2J8= +go.etcd.io/etcd/client/v3 v3.5.21 h1:T6b1Ow6fNjOLOtM0xSoKNQt1ASPCLWrF9XMHcH9pEyY= +go.etcd.io/etcd/client/v3 v3.5.21/go.mod h1:mFYy67IOqmbRf/kRUvsHixzo3iG+1OF2W2+jVIQRAnU= +go.etcd.io/etcd/pkg/v3 v3.5.21 h1:jUItxeKyrDuVuWhdh0HtjUANwyuzcb7/FAeUfABmQsk= +go.etcd.io/etcd/pkg/v3 v3.5.21/go.mod h1:wpZx8Egv1g4y+N7JAsqi2zoUiBIUWznLjqJbylDjWgU= +go.etcd.io/etcd/raft/v3 v3.5.21 h1:dOmE0mT55dIUsX77TKBLq+RgyumsQuYeiRQnW/ylugk= +go.etcd.io/etcd/raft/v3 v3.5.21/go.mod h1:fmcuY5R2SNkklU4+fKVBQi2biVp5vafMrWUEj4TJ4Cs= +go.etcd.io/etcd/server/v3 v3.5.21 h1:9w0/k12majtgarGmlMVuhwXRI2ob3/d1Ik3X5TKo0yU= +go.etcd.io/etcd/server/v3 v3.5.21/go.mod h1:G1mOzdwuzKT1VRL7SqRchli/qcFrtLBTAQ4lV20sXXo= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0 h1:PS8wXpbyaDJQ2VDHHncMe9Vct0Zn1fEjpsjrLxGJoSc= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0/go.mod h1:HDBUsEjOuRC0EzKZ1bSaRGZWUBAzo+MhAcUUORSr4D0= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 h1:yd02MEjBdJkG3uabWP9apV+OuWRIXGDuJEUJbOHmCFU= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0/go.mod h1:umTcuxiv1n/s/S6/c2AT/g2CQ7u5C59sHDNmfSwgz7Q= +go.opentelemetry.io/otel v1.33.0 h1:/FerN9bax5LoK51X/sI0SVYrjSE0/yUL7DpxW4K3FWw= +go.opentelemetry.io/otel v1.33.0/go.mod h1:SUUkR6csvUQl+yjReHu5uM3EtVV7MBm5FHKRlNx4I8I= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0 h1:Vh5HayB/0HHfOQA7Ctx69E/Y/DcQSMPpKANYVMQ7fBA= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0/go.mod h1:cpgtDBaqD/6ok/UG0jT15/uKjAY8mRA53diogHBg3UI= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0 h1:5pojmb1U1AogINhN3SurB+zm/nIcusopeBNp42f45QM= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0/go.mod h1:57gTHJSE5S1tqg+EKsLPlTWhpHMsWlVmer+LA926XiA= +go.opentelemetry.io/otel/metric v1.33.0 h1:r+JOocAyeRVXD8lZpjdQjzMadVZp2M4WmQ+5WtEnklQ= +go.opentelemetry.io/otel/metric v1.33.0/go.mod h1:L9+Fyctbp6HFTddIxClbQkjtubW6O9QS3Ann/M82u6M= +go.opentelemetry.io/otel/sdk v1.33.0 h1:iax7M131HuAm9QkZotNHEfstof92xM+N8sr3uHXc2IM= +go.opentelemetry.io/otel/sdk v1.33.0/go.mod h1:A1Q5oi7/9XaMlIWzPSxLRWOI8nG3FnzHJNbiENQuihM= +go.opentelemetry.io/otel/trace v1.33.0 h1:cCJuF7LRjUFso9LPnEAHJDB2pqzp+hbO8eu1qqW2d/s= +go.opentelemetry.io/otel/trace v1.33.0/go.mod h1:uIcdVUZMpTAmz0tI1z04GoVSezK37CbGV4fr1f2nBck= +go.opentelemetry.io/proto/otlp v1.4.0 h1:TA9WRvW6zMwP+Ssb6fLoUIuirti1gGbP28GcKG1jgeg= +go.opentelemetry.io/proto/otlp v1.4.0/go.mod h1:PPBWZIP98o2ElSqI35IHfu7hIhSwvc5N38Jw8pXuGFY= +go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs= +go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= @@ -216,62 +218,62 @@ go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A= -golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70= -golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk= -golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY= +golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= +golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc= +golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 h1:yqrTHse8TCMW1M1ZCP+VAR/l0kKxwaAIqN/il7x4voA= +golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8/go.mod h1:tujkw807nyEEAamNbDrEGzRav+ilXA7PCRAd6xsmwiU= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= -golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= +golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU= +golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= -golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= -golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs= -golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= +golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= +golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc= +golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw= +golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= -golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.24.0 h1:Mh5cbb+Zk2hqqXNO7S1iTjEphVL+jb8ZWaqh/g+JWkM= -golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8= +golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20= +golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y= +golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= -golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= -golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U= -golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= +golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= +golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY= +golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.25.0 h1:oFU9pkj/iJgs+0DT+VMHrx+oBKs/LJMV+Uvg78sl+fE= -golang.org/x/tools v0.25.0/go.mod h1:/vtpO8WL1N9cQC3FN5zPqb//fRXskFHbLKk4OW1Q7rg= +golang.org/x/tools v0.31.0 h1:0EedkvKDbh+qistFTd0Bcwe/YLh4vHwWEkiI0toFIBU= +golang.org/x/tools v0.31.0/go.mod h1:naFTU+Cev749tSJRXJlna0T3WxKvb1kWEx15xA4SdmQ= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gomodules.xyz/jsonpatch/v2 v2.4.0 h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw= gomodules.xyz/jsonpatch/v2 v2.4.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY= -google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUEr4jDysRDLrm4PHePlge4v4TGAlxY= -google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= -google.golang.org/genproto/googleapis/api v0.0.0-20240930140551-af27646dc61f h1:jTm13A2itBi3La6yTGqn8bVSrc3ZZ1r8ENHlIXBfnRA= -google.golang.org/genproto/googleapis/api v0.0.0-20240930140551-af27646dc61f/go.mod h1:CLGoBuH1VHxAUXVPP8FfPwPEVJB6lz3URE5mY2SuayE= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f h1:cUMEy+8oS78BWIH9OWazBkzbr090Od9tWBNtZHkOhf0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= -google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= -google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/genproto v0.0.0-20241118233622-e639e219e697 h1:ToEetK57OidYuqD4Q5w+vfEnPvPpuTwedCNVohYJfNk= +google.golang.org/genproto v0.0.0-20241118233622-e639e219e697/go.mod h1:JJrvXBWRZaFMxBufik1a4RpFw4HhgVtBBWQeQgUj2cc= +google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 h1:CkkIfIt50+lT6NHAVoRYEyAvQGFM7xEwXUUywFvEb3Q= +google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576/go.mod h1:1R3kvZ1dtP3+4p4d3G8uJ8rFk/fWlScl38vanWACI08= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 h1:TqExAhdPaB60Ux47Cn0oLV07rGnxZzIsaRhQaqS666A= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8/go.mod h1:lcTa1sDdWEIHMWlITnIczmw5w60CF9ffkb8Z+DVmmjA= +google.golang.org/grpc v1.68.1 h1:oI5oTa11+ng8r8XMMN7jAOmWfPZWbYpCFaMUTACxkM0= +google.golang.org/grpc v1.68.1/go.mod h1:+q1XYFJjShcqn0QZHvCyeR4CXPA+llXIeUIfIe00waw= +google.golang.org/protobuf v1.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM= +google.golang.org/protobuf v1.36.5/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= @@ -283,39 +285,43 @@ gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.31.1 h1:Xe1hX/fPW3PXYYv8BlozYqw63ytA92snr96zMW9gWTU= -k8s.io/api v0.31.1/go.mod h1:sbN1g6eY6XVLeqNsZGLnI5FwVseTrZX7Fv3O26rhAaI= -k8s.io/apiextensions-apiserver v0.31.1 h1:L+hwULvXx+nvTYX/MKM3kKMZyei+UiSXQWciX/N6E40= -k8s.io/apiextensions-apiserver v0.31.1/go.mod h1:tWMPR3sgW+jsl2xm9v7lAyRF1rYEK71i9G5dRtkknoQ= -k8s.io/apimachinery v0.31.1 h1:mhcUBbj7KUjaVhyXILglcVjuS4nYXiwC+KKFBgIVy7U= -k8s.io/apimachinery v0.31.1/go.mod h1:rsPdaZJfTfLsNJSQzNHQvYoTmxhoOEofxtOsF3rtsMo= -k8s.io/apiserver v0.31.1 h1:Sars5ejQDCRBY5f7R3QFHdqN3s61nhkpaX8/k1iEw1c= -k8s.io/apiserver v0.31.1/go.mod h1:lzDhpeToamVZJmmFlaLwdYZwd7zB+WYRYIboqA1kGxM= -k8s.io/client-go v0.31.1 h1:f0ugtWSbWpxHR7sjVpQwuvw9a3ZKLXX0u0itkFXufb0= -k8s.io/client-go v0.31.1/go.mod h1:sKI8871MJN2OyeqRlmA4W4KM9KBdBUpDLu/43eGemCg= -k8s.io/component-base v0.31.1 h1:UpOepcrX3rQ3ab5NB6g5iP0tvsgJWzxTyAo20sgYSy8= -k8s.io/component-base v0.31.1/go.mod h1:WGeaw7t/kTsqpVTaCoVEtillbqAhF2/JgvO0LDOMa0w= +k8s.io/api v0.33.1 h1:tA6Cf3bHnLIrUK4IqEgb2v++/GYUtqiu9sRVk3iBXyw= +k8s.io/api v0.33.1/go.mod h1:87esjTn9DRSRTD4fWMXamiXxJhpOIREjWOSjsW1kEHw= +k8s.io/apiextensions-apiserver v0.33.1 h1:N7ccbSlRN6I2QBcXevB73PixX2dQNIW0ZRuguEE91zI= +k8s.io/apiextensions-apiserver v0.33.1/go.mod h1:uNQ52z1A1Gu75QSa+pFK5bcXc4hq7lpOXbweZgi4dqA= +k8s.io/apimachinery v0.33.1 h1:mzqXWV8tW9Rw4VeW9rEkqvnxj59k1ezDUl20tFK/oM4= +k8s.io/apimachinery v0.33.1/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM= +k8s.io/apiserver v0.33.1 h1:yLgLUPDVC6tHbNcw5uE9mo1T6ELhJj7B0geifra3Qdo= +k8s.io/apiserver v0.33.1/go.mod h1:VMbE4ArWYLO01omz+k8hFjAdYfc3GVAYPrhP2tTKccs= +k8s.io/client-go v0.33.1 h1:ZZV/Ks2g92cyxWkRRnfUDsnhNn28eFpt26aGc8KbXF4= +k8s.io/client-go v0.33.1/go.mod h1:JAsUrl1ArO7uRVFWfcj6kOomSlCv+JpvIsp6usAGefA= +k8s.io/component-base v0.33.1 h1:EoJ0xA+wr77T+G8p6T3l4efT2oNwbqBVKR71E0tBIaI= +k8s.io/component-base v0.33.1/go.mod h1:guT/w/6piyPfTgq7gfvgetyXMIh10zuXA6cRRm3rDuY= 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-20240521193020-835d969ad83a h1:zD1uj3Jf+mD4zmA7W+goE5TxDkI7OGJjBNBzq5fJtLA= -k8s.io/kube-openapi v0.0.0-20240521193020-835d969ad83a/go.mod h1:UxDHUPsUwTOOxSU+oXURfFBcAS6JwiRXTYqYwfuGowc= -k8s.io/utils v0.0.0-20240921022957-49e7df575cb6 h1:MDF6h2H/h4tbzmtIKTuctcwZmY0tY9mD9fNT47QO6HI= -k8s.io/utils v0.0.0-20240921022957-49e7df575cb6/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 h1:2770sDpzrjjsAtVhSeUFseziht227YAWYHLGNM8QPwY= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= -sigs.k8s.io/controller-runtime v0.19.0 h1:nWVM7aq+Il2ABxwiCizrVDSlmDcshi9llbaFbC0ji/Q= -sigs.k8s.io/controller-runtime v0.19.0/go.mod h1:iRmWllt8IlaLjvTTDLhRBXIEtkCK6hwVBJJsYS9Ajf4= -sigs.k8s.io/controller-tools v0.16.3 h1:z48C5/d4jCVQQvtiSBL5MYyZ3EO2eFIOXrIKMgHVhFY= -sigs.k8s.io/controller-tools v0.16.3/go.mod h1:AEj6k+w1kYpLZv2einOH3mj52ips4W/6FUjnB5tkJGs= -sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= -sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= -sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= -sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= +k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff h1:/usPimJzUKKu+m+TE36gUyGcf03XZEP0ZIKgKj35LS4= +k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff/go.mod h1:5jIi+8yX4RIb8wk3XwBo5Pq2ccx4FP10ohkbSKCZoK8= +k8s.io/metrics v0.33.1 h1:Ypd5ITCf+fM+LDNFk7hESXTc3vh02CQYGiwRoVRaGsM= +k8s.io/metrics v0.33.1/go.mod h1:wK8cFTK5ykBdhL0Wy4RZwLH28XM7j/Klc+NQrMRWVxg= +k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= +k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 h1:jpcvIRr3GLoUoEKRkHKSmGjxb6lWwrBlJsXc+eUYQHM= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= +sigs.k8s.io/controller-runtime v0.20.1 h1:JbGMAG/X94NeM3xvjenVUaBjy6Ui4Ogd/J5ZtjZnHaE= +sigs.k8s.io/controller-runtime v0.20.1/go.mod h1:BrP3w158MwvB3ZbNpaAcIKkHQ7YGpYnzpoSTZ8E14WU= +sigs.k8s.io/controller-tools v0.16.4 h1:VXmar78eDXbx1by/H09ikEq1hiq3bqInxuV3lMr3GmQ= +sigs.k8s.io/controller-tools v0.16.4/go.mod h1:kcsZyYMXiOFuBhofSPtkB90zTSxVRxVVyvtKQcx3q1A= +sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8= +sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo= +sigs.k8s.io/randfill v0.0.0-20250304075658-069ef1bbf016/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= +sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= +sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= +sigs.k8s.io/structured-merge-diff/v4 v4.6.0 h1:IUA9nvMmnKWcj5jl84xn+T5MnlZKThmUW1TdblaLVAc= +sigs.k8s.io/structured-merge-diff/v4 v4.6.0/go.mod h1:dDy58f92j70zLsuZVuUX5Wp9vtxXpaZnkPGWeqDfCps= sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= diff --git a/pkg/apis/management/install/install.go b/pkg/apis/management/install/install.go index 1afbb0d7..12486343 100644 --- a/pkg/apis/management/install/install.go +++ b/pkg/apis/management/install/install.go @@ -27,11 +27,9 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &management.UserSpacesOptions{}, &management.UserVirtualClustersOptions{}, &management.UserQuotasOptions{}, - &management.DevPodUpOptions{}, - &management.DevPodDeleteOptions{}, - &management.DevPodStopOptions{}, - &management.DevPodStatusOptions{}, - &management.DevPodSshOptions{}, + &management.DevPodWorkspaceInstanceLogOptions{}, + &management.DevPodWorkspaceInstanceTasksOptions{}, + &management.DevPodWorkspaceInstanceDownloadOptions{}, ) 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 bbc8be27..fecc15c8 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -4,7 +4,7 @@ package install import ( "github.com/loft-sh/api/v4/pkg/apis/management" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + "github.com/loft-sh/api/v4/pkg/apis/management/v1" "github.com/loft-sh/apiserver/pkg/builders" "k8s.io/apimachinery/pkg/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime" @@ -41,7 +41,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.ClusterMemberAccess{}, &management.ClusterMembers{}, &management.ClusterReset{}, - &management.ClusterVirtualClusterDefaults{}, &management.ClusterAccess{}, &management.ClusterAccessList{}, &management.ClusterRoleTemplate{}, @@ -50,16 +49,21 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.ConfigList{}, &management.ConvertVirtualClusterConfig{}, &management.ConvertVirtualClusterConfigList{}, + &management.DatabaseConnector{}, + &management.DatabaseConnectorList{}, &management.DevPodEnvironmentTemplate{}, &management.DevPodEnvironmentTemplateList{}, &management.DevPodWorkspaceInstance{}, &management.DevPodWorkspaceInstanceList{}, - &management.DevPodDeleteOptions{}, - &management.DevPodStatusOptions{}, - &management.DevPodSshOptions{}, - &management.DevPodWorkspaceInstanceState{}, - &management.DevPodStopOptions{}, - &management.DevPodUpOptions{}, + &management.DevPodWorkspaceInstanceCancel{}, + &management.DevPodWorkspaceInstanceDownload{}, + &management.DevPodWorkspaceInstanceLog{}, + &management.DevPodWorkspaceInstanceStop{}, + &management.DevPodWorkspaceInstanceTasks{}, + &management.DevPodWorkspaceInstanceTroubleshoot{}, + &management.DevPodWorkspaceInstanceUp{}, + &management.DevPodWorkspacePreset{}, + &management.DevPodWorkspacePresetList{}, &management.DevPodWorkspaceTemplate{}, &management.DevPodWorkspaceTemplateList{}, &management.DirectClusterEndpointToken{}, @@ -79,6 +83,12 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.LicenseTokenList{}, &management.LoftUpgrade{}, &management.LoftUpgradeList{}, + &management.NodeClaim{}, + &management.NodeClaimList{}, + &management.NodeProvider{}, + &management.NodeProviderList{}, + &management.NodeType{}, + &management.NodeTypeList{}, &management.OIDCClient{}, &management.OIDCClientList{}, &management.OwnedAccessKey{}, @@ -92,7 +102,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.ProjectMembers{}, &management.ProjectMigrateSpaceInstance{}, &management.ProjectMigrateVirtualClusterInstance{}, - &management.ProjectRunners{}, &management.ProjectTemplates{}, &management.ProjectSecret{}, &management.ProjectSecretList{}, @@ -102,10 +111,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.RegisterVirtualClusterList{}, &management.ResetAccessKey{}, &management.ResetAccessKeyList{}, - &management.Runner{}, - &management.RunnerList{}, - &management.RunnerAccessKey{}, - &management.RunnerConfig{}, &management.Self{}, &management.SelfList{}, &management.SelfSubjectAccessReview{}, @@ -125,19 +130,25 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.TeamList{}, &management.TeamAccessKeys{}, &management.TeamClusters{}, + &management.TeamObjectPermissions{}, + &management.TeamPermissions{}, &management.TranslateVClusterResourceName{}, &management.TranslateVClusterResourceNameList{}, &management.User{}, &management.UserList{}, &management.UserAccessKeys{}, &management.UserClusters{}, + &management.UserObjectPermissions{}, &management.UserPermissions{}, &management.UserProfile{}, &management.VirtualClusterInstance{}, &management.VirtualClusterInstanceList{}, &management.VirtualClusterAccessKey{}, + &management.VirtualClusterExternalDatabase{}, &management.VirtualClusterInstanceKubeConfig{}, &management.VirtualClusterInstanceLog{}, + &management.VirtualClusterSchema{}, + &management.VirtualClusterSchemaList{}, &management.VirtualClusterTemplate{}, &management.VirtualClusterTemplateList{}, ) diff --git a/pkg/apis/management/types.go b/pkg/apis/management/types.go index 463d3bc9..6167c8fb 100644 --- a/pkg/apis/management/types.go +++ b/pkg/apis/management/types.go @@ -128,3 +128,37 @@ type UserQuotasOptions struct { // +optional Cluster []string `json:"cluster,omitempty"` } + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceLogOptions struct { + metav1.TypeMeta `json:",inline"` + + // TaskID is the id of the task that is running + // +optional + TaskID string `json:"taskID,omitempty"` + + // Follow the log stream of the task. Defaults to false. + // +optional + Follow bool `json:"follow,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceTasksOptions struct { + metav1.TypeMeta `json:",inline"` + + // TaskID is the id of the task that is running + // +optional + TaskID string `json:"taskID,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceDownloadOptions struct { + metav1.TypeMeta `json:",inline"` + + // Path is the path to download + // +optional + Path string `json:"path,omitempty"` +} diff --git a/pkg/apis/management/v1/cluster_agentconfig_types.go b/pkg/apis/management/v1/cluster_agentconfig_types.go index 05ad1f11..a3a742a8 100644 --- a/pkg/apis/management/v1/cluster_agentconfig_types.go +++ b/pkg/apis/management/v1/cluster_agentconfig_types.go @@ -47,6 +47,9 @@ type ClusterAgentConfigCommon struct { // AnalyticsSpec holds info needed for the agent to send analytics data to the analytics backend. AnalyticsSpec AgentAnalyticsSpec `json:"analyticsSpec"` + + // CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure + CostControl *AgentCostControlConfig `json:"costControl,omitempty"` } type AgentAuditConfig struct { @@ -100,3 +103,13 @@ type AgentAuditConfig struct { type AgentAnalyticsSpec struct { AnalyticsEndpoint string `json:"analyticsEndpoint,omitempty"` } + +type AgentCostControlConfig struct { + // Enabled specifies whether the ROI dashboard should be available in the UI, and if the metrics infrastructure + // that provides dashboard data is deployed + Enabled *bool `json:"enabled,omitempty"` + + // CostControlClusterConfig are settings for each cluster's managed components. These settings apply to all connected clusters + // unless overridden by modifying the Cluster's spec + CostControlClusterConfig `json:",inline"` +} diff --git a/pkg/apis/management/v1/cluster_types.go b/pkg/apis/management/v1/cluster_types.go index af314867..dc3b3d42 100644 --- a/pkg/apis/management/v1/cluster_types.go +++ b/pkg/apis/management/v1/cluster_types.go @@ -1,6 +1,7 @@ package v1 import ( + agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -9,20 +10,18 @@ import ( // +genclient:nonNamespaced // +genclient:method=ListAccess,verb=get,subresource=memberaccess,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccess // +genclient:method=ListMembers,verb=get,subresource=members,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMembers -// +genclient:method=ListVirtualClusterDefaults,verb=get,subresource=virtualclusterdefaults,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterVirtualClusterDefaults // +genclient:method=GetAgentConfig,verb=get,subresource=agentconfig,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfig // +genclient:method=GetAccessKey,verb=get,subresource=accesskey,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // Cluster holds the cluster information // +k8s:openapi-gen=true -// +resource:path=clusters,rest=ClusterREST +// +resource:path=clusters,rest=ClusterREST,statusRest=ClusterStatusREST // +subresource:request=ClusterMemberAccess,path=memberaccess,kind=ClusterMemberAccess,rest=ClusterMemberAccessREST // +subresource:request=ClusterReset,path=reset,kind=ClusterReset,rest=ClusterResetREST // +subresource:request=ClusterDomain,path=domain,kind=ClusterDomain,rest=ClusterDomainREST // +subresource:request=ClusterMembers,path=members,kind=ClusterMembers,rest=ClusterMembersREST // +subresource:request=ClusterCharts,path=charts,kind=ClusterCharts,rest=ClusterChartsREST -// +subresource:request=ClusterVirtualClusterDefaults,path=virtualclusterdefaults,kind=ClusterVirtualClusterDefaults,rest=ClusterVirtualClusterDefaultsREST // +subresource:request=ClusterAgentConfig,path=agentconfig,kind=ClusterAgentConfig,rest=ClusterAgentConfigREST // +subresource:request=ClusterAccessKey,path=accesskey,kind=ClusterAccessKey,rest=ClusterAccessKeyREST type Cluster struct { @@ -63,3 +62,11 @@ func (a *Cluster) GetAccess() []storagev1.Access { func (a *Cluster) SetAccess(access []storagev1.Access) { a.Spec.Access = access } + +func (a *Cluster) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *Cluster) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} diff --git a/pkg/apis/management/v1/cluster_virtualclusterdefaults_types.go b/pkg/apis/management/v1/cluster_virtualclusterdefaults_types.go deleted file mode 100644 index 7c2ffc05..00000000 --- a/pkg/apis/management/v1/cluster_virtualclusterdefaults_types.go +++ /dev/null @@ -1,31 +0,0 @@ -package v1 - -import ( - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// +subresource-request -type ClusterVirtualClusterDefaults struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - // DefaultTemplate is the default virtual cluster template - // +optional - DefaultTemplate *storagev1.VirtualClusterTemplate `json:"defaultTemplate,omitempty"` - - // LatestVersion is the latest virtual cluster version - // +optional - LatestVersion string `json:"latestVersion,omitempty"` - - // Default values for the virtual cluster chart - // +optional - Values string `json:"values,omitempty"` - - // Warning should be somehow shown to the user when - // there is a problem retrieving the defaults - // +optional - Warning string `json:"warning,omitempty"` -} diff --git a/pkg/apis/management/v1/config_types.go b/pkg/apis/management/v1/config_types.go index b8da7098..e198b6d8 100644 --- a/pkg/apis/management/v1/config_types.go +++ b/pkg/apis/management/v1/config_types.go @@ -4,6 +4,7 @@ import ( auditv1 "github.com/loft-sh/api/v4/pkg/apis/audit/v1" storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" uiv1 "github.com/loft-sh/api/v4/pkg/apis/ui/v1" + corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -69,6 +70,16 @@ type ConfigStatus struct { // DisableLoftConfigEndpoint will disable setting config via the UI and config.management.loft.sh endpoint DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` + + // Cloud holds the settings to be used exclusively in vCluster Cloud based + // environments and deployments. + Cloud *Cloud `json:"cloud,omitempty"` + + // CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure + CostControl *CostControl `json:"costControl,omitempty"` + + // ImageBuilder holds the settings related to the image builder + ImageBuilder *ImageBuilder `json:"imageBuilder,omitempty"` } // Audit holds the audit configuration options for loft. Changing any options will require a loft restart @@ -658,6 +669,10 @@ type AuthenticationOIDC struct { // +optional EmailClaim string `json:"emailClaim,omitempty"` + // AllowedExtraClaims are claims of interest that are not part of User by default but may be provided by the OIDC provider. + // +optional + AllowedExtraClaims []string `json:"allowedExtraClaims,omitempty"` + // 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". // +optional @@ -692,3 +707,99 @@ type AuthenticationOIDC struct { // +optional Type string `json:"type,omitempty"` } + +type Cloud struct { + // ReleaseChannel specifies the release channel for the cloud configuration. + // This can be used to determine which updates or versions are applied. + ReleaseChannel string `json:"releaseChannel,omitempty"` + + // MaintenanceWindow specifies the maintenance window for the cloud configuration. + // This is a structured representation of the time window during which maintenance can occur. + MaintenanceWindow MaintenanceWindow `json:"maintenanceWindow,omitempty"` +} + +type MaintenanceWindow struct { + // DayOfWeek specifies the day of the week for the maintenance window. + // It should be a string representing the day, e.g., "Monday", "Tuesday", etc. + DayOfWeek string `json:"dayOfWeek,omitempty"` + + // 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". + TimeWindow string `json:"timeWindow,omitempty"` +} + +type CostControl struct { + // Enabled specifies whether the ROI dashboard should be available in the UI, and if the metrics infrastructure + // that provides dashboard data is deployed + Enabled *bool `json:"enabled,omitempty"` + + // Global are settings for globally managed components + Global CostControlGlobalConfig `json:"global,omitempty"` + + // Cluster are settings for each cluster's managed components. These settings apply to all connected clusters + // unless overridden by modifying the Cluster's spec + Cluster CostControlClusterConfig `json:"cluster,omitempty"` + + // Settings specify price-related settings that are taken into account for the ROI dashboard calculations. + Settings *CostControlSettings `json:"settings,omitempty"` +} + +type CostControlGlobalConfig struct { + // Metrics these settings apply to metric infrastructure used to aggregate metrics across all connected clusters + Metrics *storagev1.Metrics `json:"metrics,omitempty"` +} + +type CostControlClusterConfig struct { + // Metrics are settings applied to metric infrastructure in each connected cluster. These can be overridden in + // individual clusters by modifying the Cluster's spec + Metrics *storagev1.Metrics `json:"metrics,omitempty"` + + // OpenCost are settings applied to OpenCost deployments in each connected cluster. These can be overridden in + // individual clusters by modifying the Cluster's spec + OpenCost *storagev1.OpenCost `json:"opencost,omitempty"` +} + +type CostControlSettings struct { + // PriceCurrency specifies the currency. + PriceCurrency string `json:"priceCurrency,omitempty"` + + // AvgCPUPricePerNode specifies the average CPU price per node. + AvgCPUPricePerNode *CostControlResourcePrice `json:"averageCPUPricePerNode,omitempty"` + + // AvgRAMPricePerNode specifies the average RAM price per node. + AvgRAMPricePerNode *CostControlResourcePrice `json:"averageRAMPricePerNode,omitempty"` + + // GPUSettings specifies GPU related settings. + GPUSettings *CostControlGPUSettings `json:"gpuSettings,omitempty"` + + // ControlPlanePricePerCluster specifies the price of one physical cluster. + ControlPlanePricePerCluster *CostControlResourcePrice `json:"controlPlanePricePerCluster,omitempty"` +} + +type CostControlGPUSettings struct { + // Enabled specifies whether GPU settings should be available in the UI. + Enabled bool `json:"enabled,omitempty"` + + // AvgGPUPrice specifies the average GPU price. + AvgGPUPrice *CostControlResourcePrice `json:"averageGPUPrice,omitempty"` +} + +type CostControlResourcePrice struct { + // Price specifies the price. + Price float64 `json:"price,omitempty"` + + // TimePeriod specifies the time period for the price. + TimePeriod string `json:"timePeriod,omitempty"` +} + +type ImageBuilder struct { + // 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 + Enabled *bool `json:"enabled,omitempty"` + + // Replicas is the number of desired replicas. + Replicas *int32 `json:"replicas,omitempty"` + + // Resources are compute resource required by the buildkit containers + Resources *corev1.ResourceRequirements `json:"resources,omitempty"` +} diff --git a/pkg/apis/management/v1/database_connector_types.go b/pkg/apis/management/v1/database_connector_types.go new file mode 100644 index 00000000..34a75354 --- /dev/null +++ b/pkg/apis/management/v1/database_connector_types.go @@ -0,0 +1,32 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// DatabaseConnector represents a connector that can be used to provision and manage a backingstore +// for a vCluster +// +k8s:openapi-gen=true +// +resource:path=databaseconnectors,rest=DatabaseConnectorREST +type DatabaseConnector struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec DatabaseConnectorSpec `json:"spec,omitempty"` + Status DatabaseConnectorStatus `json:"status,omitempty"` +} + +// 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 +type DatabaseConnectorStatus struct { +} diff --git a/pkg/apis/management/v1/devpodenvironmenttemplate_types.go b/pkg/apis/management/v1/devpodenvironmenttemplate_types.go index c61f3360..b22464aa 100644 --- a/pkg/apis/management/v1/devpodenvironmenttemplate_types.go +++ b/pkg/apis/management/v1/devpodenvironmenttemplate_types.go @@ -26,18 +26,17 @@ type DevPodEnvironmentTemplateSpec struct { storagev1.DevPodEnvironmentTemplateSpec `json:",inline"` } -// GitEnvironmentTemplate stores configuration of Git environment template source -type GitEnvironmentTemplate struct { - // Repository stores repository URL for Git environment spec source - Repository string `json:"repository"` - - // Revision stores revision to checkout in repository - // +optional - Revision string `json:"revision,omitempty"` - - // SubPath stores subpath within Repositor where environment spec is - // +optional - SubPath string `json:"subpath,omitempty"` +// 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 { @@ -55,6 +54,3 @@ func (a *DevPodEnvironmentTemplate) GetAccess() []storagev1.Access { func (a *DevPodEnvironmentTemplate) SetAccess(access []storagev1.Access) { a.Spec.Access = access } - -// DevPodEnvironmentTemplateStatus holds the status -type DevPodEnvironmentTemplateStatus struct{} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_state_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_cancel_types.go similarity index 64% rename from pkg/apis/management/v1/devpodworkspaceinstance_state_types.go rename to pkg/apis/management/v1/devpodworkspaceinstance_cancel_types.go index 49074dd1..ed1a916c 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_state_types.go +++ b/pkg/apis/management/v1/devpodworkspaceinstance_cancel_types.go @@ -7,11 +7,11 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +subresource-request -type DevPodWorkspaceInstanceState struct { +type DevPodWorkspaceInstanceCancel struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - // State holds the workspaces state as given by 'devpod export' + // TaskID is the id of the task that should get cancelled // +optional - State string `json:"state,omitempty"` + TaskID string `json:"taskId,omitempty"` } diff --git a/pkg/apis/management/v1/runner_accesskey_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_download_types.go similarity index 56% rename from pkg/apis/management/v1/runner_accesskey_types.go rename to pkg/apis/management/v1/devpodworkspaceinstance_download_types.go index 8fb0a8b2..9bef5512 100644 --- a/pkg/apis/management/v1/runner_accesskey_types.go +++ b/pkg/apis/management/v1/devpodworkspaceinstance_download_types.go @@ -6,13 +6,8 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// RunnerAccessKey holds the access key for the runner // +subresource-request -type RunnerAccessKey struct { +type DevPodWorkspaceInstanceDownload struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - - // AccessKey is the access key used by the runner - // +optional - AccessKey string `json:"accessKey,omitempty"` } diff --git a/pkg/apis/management/v1/runner_config_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_log_types.go similarity index 51% rename from pkg/apis/management/v1/runner_config_types.go rename to pkg/apis/management/v1/devpodworkspaceinstance_log_types.go index f92a05f4..e9020e3c 100644 --- a/pkg/apis/management/v1/runner_config_types.go +++ b/pkg/apis/management/v1/devpodworkspaceinstance_log_types.go @@ -6,14 +6,8 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// RunnerConfig holds the config the runner retrieves from Loft // +subresource-request -type RunnerConfig struct { +type DevPodWorkspaceInstanceLog struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - - // TokenCaCert is the certificate authority the Loft tokens will - // be signed with - // +optional - TokenCaCert []byte `json:"tokenCaCert,omitempty"` } diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go new file mode 100644 index 00000000..6485f63b --- /dev/null +++ b/pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go @@ -0,0 +1,28 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type DevPodWorkspaceInstanceStop struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec DevPodWorkspaceInstanceStopSpec `json:"spec,omitempty"` + Status DevPodWorkspaceInstanceStopStatus `json:"status,omitempty"` +} + +type DevPodWorkspaceInstanceStopSpec struct { + // Options are the options to pass. + // +optional + Options string `json:"options,omitempty"` +} + +type DevPodWorkspaceInstanceStopStatus 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/devpodworkspaceinstance_tasks_types.go new file mode 100644 index 00000000..60eeb8cf --- /dev/null +++ b/pkg/apis/management/v1/devpodworkspaceinstance_tasks_types.go @@ -0,0 +1,35 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type DevPodWorkspaceInstanceTasks struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Tasks []DevPodWorkspaceInstanceTask `json:"tasks,omitempty"` +} + +type DevPodWorkspaceInstanceTask struct { + // ID is the id of the task + ID string `json:"id,omitempty"` + + // Type is the type of the task + Type string `json:"type,omitempty"` + + // Status is the status of the task + Status string `json:"status,omitempty"` + + // Result is the result of the task + Result []byte `json:"result,omitempty"` + + // Logs is the compressed logs of the task + Logs []byte `json:"logs,omitempty"` + + // CreatedAt is the timestamp when the task was created + CreatedAt metav1.Time `json:"createdAt,omitempty"` +} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go new file mode 100644 index 00000000..ad55ee35 --- /dev/null +++ b/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go @@ -0,0 +1,45 @@ +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type DevPodWorkspaceInstanceTroubleshoot struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + // State holds the workspaces state as given by 'devpod export' + // +optional + State string `json:"state,omitempty"` + + // Workspace holds the workspace's instance object data + // +optional + Workspace *DevPodWorkspaceInstance `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"` + + // Pods is a list of pod objects that are linked to the workspace. + // +optional + Pods []corev1.Pod `json:"pods,omitempty"` + + // PVCs is a list of PVC objects that are linked to the workspace. + // +optional + PVCs []corev1.PersistentVolumeClaim `json:"pvcs,omitempty"` + + // Netmaps is a list of netmaps that are linked to the workspace. + // +optional + Netmaps []string `json:"netmaps,omitempty"` + + // Errors is a list of errors that occurred while trying to collect + // informations for troubleshooting. + // +optional + Errors []string `json:"errors,omitempty"` +} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_types.go index a77b5498..6335b465 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_types.go +++ b/pkg/apis/management/v1/devpodworkspaceinstance_types.go @@ -9,19 +9,22 @@ import ( // +genclient // +genclient:noStatus -// +genclient:method=GetState,verb=get,subresource=state,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState -// +genclient:method=SetState,verb=create,subresource=state,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState +// +genclient:method=Up,verb=create,subresource=up,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp +// +genclient:method=Stop,verb=create,subresource=stop,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop +// +genclient:method=Troubleshoot,verb=get,subresource=troubleshoot,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot +// +genclient:method=Cancel,verb=create,subresource=cancel,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel // +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=DevPodUpOptions,path=up,kind=DevPodUpOptions,rest=DevPodUpOptionsREST -// +subresource:request=DevPodDeleteOptions,path=delete,kind=DevPodDeleteOptions,rest=DevPodDeleteOptionsREST -// +subresource:request=DevPodSshOptions,path=ssh,kind=DevPodSshOptions,rest=DevPodSshOptionsREST -// +subresource:request=DevPodStopOptions,path=stop,kind=DevPodStopOptions,rest=DevPodStopOptionsREST -// +subresource:request=DevPodStatusOptions,path=getstatus,kind=DevPodStatusOptions,rest=DevPodStatusOptionsREST -// +subresource:request=DevPodWorkspaceInstanceState,path=state,kind=DevPodWorkspaceInstanceState,rest=DevPodWorkspaceInstanceStateREST +// +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"` diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_up_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_up_types.go new file mode 100644 index 00000000..5227261e --- /dev/null +++ b/pkg/apis/management/v1/devpodworkspaceinstance_up_types.go @@ -0,0 +1,32 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type DevPodWorkspaceInstanceUp struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec DevPodWorkspaceInstanceUpSpec `json:"spec,omitempty"` + Status DevPodWorkspaceInstanceUpStatus `json:"status,omitempty"` +} + +type DevPodWorkspaceInstanceUpSpec struct { + // Debug includes debug logs. + // +optional + Debug bool `json:"debug,omitempty"` + + // Options are the options to pass. + // +optional + Options string `json:"options,omitempty"` +} + +type DevPodWorkspaceInstanceUpStatus struct { + // TaskID is the id of the task that is running + // +optional + TaskID string `json:"taskId,omitempty"` +} diff --git a/pkg/apis/management/v1/devpodworkspacepreset_types.go b/pkg/apis/management/v1/devpodworkspacepreset_types.go new file mode 100644 index 00000000..45b1f912 --- /dev/null +++ b/pkg/apis/management/v1/devpodworkspacepreset_types.go @@ -0,0 +1,51 @@ +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/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/nodeclaim_types.go b/pkg/apis/management/v1/nodeclaim_types.go new file mode 100644 index 00000000..a9dff856 --- /dev/null +++ b/pkg/apis/management/v1/nodeclaim_types.go @@ -0,0 +1,33 @@ +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="VCluster",type="string",JSONPath=".spec.vClusterRef" +// +kubebuilder:printcolumn:name="NodeType",type="string",JSONPath=".spec.nodeTypeRef" +// +kubebuilder:subresource:status + +// NodeClaim holds the node claim for vCluster. +// +k8s:openapi-gen=true +// +resource:path=nodeclaims,rest=NodeClaimREST,statusRest=NodeClaimStatusREST +type NodeClaim struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeClaimSpec `json:"spec,omitempty"` + Status NodeClaimStatus `json:"status,omitempty"` +} + +// NodeClaimSpec defines spec of node claim. +type NodeClaimSpec struct { + storagev1.NodeClaimSpec `json:",inline"` +} + +type NodeClaimStatus struct { + storagev1.NodeClaimStatus `json:",inline"` +} diff --git a/pkg/apis/management/v1/nodeprovider_types.go b/pkg/apis/management/v1/nodeprovider_types.go new file mode 100644 index 00000000..82f6b5c8 --- /dev/null +++ b/pkg/apis/management/v1/nodeprovider_types.go @@ -0,0 +1,33 @@ +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/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 + +// NodeProvider holds the information of a node provider config. +// This resource defines various ways a node can be provisioned or configured. +// +k8s:openapi-gen=true +// +resource:path=nodeproviders,rest=NodeProviderREST,statusRest=NodeProviderStatusREST +type NodeProvider struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeProviderSpec `json:"spec,omitempty"` + Status NodeProviderStatus `json:"status,omitempty"` +} + +// NodeProviderSpec defines the desired state of NodeProvider. +// Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time. +type NodeProviderSpec struct { + storagev1.NodeProviderSpec `json:",inline"` +} + +// NodeProviderStatus defines the observed state of NodeProvider. +type NodeProviderStatus struct { + storagev1.NodeProviderStatus `json:",inline"` +} diff --git a/pkg/apis/management/v1/nodetype_types.go b/pkg/apis/management/v1/nodetype_types.go new file mode 100644 index 00000000..2c739139 --- /dev/null +++ b/pkg/apis/management/v1/nodetype_types.go @@ -0,0 +1,41 @@ +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:printcolumn:name="Available",type="integer",JSONPath=".status.capacity.available" +// +kubebuilder:printcolumn:name="Total",type="integer",JSONPath=".status.capacity.total" +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:resource:scope=Cluster + +// NodeType holds the information of a node type. +// +k8s:openapi-gen=true +// +resource:path=nodetypes,rest=NodeTypeREST,statusRest=NodeTypeStatusREST +type NodeType struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeTypeSpec `json:"spec,omitempty"` + Status NodeTypeStatus `json:"status,omitempty"` +} + +func (a *NodeType) GetAllProperties() []corev1.NodeSelectorRequirement { + return (&storagev1.NodeType{ + ObjectMeta: a.ObjectMeta, + Spec: a.Spec.NodeTypeSpec, + Status: a.Status.NodeTypeStatus, + }).GetAllProperties() +} + +type NodeTypeSpec struct { + storagev1.NodeTypeSpec `json:",inline"` +} +type NodeTypeStatus struct { + storagev1.NodeTypeStatus `json:",inline"` +} diff --git a/pkg/apis/management/v1/options.go b/pkg/apis/management/v1/options.go index 8f0260ea..11692ea1 100644 --- a/pkg/apis/management/v1/options.go +++ b/pkg/apis/management/v1/options.go @@ -140,80 +140,45 @@ type UserQuotasOptions struct { // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +subresource-request -type DevPodUpOptions struct { +type BackupApplyOptions struct { metav1.TypeMeta `json:",inline"` - - // WebMode executes the up command directly. - // +optional - WebMode bool `json:"webMode,omitempty"` - - // CLIMode executes the up command directly. - // +optional - CLIMode bool `json:"cliMode,omitempty"` - - // Debug includes debug logs. - // +optional - Debug bool `json:"debug,omitempty"` - - // Options are the options to pass. - // +optional - Options string `json:"options,omitempty"` } // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +subresource-request -type DevPodDeleteOptions struct { +type DevPodWorkspaceInstanceLogOptions struct { metav1.TypeMeta `json:",inline"` - // Options are the options to pass. + // TaskID is the id of the task that is running // +optional - Options string `json:"options,omitempty"` -} - -// +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// +subresource-request -type DevPodStopOptions struct { - metav1.TypeMeta `json:",inline"` + TaskID string `json:"taskID,omitempty"` - // Options are the options to pass. + // Follow the log stream of the task. Defaults to false. // +optional - Options string `json:"options,omitempty"` + Follow bool `json:"follow,omitempty"` } // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +subresource-request -type DevPodStatusOptions struct { +type DevPodWorkspaceInstanceTasksOptions struct { metav1.TypeMeta `json:",inline"` - // Options are the options to pass. + // TaskID is the id of the task that is running // +optional - Options string `json:"options,omitempty"` + TaskID string `json:"taskID,omitempty"` } // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +subresource-request -type DevPodSshOptions struct { +type DevPodWorkspaceInstanceDownloadOptions struct { metav1.TypeMeta `json:",inline"` - // Options are the options to pass. + // Path is the path to download // +optional - Options string `json:"options,omitempty"` -} - -// +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type BackupApplyOptions struct { - metav1.TypeMeta `json:",inline"` + Path string `json:"path,omitempty"` } func InstallOptions(scheme *runtime.Scheme) error { @@ -229,12 +194,10 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &UserSpacesOptions{}, &UserVirtualClustersOptions{}, &UserQuotasOptions{}, - &DevPodUpOptions{}, - &DevPodDeleteOptions{}, - &DevPodStopOptions{}, - &DevPodStatusOptions{}, - &DevPodSshOptions{}, &BackupApplyOptions{}, + &DevPodWorkspaceInstanceLogOptions{}, + &DevPodWorkspaceInstanceTasksOptions{}, + &DevPodWorkspaceInstanceDownloadOptions{}, ) return nil } diff --git a/pkg/apis/management/v1/project_clusters_types.go b/pkg/apis/management/v1/project_clusters_types.go index 468e769e..50071f93 100644 --- a/pkg/apis/management/v1/project_clusters_types.go +++ b/pkg/apis/management/v1/project_clusters_types.go @@ -13,7 +13,4 @@ type ProjectClusters struct { // Clusters holds all the allowed clusters Clusters []Cluster `json:"clusters,omitempty"` - - // Runners holds all the allowed runners - Runners []Runner `json:"runners,omitempty"` } diff --git a/pkg/apis/management/v1/project_templates_types.go b/pkg/apis/management/v1/project_templates_types.go index 5c894109..6ea1539d 100644 --- a/pkg/apis/management/v1/project_templates_types.go +++ b/pkg/apis/management/v1/project_templates_types.go @@ -32,6 +32,9 @@ type ProjectTemplates struct { // DevPodEnvironmentTemplates holds all the allowed environment templates DevPodEnvironmentTemplates []DevPodEnvironmentTemplate `json:"devPodEnvironmentTemplates,omitempty"` + // DevPodWorkspacePresets holds all the allowed workspace presets + DevPodWorkspacePresets []DevPodWorkspacePreset `json:"devPodWorkspacePresets,omitempty"` + // DefaultDevPodEnvironmentTemplate DefaultDevPodEnvironmentTemplate string `json:"defaultDevPodEnvironmentTemplate,omitempty"` } diff --git a/pkg/apis/management/v1/project_types.go b/pkg/apis/management/v1/project_types.go index 00ff81be..6503839e 100644 --- a/pkg/apis/management/v1/project_types.go +++ b/pkg/apis/management/v1/project_types.go @@ -9,7 +9,6 @@ import ( // +genclient:nonNamespaced // +genclient:method=ListMembers,verb=get,subresource=members,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers // +genclient:method=ListTemplates,verb=get,subresource=templates,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates -// +genclient:method=ListRunners,verb=get,subresource=runners,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRunners // +genclient:method=ListClusters,verb=get,subresource=clusters,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters // +genclient:method=MigrateVirtualClusterInstance,verb=create,subresource=migratevirtualclusterinstance,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance // +genclient:method=ImportSpace,verb=create,subresource=importspace,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace @@ -21,7 +20,6 @@ import ( // +resource:path=projects,rest=ProjectREST,statusRest=ProjectStatusREST // +subresource:request=ProjectCharts,path=charts,kind=ProjectCharts,rest=ProjectChartsREST // +subresource:request=ProjectTemplates,path=templates,kind=ProjectTemplates,rest=ProjectTemplatesREST -// +subresource:request=ProjectRunners,path=runners,kind=ProjectRunners,rest=ProjectRunnersREST // +subresource:request=ProjectMembers,path=members,kind=ProjectMembers,rest=ProjectMembersREST // +subresource:request=ProjectClusters,path=clusters,kind=ProjectClusters,rest=ProjectClustersREST // +subresource:request=ProjectChartInfo,path=chartinfo,kind=ProjectChartInfo,rest=ProjectChartInfoREST diff --git a/pkg/apis/management/v1/runner_types.go b/pkg/apis/management/v1/runner_types.go deleted file mode 100644 index 9de6c9af..00000000 --- a/pkg/apis/management/v1/runner_types.go +++ /dev/null @@ -1,60 +0,0 @@ -package v1 - -import ( - agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +genclient:method=GetConfig,verb=get,subresource=config,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerConfig -// +genclient:method=GetAccessKey,verb=get,subresource=accesskey,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerAccessKey -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// Runner holds the Runner information -// +k8s:openapi-gen=true -// +resource:path=runners,rest=RunnerREST,statusRest=RunnerStatusREST -// +subresource:request=RunnerConfig,path=config,kind=RunnerConfig,rest=RunnerConfigREST -// +subresource:request=RunnerAccessKey,path=accesskey,kind=RunnerAccessKey,rest=RunnerAccessKeyREST -type Runner struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec RunnerSpec `json:"spec,omitempty"` - Status RunnerStatus `json:"status,omitempty"` -} - -// RunnerSpec holds the specification -type RunnerSpec struct { - storagev1.RunnerSpec `json:",inline"` -} - -// RunnerStatus holds the status -type RunnerStatus struct { - storagev1.RunnerStatus `json:",inline"` -} - -func (a *Runner) GetConditions() agentstoragev1.Conditions { - return a.Status.Conditions -} - -func (a *Runner) SetConditions(conditions agentstoragev1.Conditions) { - a.Status.Conditions = conditions -} - -func (a *Runner) GetOwner() *storagev1.UserOrTeam { - return a.Spec.Owner -} - -func (a *Runner) SetOwner(userOrTeam *storagev1.UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *Runner) GetAccess() []storagev1.Access { - return a.Spec.Access -} - -func (a *Runner) SetAccess(access []storagev1.Access) { - a.Spec.Access = access -} diff --git a/pkg/apis/management/v1/project_runners_types.go b/pkg/apis/management/v1/team_object_permissions_types.go similarity index 68% rename from pkg/apis/management/v1/project_runners_types.go rename to pkg/apis/management/v1/team_object_permissions_types.go index 5e08ca00..65807d46 100644 --- a/pkg/apis/management/v1/project_runners_types.go +++ b/pkg/apis/management/v1/team_object_permissions_types.go @@ -7,10 +7,9 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +subresource-request -type ProjectRunners struct { +type TeamObjectPermissions struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - // Runners holds all the allowed runners - Runners []Runner `json:"runners,omitempty"` + ObjectPermissions []ObjectPermission `json:"objectPermissions,omitempty"` } diff --git a/pkg/apis/management/v1/team_permissions_types.go b/pkg/apis/management/v1/team_permissions_types.go new file mode 100644 index 00000000..9e74482e --- /dev/null +++ b/pkg/apis/management/v1/team_permissions_types.go @@ -0,0 +1,27 @@ +package v1 + +import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type TeamPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + // Members gives users that are team members + // +optional + Members []ObjectName `json:"members,omitempty"` + + // ProjectMemberships gives information about the team's project membership + ProjectMemberships []ProjectMembership `json:"projectMemberships,omitempty"` + + // ManagementRoles gives information about the team's assigned management roles + ManagementRoles []ManagementRole `json:"managementRoles,omitempty"` + + // ClustersAccessRoles gives information about the team's assigned cluster roles and the clusters they apply to + ClusterAccessRoles []ClusterAccessRole `json:"clusterAccessRoles,omitempty"` + + // VirtualClusterRoles give information about the team's cluster role within the virtual cluster + VirtualClusterRoles []VirtualClusterRole `json:"virtualClusterRoles,omitempty"` +} diff --git a/pkg/apis/management/v1/team_types.go b/pkg/apis/management/v1/team_types.go index 131a1400..44a0fa61 100644 --- a/pkg/apis/management/v1/team_types.go +++ b/pkg/apis/management/v1/team_types.go @@ -16,6 +16,8 @@ import ( // +resource:path=teams,rest=TeamREST // +subresource:request=TeamClusters,path=clusters,kind=TeamClusters,rest=TeamClustersREST // +subresource:request=TeamAccessKeys,path=accesskeys,kind=TeamAccessKeys,rest=TeamAccessKeysREST +// +subresource:request=TeamPermissions,path=permissions,kind=TeamPermissions,rest=TeamPermissionsREST +// +subresource:request=TeamObjectPermissions,path=object-permissions,kind=TeamObjectPermissions,rest=TeamObjectPermissionsREST type Team struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/user_object_permissions_types.go b/pkg/apis/management/v1/user_object_permissions_types.go new file mode 100644 index 00000000..683cff56 --- /dev/null +++ b/pkg/apis/management/v1/user_object_permissions_types.go @@ -0,0 +1,22 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type UserObjectPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + ObjectPermissions []ObjectPermission `json:"objectPermissions,omitempty"` +} + +type ObjectPermission struct { + ObjectName `json:",inline"` + + // Verbs is a list of actions allowed by the user on the object. '*' represents all verbs + Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` +} diff --git a/pkg/apis/management/v1/user_permissions_types.go b/pkg/apis/management/v1/user_permissions_types.go index 47787906..71ba7c08 100644 --- a/pkg/apis/management/v1/user_permissions_types.go +++ b/pkg/apis/management/v1/user_permissions_types.go @@ -19,6 +19,22 @@ type UserPermissions struct { // NamespaceRoles that apply to the user. Can be either regular roles or cluster roles that are namespace scoped. // +optional NamespaceRoles []UserPermissionsRole `json:"namespaceRoles,omitempty"` + + // TeamMemberships gives information about the user's team membership + // +optional + TeamMemberships []ObjectName `json:"teamMemberships,omitempty"` + + // ProjectMemberships gives information about the user's project membership + ProjectMemberships []ProjectMembership `json:"projectMemberships,omitempty"` + + // ManagementRoles gives information about the user's assigned management roles + ManagementRoles []ManagementRole `json:"managementRoles,omitempty"` + + // ClustersAccessRoles gives information about the user's assigned cluster roles and the clusters they apply to + ClusterAccessRoles []ClusterAccessRole `json:"clusterAccessRoles,omitempty"` + + // VirtualClusterRoles give information about the user's cluster role within the virtual cluster + VirtualClusterRoles []VirtualClusterRole `json:"virtualClusterRoles,omitempty"` } type UserPermissionsRole struct { @@ -39,3 +55,85 @@ type UserPermissionsRole struct { // +optional Rules []rbacv1.PolicyRule `json:"rules,omitempty"` } + +type ObjectName struct { + // Namespace of the referenced object + // +optional + Namespace string `json:"namespace,omitempty"` + + // Name of the referenced object + // +optional + Name string `json:"name,omitempty"` + + // DisplayName is the name of the object to display in the UI + // +optional + DisplayName string `json:"displayName,omitempty"` +} + +type ProjectMembership struct { + // ObjectName describes the project + ObjectName `json:",inline"` + + // Role is the role given to the member + // +optional + Role ProjectRole `json:"role,omitempty"` + + // AssignedVia describes the resource that establishes the project membership + // +optional + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type ProjectRole struct { + // ObjectName describes the role + ObjectName `json:",inline"` + + // IsAdmin describes whether this is an admin project role + // +optional + IsAdmin bool `json:"isAdmin,omitempty"` +} + +type ManagementRole struct { + // ObjectName describes the role + ObjectName `json:",inline"` + + // AssignedVia describes the resource that establishes the project membership + // +optional + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type ClusterAccessRole struct { + // ObjectName describes the role + ObjectName `json:",inline"` + + // Clusters are the clusters that this assigned role applies + Clusters []ObjectName `json:"clusters,omitempty"` + + // AssignedVia describes the resource that establishes the project membership + // +optional + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type VirtualClusterRole struct { + // ObjectName describes the virtual cluster + ObjectName `json:",inline"` + + // Role is the cluster role inside the virtual cluster. One of cluster-admin, admin, edit, or view + Role string `json:"role,omitempty"` + + // AssignedVia describes the resource that establishes the project membership + // +optional + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type AssignedVia struct { + // ObjectName describes the name of the resource used to establish the assignment. + ObjectName `json:",inline"` + + // Kind is the type of resource used to establish the assignment. + // One of `User`, `Team`, or `ClusterAccess` + // +optional + Kind string `json:"kind,omitempty"` + + // Owner indicates if the + Owner bool `json:"owner,omitempty"` +} diff --git a/pkg/apis/management/v1/user_profile_types.go b/pkg/apis/management/v1/user_profile_types.go index 4a314ccb..04b15900 100644 --- a/pkg/apis/management/v1/user_profile_types.go +++ b/pkg/apis/management/v1/user_profile_types.go @@ -32,4 +32,16 @@ type UserProfile struct { // Custom is custom information that should be saved of the user // +optional Custom string `json:"custom,omitempty"` + // Secrets is a map of secret names to secret data + // +optional + Secrets *map[string]*UserProfileSecret `json:"secrets,omitempty"` +} + +type UserProfileSecret struct { + // Type is the type of the secret + // +optional + Type string `json:"type,omitempty"` + // Data is the data of the secret + // +optional + Data string `json:"data,omitempty"` } diff --git a/pkg/apis/management/v1/user_types.go b/pkg/apis/management/v1/user_types.go index 727fc142..cbedfc8e 100644 --- a/pkg/apis/management/v1/user_types.go +++ b/pkg/apis/management/v1/user_types.go @@ -8,6 +8,7 @@ import ( // +genclient // +genclient:nonNamespaced // +genclient:method=GetProfile,verb=get,subresource=profile,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile +// +genclient:method=UpdateProfile,verb=create,subresource=profile,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile // +genclient:method=ListClusters,verb=get,subresource=clusters,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters // +genclient:method=ListAccessKeys,verb=get,subresource=accesskeys,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -19,6 +20,7 @@ import ( // +subresource:request=UserProfile,path=profile,kind=UserProfile,rest=UserProfileREST // +subresource:request=UserAccessKeys,path=accesskeys,kind=UserAccessKeys,rest=UserAccessKeysREST // +subresource:request=UserPermissions,path=permissions,kind=UserPermissions,rest=UserPermissionsREST +// +subresource:request=UserObjectPermissions,path=object-permissions,kind=UserObjectPermissions,rest=UserObjectPermissionsREST type User struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/virtualcluster_schema.go b/pkg/apis/management/v1/virtualcluster_schema.go new file mode 100644 index 00000000..a85c9eaf --- /dev/null +++ b/pkg/apis/management/v1/virtualcluster_schema.go @@ -0,0 +1,35 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VirtualClusterSchema holds config request and response data for virtual clusters +// +k8s:openapi-gen=true +// +resource:path=virtualclusterschemas,rest=VirtualClusterSchemaREST +type VirtualClusterSchema struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec VirtualClusterSchemaSpec `json:"spec,omitempty"` + Status VirtualClusterSchemaStatus `json:"status,omitempty"` +} + +// VirtualClusterSchemaSpec holds the specification +type VirtualClusterSchemaSpec struct { + // Version is the version of the virtual cluster + Version string `json:"version,omitempty"` +} + +// VirtualClusterSchemaStatus holds the status +type VirtualClusterSchemaStatus struct { + // Schema is the schema of the virtual cluster + Schema string `json:"schema,omitempty"` + + // DefaultValues are the default values of the virtual cluster + DefaultValues string `json:"defaultValues,omitempty"` +} diff --git a/pkg/apis/management/v1/virtualclusterinstance_externaldatabase_types.go b/pkg/apis/management/v1/virtualclusterinstance_externaldatabase_types.go new file mode 100644 index 00000000..1fd3701f --- /dev/null +++ b/pkg/apis/management/v1/virtualclusterinstance_externaldatabase_types.go @@ -0,0 +1,34 @@ +package v1 + +import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters +// +subresource-request +type VirtualClusterExternalDatabase struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec VirtualClusterExternalDatabaseSpec `json:"spec,omitempty"` + Status VirtualClusterExternalDatabaseStatus `json:"status,omitempty"` +} + +type VirtualClusterExternalDatabaseSpec struct { + // 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 + // +optional + Connector string `json:"connector,omitempty"` +} + +type VirtualClusterExternalDatabaseStatus struct { + // DataSource holds a datasource endpoint constructed from the vCluster's designated user and database. The user and + // database are created from the given connector. + DataSource string `json:"dataSource,omitempty"` +} diff --git a/pkg/apis/management/v1/virtualclusterinstance_kubeconfig_types.go b/pkg/apis/management/v1/virtualclusterinstance_kubeconfig_types.go index 820cd0ec..a170bdb7 100644 --- a/pkg/apis/management/v1/virtualclusterinstance_kubeconfig_types.go +++ b/pkg/apis/management/v1/virtualclusterinstance_kubeconfig_types.go @@ -23,6 +23,12 @@ type VirtualClusterInstanceKubeConfigSpec struct { // which is typically one year. // +optional CertificateTTL *int32 `json:"certificateTTL,omitempty"` + // Server allows user to override server in the kubeconfig. + // +optional + Server string `json:"server,omitempty"` + // ClientCert, if set to true, will return kube config with generated client certs instead of platform token + // +optional + ClientCert bool `json:"clientCert,omitempty"` } type VirtualClusterInstanceKubeConfigStatus struct { diff --git a/pkg/apis/management/v1/virtualclusterinstance_types.go b/pkg/apis/management/v1/virtualclusterinstance_types.go index 3dc28a2f..c0b87f1a 100644 --- a/pkg/apis/management/v1/virtualclusterinstance_types.go +++ b/pkg/apis/management/v1/virtualclusterinstance_types.go @@ -11,6 +11,7 @@ import ( // +genclient:noStatus // +genclient:method=GetKubeConfig,verb=create,subresource=kubeconfig,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig // +genclient:method=GetAccessKey,verb=get,subresource=accesskey,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey +// +genclient:method=GetExternalDatabase,verb=create,subresource=externaldatabase,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // VirtualClusterInstance holds the VirtualClusterInstance information @@ -19,6 +20,7 @@ import ( // +subresource:request=VirtualClusterInstanceLog,path=log,kind=VirtualClusterInstanceLog,rest=VirtualClusterInstanceLogREST // +subresource:request=VirtualClusterInstanceKubeConfig,path=kubeconfig,kind=VirtualClusterInstanceKubeConfig,rest=VirtualClusterInstanceKubeConfigREST // +subresource:request=VirtualClusterAccessKey,path=accesskey,kind=VirtualClusterAccessKey,rest=VirtualClusterAccessKeyREST +// +subresource:request=VirtualClusterExternalDatabase,path=externaldatabase,kind=VirtualClusterExternalDatabase,rest=VirtualClusterExternalDatabaseREST type VirtualClusterInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index 631c4d13..47285141 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -32,7 +32,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ClusterMemberAccess{}, &ClusterMembers{}, &ClusterReset{}, - &ClusterVirtualClusterDefaults{}, &ClusterAccess{}, &ClusterAccessList{}, &ClusterRoleTemplate{}, @@ -41,16 +40,21 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ConfigList{}, &ConvertVirtualClusterConfig{}, &ConvertVirtualClusterConfigList{}, + &DatabaseConnector{}, + &DatabaseConnectorList{}, &DevPodEnvironmentTemplate{}, &DevPodEnvironmentTemplateList{}, &DevPodWorkspaceInstance{}, &DevPodWorkspaceInstanceList{}, - &DevPodDeleteOptions{}, - &DevPodStatusOptions{}, - &DevPodSshOptions{}, - &DevPodWorkspaceInstanceState{}, - &DevPodStopOptions{}, - &DevPodUpOptions{}, + &DevPodWorkspaceInstanceCancel{}, + &DevPodWorkspaceInstanceDownload{}, + &DevPodWorkspaceInstanceLog{}, + &DevPodWorkspaceInstanceStop{}, + &DevPodWorkspaceInstanceTasks{}, + &DevPodWorkspaceInstanceTroubleshoot{}, + &DevPodWorkspaceInstanceUp{}, + &DevPodWorkspacePreset{}, + &DevPodWorkspacePresetList{}, &DevPodWorkspaceTemplate{}, &DevPodWorkspaceTemplateList{}, &DirectClusterEndpointToken{}, @@ -70,6 +74,12 @@ func addKnownTypes(scheme *runtime.Scheme) error { &LicenseTokenList{}, &LoftUpgrade{}, &LoftUpgradeList{}, + &NodeClaim{}, + &NodeClaimList{}, + &NodeProvider{}, + &NodeProviderList{}, + &NodeType{}, + &NodeTypeList{}, &OIDCClient{}, &OIDCClientList{}, &OwnedAccessKey{}, @@ -83,7 +93,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ProjectMembers{}, &ProjectMigrateSpaceInstance{}, &ProjectMigrateVirtualClusterInstance{}, - &ProjectRunners{}, &ProjectTemplates{}, &ProjectSecret{}, &ProjectSecretList{}, @@ -93,10 +102,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &RegisterVirtualClusterList{}, &ResetAccessKey{}, &ResetAccessKeyList{}, - &Runner{}, - &RunnerList{}, - &RunnerAccessKey{}, - &RunnerConfig{}, &Self{}, &SelfList{}, &SelfSubjectAccessReview{}, @@ -116,19 +121,25 @@ func addKnownTypes(scheme *runtime.Scheme) error { &TeamList{}, &TeamAccessKeys{}, &TeamClusters{}, + &TeamObjectPermissions{}, + &TeamPermissions{}, &TranslateVClusterResourceName{}, &TranslateVClusterResourceNameList{}, &User{}, &UserList{}, &UserAccessKeys{}, &UserClusters{}, + &UserObjectPermissions{}, &UserPermissions{}, &UserProfile{}, &VirtualClusterInstance{}, &VirtualClusterInstanceList{}, &VirtualClusterAccessKey{}, + &VirtualClusterExternalDatabase{}, &VirtualClusterInstanceKubeConfig{}, &VirtualClusterInstanceLog{}, + &VirtualClusterSchema{}, + &VirtualClusterSchemaList{}, &VirtualClusterTemplate{}, &VirtualClusterTemplateList{}, ) @@ -144,90 +155,113 @@ var ( management.InternalAppCredentialsREST, func() runtime.Object { return &AppCredentials{} }, // Register versioned resource nil, - management.NewAppCredentialsREST), + management.NewAppCredentialsREST, + ), management.ManagementBackupStorage, builders.NewApiResourceWithStorage( management.InternalBackupApplyREST, func() runtime.Object { return &BackupApply{} }, // Register versioned resource nil, - management.NewBackupApplyREST), + management.NewBackupApplyREST, + ), management.ManagementClusterStorage, + builders.NewApiResourceWithStorage( + management.InternalClusterStatus, + func() runtime.Object { return &Cluster{} }, // Register versioned resource + func() runtime.Object { return &ClusterList{} }, // Register versioned resource list + management.NewClusterStatusREST), builders.NewApiResourceWithStorage( management.InternalClusterAccessKeyREST, func() runtime.Object { return &ClusterAccessKey{} }, // Register versioned resource nil, - management.NewClusterAccessKeyREST), + management.NewClusterAccessKeyREST, + ), builders.NewApiResourceWithStorage( management.InternalClusterAgentConfigREST, func() runtime.Object { return &ClusterAgentConfig{} }, // Register versioned resource nil, - management.NewClusterAgentConfigREST), + management.NewClusterAgentConfigREST, + ), builders.NewApiResourceWithStorage( management.InternalClusterChartsREST, func() runtime.Object { return &ClusterCharts{} }, // Register versioned resource nil, - management.NewClusterChartsREST), + management.NewClusterChartsREST, + ), builders.NewApiResourceWithStorage( management.InternalClusterDomainREST, func() runtime.Object { return &ClusterDomain{} }, // Register versioned resource nil, - management.NewClusterDomainREST), + management.NewClusterDomainREST, + ), builders.NewApiResourceWithStorage( management.InternalClusterMemberAccessREST, func() runtime.Object { return &ClusterMemberAccess{} }, // Register versioned resource nil, - management.NewClusterMemberAccessREST), + management.NewClusterMemberAccessREST, + ), builders.NewApiResourceWithStorage( management.InternalClusterMembersREST, func() runtime.Object { return &ClusterMembers{} }, // Register versioned resource nil, - management.NewClusterMembersREST), + management.NewClusterMembersREST, + ), builders.NewApiResourceWithStorage( management.InternalClusterResetREST, func() runtime.Object { return &ClusterReset{} }, // Register versioned resource nil, - management.NewClusterResetREST), - builders.NewApiResourceWithStorage( - management.InternalClusterVirtualClusterDefaultsREST, - func() runtime.Object { return &ClusterVirtualClusterDefaults{} }, // Register versioned resource - nil, - management.NewClusterVirtualClusterDefaultsREST), + management.NewClusterResetREST, + ), management.ManagementClusterAccessStorage, management.ManagementClusterRoleTemplateStorage, management.ManagementConfigStorage, management.ManagementConvertVirtualClusterConfigStorage, + management.ManagementDatabaseConnectorStorage, management.ManagementDevPodEnvironmentTemplateStorage, management.ManagementDevPodWorkspaceInstanceStorage, builders.NewApiResourceWithStorage( - management.InternalDevPodDeleteOptionsREST, - func() runtime.Object { return &DevPodDeleteOptions{} }, // Register versioned resource + management.InternalDevPodWorkspaceInstanceCancelREST, + func() runtime.Object { return &DevPodWorkspaceInstanceCancel{} }, // Register versioned resource + nil, + management.NewDevPodWorkspaceInstanceCancelREST, + ), + builders.NewApiResourceWithStorage( + management.InternalDevPodWorkspaceInstanceDownloadREST, + func() runtime.Object { return &DevPodWorkspaceInstanceDownload{} }, // Register versioned resource nil, - management.NewDevPodDeleteOptionsREST), + management.NewDevPodWorkspaceInstanceDownloadREST, + ), builders.NewApiResourceWithStorage( - management.InternalDevPodStatusOptionsREST, - func() runtime.Object { return &DevPodStatusOptions{} }, // Register versioned resource + management.InternalDevPodWorkspaceInstanceLogREST, + func() runtime.Object { return &DevPodWorkspaceInstanceLog{} }, // Register versioned resource nil, - management.NewDevPodStatusOptionsREST), + management.NewDevPodWorkspaceInstanceLogREST, + ), builders.NewApiResourceWithStorage( - management.InternalDevPodSshOptionsREST, - func() runtime.Object { return &DevPodSshOptions{} }, // Register versioned resource + management.InternalDevPodWorkspaceInstanceStopREST, + func() runtime.Object { return &DevPodWorkspaceInstanceStop{} }, // Register versioned resource nil, - management.NewDevPodSshOptionsREST), + management.NewDevPodWorkspaceInstanceStopREST, + ), builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceStateREST, - func() runtime.Object { return &DevPodWorkspaceInstanceState{} }, // Register versioned resource + management.InternalDevPodWorkspaceInstanceTasksREST, + func() runtime.Object { return &DevPodWorkspaceInstanceTasks{} }, // Register versioned resource nil, - management.NewDevPodWorkspaceInstanceStateREST), + management.NewDevPodWorkspaceInstanceTasksREST, + ), builders.NewApiResourceWithStorage( - management.InternalDevPodStopOptionsREST, - func() runtime.Object { return &DevPodStopOptions{} }, // Register versioned resource + management.InternalDevPodWorkspaceInstanceTroubleshootREST, + func() runtime.Object { return &DevPodWorkspaceInstanceTroubleshoot{} }, // Register versioned resource nil, - management.NewDevPodStopOptionsREST), + management.NewDevPodWorkspaceInstanceTroubleshootREST, + ), builders.NewApiResourceWithStorage( - management.InternalDevPodUpOptionsREST, - func() runtime.Object { return &DevPodUpOptions{} }, // Register versioned resource + management.InternalDevPodWorkspaceInstanceUpREST, + func() runtime.Object { return &DevPodWorkspaceInstanceUp{} }, // Register versioned resource nil, - management.NewDevPodUpOptionsREST), + management.NewDevPodWorkspaceInstanceUpREST, + ), + management.ManagementDevPodWorkspacePresetStorage, management.ManagementDevPodWorkspaceTemplateStorage, management.ManagementDirectClusterEndpointTokenStorage, management.ManagementEventStorage, @@ -244,9 +278,28 @@ var ( management.InternalLicenseRequestREST, func() runtime.Object { return &LicenseRequest{} }, // Register versioned resource nil, - management.NewLicenseRequestREST), + management.NewLicenseRequestREST, + ), management.ManagementLicenseTokenStorage, management.ManagementLoftUpgradeStorage, + management.ManagementNodeClaimStorage, + builders.NewApiResourceWithStorage( + management.InternalNodeClaimStatus, + func() runtime.Object { return &NodeClaim{} }, // Register versioned resource + func() runtime.Object { return &NodeClaimList{} }, // Register versioned resource list + management.NewNodeClaimStatusREST), + management.ManagementNodeProviderStorage, + builders.NewApiResourceWithStorage( + management.InternalNodeProviderStatus, + func() runtime.Object { return &NodeProvider{} }, // Register versioned resource + func() runtime.Object { return &NodeProviderList{} }, // Register versioned resource list + management.NewNodeProviderStatusREST), + management.ManagementNodeTypeStorage, + builders.NewApiResourceWithStorage( + management.InternalNodeTypeStatus, + func() runtime.Object { return &NodeType{} }, // Register versioned resource + func() runtime.Object { return &NodeTypeList{} }, // Register versioned resource list + management.NewNodeTypeStatusREST), management.ManagementOIDCClientStorage, management.ManagementOwnedAccessKeyStorage, management.ManagementProjectStorage, @@ -259,67 +312,54 @@ var ( management.InternalProjectChartInfoREST, func() runtime.Object { return &ProjectChartInfo{} }, // Register versioned resource nil, - management.NewProjectChartInfoREST), + management.NewProjectChartInfoREST, + ), builders.NewApiResourceWithStorage( management.InternalProjectChartsREST, func() runtime.Object { return &ProjectCharts{} }, // Register versioned resource nil, - management.NewProjectChartsREST), + management.NewProjectChartsREST, + ), builders.NewApiResourceWithStorage( management.InternalProjectClustersREST, func() runtime.Object { return &ProjectClusters{} }, // Register versioned resource nil, - management.NewProjectClustersREST), + management.NewProjectClustersREST, + ), builders.NewApiResourceWithStorage( management.InternalProjectImportSpaceREST, func() runtime.Object { return &ProjectImportSpace{} }, // Register versioned resource nil, - management.NewProjectImportSpaceREST), + management.NewProjectImportSpaceREST, + ), builders.NewApiResourceWithStorage( management.InternalProjectMembersREST, func() runtime.Object { return &ProjectMembers{} }, // Register versioned resource nil, - management.NewProjectMembersREST), + management.NewProjectMembersREST, + ), builders.NewApiResourceWithStorage( management.InternalProjectMigrateSpaceInstanceREST, func() runtime.Object { return &ProjectMigrateSpaceInstance{} }, // Register versioned resource nil, - management.NewProjectMigrateSpaceInstanceREST), + management.NewProjectMigrateSpaceInstanceREST, + ), builders.NewApiResourceWithStorage( management.InternalProjectMigrateVirtualClusterInstanceREST, func() runtime.Object { return &ProjectMigrateVirtualClusterInstance{} }, // Register versioned resource nil, - management.NewProjectMigrateVirtualClusterInstanceREST), - builders.NewApiResourceWithStorage( - management.InternalProjectRunnersREST, - func() runtime.Object { return &ProjectRunners{} }, // Register versioned resource - nil, - management.NewProjectRunnersREST), + management.NewProjectMigrateVirtualClusterInstanceREST, + ), builders.NewApiResourceWithStorage( management.InternalProjectTemplatesREST, func() runtime.Object { return &ProjectTemplates{} }, // Register versioned resource nil, - management.NewProjectTemplatesREST), + management.NewProjectTemplatesREST, + ), management.ManagementProjectSecretStorage, management.ManagementRedirectTokenStorage, management.ManagementRegisterVirtualClusterStorage, management.ManagementResetAccessKeyStorage, - management.ManagementRunnerStorage, - builders.NewApiResourceWithStorage( - management.InternalRunnerStatus, - func() runtime.Object { return &Runner{} }, // Register versioned resource - func() runtime.Object { return &RunnerList{} }, // Register versioned resource list - management.NewRunnerStatusREST), - builders.NewApiResourceWithStorage( - management.InternalRunnerAccessKeyREST, - func() runtime.Object { return &RunnerAccessKey{} }, // Register versioned resource - nil, - management.NewRunnerAccessKeyREST), - builders.NewApiResourceWithStorage( - management.InternalRunnerConfigREST, - func() runtime.Object { return &RunnerConfig{} }, // Register versioned resource - nil, - management.NewRunnerConfigREST), management.ManagementSelfStorage, management.ManagementSelfSubjectAccessReviewStorage, management.ManagementSharedSecretStorage, @@ -331,56 +371,91 @@ var ( management.InternalTaskLogREST, func() runtime.Object { return &TaskLog{} }, // Register versioned resource nil, - management.NewTaskLogREST), + management.NewTaskLogREST, + ), management.ManagementTeamStorage, builders.NewApiResourceWithStorage( management.InternalTeamAccessKeysREST, func() runtime.Object { return &TeamAccessKeys{} }, // Register versioned resource nil, - management.NewTeamAccessKeysREST), + management.NewTeamAccessKeysREST, + ), builders.NewApiResourceWithStorage( management.InternalTeamClustersREST, func() runtime.Object { return &TeamClusters{} }, // Register versioned resource nil, - management.NewTeamClustersREST), + management.NewTeamClustersREST, + ), + builders.NewApiResourceWithStorage( + management.InternalTeamObjectPermissionsREST, + func() runtime.Object { return &TeamObjectPermissions{} }, // Register versioned resource + nil, + management.NewTeamObjectPermissionsREST, + ), + builders.NewApiResourceWithStorage( + management.InternalTeamPermissionsREST, + func() runtime.Object { return &TeamPermissions{} }, // Register versioned resource + nil, + management.NewTeamPermissionsREST, + ), management.ManagementTranslateVClusterResourceNameStorage, management.ManagementUserStorage, builders.NewApiResourceWithStorage( management.InternalUserAccessKeysREST, func() runtime.Object { return &UserAccessKeys{} }, // Register versioned resource nil, - management.NewUserAccessKeysREST), + management.NewUserAccessKeysREST, + ), builders.NewApiResourceWithStorage( management.InternalUserClustersREST, func() runtime.Object { return &UserClusters{} }, // Register versioned resource nil, - management.NewUserClustersREST), + management.NewUserClustersREST, + ), + builders.NewApiResourceWithStorage( + management.InternalUserObjectPermissionsREST, + func() runtime.Object { return &UserObjectPermissions{} }, // Register versioned resource + nil, + management.NewUserObjectPermissionsREST, + ), builders.NewApiResourceWithStorage( management.InternalUserPermissionsREST, func() runtime.Object { return &UserPermissions{} }, // Register versioned resource nil, - management.NewUserPermissionsREST), + management.NewUserPermissionsREST, + ), builders.NewApiResourceWithStorage( management.InternalUserProfileREST, func() runtime.Object { return &UserProfile{} }, // Register versioned resource nil, - management.NewUserProfileREST), + management.NewUserProfileREST, + ), management.ManagementVirtualClusterInstanceStorage, builders.NewApiResourceWithStorage( management.InternalVirtualClusterAccessKeyREST, func() runtime.Object { return &VirtualClusterAccessKey{} }, // Register versioned resource nil, - management.NewVirtualClusterAccessKeyREST), + management.NewVirtualClusterAccessKeyREST, + ), + builders.NewApiResourceWithStorage( + management.InternalVirtualClusterExternalDatabaseREST, + func() runtime.Object { return &VirtualClusterExternalDatabase{} }, // Register versioned resource + nil, + management.NewVirtualClusterExternalDatabaseREST, + ), builders.NewApiResourceWithStorage( management.InternalVirtualClusterInstanceKubeConfigREST, func() runtime.Object { return &VirtualClusterInstanceKubeConfig{} }, // Register versioned resource nil, - management.NewVirtualClusterInstanceKubeConfigREST), + management.NewVirtualClusterInstanceKubeConfigREST, + ), builders.NewApiResourceWithStorage( management.InternalVirtualClusterInstanceLogREST, func() runtime.Object { return &VirtualClusterInstanceLog{} }, // Register versioned resource nil, - management.NewVirtualClusterInstanceLogREST), + management.NewVirtualClusterInstanceLogREST, + ), + management.ManagementVirtualClusterSchemaStorage, management.ManagementVirtualClusterTemplateStorage, ) @@ -527,14 +602,6 @@ type ClusterResetList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type ClusterVirtualClusterDefaultsList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []ClusterVirtualClusterDefaults `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - type ClusterAccessList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -567,6 +634,14 @@ type ConvertVirtualClusterConfigList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type DatabaseConnectorList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DatabaseConnector `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type DevPodEnvironmentTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -583,50 +658,66 @@ type DevPodWorkspaceInstanceList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodDeleteOptionsList struct { +type DevPodWorkspaceInstanceCancelList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevPodWorkspaceInstanceCancel `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceDownloadList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevPodWorkspaceInstanceDownload `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceLogList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodDeleteOptions `json:"items"` + Items []DevPodWorkspaceInstanceLog `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodStatusOptionsList struct { +type DevPodWorkspaceInstanceStopList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodStatusOptions `json:"items"` + Items []DevPodWorkspaceInstanceStop `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodSshOptionsList struct { +type DevPodWorkspaceInstanceTasksList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodSshOptions `json:"items"` + Items []DevPodWorkspaceInstanceTasks `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceStateList struct { +type DevPodWorkspaceInstanceTroubleshootList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceState `json:"items"` + Items []DevPodWorkspaceInstanceTroubleshoot `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodStopOptionsList struct { +type DevPodWorkspaceInstanceUpList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodStopOptions `json:"items"` + Items []DevPodWorkspaceInstanceUp `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodUpOptionsList struct { +type DevPodWorkspacePresetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodUpOptions `json:"items"` + Items []DevPodWorkspacePreset `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -711,6 +802,30 @@ type LoftUpgradeList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type NodeClaimList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeClaim `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeProviderList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeProvider `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeTypeList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeType `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type OIDCClientList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -791,14 +906,6 @@ type ProjectMigrateVirtualClusterInstanceList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type ProjectRunnersList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []ProjectRunners `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - type ProjectTemplatesList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -839,30 +946,6 @@ type ResetAccessKeyList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type RunnerList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Runner `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerAccessKeyList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RunnerAccessKey `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerConfigList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RunnerConfig `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - type SelfList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -951,6 +1034,22 @@ type TeamClustersList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type TeamObjectPermissionsList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []TeamObjectPermissions `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type TeamPermissionsList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []TeamPermissions `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type TranslateVClusterResourceNameList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -983,6 +1082,14 @@ type UserClustersList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type UserObjectPermissionsList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []UserObjectPermissions `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type UserPermissionsList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -1015,6 +1122,14 @@ type VirtualClusterAccessKeyList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type VirtualClusterExternalDatabaseList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterExternalDatabase `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type VirtualClusterInstanceKubeConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -1031,6 +1146,14 @@ type VirtualClusterInstanceLogList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type VirtualClusterSchemaList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterSchema `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type VirtualClusterTemplateList 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 28128504..2e423441 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -16,6 +16,7 @@ import ( management "github.com/loft-sh/api/v4/pkg/apis/management" storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" uiv1 "github.com/loft-sh/api/v4/pkg/apis/ui/v1" + corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" conversion "k8s.io/apimachinery/pkg/conversion" @@ -89,6 +90,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*AgentCostControlConfig)(nil), (*management.AgentCostControlConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_AgentCostControlConfig_To_management_AgentCostControlConfig(a.(*AgentCostControlConfig), b.(*management.AgentCostControlConfig), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.AgentCostControlConfig)(nil), (*AgentCostControlConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_AgentCostControlConfig_To_v1_AgentCostControlConfig(a.(*management.AgentCostControlConfig), b.(*AgentCostControlConfig), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*Announcement)(nil), (*management.Announcement)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_Announcement_To_management_Announcement(a.(*Announcement), b.(*management.Announcement), scope) }); err != nil { @@ -199,6 +210,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*AssignedVia)(nil), (*management.AssignedVia)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_AssignedVia_To_management_AssignedVia(a.(*AssignedVia), b.(*management.AssignedVia), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.AssignedVia)(nil), (*AssignedVia)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_AssignedVia_To_v1_AssignedVia(a.(*management.AssignedVia), b.(*AssignedVia), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*Audit)(nil), (*management.Audit)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_Audit_To_management_Audit(a.(*Audit), b.(*management.Audit), scope) }); err != nil { @@ -399,6 +420,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*Cloud)(nil), (*management.Cloud)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_Cloud_To_management_Cloud(a.(*Cloud), b.(*management.Cloud), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.Cloud)(nil), (*Cloud)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_Cloud_To_v1_Cloud(a.(*management.Cloud), b.(*Cloud), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*Cluster)(nil), (*management.Cluster)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_Cluster_To_management_Cluster(a.(*Cluster), b.(*management.Cluster), scope) }); err != nil { @@ -449,6 +480,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*ClusterAccessRole)(nil), (*management.ClusterAccessRole)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ClusterAccessRole_To_management_ClusterAccessRole(a.(*ClusterAccessRole), b.(*management.ClusterAccessRole), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.ClusterAccessRole)(nil), (*ClusterAccessRole)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ClusterAccessRole_To_v1_ClusterAccessRole(a.(*management.ClusterAccessRole), b.(*ClusterAccessRole), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*ClusterAccessSpec)(nil), (*management.ClusterAccessSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_ClusterAccessSpec_To_management_ClusterAccessSpec(a.(*ClusterAccessSpec), b.(*management.ClusterAccessSpec), scope) }); err != nil { @@ -689,26 +730,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ClusterVirtualClusterDefaults)(nil), (*management.ClusterVirtualClusterDefaults)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ClusterVirtualClusterDefaults_To_management_ClusterVirtualClusterDefaults(a.(*ClusterVirtualClusterDefaults), b.(*management.ClusterVirtualClusterDefaults), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.ClusterVirtualClusterDefaults)(nil), (*ClusterVirtualClusterDefaults)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ClusterVirtualClusterDefaults_To_v1_ClusterVirtualClusterDefaults(a.(*management.ClusterVirtualClusterDefaults), b.(*ClusterVirtualClusterDefaults), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ClusterVirtualClusterDefaultsList)(nil), (*management.ClusterVirtualClusterDefaultsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ClusterVirtualClusterDefaultsList_To_management_ClusterVirtualClusterDefaultsList(a.(*ClusterVirtualClusterDefaultsList), b.(*management.ClusterVirtualClusterDefaultsList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.ClusterVirtualClusterDefaultsList)(nil), (*ClusterVirtualClusterDefaultsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ClusterVirtualClusterDefaultsList_To_v1_ClusterVirtualClusterDefaultsList(a.(*management.ClusterVirtualClusterDefaultsList), b.(*ClusterVirtualClusterDefaultsList), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*Config)(nil), (*management.Config)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_Config_To_management_Config(a.(*Config), b.(*management.Config), scope) }); err != nil { @@ -809,23 +830,103 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodDeleteOptions)(nil), (*management.DevPodDeleteOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodDeleteOptions_To_management_DevPodDeleteOptions(a.(*DevPodDeleteOptions), b.(*management.DevPodDeleteOptions), scope) + if err := s.AddGeneratedConversionFunc((*CostControl)(nil), (*management.CostControl)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CostControl_To_management_CostControl(a.(*CostControl), b.(*management.CostControl), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CostControl)(nil), (*CostControl)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CostControl_To_v1_CostControl(a.(*management.CostControl), b.(*CostControl), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*CostControlClusterConfig)(nil), (*management.CostControlClusterConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CostControlClusterConfig_To_management_CostControlClusterConfig(a.(*CostControlClusterConfig), b.(*management.CostControlClusterConfig), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CostControlClusterConfig)(nil), (*CostControlClusterConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CostControlClusterConfig_To_v1_CostControlClusterConfig(a.(*management.CostControlClusterConfig), b.(*CostControlClusterConfig), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*CostControlGPUSettings)(nil), (*management.CostControlGPUSettings)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CostControlGPUSettings_To_management_CostControlGPUSettings(a.(*CostControlGPUSettings), b.(*management.CostControlGPUSettings), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CostControlGPUSettings)(nil), (*CostControlGPUSettings)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CostControlGPUSettings_To_v1_CostControlGPUSettings(a.(*management.CostControlGPUSettings), b.(*CostControlGPUSettings), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*CostControlGlobalConfig)(nil), (*management.CostControlGlobalConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CostControlGlobalConfig_To_management_CostControlGlobalConfig(a.(*CostControlGlobalConfig), b.(*management.CostControlGlobalConfig), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CostControlGlobalConfig)(nil), (*CostControlGlobalConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CostControlGlobalConfig_To_v1_CostControlGlobalConfig(a.(*management.CostControlGlobalConfig), b.(*CostControlGlobalConfig), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*CostControlResourcePrice)(nil), (*management.CostControlResourcePrice)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CostControlResourcePrice_To_management_CostControlResourcePrice(a.(*CostControlResourcePrice), b.(*management.CostControlResourcePrice), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CostControlResourcePrice)(nil), (*CostControlResourcePrice)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CostControlResourcePrice_To_v1_CostControlResourcePrice(a.(*management.CostControlResourcePrice), b.(*CostControlResourcePrice), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*CostControlSettings)(nil), (*management.CostControlSettings)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CostControlSettings_To_management_CostControlSettings(a.(*CostControlSettings), b.(*management.CostControlSettings), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CostControlSettings)(nil), (*CostControlSettings)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CostControlSettings_To_v1_CostControlSettings(a.(*management.CostControlSettings), b.(*CostControlSettings), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DatabaseConnector)(nil), (*management.DatabaseConnector)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DatabaseConnector_To_management_DatabaseConnector(a.(*DatabaseConnector), b.(*management.DatabaseConnector), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DatabaseConnector)(nil), (*DatabaseConnector)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DatabaseConnector_To_v1_DatabaseConnector(a.(*management.DatabaseConnector), b.(*DatabaseConnector), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DatabaseConnectorList)(nil), (*management.DatabaseConnectorList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DatabaseConnectorList_To_management_DatabaseConnectorList(a.(*DatabaseConnectorList), b.(*management.DatabaseConnectorList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DatabaseConnectorList)(nil), (*DatabaseConnectorList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DatabaseConnectorList_To_v1_DatabaseConnectorList(a.(*management.DatabaseConnectorList), b.(*DatabaseConnectorList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DatabaseConnectorSpec)(nil), (*management.DatabaseConnectorSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DatabaseConnectorSpec_To_management_DatabaseConnectorSpec(a.(*DatabaseConnectorSpec), b.(*management.DatabaseConnectorSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodDeleteOptions)(nil), (*DevPodDeleteOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodDeleteOptions_To_v1_DevPodDeleteOptions(a.(*management.DevPodDeleteOptions), b.(*DevPodDeleteOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.DatabaseConnectorSpec)(nil), (*DatabaseConnectorSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DatabaseConnectorSpec_To_v1_DatabaseConnectorSpec(a.(*management.DatabaseConnectorSpec), b.(*DatabaseConnectorSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodDeleteOptionsList)(nil), (*management.DevPodDeleteOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodDeleteOptionsList_To_management_DevPodDeleteOptionsList(a.(*DevPodDeleteOptionsList), b.(*management.DevPodDeleteOptionsList), scope) + if err := s.AddGeneratedConversionFunc((*DatabaseConnectorStatus)(nil), (*management.DatabaseConnectorStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DatabaseConnectorStatus_To_management_DatabaseConnectorStatus(a.(*DatabaseConnectorStatus), b.(*management.DatabaseConnectorStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodDeleteOptionsList)(nil), (*DevPodDeleteOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodDeleteOptionsList_To_v1_DevPodDeleteOptionsList(a.(*management.DevPodDeleteOptionsList), b.(*DevPodDeleteOptionsList), scope) + if err := s.AddGeneratedConversionFunc((*management.DatabaseConnectorStatus)(nil), (*DatabaseConnectorStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(a.(*management.DatabaseConnectorStatus), b.(*DatabaseConnectorStatus), scope) }); err != nil { return err } @@ -869,103 +970,103 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodSshOptions)(nil), (*management.DevPodSshOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodSshOptions_To_management_DevPodSshOptions(a.(*DevPodSshOptions), b.(*management.DevPodSshOptions), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodSshOptions)(nil), (*DevPodSshOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodSshOptions_To_v1_DevPodSshOptions(a.(*management.DevPodSshOptions), b.(*DevPodSshOptions), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodSshOptionsList)(nil), (*management.DevPodSshOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodSshOptionsList_To_management_DevPodSshOptionsList(a.(*DevPodSshOptionsList), b.(*management.DevPodSshOptionsList), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodSshOptionsList)(nil), (*DevPodSshOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodSshOptionsList_To_v1_DevPodSshOptionsList(a.(*management.DevPodSshOptionsList), b.(*DevPodSshOptionsList), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodStatusOptions)(nil), (*management.DevPodStatusOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodStatusOptions_To_management_DevPodStatusOptions(a.(*DevPodStatusOptions), b.(*management.DevPodStatusOptions), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodStatusOptions)(nil), (*DevPodStatusOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodStatusOptions_To_v1_DevPodStatusOptions(a.(*management.DevPodStatusOptions), b.(*DevPodStatusOptions), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodStatusOptionsList)(nil), (*management.DevPodStatusOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodStatusOptionsList_To_management_DevPodStatusOptionsList(a.(*DevPodStatusOptionsList), b.(*management.DevPodStatusOptionsList), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodStatusOptionsList)(nil), (*DevPodStatusOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodStatusOptionsList_To_v1_DevPodStatusOptionsList(a.(*management.DevPodStatusOptionsList), b.(*DevPodStatusOptionsList), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodStopOptions)(nil), (*management.DevPodStopOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodStopOptions_To_management_DevPodStopOptions(a.(*DevPodStopOptions), b.(*management.DevPodStopOptions), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodStopOptions)(nil), (*DevPodStopOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodStopOptions_To_v1_DevPodStopOptions(a.(*management.DevPodStopOptions), b.(*DevPodStopOptions), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodStopOptionsList)(nil), (*management.DevPodStopOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList(a.(*DevPodStopOptionsList), b.(*management.DevPodStopOptionsList), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodStopOptionsList)(nil), (*DevPodStopOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList(a.(*management.DevPodStopOptionsList), b.(*DevPodStopOptionsList), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodUpOptions)(nil), (*management.DevPodUpOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodUpOptions_To_management_DevPodUpOptions(a.(*DevPodUpOptions), b.(*management.DevPodUpOptions), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodUpOptions)(nil), (*DevPodUpOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodUpOptions_To_v1_DevPodUpOptions(a.(*management.DevPodUpOptions), b.(*DevPodUpOptions), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodUpOptionsList)(nil), (*management.DevPodUpOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodUpOptionsList_To_management_DevPodUpOptionsList(a.(*DevPodUpOptionsList), b.(*management.DevPodUpOptionsList), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodUpOptionsList)(nil), (*DevPodUpOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodUpOptionsList_To_v1_DevPodUpOptionsList(a.(*management.DevPodUpOptionsList), b.(*DevPodUpOptionsList), scope) + 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) }); 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((*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) }); 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((*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) }); 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((*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) }); 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((*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) }); err != nil { return err } @@ -979,33 +1080,193 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceState)(nil), (*management.DevPodWorkspaceInstanceState)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceState_To_management_DevPodWorkspaceInstanceState(a.(*DevPodWorkspaceInstanceState), b.(*management.DevPodWorkspaceInstanceState), scope) + 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) + }); 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceState)(nil), (*DevPodWorkspaceInstanceState)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceState_To_v1_DevPodWorkspaceInstanceState(a.(*management.DevPodWorkspaceInstanceState), b.(*DevPodWorkspaceInstanceState), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStateList)(nil), (*management.DevPodWorkspaceInstanceStateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceStateList_To_management_DevPodWorkspaceInstanceStateList(a.(*DevPodWorkspaceInstanceStateList), b.(*management.DevPodWorkspaceInstanceStateList), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStateList)(nil), (*DevPodWorkspaceInstanceStateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceStateList_To_v1_DevPodWorkspaceInstanceStateList(a.(*management.DevPodWorkspaceInstanceStateList), b.(*DevPodWorkspaceInstanceStateList), scope) + 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) }); 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.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) }); 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((*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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) }); err != nil { return err } @@ -1179,6 +1440,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*ImageBuilder)(nil), (*management.ImageBuilder)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ImageBuilder_To_management_ImageBuilder(a.(*ImageBuilder), b.(*management.ImageBuilder), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.ImageBuilder)(nil), (*ImageBuilder)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ImageBuilder_To_v1_ImageBuilder(a.(*management.ImageBuilder), b.(*ImageBuilder), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*IngressAuthToken)(nil), (*management.IngressAuthToken)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_IngressAuthToken_To_management_IngressAuthToken(a.(*IngressAuthToken), b.(*management.IngressAuthToken), scope) }); err != nil { @@ -1419,118 +1690,278 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*OIDC)(nil), (*management.OIDC)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_OIDC_To_management_OIDC(a.(*OIDC), b.(*management.OIDC), scope) + 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 { return err } - if err := s.AddGeneratedConversionFunc((*management.OIDC)(nil), (*OIDC)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_OIDC_To_v1_OIDC(a.(*management.OIDC), b.(*OIDC), scope) + if err := s.AddGeneratedConversionFunc((*management.MaintenanceWindow)(nil), (*MaintenanceWindow)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_MaintenanceWindow_To_v1_MaintenanceWindow(a.(*management.MaintenanceWindow), b.(*MaintenanceWindow), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*OIDCClient)(nil), (*management.OIDCClient)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_OIDCClient_To_management_OIDCClient(a.(*OIDCClient), b.(*management.OIDCClient), scope) + if err := s.AddGeneratedConversionFunc((*ManagementRole)(nil), (*management.ManagementRole)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ManagementRole_To_management_ManagementRole(a.(*ManagementRole), b.(*management.ManagementRole), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.OIDCClient)(nil), (*OIDCClient)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_OIDCClient_To_v1_OIDCClient(a.(*management.OIDCClient), b.(*OIDCClient), scope) + if err := s.AddGeneratedConversionFunc((*management.ManagementRole)(nil), (*ManagementRole)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ManagementRole_To_v1_ManagementRole(a.(*management.ManagementRole), b.(*ManagementRole), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*OIDCClientList)(nil), (*management.OIDCClientList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_OIDCClientList_To_management_OIDCClientList(a.(*OIDCClientList), b.(*management.OIDCClientList), scope) + if err := s.AddGeneratedConversionFunc((*NodeClaim)(nil), (*management.NodeClaim)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeClaim_To_management_NodeClaim(a.(*NodeClaim), b.(*management.NodeClaim), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.OIDCClientList)(nil), (*OIDCClientList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_OIDCClientList_To_v1_OIDCClientList(a.(*management.OIDCClientList), b.(*OIDCClientList), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeClaim)(nil), (*NodeClaim)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeClaim_To_v1_NodeClaim(a.(*management.NodeClaim), b.(*NodeClaim), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*OIDCClientSpec)(nil), (*management.OIDCClientSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_OIDCClientSpec_To_management_OIDCClientSpec(a.(*OIDCClientSpec), b.(*management.OIDCClientSpec), scope) + if err := s.AddGeneratedConversionFunc((*NodeClaimList)(nil), (*management.NodeClaimList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeClaimList_To_management_NodeClaimList(a.(*NodeClaimList), b.(*management.NodeClaimList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.OIDCClientSpec)(nil), (*OIDCClientSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_OIDCClientSpec_To_v1_OIDCClientSpec(a.(*management.OIDCClientSpec), b.(*OIDCClientSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeClaimList)(nil), (*NodeClaimList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeClaimList_To_v1_NodeClaimList(a.(*management.NodeClaimList), b.(*NodeClaimList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*OIDCClientStatus)(nil), (*management.OIDCClientStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_OIDCClientStatus_To_management_OIDCClientStatus(a.(*OIDCClientStatus), b.(*management.OIDCClientStatus), scope) + if err := s.AddGeneratedConversionFunc((*NodeClaimSpec)(nil), (*management.NodeClaimSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeClaimSpec_To_management_NodeClaimSpec(a.(*NodeClaimSpec), b.(*management.NodeClaimSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.OIDCClientStatus)(nil), (*OIDCClientStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_OIDCClientStatus_To_v1_OIDCClientStatus(a.(*management.OIDCClientStatus), b.(*OIDCClientStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeClaimSpec)(nil), (*NodeClaimSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeClaimSpec_To_v1_NodeClaimSpec(a.(*management.NodeClaimSpec), b.(*NodeClaimSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*OwnedAccessKey)(nil), (*management.OwnedAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_OwnedAccessKey_To_management_OwnedAccessKey(a.(*OwnedAccessKey), b.(*management.OwnedAccessKey), scope) + if err := s.AddGeneratedConversionFunc((*NodeClaimStatus)(nil), (*management.NodeClaimStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeClaimStatus_To_management_NodeClaimStatus(a.(*NodeClaimStatus), b.(*management.NodeClaimStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.OwnedAccessKey)(nil), (*OwnedAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_OwnedAccessKey_To_v1_OwnedAccessKey(a.(*management.OwnedAccessKey), b.(*OwnedAccessKey), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeClaimStatus)(nil), (*NodeClaimStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeClaimStatus_To_v1_NodeClaimStatus(a.(*management.NodeClaimStatus), b.(*NodeClaimStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*OwnedAccessKeyList)(nil), (*management.OwnedAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_OwnedAccessKeyList_To_management_OwnedAccessKeyList(a.(*OwnedAccessKeyList), b.(*management.OwnedAccessKeyList), scope) + if err := s.AddGeneratedConversionFunc((*NodeProvider)(nil), (*management.NodeProvider)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProvider_To_management_NodeProvider(a.(*NodeProvider), b.(*management.NodeProvider), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.OwnedAccessKeyList)(nil), (*OwnedAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_OwnedAccessKeyList_To_v1_OwnedAccessKeyList(a.(*management.OwnedAccessKeyList), b.(*OwnedAccessKeyList), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProvider)(nil), (*NodeProvider)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProvider_To_v1_NodeProvider(a.(*management.NodeProvider), b.(*NodeProvider), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*OwnedAccessKeySpec)(nil), (*management.OwnedAccessKeySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec(a.(*OwnedAccessKeySpec), b.(*management.OwnedAccessKeySpec), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderList)(nil), (*management.NodeProviderList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderList_To_management_NodeProviderList(a.(*NodeProviderList), b.(*management.NodeProviderList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.OwnedAccessKeySpec)(nil), (*OwnedAccessKeySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec(a.(*management.OwnedAccessKeySpec), b.(*OwnedAccessKeySpec), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderList)(nil), (*NodeProviderList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderList_To_v1_NodeProviderList(a.(*management.NodeProviderList), b.(*NodeProviderList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*OwnedAccessKeyStatus)(nil), (*management.OwnedAccessKeyStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus(a.(*OwnedAccessKeyStatus), b.(*management.OwnedAccessKeyStatus), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderSpec)(nil), (*management.NodeProviderSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderSpec_To_management_NodeProviderSpec(a.(*NodeProviderSpec), b.(*management.NodeProviderSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.OwnedAccessKeyStatus)(nil), (*OwnedAccessKeyStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(a.(*management.OwnedAccessKeyStatus), b.(*OwnedAccessKeyStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderSpec)(nil), (*NodeProviderSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderSpec_To_v1_NodeProviderSpec(a.(*management.NodeProviderSpec), b.(*NodeProviderSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*PredefinedApp)(nil), (*management.PredefinedApp)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_PredefinedApp_To_management_PredefinedApp(a.(*PredefinedApp), b.(*management.PredefinedApp), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderStatus)(nil), (*management.NodeProviderStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderStatus_To_management_NodeProviderStatus(a.(*NodeProviderStatus), b.(*management.NodeProviderStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.PredefinedApp)(nil), (*PredefinedApp)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_PredefinedApp_To_v1_PredefinedApp(a.(*management.PredefinedApp), b.(*PredefinedApp), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderStatus)(nil), (*NodeProviderStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderStatus_To_v1_NodeProviderStatus(a.(*management.NodeProviderStatus), b.(*NodeProviderStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*Project)(nil), (*management.Project)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_Project_To_management_Project(a.(*Project), b.(*management.Project), scope) + if err := s.AddGeneratedConversionFunc((*NodeType)(nil), (*management.NodeType)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeType_To_management_NodeType(a.(*NodeType), b.(*management.NodeType), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.Project)(nil), (*Project)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_Project_To_v1_Project(a.(*management.Project), b.(*Project), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeType)(nil), (*NodeType)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeType_To_v1_NodeType(a.(*management.NodeType), b.(*NodeType), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectChartInfo)(nil), (*management.ProjectChartInfo)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectChartInfo_To_management_ProjectChartInfo(a.(*ProjectChartInfo), b.(*management.ProjectChartInfo), scope) + if err := s.AddGeneratedConversionFunc((*NodeTypeList)(nil), (*management.NodeTypeList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeTypeList_To_management_NodeTypeList(a.(*NodeTypeList), b.(*management.NodeTypeList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.NodeTypeList)(nil), (*NodeTypeList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeTypeList_To_v1_NodeTypeList(a.(*management.NodeTypeList), b.(*NodeTypeList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*NodeTypeSpec)(nil), (*management.NodeTypeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeTypeSpec_To_management_NodeTypeSpec(a.(*NodeTypeSpec), b.(*management.NodeTypeSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.NodeTypeSpec)(nil), (*NodeTypeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeTypeSpec_To_v1_NodeTypeSpec(a.(*management.NodeTypeSpec), b.(*NodeTypeSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*NodeTypeStatus)(nil), (*management.NodeTypeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeTypeStatus_To_management_NodeTypeStatus(a.(*NodeTypeStatus), b.(*management.NodeTypeStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.NodeTypeStatus)(nil), (*NodeTypeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeTypeStatus_To_v1_NodeTypeStatus(a.(*management.NodeTypeStatus), b.(*NodeTypeStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*OIDC)(nil), (*management.OIDC)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OIDC_To_management_OIDC(a.(*OIDC), b.(*management.OIDC), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.OIDC)(nil), (*OIDC)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OIDC_To_v1_OIDC(a.(*management.OIDC), b.(*OIDC), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*OIDCClient)(nil), (*management.OIDCClient)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OIDCClient_To_management_OIDCClient(a.(*OIDCClient), b.(*management.OIDCClient), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.OIDCClient)(nil), (*OIDCClient)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OIDCClient_To_v1_OIDCClient(a.(*management.OIDCClient), b.(*OIDCClient), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*OIDCClientList)(nil), (*management.OIDCClientList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OIDCClientList_To_management_OIDCClientList(a.(*OIDCClientList), b.(*management.OIDCClientList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.OIDCClientList)(nil), (*OIDCClientList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OIDCClientList_To_v1_OIDCClientList(a.(*management.OIDCClientList), b.(*OIDCClientList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*OIDCClientSpec)(nil), (*management.OIDCClientSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OIDCClientSpec_To_management_OIDCClientSpec(a.(*OIDCClientSpec), b.(*management.OIDCClientSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.OIDCClientSpec)(nil), (*OIDCClientSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OIDCClientSpec_To_v1_OIDCClientSpec(a.(*management.OIDCClientSpec), b.(*OIDCClientSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*OIDCClientStatus)(nil), (*management.OIDCClientStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OIDCClientStatus_To_management_OIDCClientStatus(a.(*OIDCClientStatus), b.(*management.OIDCClientStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.OIDCClientStatus)(nil), (*OIDCClientStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OIDCClientStatus_To_v1_OIDCClientStatus(a.(*management.OIDCClientStatus), b.(*OIDCClientStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*ObjectName)(nil), (*management.ObjectName)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ObjectName_To_management_ObjectName(a.(*ObjectName), b.(*management.ObjectName), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.ObjectName)(nil), (*ObjectName)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ObjectName_To_v1_ObjectName(a.(*management.ObjectName), b.(*ObjectName), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*ObjectPermission)(nil), (*management.ObjectPermission)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ObjectPermission_To_management_ObjectPermission(a.(*ObjectPermission), b.(*management.ObjectPermission), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.ObjectPermission)(nil), (*ObjectPermission)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ObjectPermission_To_v1_ObjectPermission(a.(*management.ObjectPermission), b.(*ObjectPermission), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*OwnedAccessKey)(nil), (*management.OwnedAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OwnedAccessKey_To_management_OwnedAccessKey(a.(*OwnedAccessKey), b.(*management.OwnedAccessKey), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.OwnedAccessKey)(nil), (*OwnedAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OwnedAccessKey_To_v1_OwnedAccessKey(a.(*management.OwnedAccessKey), b.(*OwnedAccessKey), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*OwnedAccessKeyList)(nil), (*management.OwnedAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OwnedAccessKeyList_To_management_OwnedAccessKeyList(a.(*OwnedAccessKeyList), b.(*management.OwnedAccessKeyList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.OwnedAccessKeyList)(nil), (*OwnedAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OwnedAccessKeyList_To_v1_OwnedAccessKeyList(a.(*management.OwnedAccessKeyList), b.(*OwnedAccessKeyList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*OwnedAccessKeySpec)(nil), (*management.OwnedAccessKeySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec(a.(*OwnedAccessKeySpec), b.(*management.OwnedAccessKeySpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.OwnedAccessKeySpec)(nil), (*OwnedAccessKeySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec(a.(*management.OwnedAccessKeySpec), b.(*OwnedAccessKeySpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*OwnedAccessKeyStatus)(nil), (*management.OwnedAccessKeyStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus(a.(*OwnedAccessKeyStatus), b.(*management.OwnedAccessKeyStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.OwnedAccessKeyStatus)(nil), (*OwnedAccessKeyStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(a.(*management.OwnedAccessKeyStatus), b.(*OwnedAccessKeyStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*PredefinedApp)(nil), (*management.PredefinedApp)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_PredefinedApp_To_management_PredefinedApp(a.(*PredefinedApp), b.(*management.PredefinedApp), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.PredefinedApp)(nil), (*PredefinedApp)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_PredefinedApp_To_v1_PredefinedApp(a.(*management.PredefinedApp), b.(*PredefinedApp), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*Project)(nil), (*management.Project)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_Project_To_management_Project(a.(*Project), b.(*management.Project), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.Project)(nil), (*Project)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_Project_To_v1_Project(a.(*management.Project), b.(*Project), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*ProjectChartInfo)(nil), (*management.ProjectChartInfo)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectChartInfo_To_management_ProjectChartInfo(a.(*ProjectChartInfo), b.(*management.ProjectChartInfo), scope) }); err != nil { return err } @@ -1679,6 +2110,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*ProjectMembership)(nil), (*management.ProjectMembership)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectMembership_To_management_ProjectMembership(a.(*ProjectMembership), b.(*management.ProjectMembership), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.ProjectMembership)(nil), (*ProjectMembership)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectMembership_To_v1_ProjectMembership(a.(*management.ProjectMembership), b.(*ProjectMembership), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*ProjectMigrateSpaceInstance)(nil), (*management.ProjectMigrateSpaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_ProjectMigrateSpaceInstance_To_management_ProjectMigrateSpaceInstance(a.(*ProjectMigrateSpaceInstance), b.(*management.ProjectMigrateSpaceInstance), scope) }); err != nil { @@ -1739,23 +2180,13 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectRunners)(nil), (*management.ProjectRunners)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectRunners_To_management_ProjectRunners(a.(*ProjectRunners), b.(*management.ProjectRunners), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.ProjectRunners)(nil), (*ProjectRunners)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectRunners_To_v1_ProjectRunners(a.(*management.ProjectRunners), b.(*ProjectRunners), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ProjectRunnersList)(nil), (*management.ProjectRunnersList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectRunnersList_To_management_ProjectRunnersList(a.(*ProjectRunnersList), b.(*management.ProjectRunnersList), scope) + if err := s.AddGeneratedConversionFunc((*ProjectRole)(nil), (*management.ProjectRole)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectRole_To_management_ProjectRole(a.(*ProjectRole), b.(*management.ProjectRole), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectRunnersList)(nil), (*ProjectRunnersList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectRunnersList_To_v1_ProjectRunnersList(a.(*management.ProjectRunnersList), b.(*ProjectRunnersList), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectRole)(nil), (*ProjectRole)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectRole_To_v1_ProjectRole(a.(*management.ProjectRole), b.(*ProjectRole), scope) }); err != nil { return err } @@ -1959,86 +2390,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*Runner)(nil), (*management.Runner)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_Runner_To_management_Runner(a.(*Runner), b.(*management.Runner), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.Runner)(nil), (*Runner)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_Runner_To_v1_Runner(a.(*management.Runner), b.(*Runner), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerAccessKey)(nil), (*management.RunnerAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerAccessKey_To_management_RunnerAccessKey(a.(*RunnerAccessKey), b.(*management.RunnerAccessKey), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerAccessKey)(nil), (*RunnerAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerAccessKey_To_v1_RunnerAccessKey(a.(*management.RunnerAccessKey), b.(*RunnerAccessKey), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerAccessKeyList)(nil), (*management.RunnerAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerAccessKeyList_To_management_RunnerAccessKeyList(a.(*RunnerAccessKeyList), b.(*management.RunnerAccessKeyList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerAccessKeyList)(nil), (*RunnerAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerAccessKeyList_To_v1_RunnerAccessKeyList(a.(*management.RunnerAccessKeyList), b.(*RunnerAccessKeyList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerConfig)(nil), (*management.RunnerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerConfig_To_management_RunnerConfig(a.(*RunnerConfig), b.(*management.RunnerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerConfig)(nil), (*RunnerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerConfig_To_v1_RunnerConfig(a.(*management.RunnerConfig), b.(*RunnerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerConfigList)(nil), (*management.RunnerConfigList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerConfigList_To_management_RunnerConfigList(a.(*RunnerConfigList), b.(*management.RunnerConfigList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerConfigList)(nil), (*RunnerConfigList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerConfigList_To_v1_RunnerConfigList(a.(*management.RunnerConfigList), b.(*RunnerConfigList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerList)(nil), (*management.RunnerList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerList_To_management_RunnerList(a.(*RunnerList), b.(*management.RunnerList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerList)(nil), (*RunnerList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerList_To_v1_RunnerList(a.(*management.RunnerList), b.(*RunnerList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerSpec)(nil), (*management.RunnerSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerSpec_To_management_RunnerSpec(a.(*RunnerSpec), b.(*management.RunnerSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerSpec)(nil), (*RunnerSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerSpec_To_v1_RunnerSpec(a.(*management.RunnerSpec), b.(*RunnerSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerStatus)(nil), (*management.RunnerStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerStatus_To_management_RunnerStatus(a.(*RunnerStatus), b.(*management.RunnerStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerStatus)(nil), (*RunnerStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerStatus_To_v1_RunnerStatus(a.(*management.RunnerStatus), b.(*RunnerStatus), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*Self)(nil), (*management.Self)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_Self_To_management_Self(a.(*Self), b.(*management.Self), scope) }); err != nil { @@ -2409,6 +2760,46 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*TeamObjectPermissions)(nil), (*management.TeamObjectPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamObjectPermissions_To_management_TeamObjectPermissions(a.(*TeamObjectPermissions), b.(*management.TeamObjectPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TeamObjectPermissions)(nil), (*TeamObjectPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamObjectPermissions_To_v1_TeamObjectPermissions(a.(*management.TeamObjectPermissions), b.(*TeamObjectPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*TeamObjectPermissionsList)(nil), (*management.TeamObjectPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamObjectPermissionsList_To_management_TeamObjectPermissionsList(a.(*TeamObjectPermissionsList), b.(*management.TeamObjectPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TeamObjectPermissionsList)(nil), (*TeamObjectPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamObjectPermissionsList_To_v1_TeamObjectPermissionsList(a.(*management.TeamObjectPermissionsList), b.(*TeamObjectPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*TeamPermissions)(nil), (*management.TeamPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamPermissions_To_management_TeamPermissions(a.(*TeamPermissions), b.(*management.TeamPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TeamPermissions)(nil), (*TeamPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamPermissions_To_v1_TeamPermissions(a.(*management.TeamPermissions), b.(*TeamPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*TeamPermissionsList)(nil), (*management.TeamPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamPermissionsList_To_management_TeamPermissionsList(a.(*TeamPermissionsList), b.(*management.TeamPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TeamPermissionsList)(nil), (*TeamPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamPermissionsList_To_v1_TeamPermissionsList(a.(*management.TeamPermissionsList), b.(*TeamPermissionsList), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*TeamSpec)(nil), (*management.TeamSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_TeamSpec_To_management_TeamSpec(a.(*TeamSpec), b.(*management.TeamSpec), scope) }); err != nil { @@ -2539,6 +2930,26 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*UserObjectPermissions)(nil), (*management.UserObjectPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserObjectPermissions_To_management_UserObjectPermissions(a.(*UserObjectPermissions), b.(*management.UserObjectPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserObjectPermissions)(nil), (*UserObjectPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserObjectPermissions_To_v1_UserObjectPermissions(a.(*management.UserObjectPermissions), b.(*UserObjectPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserObjectPermissionsList)(nil), (*management.UserObjectPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserObjectPermissionsList_To_management_UserObjectPermissionsList(a.(*UserObjectPermissionsList), b.(*management.UserObjectPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserObjectPermissionsList)(nil), (*UserObjectPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserObjectPermissionsList_To_v1_UserObjectPermissionsList(a.(*management.UserObjectPermissionsList), b.(*UserObjectPermissionsList), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*UserPermissions)(nil), (*management.UserPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_UserPermissions_To_management_UserPermissions(a.(*UserPermissions), b.(*management.UserPermissions), scope) }); err != nil { @@ -2589,6 +3000,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*UserProfileSecret)(nil), (*management.UserProfileSecret)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserProfileSecret_To_management_UserProfileSecret(a.(*UserProfileSecret), b.(*management.UserProfileSecret), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserProfileSecret)(nil), (*UserProfileSecret)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserProfileSecret_To_v1_UserProfileSecret(a.(*management.UserProfileSecret), b.(*UserProfileSecret), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*UserQuotasOptions)(nil), (*management.UserQuotasOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_UserQuotasOptions_To_management_UserQuotasOptions(a.(*UserQuotasOptions), b.(*management.UserQuotasOptions), scope) }); err != nil { @@ -2659,33 +3080,73 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterInstance)(nil), (*management.VirtualClusterInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterInstance_To_management_VirtualClusterInstance(a.(*VirtualClusterInstance), b.(*management.VirtualClusterInstance), scope) + if err := s.AddGeneratedConversionFunc((*VirtualClusterExternalDatabase)(nil), (*management.VirtualClusterExternalDatabase)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterExternalDatabase_To_management_VirtualClusterExternalDatabase(a.(*VirtualClusterExternalDatabase), b.(*management.VirtualClusterExternalDatabase), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstance)(nil), (*VirtualClusterInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterInstance_To_v1_VirtualClusterInstance(a.(*management.VirtualClusterInstance), b.(*VirtualClusterInstance), scope) + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterExternalDatabase)(nil), (*VirtualClusterExternalDatabase)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterExternalDatabase_To_v1_VirtualClusterExternalDatabase(a.(*management.VirtualClusterExternalDatabase), b.(*VirtualClusterExternalDatabase), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceKubeConfig)(nil), (*management.VirtualClusterInstanceKubeConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterInstanceKubeConfig_To_management_VirtualClusterInstanceKubeConfig(a.(*VirtualClusterInstanceKubeConfig), b.(*management.VirtualClusterInstanceKubeConfig), scope) + if err := s.AddGeneratedConversionFunc((*VirtualClusterExternalDatabaseList)(nil), (*management.VirtualClusterExternalDatabaseList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterExternalDatabaseList_To_management_VirtualClusterExternalDatabaseList(a.(*VirtualClusterExternalDatabaseList), b.(*management.VirtualClusterExternalDatabaseList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceKubeConfig)(nil), (*VirtualClusterInstanceKubeConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterInstanceKubeConfig_To_v1_VirtualClusterInstanceKubeConfig(a.(*management.VirtualClusterInstanceKubeConfig), b.(*VirtualClusterInstanceKubeConfig), scope) + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterExternalDatabaseList)(nil), (*VirtualClusterExternalDatabaseList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterExternalDatabaseList_To_v1_VirtualClusterExternalDatabaseList(a.(*management.VirtualClusterExternalDatabaseList), b.(*VirtualClusterExternalDatabaseList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceKubeConfigList)(nil), (*management.VirtualClusterInstanceKubeConfigList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterInstanceKubeConfigList_To_management_VirtualClusterInstanceKubeConfigList(a.(*VirtualClusterInstanceKubeConfigList), b.(*management.VirtualClusterInstanceKubeConfigList), scope) + if err := s.AddGeneratedConversionFunc((*VirtualClusterExternalDatabaseSpec)(nil), (*management.VirtualClusterExternalDatabaseSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec(a.(*VirtualClusterExternalDatabaseSpec), b.(*management.VirtualClusterExternalDatabaseSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceKubeConfigList)(nil), (*VirtualClusterInstanceKubeConfigList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterInstanceKubeConfigList_To_v1_VirtualClusterInstanceKubeConfigList(a.(*management.VirtualClusterInstanceKubeConfigList), b.(*VirtualClusterInstanceKubeConfigList), scope) + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterExternalDatabaseSpec)(nil), (*VirtualClusterExternalDatabaseSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec(a.(*management.VirtualClusterExternalDatabaseSpec), b.(*VirtualClusterExternalDatabaseSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterExternalDatabaseStatus)(nil), (*management.VirtualClusterExternalDatabaseStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualClusterExternalDatabaseStatus(a.(*VirtualClusterExternalDatabaseStatus), b.(*management.VirtualClusterExternalDatabaseStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterExternalDatabaseStatus)(nil), (*VirtualClusterExternalDatabaseStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterExternalDatabaseStatus_To_v1_VirtualClusterExternalDatabaseStatus(a.(*management.VirtualClusterExternalDatabaseStatus), b.(*VirtualClusterExternalDatabaseStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstance)(nil), (*management.VirtualClusterInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstance_To_management_VirtualClusterInstance(a.(*VirtualClusterInstance), b.(*management.VirtualClusterInstance), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstance)(nil), (*VirtualClusterInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstance_To_v1_VirtualClusterInstance(a.(*management.VirtualClusterInstance), b.(*VirtualClusterInstance), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceKubeConfig)(nil), (*management.VirtualClusterInstanceKubeConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceKubeConfig_To_management_VirtualClusterInstanceKubeConfig(a.(*VirtualClusterInstanceKubeConfig), b.(*management.VirtualClusterInstanceKubeConfig), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceKubeConfig)(nil), (*VirtualClusterInstanceKubeConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceKubeConfig_To_v1_VirtualClusterInstanceKubeConfig(a.(*management.VirtualClusterInstanceKubeConfig), b.(*VirtualClusterInstanceKubeConfig), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceKubeConfigList)(nil), (*management.VirtualClusterInstanceKubeConfigList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceKubeConfigList_To_management_VirtualClusterInstanceKubeConfigList(a.(*VirtualClusterInstanceKubeConfigList), b.(*management.VirtualClusterInstanceKubeConfigList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceKubeConfigList)(nil), (*VirtualClusterInstanceKubeConfigList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceKubeConfigList_To_v1_VirtualClusterInstanceKubeConfigList(a.(*management.VirtualClusterInstanceKubeConfigList), b.(*VirtualClusterInstanceKubeConfigList), scope) }); err != nil { return err } @@ -2769,6 +3230,56 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*VirtualClusterRole)(nil), (*management.VirtualClusterRole)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterRole_To_management_VirtualClusterRole(a.(*VirtualClusterRole), b.(*management.VirtualClusterRole), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterRole)(nil), (*VirtualClusterRole)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterRole_To_v1_VirtualClusterRole(a.(*management.VirtualClusterRole), b.(*VirtualClusterRole), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterSchema)(nil), (*management.VirtualClusterSchema)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterSchema_To_management_VirtualClusterSchema(a.(*VirtualClusterSchema), b.(*management.VirtualClusterSchema), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterSchema)(nil), (*VirtualClusterSchema)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterSchema_To_v1_VirtualClusterSchema(a.(*management.VirtualClusterSchema), b.(*VirtualClusterSchema), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterSchemaList)(nil), (*management.VirtualClusterSchemaList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterSchemaList_To_management_VirtualClusterSchemaList(a.(*VirtualClusterSchemaList), b.(*management.VirtualClusterSchemaList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterSchemaList)(nil), (*VirtualClusterSchemaList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterSchemaList_To_v1_VirtualClusterSchemaList(a.(*management.VirtualClusterSchemaList), b.(*VirtualClusterSchemaList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterSchemaSpec)(nil), (*management.VirtualClusterSchemaSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(a.(*VirtualClusterSchemaSpec), b.(*management.VirtualClusterSchemaSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterSchemaSpec)(nil), (*VirtualClusterSchemaSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec(a.(*management.VirtualClusterSchemaSpec), b.(*VirtualClusterSchemaSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterSchemaStatus)(nil), (*management.VirtualClusterSchemaStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus(a.(*VirtualClusterSchemaStatus), b.(*management.VirtualClusterSchemaStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterSchemaStatus)(nil), (*VirtualClusterSchemaStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus(a.(*management.VirtualClusterSchemaStatus), b.(*VirtualClusterSchemaStatus), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*VirtualClusterTemplate)(nil), (*management.VirtualClusterTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_VirtualClusterTemplate_To_management_VirtualClusterTemplate(a.(*VirtualClusterTemplate), b.(*management.VirtualClusterTemplate), scope) }); err != nil { @@ -2814,28 +3325,18 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodDeleteOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodDeleteOptions(a.(*url.Values), b.(*DevPodDeleteOptions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodSshOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodSshOptions(a.(*url.Values), b.(*DevPodSshOptions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodStatusOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodStatusOptions(a.(*url.Values), b.(*DevPodStatusOptions), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodStopOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodStopOptions(a.(*url.Values), b.(*DevPodStopOptions), scope) + 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) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodUpOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodUpOptions(a.(*url.Values), b.(*DevPodUpOptions), scope) + 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) }); err != nil { return err } @@ -3019,6 +3520,32 @@ func Convert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(in *ma return autoConvert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(in, out, s) } +func autoConvert_v1_AgentCostControlConfig_To_management_AgentCostControlConfig(in *AgentCostControlConfig, out *management.AgentCostControlConfig, s conversion.Scope) error { + out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) + if err := Convert_v1_CostControlClusterConfig_To_management_CostControlClusterConfig(&in.CostControlClusterConfig, &out.CostControlClusterConfig, s); err != nil { + return err + } + return nil +} + +// Convert_v1_AgentCostControlConfig_To_management_AgentCostControlConfig is an autogenerated conversion function. +func Convert_v1_AgentCostControlConfig_To_management_AgentCostControlConfig(in *AgentCostControlConfig, out *management.AgentCostControlConfig, s conversion.Scope) error { + return autoConvert_v1_AgentCostControlConfig_To_management_AgentCostControlConfig(in, out, s) +} + +func autoConvert_management_AgentCostControlConfig_To_v1_AgentCostControlConfig(in *management.AgentCostControlConfig, out *AgentCostControlConfig, s conversion.Scope) error { + out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) + if err := Convert_management_CostControlClusterConfig_To_v1_CostControlClusterConfig(&in.CostControlClusterConfig, &out.CostControlClusterConfig, s); err != nil { + return err + } + return nil +} + +// Convert_management_AgentCostControlConfig_To_v1_AgentCostControlConfig is an autogenerated conversion function. +func Convert_management_AgentCostControlConfig_To_v1_AgentCostControlConfig(in *management.AgentCostControlConfig, out *AgentCostControlConfig, s conversion.Scope) error { + return autoConvert_management_AgentCostControlConfig_To_v1_AgentCostControlConfig(in, out, s) +} + func autoConvert_v1_Announcement_To_management_Announcement(in *Announcement, out *management.Announcement, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_AnnouncementSpec_To_management_AnnouncementSpec(&in.Spec, &out.Spec, s); err != nil { @@ -3273,6 +3800,34 @@ func Convert_management_Apps_To_v1_Apps(in *management.Apps, out *Apps, s conver return autoConvert_management_Apps_To_v1_Apps(in, out, s) } +func autoConvert_v1_AssignedVia_To_management_AssignedVia(in *AssignedVia, out *management.AssignedVia, s conversion.Scope) error { + if err := Convert_v1_ObjectName_To_management_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Kind = in.Kind + out.Owner = in.Owner + return nil +} + +// Convert_v1_AssignedVia_To_management_AssignedVia is an autogenerated conversion function. +func Convert_v1_AssignedVia_To_management_AssignedVia(in *AssignedVia, out *management.AssignedVia, s conversion.Scope) error { + return autoConvert_v1_AssignedVia_To_management_AssignedVia(in, out, s) +} + +func autoConvert_management_AssignedVia_To_v1_AssignedVia(in *management.AssignedVia, out *AssignedVia, s conversion.Scope) error { + if err := Convert_management_ObjectName_To_v1_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Kind = in.Kind + out.Owner = in.Owner + return nil +} + +// Convert_management_AssignedVia_To_v1_AssignedVia is an autogenerated conversion function. +func Convert_management_AssignedVia_To_v1_AssignedVia(in *management.AssignedVia, out *AssignedVia, s conversion.Scope) error { + return autoConvert_management_AssignedVia_To_v1_AssignedVia(in, out, s) +} + func autoConvert_v1_Audit_To_management_Audit(in *Audit, out *management.Audit, s conversion.Scope) error { out.Enabled = in.Enabled out.DisableAgentSyncBack = in.DisableAgentSyncBack @@ -3577,6 +4132,7 @@ func autoConvert_v1_AuthenticationOIDC_To_management_AuthenticationOIDC(in *Auth out.LoftUsernameClaim = in.LoftUsernameClaim out.UsernameClaim = in.UsernameClaim out.EmailClaim = in.EmailClaim + out.AllowedExtraClaims = *(*[]string)(unsafe.Pointer(&in.AllowedExtraClaims)) out.UsernamePrefix = in.UsernamePrefix out.GroupsClaim = in.GroupsClaim out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) @@ -3604,6 +4160,7 @@ func autoConvert_management_AuthenticationOIDC_To_v1_AuthenticationOIDC(in *mana out.LoftUsernameClaim = in.LoftUsernameClaim out.UsernameClaim = in.UsernameClaim out.EmailClaim = in.EmailClaim + out.AllowedExtraClaims = *(*[]string)(unsafe.Pointer(&in.AllowedExtraClaims)) out.UsernamePrefix = in.UsernamePrefix out.GroupsClaim = in.GroupsClaim out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) @@ -3880,6 +4437,32 @@ func Convert_management_BackupStatus_To_v1_BackupStatus(in *management.BackupSta return autoConvert_management_BackupStatus_To_v1_BackupStatus(in, out, s) } +func autoConvert_v1_Cloud_To_management_Cloud(in *Cloud, out *management.Cloud, s conversion.Scope) error { + out.ReleaseChannel = in.ReleaseChannel + if err := Convert_v1_MaintenanceWindow_To_management_MaintenanceWindow(&in.MaintenanceWindow, &out.MaintenanceWindow, s); err != nil { + return err + } + return nil +} + +// Convert_v1_Cloud_To_management_Cloud is an autogenerated conversion function. +func Convert_v1_Cloud_To_management_Cloud(in *Cloud, out *management.Cloud, s conversion.Scope) error { + return autoConvert_v1_Cloud_To_management_Cloud(in, out, s) +} + +func autoConvert_management_Cloud_To_v1_Cloud(in *management.Cloud, out *Cloud, s conversion.Scope) error { + out.ReleaseChannel = in.ReleaseChannel + if err := Convert_management_MaintenanceWindow_To_v1_MaintenanceWindow(&in.MaintenanceWindow, &out.MaintenanceWindow, s); err != nil { + return err + } + return nil +} + +// Convert_management_Cloud_To_v1_Cloud is an autogenerated conversion function. +func Convert_management_Cloud_To_v1_Cloud(in *management.Cloud, out *Cloud, s conversion.Scope) error { + return autoConvert_management_Cloud_To_v1_Cloud(in, out, s) +} + func autoConvert_v1_Cluster_To_management_Cluster(in *Cluster, out *management.Cluster, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_ClusterSpec_To_management_ClusterSpec(&in.Spec, &out.Spec, s); err != nil { @@ -4016,6 +4599,38 @@ func Convert_management_ClusterAccessList_To_v1_ClusterAccessList(in *management return autoConvert_management_ClusterAccessList_To_v1_ClusterAccessList(in, out, s) } +func autoConvert_v1_ClusterAccessRole_To_management_ClusterAccessRole(in *ClusterAccessRole, out *management.ClusterAccessRole, s conversion.Scope) error { + if err := Convert_v1_ObjectName_To_management_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Clusters = *(*[]management.ObjectName)(unsafe.Pointer(&in.Clusters)) + if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_v1_ClusterAccessRole_To_management_ClusterAccessRole is an autogenerated conversion function. +func Convert_v1_ClusterAccessRole_To_management_ClusterAccessRole(in *ClusterAccessRole, out *management.ClusterAccessRole, s conversion.Scope) error { + return autoConvert_v1_ClusterAccessRole_To_management_ClusterAccessRole(in, out, s) +} + +func autoConvert_management_ClusterAccessRole_To_v1_ClusterAccessRole(in *management.ClusterAccessRole, out *ClusterAccessRole, s conversion.Scope) error { + if err := Convert_management_ObjectName_To_v1_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Clusters = *(*[]ObjectName)(unsafe.Pointer(&in.Clusters)) + if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_management_ClusterAccessRole_To_v1_ClusterAccessRole is an autogenerated conversion function. +func Convert_management_ClusterAccessRole_To_v1_ClusterAccessRole(in *management.ClusterAccessRole, out *ClusterAccessRole, s conversion.Scope) error { + return autoConvert_management_ClusterAccessRole_To_v1_ClusterAccessRole(in, out, s) +} + func autoConvert_v1_ClusterAccessSpec_To_management_ClusterAccessSpec(in *ClusterAccessSpec, out *management.ClusterAccessSpec, s conversion.Scope) error { out.ClusterAccessSpec = in.ClusterAccessSpec return nil @@ -4121,6 +4736,7 @@ func autoConvert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCom if err := Convert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec(&in.AnalyticsSpec, &out.AnalyticsSpec, s); err != nil { return err } + out.CostControl = (*management.AgentCostControlConfig)(unsafe.Pointer(in.CostControl)) return nil } @@ -4140,6 +4756,7 @@ func autoConvert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCom if err := Convert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec(&in.AnalyticsSpec, &out.AnalyticsSpec, s); err != nil { return err } + out.CostControl = (*AgentCostControlConfig)(unsafe.Pointer(in.CostControl)) return nil } @@ -4580,56 +5197,6 @@ func Convert_management_ClusterStatus_To_v1_ClusterStatus(in *management.Cluster return autoConvert_management_ClusterStatus_To_v1_ClusterStatus(in, out, s) } -func autoConvert_v1_ClusterVirtualClusterDefaults_To_management_ClusterVirtualClusterDefaults(in *ClusterVirtualClusterDefaults, out *management.ClusterVirtualClusterDefaults, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.DefaultTemplate = (*storagev1.VirtualClusterTemplate)(unsafe.Pointer(in.DefaultTemplate)) - out.LatestVersion = in.LatestVersion - out.Values = in.Values - out.Warning = in.Warning - return nil -} - -// Convert_v1_ClusterVirtualClusterDefaults_To_management_ClusterVirtualClusterDefaults is an autogenerated conversion function. -func Convert_v1_ClusterVirtualClusterDefaults_To_management_ClusterVirtualClusterDefaults(in *ClusterVirtualClusterDefaults, out *management.ClusterVirtualClusterDefaults, s conversion.Scope) error { - return autoConvert_v1_ClusterVirtualClusterDefaults_To_management_ClusterVirtualClusterDefaults(in, out, s) -} - -func autoConvert_management_ClusterVirtualClusterDefaults_To_v1_ClusterVirtualClusterDefaults(in *management.ClusterVirtualClusterDefaults, out *ClusterVirtualClusterDefaults, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.DefaultTemplate = (*storagev1.VirtualClusterTemplate)(unsafe.Pointer(in.DefaultTemplate)) - out.LatestVersion = in.LatestVersion - out.Values = in.Values - out.Warning = in.Warning - return nil -} - -// Convert_management_ClusterVirtualClusterDefaults_To_v1_ClusterVirtualClusterDefaults is an autogenerated conversion function. -func Convert_management_ClusterVirtualClusterDefaults_To_v1_ClusterVirtualClusterDefaults(in *management.ClusterVirtualClusterDefaults, out *ClusterVirtualClusterDefaults, s conversion.Scope) error { - return autoConvert_management_ClusterVirtualClusterDefaults_To_v1_ClusterVirtualClusterDefaults(in, out, s) -} - -func autoConvert_v1_ClusterVirtualClusterDefaultsList_To_management_ClusterVirtualClusterDefaultsList(in *ClusterVirtualClusterDefaultsList, out *management.ClusterVirtualClusterDefaultsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterVirtualClusterDefaults)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_ClusterVirtualClusterDefaultsList_To_management_ClusterVirtualClusterDefaultsList is an autogenerated conversion function. -func Convert_v1_ClusterVirtualClusterDefaultsList_To_management_ClusterVirtualClusterDefaultsList(in *ClusterVirtualClusterDefaultsList, out *management.ClusterVirtualClusterDefaultsList, s conversion.Scope) error { - return autoConvert_v1_ClusterVirtualClusterDefaultsList_To_management_ClusterVirtualClusterDefaultsList(in, out, s) -} - -func autoConvert_management_ClusterVirtualClusterDefaultsList_To_v1_ClusterVirtualClusterDefaultsList(in *management.ClusterVirtualClusterDefaultsList, out *ClusterVirtualClusterDefaultsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ClusterVirtualClusterDefaults)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_ClusterVirtualClusterDefaultsList_To_v1_ClusterVirtualClusterDefaultsList is an autogenerated conversion function. -func Convert_management_ClusterVirtualClusterDefaultsList_To_v1_ClusterVirtualClusterDefaultsList(in *management.ClusterVirtualClusterDefaultsList, out *ClusterVirtualClusterDefaultsList, s conversion.Scope) error { - return autoConvert_management_ClusterVirtualClusterDefaultsList_To_v1_ClusterVirtualClusterDefaultsList(in, out, s) -} - func autoConvert_v1_Config_To_management_Config(in *Config, out *management.Config, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_ConfigSpec_To_management_ConfigSpec(&in.Spec, &out.Spec, s); err != nil { @@ -4717,6 +5284,9 @@ func autoConvert_v1_ConfigStatus_To_management_ConfigStatus(in *ConfigStatus, ou out.UISettings = (*uiv1.UISettingsConfig)(unsafe.Pointer(in.UISettings)) out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) out.DisableConfigEndpoint = in.DisableConfigEndpoint + out.Cloud = (*management.Cloud)(unsafe.Pointer(in.Cloud)) + out.CostControl = (*management.CostControl)(unsafe.Pointer(in.CostControl)) + out.ImageBuilder = (*management.ImageBuilder)(unsafe.Pointer(in.ImageBuilder)) return nil } @@ -4738,6 +5308,9 @@ func autoConvert_management_ConfigStatus_To_v1_ConfigStatus(in *management.Confi out.UISettings = (*uiv1.UISettingsConfig)(unsafe.Pointer(in.UISettings)) out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) out.DisableConfigEndpoint = in.DisableConfigEndpoint + out.Cloud = (*Cloud)(unsafe.Pointer(in.Cloud)) + out.CostControl = (*CostControl)(unsafe.Pointer(in.CostControl)) + out.ImageBuilder = (*ImageBuilder)(unsafe.Pointer(in.ImageBuilder)) return nil } @@ -4904,563 +5477,1097 @@ func Convert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualCl return autoConvert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(in, out, s) } -func autoConvert_v1_DevPodDeleteOptions_To_management_DevPodDeleteOptions(in *DevPodDeleteOptions, out *management.DevPodDeleteOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_v1_CostControl_To_management_CostControl(in *CostControl, out *management.CostControl, s conversion.Scope) error { + out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) + if err := Convert_v1_CostControlGlobalConfig_To_management_CostControlGlobalConfig(&in.Global, &out.Global, s); err != nil { + return err + } + if err := Convert_v1_CostControlClusterConfig_To_management_CostControlClusterConfig(&in.Cluster, &out.Cluster, s); err != nil { + return err + } + out.Settings = (*management.CostControlSettings)(unsafe.Pointer(in.Settings)) return nil } -// Convert_v1_DevPodDeleteOptions_To_management_DevPodDeleteOptions is an autogenerated conversion function. -func Convert_v1_DevPodDeleteOptions_To_management_DevPodDeleteOptions(in *DevPodDeleteOptions, out *management.DevPodDeleteOptions, s conversion.Scope) error { - return autoConvert_v1_DevPodDeleteOptions_To_management_DevPodDeleteOptions(in, out, s) +// Convert_v1_CostControl_To_management_CostControl is an autogenerated conversion function. +func Convert_v1_CostControl_To_management_CostControl(in *CostControl, out *management.CostControl, s conversion.Scope) error { + return autoConvert_v1_CostControl_To_management_CostControl(in, out, s) } -func autoConvert_management_DevPodDeleteOptions_To_v1_DevPodDeleteOptions(in *management.DevPodDeleteOptions, out *DevPodDeleteOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_management_CostControl_To_v1_CostControl(in *management.CostControl, out *CostControl, s conversion.Scope) error { + out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) + if err := Convert_management_CostControlGlobalConfig_To_v1_CostControlGlobalConfig(&in.Global, &out.Global, s); err != nil { + return err + } + if err := Convert_management_CostControlClusterConfig_To_v1_CostControlClusterConfig(&in.Cluster, &out.Cluster, s); err != nil { + return err + } + out.Settings = (*CostControlSettings)(unsafe.Pointer(in.Settings)) return nil } -// Convert_management_DevPodDeleteOptions_To_v1_DevPodDeleteOptions is an autogenerated conversion function. -func Convert_management_DevPodDeleteOptions_To_v1_DevPodDeleteOptions(in *management.DevPodDeleteOptions, out *DevPodDeleteOptions, s conversion.Scope) error { - return autoConvert_management_DevPodDeleteOptions_To_v1_DevPodDeleteOptions(in, out, s) +// Convert_management_CostControl_To_v1_CostControl is an autogenerated conversion function. +func Convert_management_CostControl_To_v1_CostControl(in *management.CostControl, out *CostControl, s conversion.Scope) error { + return autoConvert_management_CostControl_To_v1_CostControl(in, out, s) } -func autoConvert_url_Values_To_v1_DevPodDeleteOptions(in *url.Values, out *DevPodDeleteOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. - - if values, ok := map[string][]string(*in)["options"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.Options, s); err != nil { - return err - } - } else { - out.Options = "" - } +func autoConvert_v1_CostControlClusterConfig_To_management_CostControlClusterConfig(in *CostControlClusterConfig, out *management.CostControlClusterConfig, s conversion.Scope) error { + out.Metrics = (*storagev1.Metrics)(unsafe.Pointer(in.Metrics)) + out.OpenCost = (*storagev1.OpenCost)(unsafe.Pointer(in.OpenCost)) return nil } -// Convert_url_Values_To_v1_DevPodDeleteOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodDeleteOptions(in *url.Values, out *DevPodDeleteOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodDeleteOptions(in, out, s) +// Convert_v1_CostControlClusterConfig_To_management_CostControlClusterConfig is an autogenerated conversion function. +func Convert_v1_CostControlClusterConfig_To_management_CostControlClusterConfig(in *CostControlClusterConfig, out *management.CostControlClusterConfig, s conversion.Scope) error { + return autoConvert_v1_CostControlClusterConfig_To_management_CostControlClusterConfig(in, out, s) } -func autoConvert_v1_DevPodDeleteOptionsList_To_management_DevPodDeleteOptionsList(in *DevPodDeleteOptionsList, out *management.DevPodDeleteOptionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodDeleteOptions)(unsafe.Pointer(&in.Items)) +func autoConvert_management_CostControlClusterConfig_To_v1_CostControlClusterConfig(in *management.CostControlClusterConfig, out *CostControlClusterConfig, s conversion.Scope) error { + out.Metrics = (*storagev1.Metrics)(unsafe.Pointer(in.Metrics)) + out.OpenCost = (*storagev1.OpenCost)(unsafe.Pointer(in.OpenCost)) return nil } -// Convert_v1_DevPodDeleteOptionsList_To_management_DevPodDeleteOptionsList is an autogenerated conversion function. -func Convert_v1_DevPodDeleteOptionsList_To_management_DevPodDeleteOptionsList(in *DevPodDeleteOptionsList, out *management.DevPodDeleteOptionsList, s conversion.Scope) error { - return autoConvert_v1_DevPodDeleteOptionsList_To_management_DevPodDeleteOptionsList(in, out, s) +// Convert_management_CostControlClusterConfig_To_v1_CostControlClusterConfig is an autogenerated conversion function. +func Convert_management_CostControlClusterConfig_To_v1_CostControlClusterConfig(in *management.CostControlClusterConfig, out *CostControlClusterConfig, s conversion.Scope) error { + return autoConvert_management_CostControlClusterConfig_To_v1_CostControlClusterConfig(in, out, s) } -func autoConvert_management_DevPodDeleteOptionsList_To_v1_DevPodDeleteOptionsList(in *management.DevPodDeleteOptionsList, out *DevPodDeleteOptionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodDeleteOptions)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_CostControlGPUSettings_To_management_CostControlGPUSettings(in *CostControlGPUSettings, out *management.CostControlGPUSettings, s conversion.Scope) error { + out.Enabled = in.Enabled + out.AvgGPUPrice = (*management.CostControlResourcePrice)(unsafe.Pointer(in.AvgGPUPrice)) return nil } -// Convert_management_DevPodDeleteOptionsList_To_v1_DevPodDeleteOptionsList is an autogenerated conversion function. -func Convert_management_DevPodDeleteOptionsList_To_v1_DevPodDeleteOptionsList(in *management.DevPodDeleteOptionsList, out *DevPodDeleteOptionsList, s conversion.Scope) error { - return autoConvert_management_DevPodDeleteOptionsList_To_v1_DevPodDeleteOptionsList(in, out, s) +// Convert_v1_CostControlGPUSettings_To_management_CostControlGPUSettings is an autogenerated conversion function. +func Convert_v1_CostControlGPUSettings_To_management_CostControlGPUSettings(in *CostControlGPUSettings, out *management.CostControlGPUSettings, s conversion.Scope) error { + return autoConvert_v1_CostControlGPUSettings_To_management_CostControlGPUSettings(in, out, s) } -func autoConvert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in *DevPodEnvironmentTemplate, out *management.DevPodEnvironmentTemplate, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_management_CostControlGPUSettings_To_v1_CostControlGPUSettings(in *management.CostControlGPUSettings, out *CostControlGPUSettings, s conversion.Scope) error { + out.Enabled = in.Enabled + out.AvgGPUPrice = (*CostControlResourcePrice)(unsafe.Pointer(in.AvgGPUPrice)) 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_management_CostControlGPUSettings_To_v1_CostControlGPUSettings is an autogenerated conversion function. +func Convert_management_CostControlGPUSettings_To_v1_CostControlGPUSettings(in *management.CostControlGPUSettings, out *CostControlGPUSettings, s conversion.Scope) error { + return autoConvert_management_CostControlGPUSettings_To_v1_CostControlGPUSettings(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(in *management.DevPodEnvironmentTemplate, out *DevPodEnvironmentTemplate, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_v1_CostControlGlobalConfig_To_management_CostControlGlobalConfig(in *CostControlGlobalConfig, out *management.CostControlGlobalConfig, s conversion.Scope) error { + out.Metrics = (*storagev1.Metrics)(unsafe.Pointer(in.Metrics)) 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_v1_CostControlGlobalConfig_To_management_CostControlGlobalConfig is an autogenerated conversion function. +func Convert_v1_CostControlGlobalConfig_To_management_CostControlGlobalConfig(in *CostControlGlobalConfig, out *management.CostControlGlobalConfig, s conversion.Scope) error { + return autoConvert_v1_CostControlGlobalConfig_To_management_CostControlGlobalConfig(in, out, s) } -func autoConvert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(in *DevPodEnvironmentTemplateList, out *management.DevPodEnvironmentTemplateList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodEnvironmentTemplate)(unsafe.Pointer(&in.Items)) +func autoConvert_management_CostControlGlobalConfig_To_v1_CostControlGlobalConfig(in *management.CostControlGlobalConfig, out *CostControlGlobalConfig, s conversion.Scope) error { + out.Metrics = (*storagev1.Metrics)(unsafe.Pointer(in.Metrics)) 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_management_CostControlGlobalConfig_To_v1_CostControlGlobalConfig is an autogenerated conversion function. +func Convert_management_CostControlGlobalConfig_To_v1_CostControlGlobalConfig(in *management.CostControlGlobalConfig, out *CostControlGlobalConfig, s conversion.Scope) error { + return autoConvert_management_CostControlGlobalConfig_To_v1_CostControlGlobalConfig(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(in *management.DevPodEnvironmentTemplateList, out *DevPodEnvironmentTemplateList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodEnvironmentTemplate)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_CostControlResourcePrice_To_management_CostControlResourcePrice(in *CostControlResourcePrice, out *management.CostControlResourcePrice, s conversion.Scope) error { + out.Price = in.Price + out.TimePeriod = in.TimePeriod 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_v1_CostControlResourcePrice_To_management_CostControlResourcePrice is an autogenerated conversion function. +func Convert_v1_CostControlResourcePrice_To_management_CostControlResourcePrice(in *CostControlResourcePrice, out *management.CostControlResourcePrice, s conversion.Scope) error { + return autoConvert_v1_CostControlResourcePrice_To_management_CostControlResourcePrice(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_management_CostControlResourcePrice_To_v1_CostControlResourcePrice(in *management.CostControlResourcePrice, out *CostControlResourcePrice, s conversion.Scope) error { + out.Price = in.Price + out.TimePeriod = in.TimePeriod 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_management_CostControlResourcePrice_To_v1_CostControlResourcePrice is an autogenerated conversion function. +func Convert_management_CostControlResourcePrice_To_v1_CostControlResourcePrice(in *management.CostControlResourcePrice, out *CostControlResourcePrice, s conversion.Scope) error { + return autoConvert_management_CostControlResourcePrice_To_v1_CostControlResourcePrice(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_v1_CostControlSettings_To_management_CostControlSettings(in *CostControlSettings, out *management.CostControlSettings, s conversion.Scope) error { + out.PriceCurrency = in.PriceCurrency + out.AvgCPUPricePerNode = (*management.CostControlResourcePrice)(unsafe.Pointer(in.AvgCPUPricePerNode)) + out.AvgRAMPricePerNode = (*management.CostControlResourcePrice)(unsafe.Pointer(in.AvgRAMPricePerNode)) + out.GPUSettings = (*management.CostControlGPUSettings)(unsafe.Pointer(in.GPUSettings)) + out.ControlPlanePricePerCluster = (*management.CostControlResourcePrice)(unsafe.Pointer(in.ControlPlanePricePerCluster)) 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_v1_CostControlSettings_To_management_CostControlSettings is an autogenerated conversion function. +func Convert_v1_CostControlSettings_To_management_CostControlSettings(in *CostControlSettings, out *management.CostControlSettings, s conversion.Scope) error { + return autoConvert_v1_CostControlSettings_To_management_CostControlSettings(in, out, s) } -func autoConvert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(in *DevPodEnvironmentTemplateStatus, out *management.DevPodEnvironmentTemplateStatus, s conversion.Scope) error { +func autoConvert_management_CostControlSettings_To_v1_CostControlSettings(in *management.CostControlSettings, out *CostControlSettings, s conversion.Scope) error { + out.PriceCurrency = in.PriceCurrency + out.AvgCPUPricePerNode = (*CostControlResourcePrice)(unsafe.Pointer(in.AvgCPUPricePerNode)) + out.AvgRAMPricePerNode = (*CostControlResourcePrice)(unsafe.Pointer(in.AvgRAMPricePerNode)) + out.GPUSettings = (*CostControlGPUSettings)(unsafe.Pointer(in.GPUSettings)) + out.ControlPlanePricePerCluster = (*CostControlResourcePrice)(unsafe.Pointer(in.ControlPlanePricePerCluster)) 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_management_CostControlSettings_To_v1_CostControlSettings is an autogenerated conversion function. +func Convert_management_CostControlSettings_To_v1_CostControlSettings(in *management.CostControlSettings, out *CostControlSettings, s conversion.Scope) error { + return autoConvert_management_CostControlSettings_To_v1_CostControlSettings(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(in *management.DevPodEnvironmentTemplateStatus, out *DevPodEnvironmentTemplateStatus, s conversion.Scope) error { +func autoConvert_v1_DatabaseConnector_To_management_DatabaseConnector(in *DatabaseConnector, out *management.DatabaseConnector, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_DatabaseConnectorSpec_To_management_DatabaseConnectorSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_DatabaseConnectorStatus_To_management_DatabaseConnectorStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_v1_DatabaseConnector_To_management_DatabaseConnector is an autogenerated conversion function. +func Convert_v1_DatabaseConnector_To_management_DatabaseConnector(in *DatabaseConnector, out *management.DatabaseConnector, s conversion.Scope) error { + return autoConvert_v1_DatabaseConnector_To_management_DatabaseConnector(in, out, s) } -func autoConvert_v1_DevPodSshOptions_To_management_DevPodSshOptions(in *DevPodSshOptions, out *management.DevPodSshOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_management_DatabaseConnector_To_v1_DatabaseConnector(in *management.DatabaseConnector, out *DatabaseConnector, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_DatabaseConnectorSpec_To_v1_DatabaseConnectorSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_DevPodSshOptions_To_management_DevPodSshOptions is an autogenerated conversion function. -func Convert_v1_DevPodSshOptions_To_management_DevPodSshOptions(in *DevPodSshOptions, out *management.DevPodSshOptions, s conversion.Scope) error { - return autoConvert_v1_DevPodSshOptions_To_management_DevPodSshOptions(in, out, s) +// Convert_management_DatabaseConnector_To_v1_DatabaseConnector is an autogenerated conversion function. +func Convert_management_DatabaseConnector_To_v1_DatabaseConnector(in *management.DatabaseConnector, out *DatabaseConnector, s conversion.Scope) error { + return autoConvert_management_DatabaseConnector_To_v1_DatabaseConnector(in, out, s) } -func autoConvert_management_DevPodSshOptions_To_v1_DevPodSshOptions(in *management.DevPodSshOptions, out *DevPodSshOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_v1_DatabaseConnectorList_To_management_DatabaseConnectorList(in *DatabaseConnectorList, out *management.DatabaseConnectorList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DatabaseConnector)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodSshOptions_To_v1_DevPodSshOptions is an autogenerated conversion function. -func Convert_management_DevPodSshOptions_To_v1_DevPodSshOptions(in *management.DevPodSshOptions, out *DevPodSshOptions, s conversion.Scope) error { - return autoConvert_management_DevPodSshOptions_To_v1_DevPodSshOptions(in, out, s) +// Convert_v1_DatabaseConnectorList_To_management_DatabaseConnectorList is an autogenerated conversion function. +func Convert_v1_DatabaseConnectorList_To_management_DatabaseConnectorList(in *DatabaseConnectorList, out *management.DatabaseConnectorList, s conversion.Scope) error { + return autoConvert_v1_DatabaseConnectorList_To_management_DatabaseConnectorList(in, out, s) } -func autoConvert_url_Values_To_v1_DevPodSshOptions(in *url.Values, out *DevPodSshOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. - - if values, ok := map[string][]string(*in)["options"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.Options, s); err != nil { - return err - } - } else { - out.Options = "" - } +func autoConvert_management_DatabaseConnectorList_To_v1_DatabaseConnectorList(in *management.DatabaseConnectorList, out *DatabaseConnectorList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DatabaseConnector)(unsafe.Pointer(&in.Items)) return nil } -// Convert_url_Values_To_v1_DevPodSshOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodSshOptions(in *url.Values, out *DevPodSshOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodSshOptions(in, out, s) +// Convert_management_DatabaseConnectorList_To_v1_DatabaseConnectorList is an autogenerated conversion function. +func Convert_management_DatabaseConnectorList_To_v1_DatabaseConnectorList(in *management.DatabaseConnectorList, out *DatabaseConnectorList, s conversion.Scope) error { + return autoConvert_management_DatabaseConnectorList_To_v1_DatabaseConnectorList(in, out, s) } -func autoConvert_v1_DevPodSshOptionsList_To_management_DevPodSshOptionsList(in *DevPodSshOptionsList, out *management.DevPodSshOptionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodSshOptions)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_DatabaseConnectorSpec_To_management_DatabaseConnectorSpec(in *DatabaseConnectorSpec, out *management.DatabaseConnectorSpec, s conversion.Scope) error { + out.Type = in.Type + out.DisplayName = in.DisplayName return nil } -// Convert_v1_DevPodSshOptionsList_To_management_DevPodSshOptionsList is an autogenerated conversion function. -func Convert_v1_DevPodSshOptionsList_To_management_DevPodSshOptionsList(in *DevPodSshOptionsList, out *management.DevPodSshOptionsList, s conversion.Scope) error { - return autoConvert_v1_DevPodSshOptionsList_To_management_DevPodSshOptionsList(in, out, s) +// Convert_v1_DatabaseConnectorSpec_To_management_DatabaseConnectorSpec is an autogenerated conversion function. +func Convert_v1_DatabaseConnectorSpec_To_management_DatabaseConnectorSpec(in *DatabaseConnectorSpec, out *management.DatabaseConnectorSpec, s conversion.Scope) error { + return autoConvert_v1_DatabaseConnectorSpec_To_management_DatabaseConnectorSpec(in, out, s) } -func autoConvert_management_DevPodSshOptionsList_To_v1_DevPodSshOptionsList(in *management.DevPodSshOptionsList, out *DevPodSshOptionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodSshOptions)(unsafe.Pointer(&in.Items)) +func autoConvert_management_DatabaseConnectorSpec_To_v1_DatabaseConnectorSpec(in *management.DatabaseConnectorSpec, out *DatabaseConnectorSpec, s conversion.Scope) error { + out.Type = in.Type + out.DisplayName = in.DisplayName return nil } -// Convert_management_DevPodSshOptionsList_To_v1_DevPodSshOptionsList is an autogenerated conversion function. -func Convert_management_DevPodSshOptionsList_To_v1_DevPodSshOptionsList(in *management.DevPodSshOptionsList, out *DevPodSshOptionsList, s conversion.Scope) error { - return autoConvert_management_DevPodSshOptionsList_To_v1_DevPodSshOptionsList(in, out, s) +// Convert_management_DatabaseConnectorSpec_To_v1_DatabaseConnectorSpec is an autogenerated conversion function. +func Convert_management_DatabaseConnectorSpec_To_v1_DatabaseConnectorSpec(in *management.DatabaseConnectorSpec, out *DatabaseConnectorSpec, s conversion.Scope) error { + return autoConvert_management_DatabaseConnectorSpec_To_v1_DatabaseConnectorSpec(in, out, s) } -func autoConvert_v1_DevPodStatusOptions_To_management_DevPodStatusOptions(in *DevPodStatusOptions, out *management.DevPodStatusOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_v1_DatabaseConnectorStatus_To_management_DatabaseConnectorStatus(in *DatabaseConnectorStatus, out *management.DatabaseConnectorStatus, s conversion.Scope) error { return nil } -// Convert_v1_DevPodStatusOptions_To_management_DevPodStatusOptions is an autogenerated conversion function. -func Convert_v1_DevPodStatusOptions_To_management_DevPodStatusOptions(in *DevPodStatusOptions, out *management.DevPodStatusOptions, s conversion.Scope) error { - return autoConvert_v1_DevPodStatusOptions_To_management_DevPodStatusOptions(in, out, s) +// Convert_v1_DatabaseConnectorStatus_To_management_DatabaseConnectorStatus is an autogenerated conversion function. +func Convert_v1_DatabaseConnectorStatus_To_management_DatabaseConnectorStatus(in *DatabaseConnectorStatus, out *management.DatabaseConnectorStatus, s conversion.Scope) error { + return autoConvert_v1_DatabaseConnectorStatus_To_management_DatabaseConnectorStatus(in, out, s) } -func autoConvert_management_DevPodStatusOptions_To_v1_DevPodStatusOptions(in *management.DevPodStatusOptions, out *DevPodStatusOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_management_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(in *management.DatabaseConnectorStatus, out *DatabaseConnectorStatus, s conversion.Scope) error { return nil } -// Convert_management_DevPodStatusOptions_To_v1_DevPodStatusOptions is an autogenerated conversion function. -func Convert_management_DevPodStatusOptions_To_v1_DevPodStatusOptions(in *management.DevPodStatusOptions, out *DevPodStatusOptions, s conversion.Scope) error { - return autoConvert_management_DevPodStatusOptions_To_v1_DevPodStatusOptions(in, out, s) +// Convert_management_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus is an autogenerated conversion function. +func Convert_management_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(in *management.DatabaseConnectorStatus, out *DatabaseConnectorStatus, s conversion.Scope) error { + return autoConvert_management_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(in, out, s) } -func autoConvert_url_Values_To_v1_DevPodStatusOptions(in *url.Values, out *DevPodStatusOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. +func autoConvert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in *DevPodEnvironmentTemplate, out *management.DevPodEnvironmentTemplate, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} - if values, ok := map[string][]string(*in)["options"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.Options, s); err != nil { - return err - } - } else { - out.Options = "" +// 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) +} + +func autoConvert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(in *management.DevPodEnvironmentTemplate, out *DevPodEnvironmentTemplate, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(&in.Status, &out.Status, s); err != nil { + return err } return nil } -// Convert_url_Values_To_v1_DevPodStatusOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodStatusOptions(in *url.Values, out *DevPodStatusOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodStatusOptions(in, out, s) +// 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) } -func autoConvert_v1_DevPodStatusOptionsList_To_management_DevPodStatusOptionsList(in *DevPodStatusOptionsList, out *management.DevPodStatusOptionsList, s conversion.Scope) error { +func autoConvert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(in *DevPodEnvironmentTemplateList, out *management.DevPodEnvironmentTemplateList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodStatusOptions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevPodEnvironmentTemplate)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodStatusOptionsList_To_management_DevPodStatusOptionsList is an autogenerated conversion function. -func Convert_v1_DevPodStatusOptionsList_To_management_DevPodStatusOptionsList(in *DevPodStatusOptionsList, out *management.DevPodStatusOptionsList, s conversion.Scope) error { - return autoConvert_v1_DevPodStatusOptionsList_To_management_DevPodStatusOptionsList(in, out, s) +// 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) } -func autoConvert_management_DevPodStatusOptionsList_To_v1_DevPodStatusOptionsList(in *management.DevPodStatusOptionsList, out *DevPodStatusOptionsList, s conversion.Scope) error { +func autoConvert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(in *management.DevPodEnvironmentTemplateList, out *DevPodEnvironmentTemplateList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodStatusOptions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevPodEnvironmentTemplate)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodStatusOptionsList_To_v1_DevPodStatusOptionsList is an autogenerated conversion function. -func Convert_management_DevPodStatusOptionsList_To_v1_DevPodStatusOptionsList(in *management.DevPodStatusOptionsList, out *DevPodStatusOptionsList, s conversion.Scope) error { - return autoConvert_management_DevPodStatusOptionsList_To_v1_DevPodStatusOptionsList(in, out, s) +// 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) } -func autoConvert_v1_DevPodStopOptions_To_management_DevPodStopOptions(in *DevPodStopOptions, out *management.DevPodStopOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(in *DevPodEnvironmentTemplateSpec, out *management.DevPodEnvironmentTemplateSpec, s conversion.Scope) error { + out.DevPodEnvironmentTemplateSpec = in.DevPodEnvironmentTemplateSpec return nil } -// Convert_v1_DevPodStopOptions_To_management_DevPodStopOptions is an autogenerated conversion function. -func Convert_v1_DevPodStopOptions_To_management_DevPodStopOptions(in *DevPodStopOptions, out *management.DevPodStopOptions, s conversion.Scope) error { - return autoConvert_v1_DevPodStopOptions_To_management_DevPodStopOptions(in, out, s) +// 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) } -func autoConvert_management_DevPodStopOptions_To_v1_DevPodStopOptions(in *management.DevPodStopOptions, out *DevPodStopOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(in *management.DevPodEnvironmentTemplateSpec, out *DevPodEnvironmentTemplateSpec, s conversion.Scope) error { + out.DevPodEnvironmentTemplateSpec = in.DevPodEnvironmentTemplateSpec + 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) +} + +func autoConvert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(in *DevPodEnvironmentTemplateStatus, out *management.DevPodEnvironmentTemplateStatus, 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) +} + +func autoConvert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(in *management.DevPodEnvironmentTemplateStatus, out *DevPodEnvironmentTemplateStatus, 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) +} + +func autoConvert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance, out *management.DevPodWorkspaceInstance, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(&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) +} + +func autoConvert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in *management.DevPodWorkspaceInstance, out *DevPodWorkspaceInstance, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(&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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(in *DevPodWorkspaceInstanceCancel, out *management.DevPodWorkspaceInstanceCancel, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.TaskID = in.TaskID return nil } -// Convert_management_DevPodStopOptions_To_v1_DevPodStopOptions is an autogenerated conversion function. -func Convert_management_DevPodStopOptions_To_v1_DevPodStopOptions(in *management.DevPodStopOptions, out *DevPodStopOptions, s conversion.Scope) error { - return autoConvert_management_DevPodStopOptions_To_v1_DevPodStopOptions(in, out, s) +// 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) } -func autoConvert_url_Values_To_v1_DevPodStopOptions(in *url.Values, out *DevPodStopOptions, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(in *management.DevPodWorkspaceInstanceCancel, out *DevPodWorkspaceInstanceCancel, 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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(in *DevPodWorkspaceInstanceCancelList, out *management.DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DevPodWorkspaceInstanceCancel)(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) +} + +func autoConvert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(in *management.DevPodWorkspaceInstanceCancelList, out *DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DevPodWorkspaceInstanceCancel)(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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(in *DevPodWorkspaceInstanceDownload, out *management.DevPodWorkspaceInstanceDownload, 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) +} + +func autoConvert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(in *management.DevPodWorkspaceInstanceDownload, out *DevPodWorkspaceInstanceDownload, 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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(in *DevPodWorkspaceInstanceDownloadList, out *management.DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DevPodWorkspaceInstanceDownload)(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) +} + +func autoConvert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(in *management.DevPodWorkspaceInstanceDownloadList, out *DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DevPodWorkspaceInstanceDownload)(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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(in *DevPodWorkspaceInstanceDownloadOptions, out *management.DevPodWorkspaceInstanceDownloadOptions, 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) +} + +func autoConvert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *management.DevPodWorkspaceInstanceDownloadOptions, out *DevPodWorkspaceInstanceDownloadOptions, 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) +} + +func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *url.Values, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { // WARNING: Field TypeMeta does not have json tag, skipping. - if values, ok := map[string][]string(*in)["options"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.Options, s); err != nil { + if values, ok := map[string][]string(*in)["path"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Path, s); err != nil { return err } } else { - out.Options = "" + out.Path = "" } return nil } -// Convert_url_Values_To_v1_DevPodStopOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodStopOptions(in *url.Values, out *DevPodStopOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodStopOptions(in, out, s) +// 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) } -func autoConvert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList(in *DevPodStopOptionsList, out *management.DevPodStopOptionsList, s conversion.Scope) error { +func autoConvert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList, out *management.DevPodWorkspaceInstanceList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodStopOptions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevPodWorkspaceInstance)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList is an autogenerated conversion function. -func Convert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList(in *DevPodStopOptionsList, out *management.DevPodStopOptionsList, s conversion.Scope) error { - return autoConvert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList(in, out, s) +// 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) } -func autoConvert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList(in *management.DevPodStopOptionsList, out *DevPodStopOptionsList, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(in *management.DevPodWorkspaceInstanceList, out *DevPodWorkspaceInstanceList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodStopOptions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevPodWorkspaceInstance)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList is an autogenerated conversion function. -func Convert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList(in *management.DevPodStopOptionsList, out *DevPodStopOptionsList, s conversion.Scope) error { - return autoConvert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList(in, out, s) +// 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) } -func autoConvert_v1_DevPodUpOptions_To_management_DevPodUpOptions(in *DevPodUpOptions, out *management.DevPodUpOptions, s conversion.Scope) error { - out.WebMode = in.WebMode - out.CLIMode = in.CLIMode - out.Debug = in.Debug - out.Options = in.Options +func autoConvert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(in *DevPodWorkspaceInstanceLog, out *management.DevPodWorkspaceInstanceLog, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta return nil } -// Convert_v1_DevPodUpOptions_To_management_DevPodUpOptions is an autogenerated conversion function. -func Convert_v1_DevPodUpOptions_To_management_DevPodUpOptions(in *DevPodUpOptions, out *management.DevPodUpOptions, s conversion.Scope) error { - return autoConvert_v1_DevPodUpOptions_To_management_DevPodUpOptions(in, out, s) +// 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) } -func autoConvert_management_DevPodUpOptions_To_v1_DevPodUpOptions(in *management.DevPodUpOptions, out *DevPodUpOptions, s conversion.Scope) error { - out.WebMode = in.WebMode - out.CLIMode = in.CLIMode - out.Debug = in.Debug - out.Options = in.Options +func autoConvert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(in *management.DevPodWorkspaceInstanceLog, out *DevPodWorkspaceInstanceLog, 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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(in *DevPodWorkspaceInstanceLogList, out *management.DevPodWorkspaceInstanceLogList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DevPodWorkspaceInstanceLog)(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) +} + +func autoConvert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(in *management.DevPodWorkspaceInstanceLogList, out *DevPodWorkspaceInstanceLogList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DevPodWorkspaceInstanceLog)(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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(in *DevPodWorkspaceInstanceLogOptions, out *management.DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { + out.TaskID = in.TaskID + out.Follow = in.Follow return nil } -// Convert_management_DevPodUpOptions_To_v1_DevPodUpOptions is an autogenerated conversion function. -func Convert_management_DevPodUpOptions_To_v1_DevPodUpOptions(in *management.DevPodUpOptions, out *DevPodUpOptions, s conversion.Scope) error { - return autoConvert_management_DevPodUpOptions_To_v1_DevPodUpOptions(in, out, s) +// 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) } -func autoConvert_url_Values_To_v1_DevPodUpOptions(in *url.Values, out *DevPodUpOptions, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(in *management.DevPodWorkspaceInstanceLogOptions, out *DevPodWorkspaceInstanceLogOptions, 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) +} + +func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in *url.Values, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { // WARNING: Field TypeMeta does not have json tag, skipping. - if values, ok := map[string][]string(*in)["webMode"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.WebMode, s); err != nil { + if values, ok := map[string][]string(*in)["taskID"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.TaskID, s); err != nil { return err } } else { - out.WebMode = false + out.TaskID = "" } - if values, ok := map[string][]string(*in)["cliMode"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.CLIMode, s); err != nil { + if values, ok := map[string][]string(*in)["follow"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_bool(&values, &out.Follow, s); err != nil { return err } } else { - out.CLIMode = false + out.Follow = false } - if values, ok := map[string][]string(*in)["debug"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.Debug, s); err != nil { - return err - } - } else { - out.Debug = false + 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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in *DevPodWorkspaceInstanceSpec, out *management.DevPodWorkspaceInstanceSpec, s conversion.Scope) error { + out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec + 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) +} + +func autoConvert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { + out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec + 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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in *DevPodWorkspaceInstanceStatus, out *management.DevPodWorkspaceInstanceStatus, s conversion.Scope) error { + out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus + 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) +} + +func autoConvert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in *management.DevPodWorkspaceInstanceStatus, out *DevPodWorkspaceInstanceStatus, s conversion.Scope) error { + out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus + 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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(in *DevPodWorkspaceInstanceStop, out *management.DevPodWorkspaceInstanceStop, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(&in.Spec, &out.Spec, s); err != nil { + return err } - if values, ok := map[string][]string(*in)["options"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.Options, s); err != nil { + if err := Convert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(&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) +} + +func autoConvert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(in *management.DevPodWorkspaceInstanceStop, out *DevPodWorkspaceInstanceStop, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(&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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(in *DevPodWorkspaceInstanceStopList, out *management.DevPodWorkspaceInstanceStopList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DevPodWorkspaceInstanceStop)(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) +} + +func autoConvert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(in *management.DevPodWorkspaceInstanceStopList, out *DevPodWorkspaceInstanceStopList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DevPodWorkspaceInstanceStop)(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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(in *DevPodWorkspaceInstanceStopSpec, out *management.DevPodWorkspaceInstanceStopSpec, 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) +} + +func autoConvert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(in *management.DevPodWorkspaceInstanceStopSpec, out *DevPodWorkspaceInstanceStopSpec, 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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(in *DevPodWorkspaceInstanceStopStatus, out *management.DevPodWorkspaceInstanceStopStatus, 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) +} + +func autoConvert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(in *management.DevPodWorkspaceInstanceStopStatus, out *DevPodWorkspaceInstanceStopStatus, 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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(in *DevPodWorkspaceInstanceTask, out *management.DevPodWorkspaceInstanceTask, s conversion.Scope) error { + out.ID = in.ID + out.Type = in.Type + out.Status = in.Status + out.Result = *(*[]byte)(unsafe.Pointer(&in.Result)) + out.Logs = *(*[]byte)(unsafe.Pointer(&in.Logs)) + out.CreatedAt = in.CreatedAt + 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) +} + +func autoConvert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(in *management.DevPodWorkspaceInstanceTask, out *DevPodWorkspaceInstanceTask, s conversion.Scope) error { + out.ID = in.ID + out.Type = in.Type + out.Status = in.Status + out.Result = *(*[]byte)(unsafe.Pointer(&in.Result)) + out.Logs = *(*[]byte)(unsafe.Pointer(&in.Logs)) + out.CreatedAt = in.CreatedAt + 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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(in *DevPodWorkspaceInstanceTasks, out *management.DevPodWorkspaceInstanceTasks, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Tasks = *(*[]management.DevPodWorkspaceInstanceTask)(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) +} + +func autoConvert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(in *management.DevPodWorkspaceInstanceTasks, out *DevPodWorkspaceInstanceTasks, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Tasks = *(*[]DevPodWorkspaceInstanceTask)(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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(in *DevPodWorkspaceInstanceTasksList, out *management.DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DevPodWorkspaceInstanceTasks)(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) +} + +func autoConvert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(in *management.DevPodWorkspaceInstanceTasksList, out *DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DevPodWorkspaceInstanceTasks)(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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(in *DevPodWorkspaceInstanceTasksOptions, out *management.DevPodWorkspaceInstanceTasksOptions, 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) +} + +func autoConvert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(in *management.DevPodWorkspaceInstanceTasksOptions, out *DevPodWorkspaceInstanceTasksOptions, 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) +} + +func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(in *url.Values, out *DevPodWorkspaceInstanceTasksOptions, 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 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.TaskID, s); err != nil { return err } } else { - out.Options = "" + out.TaskID = "" } return nil } -// Convert_url_Values_To_v1_DevPodUpOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodUpOptions(in *url.Values, out *DevPodUpOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodUpOptions(in, out, s) +// 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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot, out *management.DevPodWorkspaceInstanceTroubleshoot, 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.Pods = *(*[]corev1.Pod)(unsafe.Pointer(&in.Pods)) + out.PVCs = *(*[]corev1.PersistentVolumeClaim)(unsafe.Pointer(&in.PVCs)) + out.Netmaps = *(*[]string)(unsafe.Pointer(&in.Netmaps)) + out.Errors = *(*[]string)(unsafe.Pointer(&in.Errors)) + 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) } -func autoConvert_v1_DevPodUpOptionsList_To_management_DevPodUpOptionsList(in *DevPodUpOptionsList, out *management.DevPodUpOptionsList, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(in *management.DevPodWorkspaceInstanceTroubleshoot, out *DevPodWorkspaceInstanceTroubleshoot, 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.Pods = *(*[]corev1.Pod)(unsafe.Pointer(&in.Pods)) + out.PVCs = *(*[]corev1.PersistentVolumeClaim)(unsafe.Pointer(&in.PVCs)) + out.Netmaps = *(*[]string)(unsafe.Pointer(&in.Netmaps)) + out.Errors = *(*[]string)(unsafe.Pointer(&in.Errors)) + 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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList, out *management.DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodUpOptions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevPodWorkspaceInstanceTroubleshoot)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodUpOptionsList_To_management_DevPodUpOptionsList is an autogenerated conversion function. -func Convert_v1_DevPodUpOptionsList_To_management_DevPodUpOptionsList(in *DevPodUpOptionsList, out *management.DevPodUpOptionsList, s conversion.Scope) error { - return autoConvert_v1_DevPodUpOptionsList_To_management_DevPodUpOptionsList(in, out, s) +// 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) } -func autoConvert_management_DevPodUpOptionsList_To_v1_DevPodUpOptionsList(in *management.DevPodUpOptionsList, out *DevPodUpOptionsList, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(in *management.DevPodWorkspaceInstanceTroubleshootList, out *DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodUpOptions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevPodWorkspaceInstanceTroubleshoot)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodUpOptionsList_To_v1_DevPodUpOptionsList is an autogenerated conversion function. -func Convert_management_DevPodUpOptionsList_To_v1_DevPodUpOptionsList(in *management.DevPodUpOptionsList, out *DevPodUpOptionsList, s conversion.Scope) error { - return autoConvert_management_DevPodUpOptionsList_To_v1_DevPodUpOptionsList(in, out, s) +// 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) } -func autoConvert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance, out *management.DevPodWorkspaceInstance, s conversion.Scope) error { +func autoConvert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(in *DevPodWorkspaceInstanceUp, out *management.DevPodWorkspaceInstanceUp, 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_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(&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_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(&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_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) } -func autoConvert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in *management.DevPodWorkspaceInstance, out *DevPodWorkspaceInstance, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(in *management.DevPodWorkspaceInstanceUp, out *DevPodWorkspaceInstanceUp, 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_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(&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_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(&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_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) } -func autoConvert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList, out *management.DevPodWorkspaceInstanceList, s conversion.Scope) error { +func autoConvert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(in *DevPodWorkspaceInstanceUpList, out *management.DevPodWorkspaceInstanceUpList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstance)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevPodWorkspaceInstanceUp)(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_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) } -func autoConvert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(in *management.DevPodWorkspaceInstanceList, out *DevPodWorkspaceInstanceList, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(in *management.DevPodWorkspaceInstanceUpList, out *DevPodWorkspaceInstanceUpList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstance)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevPodWorkspaceInstanceUp)(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_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) } -func autoConvert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in *DevPodWorkspaceInstanceSpec, out *management.DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec +func autoConvert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(in *DevPodWorkspaceInstanceUpSpec, out *management.DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { + out.Debug = in.Debug + out.Options = in.Options 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_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) } -func autoConvert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec +func autoConvert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(in *management.DevPodWorkspaceInstanceUpSpec, out *DevPodWorkspaceInstanceUpSpec, 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) +} + +func autoConvert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(in *DevPodWorkspaceInstanceUpStatus, out *management.DevPodWorkspaceInstanceUpStatus, 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) +} + +func autoConvert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(in *management.DevPodWorkspaceInstanceUpStatus, out *DevPodWorkspaceInstanceUpStatus, 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) +} + +func autoConvert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(in *DevPodWorkspacePreset, out *management.DevPodWorkspacePreset, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(&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) +} + +func autoConvert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(in *management.DevPodWorkspacePreset, out *DevPodWorkspacePreset, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_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) } -func autoConvert_v1_DevPodWorkspaceInstanceState_To_management_DevPodWorkspaceInstanceState(in *DevPodWorkspaceInstanceState, out *management.DevPodWorkspaceInstanceState, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.State = in.State +func autoConvert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(in *DevPodWorkspacePresetList, out *management.DevPodWorkspacePresetList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DevPodWorkspacePreset)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceInstanceState_To_management_DevPodWorkspaceInstanceState is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceState_To_management_DevPodWorkspaceInstanceState(in *DevPodWorkspaceInstanceState, out *management.DevPodWorkspaceInstanceState, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceState_To_management_DevPodWorkspaceInstanceState(in, out, s) +// 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) } -func autoConvert_management_DevPodWorkspaceInstanceState_To_v1_DevPodWorkspaceInstanceState(in *management.DevPodWorkspaceInstanceState, out *DevPodWorkspaceInstanceState, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.State = in.State +func autoConvert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(in *management.DevPodWorkspacePresetList, out *DevPodWorkspacePresetList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DevPodWorkspacePreset)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspaceInstanceState_To_v1_DevPodWorkspaceInstanceState is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceState_To_v1_DevPodWorkspaceInstanceState(in *management.DevPodWorkspaceInstanceState, out *DevPodWorkspaceInstanceState, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceState_To_v1_DevPodWorkspaceInstanceState(in, out, s) +// 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) } -func autoConvert_v1_DevPodWorkspaceInstanceStateList_To_management_DevPodWorkspaceInstanceStateList(in *DevPodWorkspaceInstanceStateList, out *management.DevPodWorkspaceInstanceStateList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceState)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(in *DevPodWorkspacePresetSpec, out *management.DevPodWorkspacePresetSpec, s conversion.Scope) error { + out.DevPodWorkspacePresetSpec = in.DevPodWorkspacePresetSpec return nil } -// Convert_v1_DevPodWorkspaceInstanceStateList_To_management_DevPodWorkspaceInstanceStateList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStateList_To_management_DevPodWorkspaceInstanceStateList(in *DevPodWorkspaceInstanceStateList, out *management.DevPodWorkspaceInstanceStateList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStateList_To_management_DevPodWorkspaceInstanceStateList(in, out, s) +// 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) } -func autoConvert_management_DevPodWorkspaceInstanceStateList_To_v1_DevPodWorkspaceInstanceStateList(in *management.DevPodWorkspaceInstanceStateList, out *DevPodWorkspaceInstanceStateList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceState)(unsafe.Pointer(&in.Items)) +func autoConvert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(in *management.DevPodWorkspacePresetSpec, out *DevPodWorkspacePresetSpec, s conversion.Scope) error { + out.DevPodWorkspacePresetSpec = in.DevPodWorkspacePresetSpec return nil } -// Convert_management_DevPodWorkspaceInstanceStateList_To_v1_DevPodWorkspaceInstanceStateList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceStateList_To_v1_DevPodWorkspaceInstanceStateList(in *management.DevPodWorkspaceInstanceStateList, out *DevPodWorkspaceInstanceStateList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceStateList_To_v1_DevPodWorkspaceInstanceStateList(in, out, s) +// 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) } -func autoConvert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in *DevPodWorkspaceInstanceStatus, out *management.DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus - out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) +func autoConvert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(in *DevPodWorkspacePresetStatus, out *management.DevPodWorkspacePresetStatus, s conversion.Scope) error { 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_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) } -func autoConvert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in *management.DevPodWorkspaceInstanceStatus, out *DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus - out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) +func autoConvert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(in *management.DevPodWorkspacePresetStatus, out *DevPodWorkspacePresetStatus, s conversion.Scope) error { 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_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) } func autoConvert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate, out *management.DevPodWorkspaceTemplate, s conversion.Scope) error { @@ -5865,6 +6972,30 @@ func Convert_management_GroupResources_To_v1_GroupResources(in *management.Group return autoConvert_management_GroupResources_To_v1_GroupResources(in, out, s) } +func autoConvert_v1_ImageBuilder_To_management_ImageBuilder(in *ImageBuilder, out *management.ImageBuilder, s conversion.Scope) error { + out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) + out.Replicas = (*int32)(unsafe.Pointer(in.Replicas)) + out.Resources = (*corev1.ResourceRequirements)(unsafe.Pointer(in.Resources)) + return nil +} + +// Convert_v1_ImageBuilder_To_management_ImageBuilder is an autogenerated conversion function. +func Convert_v1_ImageBuilder_To_management_ImageBuilder(in *ImageBuilder, out *management.ImageBuilder, s conversion.Scope) error { + return autoConvert_v1_ImageBuilder_To_management_ImageBuilder(in, out, s) +} + +func autoConvert_management_ImageBuilder_To_v1_ImageBuilder(in *management.ImageBuilder, out *ImageBuilder, s conversion.Scope) error { + out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) + out.Replicas = (*int32)(unsafe.Pointer(in.Replicas)) + out.Resources = (*corev1.ResourceRequirements)(unsafe.Pointer(in.Resources)) + return nil +} + +// Convert_management_ImageBuilder_To_v1_ImageBuilder is an autogenerated conversion function. +func Convert_management_ImageBuilder_To_v1_ImageBuilder(in *management.ImageBuilder, out *ImageBuilder, s conversion.Scope) error { + return autoConvert_management_ImageBuilder_To_v1_ImageBuilder(in, out, s) +} + func autoConvert_v1_IngressAuthToken_To_management_IngressAuthToken(in *IngressAuthToken, out *management.IngressAuthToken, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec(&in.Spec, &out.Spec, s); err != nil { @@ -6374,79 +7505,413 @@ func autoConvert_management_LoftUpgrade_To_v1_LoftUpgrade(in *management.LoftUpg if err := Convert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_LoftUpgrade_To_v1_LoftUpgrade is an autogenerated conversion function. +func Convert_management_LoftUpgrade_To_v1_LoftUpgrade(in *management.LoftUpgrade, out *LoftUpgrade, s conversion.Scope) error { + return autoConvert_management_LoftUpgrade_To_v1_LoftUpgrade(in, out, s) +} + +func autoConvert_v1_LoftUpgradeList_To_management_LoftUpgradeList(in *LoftUpgradeList, out *management.LoftUpgradeList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.LoftUpgrade)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_LoftUpgradeList_To_management_LoftUpgradeList is an autogenerated conversion function. +func Convert_v1_LoftUpgradeList_To_management_LoftUpgradeList(in *LoftUpgradeList, out *management.LoftUpgradeList, s conversion.Scope) error { + return autoConvert_v1_LoftUpgradeList_To_management_LoftUpgradeList(in, out, s) +} + +func autoConvert_management_LoftUpgradeList_To_v1_LoftUpgradeList(in *management.LoftUpgradeList, out *LoftUpgradeList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]LoftUpgrade)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_LoftUpgradeList_To_v1_LoftUpgradeList is an autogenerated conversion function. +func Convert_management_LoftUpgradeList_To_v1_LoftUpgradeList(in *management.LoftUpgradeList, out *LoftUpgradeList, s conversion.Scope) error { + return autoConvert_management_LoftUpgradeList_To_v1_LoftUpgradeList(in, out, s) +} + +func autoConvert_v1_LoftUpgradeSpec_To_management_LoftUpgradeSpec(in *LoftUpgradeSpec, out *management.LoftUpgradeSpec, s conversion.Scope) error { + out.Namespace = in.Namespace + out.Release = in.Release + out.Version = in.Version + return nil +} + +// Convert_v1_LoftUpgradeSpec_To_management_LoftUpgradeSpec is an autogenerated conversion function. +func Convert_v1_LoftUpgradeSpec_To_management_LoftUpgradeSpec(in *LoftUpgradeSpec, out *management.LoftUpgradeSpec, s conversion.Scope) error { + return autoConvert_v1_LoftUpgradeSpec_To_management_LoftUpgradeSpec(in, out, s) +} + +func autoConvert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(in *management.LoftUpgradeSpec, out *LoftUpgradeSpec, s conversion.Scope) error { + out.Namespace = in.Namespace + out.Release = in.Release + out.Version = in.Version + return nil +} + +// Convert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec is an autogenerated conversion function. +func Convert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(in *management.LoftUpgradeSpec, out *LoftUpgradeSpec, s conversion.Scope) error { + return autoConvert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(in, out, s) +} + +func autoConvert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in *LoftUpgradeStatus, out *management.LoftUpgradeStatus, s conversion.Scope) error { + return nil +} + +// Convert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus is an autogenerated conversion function. +func Convert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in *LoftUpgradeStatus, out *management.LoftUpgradeStatus, s conversion.Scope) error { + return autoConvert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in, out, s) +} + +func autoConvert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in *management.LoftUpgradeStatus, out *LoftUpgradeStatus, s conversion.Scope) error { + return nil +} + +// Convert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus is an autogenerated conversion function. +func Convert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in *management.LoftUpgradeStatus, out *LoftUpgradeStatus, s conversion.Scope) error { + return autoConvert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(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 + return nil +} + +// Convert_v1_MaintenanceWindow_To_management_MaintenanceWindow is an autogenerated conversion function. +func Convert_v1_MaintenanceWindow_To_management_MaintenanceWindow(in *MaintenanceWindow, out *management.MaintenanceWindow, s conversion.Scope) error { + return autoConvert_v1_MaintenanceWindow_To_management_MaintenanceWindow(in, out, s) +} + +func autoConvert_management_MaintenanceWindow_To_v1_MaintenanceWindow(in *management.MaintenanceWindow, out *MaintenanceWindow, s conversion.Scope) error { + out.DayOfWeek = in.DayOfWeek + out.TimeWindow = in.TimeWindow + return nil +} + +// Convert_management_MaintenanceWindow_To_v1_MaintenanceWindow is an autogenerated conversion function. +func Convert_management_MaintenanceWindow_To_v1_MaintenanceWindow(in *management.MaintenanceWindow, out *MaintenanceWindow, s conversion.Scope) error { + return autoConvert_management_MaintenanceWindow_To_v1_MaintenanceWindow(in, out, s) +} + +func autoConvert_v1_ManagementRole_To_management_ManagementRole(in *ManagementRole, out *management.ManagementRole, s conversion.Scope) error { + if err := Convert_v1_ObjectName_To_management_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_v1_ManagementRole_To_management_ManagementRole is an autogenerated conversion function. +func Convert_v1_ManagementRole_To_management_ManagementRole(in *ManagementRole, out *management.ManagementRole, s conversion.Scope) error { + return autoConvert_v1_ManagementRole_To_management_ManagementRole(in, out, s) +} + +func autoConvert_management_ManagementRole_To_v1_ManagementRole(in *management.ManagementRole, out *ManagementRole, s conversion.Scope) error { + if err := Convert_management_ObjectName_To_v1_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_management_ManagementRole_To_v1_ManagementRole is an autogenerated conversion function. +func Convert_management_ManagementRole_To_v1_ManagementRole(in *management.ManagementRole, out *ManagementRole, s conversion.Scope) error { + return autoConvert_management_ManagementRole_To_v1_ManagementRole(in, out, s) +} + +func autoConvert_v1_NodeClaim_To_management_NodeClaim(in *NodeClaim, out *management.NodeClaim, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_NodeClaimSpec_To_management_NodeClaimSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_NodeClaimStatus_To_management_NodeClaimStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_NodeClaim_To_management_NodeClaim is an autogenerated conversion function. +func Convert_v1_NodeClaim_To_management_NodeClaim(in *NodeClaim, out *management.NodeClaim, s conversion.Scope) error { + return autoConvert_v1_NodeClaim_To_management_NodeClaim(in, out, s) +} + +func autoConvert_management_NodeClaim_To_v1_NodeClaim(in *management.NodeClaim, out *NodeClaim, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_NodeClaimSpec_To_v1_NodeClaimSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_NodeClaimStatus_To_v1_NodeClaimStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_NodeClaim_To_v1_NodeClaim is an autogenerated conversion function. +func Convert_management_NodeClaim_To_v1_NodeClaim(in *management.NodeClaim, out *NodeClaim, s conversion.Scope) error { + return autoConvert_management_NodeClaim_To_v1_NodeClaim(in, out, s) +} + +func autoConvert_v1_NodeClaimList_To_management_NodeClaimList(in *NodeClaimList, out *management.NodeClaimList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.NodeClaim)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_NodeClaimList_To_management_NodeClaimList is an autogenerated conversion function. +func Convert_v1_NodeClaimList_To_management_NodeClaimList(in *NodeClaimList, out *management.NodeClaimList, s conversion.Scope) error { + return autoConvert_v1_NodeClaimList_To_management_NodeClaimList(in, out, s) +} + +func autoConvert_management_NodeClaimList_To_v1_NodeClaimList(in *management.NodeClaimList, out *NodeClaimList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]NodeClaim)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_NodeClaimList_To_v1_NodeClaimList is an autogenerated conversion function. +func Convert_management_NodeClaimList_To_v1_NodeClaimList(in *management.NodeClaimList, out *NodeClaimList, s conversion.Scope) error { + return autoConvert_management_NodeClaimList_To_v1_NodeClaimList(in, out, s) +} + +func autoConvert_v1_NodeClaimSpec_To_management_NodeClaimSpec(in *NodeClaimSpec, out *management.NodeClaimSpec, s conversion.Scope) error { + out.NodeClaimSpec = in.NodeClaimSpec + return nil +} + +// Convert_v1_NodeClaimSpec_To_management_NodeClaimSpec is an autogenerated conversion function. +func Convert_v1_NodeClaimSpec_To_management_NodeClaimSpec(in *NodeClaimSpec, out *management.NodeClaimSpec, s conversion.Scope) error { + return autoConvert_v1_NodeClaimSpec_To_management_NodeClaimSpec(in, out, s) +} + +func autoConvert_management_NodeClaimSpec_To_v1_NodeClaimSpec(in *management.NodeClaimSpec, out *NodeClaimSpec, s conversion.Scope) error { + out.NodeClaimSpec = in.NodeClaimSpec + return nil +} + +// Convert_management_NodeClaimSpec_To_v1_NodeClaimSpec is an autogenerated conversion function. +func Convert_management_NodeClaimSpec_To_v1_NodeClaimSpec(in *management.NodeClaimSpec, out *NodeClaimSpec, s conversion.Scope) error { + return autoConvert_management_NodeClaimSpec_To_v1_NodeClaimSpec(in, out, s) +} + +func autoConvert_v1_NodeClaimStatus_To_management_NodeClaimStatus(in *NodeClaimStatus, out *management.NodeClaimStatus, s conversion.Scope) error { + out.NodeClaimStatus = in.NodeClaimStatus + return nil +} + +// Convert_v1_NodeClaimStatus_To_management_NodeClaimStatus is an autogenerated conversion function. +func Convert_v1_NodeClaimStatus_To_management_NodeClaimStatus(in *NodeClaimStatus, out *management.NodeClaimStatus, s conversion.Scope) error { + return autoConvert_v1_NodeClaimStatus_To_management_NodeClaimStatus(in, out, s) +} + +func autoConvert_management_NodeClaimStatus_To_v1_NodeClaimStatus(in *management.NodeClaimStatus, out *NodeClaimStatus, s conversion.Scope) error { + out.NodeClaimStatus = in.NodeClaimStatus + return nil +} + +// Convert_management_NodeClaimStatus_To_v1_NodeClaimStatus is an autogenerated conversion function. +func Convert_management_NodeClaimStatus_To_v1_NodeClaimStatus(in *management.NodeClaimStatus, out *NodeClaimStatus, s conversion.Scope) error { + return autoConvert_management_NodeClaimStatus_To_v1_NodeClaimStatus(in, out, s) +} + +func autoConvert_v1_NodeProvider_To_management_NodeProvider(in *NodeProvider, out *management.NodeProvider, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_NodeProviderSpec_To_management_NodeProviderSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_NodeProviderStatus_To_management_NodeProviderStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_NodeProvider_To_management_NodeProvider is an autogenerated conversion function. +func Convert_v1_NodeProvider_To_management_NodeProvider(in *NodeProvider, out *management.NodeProvider, s conversion.Scope) error { + return autoConvert_v1_NodeProvider_To_management_NodeProvider(in, out, s) +} + +func autoConvert_management_NodeProvider_To_v1_NodeProvider(in *management.NodeProvider, out *NodeProvider, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_NodeProviderSpec_To_v1_NodeProviderSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_NodeProviderStatus_To_v1_NodeProviderStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_NodeProvider_To_v1_NodeProvider is an autogenerated conversion function. +func Convert_management_NodeProvider_To_v1_NodeProvider(in *management.NodeProvider, out *NodeProvider, s conversion.Scope) error { + return autoConvert_management_NodeProvider_To_v1_NodeProvider(in, out, s) +} + +func autoConvert_v1_NodeProviderList_To_management_NodeProviderList(in *NodeProviderList, out *management.NodeProviderList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.NodeProvider)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_NodeProviderList_To_management_NodeProviderList is an autogenerated conversion function. +func Convert_v1_NodeProviderList_To_management_NodeProviderList(in *NodeProviderList, out *management.NodeProviderList, s conversion.Scope) error { + return autoConvert_v1_NodeProviderList_To_management_NodeProviderList(in, out, s) +} + +func autoConvert_management_NodeProviderList_To_v1_NodeProviderList(in *management.NodeProviderList, out *NodeProviderList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]NodeProvider)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_NodeProviderList_To_v1_NodeProviderList is an autogenerated conversion function. +func Convert_management_NodeProviderList_To_v1_NodeProviderList(in *management.NodeProviderList, out *NodeProviderList, s conversion.Scope) error { + return autoConvert_management_NodeProviderList_To_v1_NodeProviderList(in, out, s) +} + +func autoConvert_v1_NodeProviderSpec_To_management_NodeProviderSpec(in *NodeProviderSpec, out *management.NodeProviderSpec, s conversion.Scope) error { + out.NodeProviderSpec = in.NodeProviderSpec + return nil +} + +// Convert_v1_NodeProviderSpec_To_management_NodeProviderSpec is an autogenerated conversion function. +func Convert_v1_NodeProviderSpec_To_management_NodeProviderSpec(in *NodeProviderSpec, out *management.NodeProviderSpec, s conversion.Scope) error { + return autoConvert_v1_NodeProviderSpec_To_management_NodeProviderSpec(in, out, s) +} + +func autoConvert_management_NodeProviderSpec_To_v1_NodeProviderSpec(in *management.NodeProviderSpec, out *NodeProviderSpec, s conversion.Scope) error { + out.NodeProviderSpec = in.NodeProviderSpec + return nil +} + +// Convert_management_NodeProviderSpec_To_v1_NodeProviderSpec is an autogenerated conversion function. +func Convert_management_NodeProviderSpec_To_v1_NodeProviderSpec(in *management.NodeProviderSpec, out *NodeProviderSpec, s conversion.Scope) error { + return autoConvert_management_NodeProviderSpec_To_v1_NodeProviderSpec(in, out, s) +} + +func autoConvert_v1_NodeProviderStatus_To_management_NodeProviderStatus(in *NodeProviderStatus, out *management.NodeProviderStatus, s conversion.Scope) error { + out.NodeProviderStatus = in.NodeProviderStatus + return nil +} + +// Convert_v1_NodeProviderStatus_To_management_NodeProviderStatus is an autogenerated conversion function. +func Convert_v1_NodeProviderStatus_To_management_NodeProviderStatus(in *NodeProviderStatus, out *management.NodeProviderStatus, s conversion.Scope) error { + return autoConvert_v1_NodeProviderStatus_To_management_NodeProviderStatus(in, out, s) +} + +func autoConvert_management_NodeProviderStatus_To_v1_NodeProviderStatus(in *management.NodeProviderStatus, out *NodeProviderStatus, s conversion.Scope) error { + out.NodeProviderStatus = in.NodeProviderStatus + return nil +} + +// Convert_management_NodeProviderStatus_To_v1_NodeProviderStatus is an autogenerated conversion function. +func Convert_management_NodeProviderStatus_To_v1_NodeProviderStatus(in *management.NodeProviderStatus, out *NodeProviderStatus, s conversion.Scope) error { + return autoConvert_management_NodeProviderStatus_To_v1_NodeProviderStatus(in, out, s) +} + +func autoConvert_v1_NodeType_To_management_NodeType(in *NodeType, out *management.NodeType, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_NodeTypeSpec_To_management_NodeTypeSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_NodeTypeStatus_To_management_NodeTypeStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_NodeType_To_management_NodeType is an autogenerated conversion function. +func Convert_v1_NodeType_To_management_NodeType(in *NodeType, out *management.NodeType, s conversion.Scope) error { + return autoConvert_v1_NodeType_To_management_NodeType(in, out, s) +} + +func autoConvert_management_NodeType_To_v1_NodeType(in *management.NodeType, out *NodeType, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_NodeTypeSpec_To_v1_NodeTypeSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_NodeTypeStatus_To_v1_NodeTypeStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_LoftUpgrade_To_v1_LoftUpgrade is an autogenerated conversion function. -func Convert_management_LoftUpgrade_To_v1_LoftUpgrade(in *management.LoftUpgrade, out *LoftUpgrade, s conversion.Scope) error { - return autoConvert_management_LoftUpgrade_To_v1_LoftUpgrade(in, out, s) +// Convert_management_NodeType_To_v1_NodeType is an autogenerated conversion function. +func Convert_management_NodeType_To_v1_NodeType(in *management.NodeType, out *NodeType, s conversion.Scope) error { + return autoConvert_management_NodeType_To_v1_NodeType(in, out, s) } -func autoConvert_v1_LoftUpgradeList_To_management_LoftUpgradeList(in *LoftUpgradeList, out *management.LoftUpgradeList, s conversion.Scope) error { +func autoConvert_v1_NodeTypeList_To_management_NodeTypeList(in *NodeTypeList, out *management.NodeTypeList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.LoftUpgrade)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.NodeType)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_LoftUpgradeList_To_management_LoftUpgradeList is an autogenerated conversion function. -func Convert_v1_LoftUpgradeList_To_management_LoftUpgradeList(in *LoftUpgradeList, out *management.LoftUpgradeList, s conversion.Scope) error { - return autoConvert_v1_LoftUpgradeList_To_management_LoftUpgradeList(in, out, s) +// Convert_v1_NodeTypeList_To_management_NodeTypeList is an autogenerated conversion function. +func Convert_v1_NodeTypeList_To_management_NodeTypeList(in *NodeTypeList, out *management.NodeTypeList, s conversion.Scope) error { + return autoConvert_v1_NodeTypeList_To_management_NodeTypeList(in, out, s) } -func autoConvert_management_LoftUpgradeList_To_v1_LoftUpgradeList(in *management.LoftUpgradeList, out *LoftUpgradeList, s conversion.Scope) error { +func autoConvert_management_NodeTypeList_To_v1_NodeTypeList(in *management.NodeTypeList, out *NodeTypeList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]LoftUpgrade)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]NodeType)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_LoftUpgradeList_To_v1_LoftUpgradeList is an autogenerated conversion function. -func Convert_management_LoftUpgradeList_To_v1_LoftUpgradeList(in *management.LoftUpgradeList, out *LoftUpgradeList, s conversion.Scope) error { - return autoConvert_management_LoftUpgradeList_To_v1_LoftUpgradeList(in, out, s) +// Convert_management_NodeTypeList_To_v1_NodeTypeList is an autogenerated conversion function. +func Convert_management_NodeTypeList_To_v1_NodeTypeList(in *management.NodeTypeList, out *NodeTypeList, s conversion.Scope) error { + return autoConvert_management_NodeTypeList_To_v1_NodeTypeList(in, out, s) } -func autoConvert_v1_LoftUpgradeSpec_To_management_LoftUpgradeSpec(in *LoftUpgradeSpec, out *management.LoftUpgradeSpec, s conversion.Scope) error { - out.Namespace = in.Namespace - out.Release = in.Release - out.Version = in.Version +func autoConvert_v1_NodeTypeSpec_To_management_NodeTypeSpec(in *NodeTypeSpec, out *management.NodeTypeSpec, s conversion.Scope) error { + out.NodeTypeSpec = in.NodeTypeSpec return nil } -// Convert_v1_LoftUpgradeSpec_To_management_LoftUpgradeSpec is an autogenerated conversion function. -func Convert_v1_LoftUpgradeSpec_To_management_LoftUpgradeSpec(in *LoftUpgradeSpec, out *management.LoftUpgradeSpec, s conversion.Scope) error { - return autoConvert_v1_LoftUpgradeSpec_To_management_LoftUpgradeSpec(in, out, s) +// Convert_v1_NodeTypeSpec_To_management_NodeTypeSpec is an autogenerated conversion function. +func Convert_v1_NodeTypeSpec_To_management_NodeTypeSpec(in *NodeTypeSpec, out *management.NodeTypeSpec, s conversion.Scope) error { + return autoConvert_v1_NodeTypeSpec_To_management_NodeTypeSpec(in, out, s) } -func autoConvert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(in *management.LoftUpgradeSpec, out *LoftUpgradeSpec, s conversion.Scope) error { - out.Namespace = in.Namespace - out.Release = in.Release - out.Version = in.Version +func autoConvert_management_NodeTypeSpec_To_v1_NodeTypeSpec(in *management.NodeTypeSpec, out *NodeTypeSpec, s conversion.Scope) error { + out.NodeTypeSpec = in.NodeTypeSpec return nil } -// Convert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec is an autogenerated conversion function. -func Convert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(in *management.LoftUpgradeSpec, out *LoftUpgradeSpec, s conversion.Scope) error { - return autoConvert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(in, out, s) +// Convert_management_NodeTypeSpec_To_v1_NodeTypeSpec is an autogenerated conversion function. +func Convert_management_NodeTypeSpec_To_v1_NodeTypeSpec(in *management.NodeTypeSpec, out *NodeTypeSpec, s conversion.Scope) error { + return autoConvert_management_NodeTypeSpec_To_v1_NodeTypeSpec(in, out, s) } -func autoConvert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in *LoftUpgradeStatus, out *management.LoftUpgradeStatus, s conversion.Scope) error { +func autoConvert_v1_NodeTypeStatus_To_management_NodeTypeStatus(in *NodeTypeStatus, out *management.NodeTypeStatus, s conversion.Scope) error { + out.NodeTypeStatus = in.NodeTypeStatus return nil } -// Convert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus is an autogenerated conversion function. -func Convert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in *LoftUpgradeStatus, out *management.LoftUpgradeStatus, s conversion.Scope) error { - return autoConvert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in, out, s) +// Convert_v1_NodeTypeStatus_To_management_NodeTypeStatus is an autogenerated conversion function. +func Convert_v1_NodeTypeStatus_To_management_NodeTypeStatus(in *NodeTypeStatus, out *management.NodeTypeStatus, s conversion.Scope) error { + return autoConvert_v1_NodeTypeStatus_To_management_NodeTypeStatus(in, out, s) } -func autoConvert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in *management.LoftUpgradeStatus, out *LoftUpgradeStatus, s conversion.Scope) error { +func autoConvert_management_NodeTypeStatus_To_v1_NodeTypeStatus(in *management.NodeTypeStatus, out *NodeTypeStatus, s conversion.Scope) error { + out.NodeTypeStatus = in.NodeTypeStatus return nil } -// Convert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus is an autogenerated conversion function. -func Convert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in *management.LoftUpgradeStatus, out *LoftUpgradeStatus, s conversion.Scope) error { - return autoConvert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in, out, s) +// Convert_management_NodeTypeStatus_To_v1_NodeTypeStatus is an autogenerated conversion function. +func Convert_management_NodeTypeStatus_To_v1_NodeTypeStatus(in *management.NodeTypeStatus, out *NodeTypeStatus, s conversion.Scope) error { + return autoConvert_management_NodeTypeStatus_To_v1_NodeTypeStatus(in, out, s) } func autoConvert_v1_OIDC_To_management_OIDC(in *OIDC, out *management.OIDC, s conversion.Scope) error { @@ -6571,6 +8036,56 @@ func Convert_management_OIDCClientStatus_To_v1_OIDCClientStatus(in *management.O return autoConvert_management_OIDCClientStatus_To_v1_OIDCClientStatus(in, out, s) } +func autoConvert_v1_ObjectName_To_management_ObjectName(in *ObjectName, out *management.ObjectName, s conversion.Scope) error { + out.Namespace = in.Namespace + out.Name = in.Name + out.DisplayName = in.DisplayName + return nil +} + +// Convert_v1_ObjectName_To_management_ObjectName is an autogenerated conversion function. +func Convert_v1_ObjectName_To_management_ObjectName(in *ObjectName, out *management.ObjectName, s conversion.Scope) error { + return autoConvert_v1_ObjectName_To_management_ObjectName(in, out, s) +} + +func autoConvert_management_ObjectName_To_v1_ObjectName(in *management.ObjectName, out *ObjectName, s conversion.Scope) error { + out.Namespace = in.Namespace + out.Name = in.Name + out.DisplayName = in.DisplayName + return nil +} + +// Convert_management_ObjectName_To_v1_ObjectName is an autogenerated conversion function. +func Convert_management_ObjectName_To_v1_ObjectName(in *management.ObjectName, out *ObjectName, s conversion.Scope) error { + return autoConvert_management_ObjectName_To_v1_ObjectName(in, out, s) +} + +func autoConvert_v1_ObjectPermission_To_management_ObjectPermission(in *ObjectPermission, out *management.ObjectPermission, s conversion.Scope) error { + if err := Convert_v1_ObjectName_To_management_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) + return nil +} + +// Convert_v1_ObjectPermission_To_management_ObjectPermission is an autogenerated conversion function. +func Convert_v1_ObjectPermission_To_management_ObjectPermission(in *ObjectPermission, out *management.ObjectPermission, s conversion.Scope) error { + return autoConvert_v1_ObjectPermission_To_management_ObjectPermission(in, out, s) +} + +func autoConvert_management_ObjectPermission_To_v1_ObjectPermission(in *management.ObjectPermission, out *ObjectPermission, s conversion.Scope) error { + if err := Convert_management_ObjectName_To_v1_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) + return nil +} + +// Convert_management_ObjectPermission_To_v1_ObjectPermission is an autogenerated conversion function. +func Convert_management_ObjectPermission_To_v1_ObjectPermission(in *management.ObjectPermission, out *ObjectPermission, s conversion.Scope) error { + return autoConvert_management_ObjectPermission_To_v1_ObjectPermission(in, out, s) +} + func autoConvert_v1_OwnedAccessKey_To_management_OwnedAccessKey(in *OwnedAccessKey, out *management.OwnedAccessKey, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec(&in.Spec, &out.Spec, s); err != nil { @@ -6872,7 +8387,6 @@ func Convert_management_ProjectChartsList_To_v1_ProjectChartsList(in *management func autoConvert_v1_ProjectClusters_To_management_ProjectClusters(in *ProjectClusters, out *management.ProjectClusters, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.Clusters = *(*[]management.Cluster)(unsafe.Pointer(&in.Clusters)) - out.Runners = *(*[]management.Runner)(unsafe.Pointer(&in.Runners)) return nil } @@ -6884,7 +8398,6 @@ func Convert_v1_ProjectClusters_To_management_ProjectClusters(in *ProjectCluster func autoConvert_management_ProjectClusters_To_v1_ProjectClusters(in *management.ProjectClusters, out *ProjectClusters, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.Clusters = *(*[]Cluster)(unsafe.Pointer(&in.Clusters)) - out.Runners = *(*[]Runner)(unsafe.Pointer(&in.Runners)) return nil } @@ -7075,6 +8588,42 @@ func Convert_management_ProjectMembersList_To_v1_ProjectMembersList(in *manageme return autoConvert_management_ProjectMembersList_To_v1_ProjectMembersList(in, out, s) } +func autoConvert_v1_ProjectMembership_To_management_ProjectMembership(in *ProjectMembership, out *management.ProjectMembership, s conversion.Scope) error { + if err := Convert_v1_ObjectName_To_management_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + if err := Convert_v1_ProjectRole_To_management_ProjectRole(&in.Role, &out.Role, s); err != nil { + return err + } + if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_v1_ProjectMembership_To_management_ProjectMembership is an autogenerated conversion function. +func Convert_v1_ProjectMembership_To_management_ProjectMembership(in *ProjectMembership, out *management.ProjectMembership, s conversion.Scope) error { + return autoConvert_v1_ProjectMembership_To_management_ProjectMembership(in, out, s) +} + +func autoConvert_management_ProjectMembership_To_v1_ProjectMembership(in *management.ProjectMembership, out *ProjectMembership, s conversion.Scope) error { + if err := Convert_management_ObjectName_To_v1_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + if err := Convert_management_ProjectRole_To_v1_ProjectRole(&in.Role, &out.Role, s); err != nil { + return err + } + if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_management_ProjectMembership_To_v1_ProjectMembership is an autogenerated conversion function. +func Convert_management_ProjectMembership_To_v1_ProjectMembership(in *management.ProjectMembership, out *ProjectMembership, s conversion.Scope) error { + return autoConvert_management_ProjectMembership_To_v1_ProjectMembership(in, out, s) +} + func autoConvert_v1_ProjectMigrateSpaceInstance_To_management_ProjectMigrateSpaceInstance(in *ProjectMigrateSpaceInstance, out *management.ProjectMigrateSpaceInstance, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource(&in.SourceSpaceInstance, &out.SourceSpaceInstance, s); err != nil { @@ -7215,48 +8764,30 @@ func Convert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_Project return autoConvert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(in, out, s) } -func autoConvert_v1_ProjectRunners_To_management_ProjectRunners(in *ProjectRunners, out *management.ProjectRunners, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Runners = *(*[]management.Runner)(unsafe.Pointer(&in.Runners)) - return nil -} - -// Convert_v1_ProjectRunners_To_management_ProjectRunners is an autogenerated conversion function. -func Convert_v1_ProjectRunners_To_management_ProjectRunners(in *ProjectRunners, out *management.ProjectRunners, s conversion.Scope) error { - return autoConvert_v1_ProjectRunners_To_management_ProjectRunners(in, out, s) -} - -func autoConvert_management_ProjectRunners_To_v1_ProjectRunners(in *management.ProjectRunners, out *ProjectRunners, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Runners = *(*[]Runner)(unsafe.Pointer(&in.Runners)) - return nil -} - -// Convert_management_ProjectRunners_To_v1_ProjectRunners is an autogenerated conversion function. -func Convert_management_ProjectRunners_To_v1_ProjectRunners(in *management.ProjectRunners, out *ProjectRunners, s conversion.Scope) error { - return autoConvert_management_ProjectRunners_To_v1_ProjectRunners(in, out, s) -} - -func autoConvert_v1_ProjectRunnersList_To_management_ProjectRunnersList(in *ProjectRunnersList, out *management.ProjectRunnersList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectRunners)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_ProjectRole_To_management_ProjectRole(in *ProjectRole, out *management.ProjectRole, s conversion.Scope) error { + if err := Convert_v1_ObjectName_To_management_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.IsAdmin = in.IsAdmin return nil } -// Convert_v1_ProjectRunnersList_To_management_ProjectRunnersList is an autogenerated conversion function. -func Convert_v1_ProjectRunnersList_To_management_ProjectRunnersList(in *ProjectRunnersList, out *management.ProjectRunnersList, s conversion.Scope) error { - return autoConvert_v1_ProjectRunnersList_To_management_ProjectRunnersList(in, out, s) +// Convert_v1_ProjectRole_To_management_ProjectRole is an autogenerated conversion function. +func Convert_v1_ProjectRole_To_management_ProjectRole(in *ProjectRole, out *management.ProjectRole, s conversion.Scope) error { + return autoConvert_v1_ProjectRole_To_management_ProjectRole(in, out, s) } -func autoConvert_management_ProjectRunnersList_To_v1_ProjectRunnersList(in *management.ProjectRunnersList, out *ProjectRunnersList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectRunners)(unsafe.Pointer(&in.Items)) +func autoConvert_management_ProjectRole_To_v1_ProjectRole(in *management.ProjectRole, out *ProjectRole, s conversion.Scope) error { + if err := Convert_management_ObjectName_To_v1_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.IsAdmin = in.IsAdmin return nil } -// Convert_management_ProjectRunnersList_To_v1_ProjectRunnersList is an autogenerated conversion function. -func Convert_management_ProjectRunnersList_To_v1_ProjectRunnersList(in *management.ProjectRunnersList, out *ProjectRunnersList, s conversion.Scope) error { - return autoConvert_management_ProjectRunnersList_To_v1_ProjectRunnersList(in, out, s) +// Convert_management_ProjectRole_To_v1_ProjectRole is an autogenerated conversion function. +func Convert_management_ProjectRole_To_v1_ProjectRole(in *management.ProjectRole, out *ProjectRole, s conversion.Scope) error { + return autoConvert_management_ProjectRole_To_v1_ProjectRole(in, out, s) } func autoConvert_v1_ProjectSecret_To_management_ProjectSecret(in *ProjectSecret, out *management.ProjectSecret, s conversion.Scope) error { @@ -7410,6 +8941,7 @@ func autoConvert_v1_ProjectTemplates_To_management_ProjectTemplates(in *ProjectT 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 return nil } @@ -7428,6 +8960,7 @@ func autoConvert_management_ProjectTemplates_To_v1_ProjectTemplates(in *manageme 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 return nil } @@ -7666,273 +9199,91 @@ func autoConvert_v1_ResetAccessKey_To_management_ResetAccessKey(in *ResetAccessK } if err := Convert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(&in.Status, &out.Status, s); err != nil { return err - } - return nil -} - -// Convert_v1_ResetAccessKey_To_management_ResetAccessKey is an autogenerated conversion function. -func Convert_v1_ResetAccessKey_To_management_ResetAccessKey(in *ResetAccessKey, out *management.ResetAccessKey, s conversion.Scope) error { - return autoConvert_v1_ResetAccessKey_To_management_ResetAccessKey(in, out, s) -} - -func autoConvert_management_ResetAccessKey_To_v1_ResetAccessKey(in *management.ResetAccessKey, out *ResetAccessKey, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_management_ResetAccessKey_To_v1_ResetAccessKey is an autogenerated conversion function. -func Convert_management_ResetAccessKey_To_v1_ResetAccessKey(in *management.ResetAccessKey, out *ResetAccessKey, s conversion.Scope) error { - return autoConvert_management_ResetAccessKey_To_v1_ResetAccessKey(in, out, s) -} - -func autoConvert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList(in *ResetAccessKeyList, out *management.ResetAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ResetAccessKey)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList is an autogenerated conversion function. -func Convert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList(in *ResetAccessKeyList, out *management.ResetAccessKeyList, s conversion.Scope) error { - return autoConvert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList(in, out, s) -} - -func autoConvert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList(in *management.ResetAccessKeyList, out *ResetAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ResetAccessKey)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList is an autogenerated conversion function. -func Convert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList(in *management.ResetAccessKeyList, out *ResetAccessKeyList, s conversion.Scope) error { - return autoConvert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList(in, out, s) -} - -func autoConvert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(in *ResetAccessKeySpec, out *management.ResetAccessKeySpec, s conversion.Scope) error { - out.AccessKeySpec = in.AccessKeySpec - return nil -} - -// Convert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec is an autogenerated conversion function. -func Convert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(in *ResetAccessKeySpec, out *management.ResetAccessKeySpec, s conversion.Scope) error { - return autoConvert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(in, out, s) -} - -func autoConvert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(in *management.ResetAccessKeySpec, out *ResetAccessKeySpec, s conversion.Scope) error { - out.AccessKeySpec = in.AccessKeySpec - return nil -} - -// Convert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec is an autogenerated conversion function. -func Convert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(in *management.ResetAccessKeySpec, out *ResetAccessKeySpec, s conversion.Scope) error { - return autoConvert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(in, out, s) -} - -func autoConvert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(in *ResetAccessKeyStatus, out *management.ResetAccessKeyStatus, s conversion.Scope) error { - out.AccessKeyStatus = in.AccessKeyStatus - return nil -} - -// Convert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus is an autogenerated conversion function. -func Convert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(in *ResetAccessKeyStatus, out *management.ResetAccessKeyStatus, s conversion.Scope) error { - return autoConvert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(in, out, s) -} - -func autoConvert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(in *management.ResetAccessKeyStatus, out *ResetAccessKeyStatus, s conversion.Scope) error { - out.AccessKeyStatus = in.AccessKeyStatus - return nil -} - -// Convert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus is an autogenerated conversion function. -func Convert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(in *management.ResetAccessKeyStatus, out *ResetAccessKeyStatus, s conversion.Scope) error { - return autoConvert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(in, out, s) -} - -func autoConvert_v1_Runner_To_management_Runner(in *Runner, out *management.Runner, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_RunnerSpec_To_management_RunnerSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_RunnerStatus_To_management_RunnerStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1_Runner_To_management_Runner is an autogenerated conversion function. -func Convert_v1_Runner_To_management_Runner(in *Runner, out *management.Runner, s conversion.Scope) error { - return autoConvert_v1_Runner_To_management_Runner(in, out, s) -} - -func autoConvert_management_Runner_To_v1_Runner(in *management.Runner, out *Runner, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_RunnerSpec_To_v1_RunnerSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_RunnerStatus_To_v1_RunnerStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_management_Runner_To_v1_Runner is an autogenerated conversion function. -func Convert_management_Runner_To_v1_Runner(in *management.Runner, out *Runner, s conversion.Scope) error { - return autoConvert_management_Runner_To_v1_Runner(in, out, s) -} - -func autoConvert_v1_RunnerAccessKey_To_management_RunnerAccessKey(in *RunnerAccessKey, out *management.RunnerAccessKey, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey - return nil -} - -// Convert_v1_RunnerAccessKey_To_management_RunnerAccessKey is an autogenerated conversion function. -func Convert_v1_RunnerAccessKey_To_management_RunnerAccessKey(in *RunnerAccessKey, out *management.RunnerAccessKey, s conversion.Scope) error { - return autoConvert_v1_RunnerAccessKey_To_management_RunnerAccessKey(in, out, s) -} - -func autoConvert_management_RunnerAccessKey_To_v1_RunnerAccessKey(in *management.RunnerAccessKey, out *RunnerAccessKey, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey - return nil -} - -// Convert_management_RunnerAccessKey_To_v1_RunnerAccessKey is an autogenerated conversion function. -func Convert_management_RunnerAccessKey_To_v1_RunnerAccessKey(in *management.RunnerAccessKey, out *RunnerAccessKey, s conversion.Scope) error { - return autoConvert_management_RunnerAccessKey_To_v1_RunnerAccessKey(in, out, s) -} - -func autoConvert_v1_RunnerAccessKeyList_To_management_RunnerAccessKeyList(in *RunnerAccessKeyList, out *management.RunnerAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.RunnerAccessKey)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_RunnerAccessKeyList_To_management_RunnerAccessKeyList is an autogenerated conversion function. -func Convert_v1_RunnerAccessKeyList_To_management_RunnerAccessKeyList(in *RunnerAccessKeyList, out *management.RunnerAccessKeyList, s conversion.Scope) error { - return autoConvert_v1_RunnerAccessKeyList_To_management_RunnerAccessKeyList(in, out, s) -} - -func autoConvert_management_RunnerAccessKeyList_To_v1_RunnerAccessKeyList(in *management.RunnerAccessKeyList, out *RunnerAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]RunnerAccessKey)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_RunnerAccessKeyList_To_v1_RunnerAccessKeyList is an autogenerated conversion function. -func Convert_management_RunnerAccessKeyList_To_v1_RunnerAccessKeyList(in *management.RunnerAccessKeyList, out *RunnerAccessKeyList, s conversion.Scope) error { - return autoConvert_management_RunnerAccessKeyList_To_v1_RunnerAccessKeyList(in, out, s) -} - -func autoConvert_v1_RunnerConfig_To_management_RunnerConfig(in *RunnerConfig, out *management.RunnerConfig, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) - return nil -} - -// Convert_v1_RunnerConfig_To_management_RunnerConfig is an autogenerated conversion function. -func Convert_v1_RunnerConfig_To_management_RunnerConfig(in *RunnerConfig, out *management.RunnerConfig, s conversion.Scope) error { - return autoConvert_v1_RunnerConfig_To_management_RunnerConfig(in, out, s) -} - -func autoConvert_management_RunnerConfig_To_v1_RunnerConfig(in *management.RunnerConfig, out *RunnerConfig, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) - return nil -} - -// Convert_management_RunnerConfig_To_v1_RunnerConfig is an autogenerated conversion function. -func Convert_management_RunnerConfig_To_v1_RunnerConfig(in *management.RunnerConfig, out *RunnerConfig, s conversion.Scope) error { - return autoConvert_management_RunnerConfig_To_v1_RunnerConfig(in, out, s) -} - -func autoConvert_v1_RunnerConfigList_To_management_RunnerConfigList(in *RunnerConfigList, out *management.RunnerConfigList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.RunnerConfig)(unsafe.Pointer(&in.Items)) + } return nil } -// Convert_v1_RunnerConfigList_To_management_RunnerConfigList is an autogenerated conversion function. -func Convert_v1_RunnerConfigList_To_management_RunnerConfigList(in *RunnerConfigList, out *management.RunnerConfigList, s conversion.Scope) error { - return autoConvert_v1_RunnerConfigList_To_management_RunnerConfigList(in, out, s) +// Convert_v1_ResetAccessKey_To_management_ResetAccessKey is an autogenerated conversion function. +func Convert_v1_ResetAccessKey_To_management_ResetAccessKey(in *ResetAccessKey, out *management.ResetAccessKey, s conversion.Scope) error { + return autoConvert_v1_ResetAccessKey_To_management_ResetAccessKey(in, out, s) } -func autoConvert_management_RunnerConfigList_To_v1_RunnerConfigList(in *management.RunnerConfigList, out *RunnerConfigList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]RunnerConfig)(unsafe.Pointer(&in.Items)) +func autoConvert_management_ResetAccessKey_To_v1_ResetAccessKey(in *management.ResetAccessKey, out *ResetAccessKey, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_RunnerConfigList_To_v1_RunnerConfigList is an autogenerated conversion function. -func Convert_management_RunnerConfigList_To_v1_RunnerConfigList(in *management.RunnerConfigList, out *RunnerConfigList, s conversion.Scope) error { - return autoConvert_management_RunnerConfigList_To_v1_RunnerConfigList(in, out, s) +// Convert_management_ResetAccessKey_To_v1_ResetAccessKey is an autogenerated conversion function. +func Convert_management_ResetAccessKey_To_v1_ResetAccessKey(in *management.ResetAccessKey, out *ResetAccessKey, s conversion.Scope) error { + return autoConvert_management_ResetAccessKey_To_v1_ResetAccessKey(in, out, s) } -func autoConvert_v1_RunnerList_To_management_RunnerList(in *RunnerList, out *management.RunnerList, s conversion.Scope) error { +func autoConvert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList(in *ResetAccessKeyList, out *management.ResetAccessKeyList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.Runner)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ResetAccessKey)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_RunnerList_To_management_RunnerList is an autogenerated conversion function. -func Convert_v1_RunnerList_To_management_RunnerList(in *RunnerList, out *management.RunnerList, s conversion.Scope) error { - return autoConvert_v1_RunnerList_To_management_RunnerList(in, out, s) +// Convert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList is an autogenerated conversion function. +func Convert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList(in *ResetAccessKeyList, out *management.ResetAccessKeyList, s conversion.Scope) error { + return autoConvert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList(in, out, s) } -func autoConvert_management_RunnerList_To_v1_RunnerList(in *management.RunnerList, out *RunnerList, s conversion.Scope) error { +func autoConvert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList(in *management.ResetAccessKeyList, out *ResetAccessKeyList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]Runner)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ResetAccessKey)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_RunnerList_To_v1_RunnerList is an autogenerated conversion function. -func Convert_management_RunnerList_To_v1_RunnerList(in *management.RunnerList, out *RunnerList, s conversion.Scope) error { - return autoConvert_management_RunnerList_To_v1_RunnerList(in, out, s) +// Convert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList is an autogenerated conversion function. +func Convert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList(in *management.ResetAccessKeyList, out *ResetAccessKeyList, s conversion.Scope) error { + return autoConvert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList(in, out, s) } -func autoConvert_v1_RunnerSpec_To_management_RunnerSpec(in *RunnerSpec, out *management.RunnerSpec, s conversion.Scope) error { - out.RunnerSpec = in.RunnerSpec +func autoConvert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(in *ResetAccessKeySpec, out *management.ResetAccessKeySpec, s conversion.Scope) error { + out.AccessKeySpec = in.AccessKeySpec return nil } -// Convert_v1_RunnerSpec_To_management_RunnerSpec is an autogenerated conversion function. -func Convert_v1_RunnerSpec_To_management_RunnerSpec(in *RunnerSpec, out *management.RunnerSpec, s conversion.Scope) error { - return autoConvert_v1_RunnerSpec_To_management_RunnerSpec(in, out, s) +// Convert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec is an autogenerated conversion function. +func Convert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(in *ResetAccessKeySpec, out *management.ResetAccessKeySpec, s conversion.Scope) error { + return autoConvert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(in, out, s) } -func autoConvert_management_RunnerSpec_To_v1_RunnerSpec(in *management.RunnerSpec, out *RunnerSpec, s conversion.Scope) error { - out.RunnerSpec = in.RunnerSpec +func autoConvert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(in *management.ResetAccessKeySpec, out *ResetAccessKeySpec, s conversion.Scope) error { + out.AccessKeySpec = in.AccessKeySpec return nil } -// Convert_management_RunnerSpec_To_v1_RunnerSpec is an autogenerated conversion function. -func Convert_management_RunnerSpec_To_v1_RunnerSpec(in *management.RunnerSpec, out *RunnerSpec, s conversion.Scope) error { - return autoConvert_management_RunnerSpec_To_v1_RunnerSpec(in, out, s) +// Convert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec is an autogenerated conversion function. +func Convert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(in *management.ResetAccessKeySpec, out *ResetAccessKeySpec, s conversion.Scope) error { + return autoConvert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(in, out, s) } -func autoConvert_v1_RunnerStatus_To_management_RunnerStatus(in *RunnerStatus, out *management.RunnerStatus, s conversion.Scope) error { - out.RunnerStatus = in.RunnerStatus +func autoConvert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(in *ResetAccessKeyStatus, out *management.ResetAccessKeyStatus, s conversion.Scope) error { + out.AccessKeyStatus = in.AccessKeyStatus return nil } -// Convert_v1_RunnerStatus_To_management_RunnerStatus is an autogenerated conversion function. -func Convert_v1_RunnerStatus_To_management_RunnerStatus(in *RunnerStatus, out *management.RunnerStatus, s conversion.Scope) error { - return autoConvert_v1_RunnerStatus_To_management_RunnerStatus(in, out, s) +// Convert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus is an autogenerated conversion function. +func Convert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(in *ResetAccessKeyStatus, out *management.ResetAccessKeyStatus, s conversion.Scope) error { + return autoConvert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(in, out, s) } -func autoConvert_management_RunnerStatus_To_v1_RunnerStatus(in *management.RunnerStatus, out *RunnerStatus, s conversion.Scope) error { - out.RunnerStatus = in.RunnerStatus +func autoConvert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(in *management.ResetAccessKeyStatus, out *ResetAccessKeyStatus, s conversion.Scope) error { + out.AccessKeyStatus = in.AccessKeyStatus return nil } -// Convert_management_RunnerStatus_To_v1_RunnerStatus is an autogenerated conversion function. -func Convert_management_RunnerStatus_To_v1_RunnerStatus(in *management.RunnerStatus, out *RunnerStatus, s conversion.Scope) error { - return autoConvert_management_RunnerStatus_To_v1_RunnerStatus(in, out, s) +// Convert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus is an autogenerated conversion function. +func Convert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(in *management.ResetAccessKeyStatus, out *ResetAccessKeyStatus, s conversion.Scope) error { + return autoConvert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(in, out, s) } func autoConvert_v1_Self_To_management_Self(in *Self, out *management.Self, s conversion.Scope) error { @@ -8910,6 +10261,102 @@ func Convert_management_TeamList_To_v1_TeamList(in *management.TeamList, out *Te return autoConvert_management_TeamList_To_v1_TeamList(in, out, s) } +func autoConvert_v1_TeamObjectPermissions_To_management_TeamObjectPermissions(in *TeamObjectPermissions, out *management.TeamObjectPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ObjectPermissions = *(*[]management.ObjectPermission)(unsafe.Pointer(&in.ObjectPermissions)) + return nil +} + +// Convert_v1_TeamObjectPermissions_To_management_TeamObjectPermissions is an autogenerated conversion function. +func Convert_v1_TeamObjectPermissions_To_management_TeamObjectPermissions(in *TeamObjectPermissions, out *management.TeamObjectPermissions, s conversion.Scope) error { + return autoConvert_v1_TeamObjectPermissions_To_management_TeamObjectPermissions(in, out, s) +} + +func autoConvert_management_TeamObjectPermissions_To_v1_TeamObjectPermissions(in *management.TeamObjectPermissions, out *TeamObjectPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ObjectPermissions = *(*[]ObjectPermission)(unsafe.Pointer(&in.ObjectPermissions)) + return nil +} + +// Convert_management_TeamObjectPermissions_To_v1_TeamObjectPermissions is an autogenerated conversion function. +func Convert_management_TeamObjectPermissions_To_v1_TeamObjectPermissions(in *management.TeamObjectPermissions, out *TeamObjectPermissions, s conversion.Scope) error { + return autoConvert_management_TeamObjectPermissions_To_v1_TeamObjectPermissions(in, out, s) +} + +func autoConvert_v1_TeamObjectPermissionsList_To_management_TeamObjectPermissionsList(in *TeamObjectPermissionsList, out *management.TeamObjectPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.TeamObjectPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_TeamObjectPermissionsList_To_management_TeamObjectPermissionsList is an autogenerated conversion function. +func Convert_v1_TeamObjectPermissionsList_To_management_TeamObjectPermissionsList(in *TeamObjectPermissionsList, out *management.TeamObjectPermissionsList, s conversion.Scope) error { + return autoConvert_v1_TeamObjectPermissionsList_To_management_TeamObjectPermissionsList(in, out, s) +} + +func autoConvert_management_TeamObjectPermissionsList_To_v1_TeamObjectPermissionsList(in *management.TeamObjectPermissionsList, out *TeamObjectPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]TeamObjectPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_TeamObjectPermissionsList_To_v1_TeamObjectPermissionsList is an autogenerated conversion function. +func Convert_management_TeamObjectPermissionsList_To_v1_TeamObjectPermissionsList(in *management.TeamObjectPermissionsList, out *TeamObjectPermissionsList, s conversion.Scope) error { + return autoConvert_management_TeamObjectPermissionsList_To_v1_TeamObjectPermissionsList(in, out, s) +} + +func autoConvert_v1_TeamPermissions_To_management_TeamPermissions(in *TeamPermissions, out *management.TeamPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Members = *(*[]management.ObjectName)(unsafe.Pointer(&in.Members)) + out.ProjectMemberships = *(*[]management.ProjectMembership)(unsafe.Pointer(&in.ProjectMemberships)) + out.ManagementRoles = *(*[]management.ManagementRole)(unsafe.Pointer(&in.ManagementRoles)) + out.ClusterAccessRoles = *(*[]management.ClusterAccessRole)(unsafe.Pointer(&in.ClusterAccessRoles)) + out.VirtualClusterRoles = *(*[]management.VirtualClusterRole)(unsafe.Pointer(&in.VirtualClusterRoles)) + return nil +} + +// Convert_v1_TeamPermissions_To_management_TeamPermissions is an autogenerated conversion function. +func Convert_v1_TeamPermissions_To_management_TeamPermissions(in *TeamPermissions, out *management.TeamPermissions, s conversion.Scope) error { + return autoConvert_v1_TeamPermissions_To_management_TeamPermissions(in, out, s) +} + +func autoConvert_management_TeamPermissions_To_v1_TeamPermissions(in *management.TeamPermissions, out *TeamPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Members = *(*[]ObjectName)(unsafe.Pointer(&in.Members)) + out.ProjectMemberships = *(*[]ProjectMembership)(unsafe.Pointer(&in.ProjectMemberships)) + out.ManagementRoles = *(*[]ManagementRole)(unsafe.Pointer(&in.ManagementRoles)) + out.ClusterAccessRoles = *(*[]ClusterAccessRole)(unsafe.Pointer(&in.ClusterAccessRoles)) + out.VirtualClusterRoles = *(*[]VirtualClusterRole)(unsafe.Pointer(&in.VirtualClusterRoles)) + return nil +} + +// Convert_management_TeamPermissions_To_v1_TeamPermissions is an autogenerated conversion function. +func Convert_management_TeamPermissions_To_v1_TeamPermissions(in *management.TeamPermissions, out *TeamPermissions, s conversion.Scope) error { + return autoConvert_management_TeamPermissions_To_v1_TeamPermissions(in, out, s) +} + +func autoConvert_v1_TeamPermissionsList_To_management_TeamPermissionsList(in *TeamPermissionsList, out *management.TeamPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.TeamPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_TeamPermissionsList_To_management_TeamPermissionsList is an autogenerated conversion function. +func Convert_v1_TeamPermissionsList_To_management_TeamPermissionsList(in *TeamPermissionsList, out *management.TeamPermissionsList, s conversion.Scope) error { + return autoConvert_v1_TeamPermissionsList_To_management_TeamPermissionsList(in, out, s) +} + +func autoConvert_management_TeamPermissionsList_To_v1_TeamPermissionsList(in *management.TeamPermissionsList, out *TeamPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]TeamPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_TeamPermissionsList_To_v1_TeamPermissionsList is an autogenerated conversion function. +func Convert_management_TeamPermissionsList_To_v1_TeamPermissionsList(in *management.TeamPermissionsList, out *TeamPermissionsList, s conversion.Scope) error { + return autoConvert_management_TeamPermissionsList_To_v1_TeamPermissionsList(in, out, s) +} + func autoConvert_v1_TeamSpec_To_management_TeamSpec(in *TeamSpec, out *management.TeamSpec, s conversion.Scope) error { out.TeamSpec = in.TeamSpec return nil @@ -9212,10 +10659,59 @@ func Convert_management_UserList_To_v1_UserList(in *management.UserList, out *Us return autoConvert_management_UserList_To_v1_UserList(in, out, s) } +func autoConvert_v1_UserObjectPermissions_To_management_UserObjectPermissions(in *UserObjectPermissions, out *management.UserObjectPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ObjectPermissions = *(*[]management.ObjectPermission)(unsafe.Pointer(&in.ObjectPermissions)) + return nil +} + +// Convert_v1_UserObjectPermissions_To_management_UserObjectPermissions is an autogenerated conversion function. +func Convert_v1_UserObjectPermissions_To_management_UserObjectPermissions(in *UserObjectPermissions, out *management.UserObjectPermissions, s conversion.Scope) error { + return autoConvert_v1_UserObjectPermissions_To_management_UserObjectPermissions(in, out, s) +} + +func autoConvert_management_UserObjectPermissions_To_v1_UserObjectPermissions(in *management.UserObjectPermissions, out *UserObjectPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ObjectPermissions = *(*[]ObjectPermission)(unsafe.Pointer(&in.ObjectPermissions)) + return nil +} + +// Convert_management_UserObjectPermissions_To_v1_UserObjectPermissions is an autogenerated conversion function. +func Convert_management_UserObjectPermissions_To_v1_UserObjectPermissions(in *management.UserObjectPermissions, out *UserObjectPermissions, s conversion.Scope) error { + return autoConvert_management_UserObjectPermissions_To_v1_UserObjectPermissions(in, out, s) +} + +func autoConvert_v1_UserObjectPermissionsList_To_management_UserObjectPermissionsList(in *UserObjectPermissionsList, out *management.UserObjectPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.UserObjectPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_UserObjectPermissionsList_To_management_UserObjectPermissionsList is an autogenerated conversion function. +func Convert_v1_UserObjectPermissionsList_To_management_UserObjectPermissionsList(in *UserObjectPermissionsList, out *management.UserObjectPermissionsList, s conversion.Scope) error { + return autoConvert_v1_UserObjectPermissionsList_To_management_UserObjectPermissionsList(in, out, s) +} + +func autoConvert_management_UserObjectPermissionsList_To_v1_UserObjectPermissionsList(in *management.UserObjectPermissionsList, out *UserObjectPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]UserObjectPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_UserObjectPermissionsList_To_v1_UserObjectPermissionsList is an autogenerated conversion function. +func Convert_management_UserObjectPermissionsList_To_v1_UserObjectPermissionsList(in *management.UserObjectPermissionsList, out *UserObjectPermissionsList, s conversion.Scope) error { + return autoConvert_management_UserObjectPermissionsList_To_v1_UserObjectPermissionsList(in, out, s) +} + func autoConvert_v1_UserPermissions_To_management_UserPermissions(in *UserPermissions, out *management.UserPermissions, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.ClusterRoles = *(*[]management.UserPermissionsRole)(unsafe.Pointer(&in.ClusterRoles)) out.NamespaceRoles = *(*[]management.UserPermissionsRole)(unsafe.Pointer(&in.NamespaceRoles)) + out.TeamMemberships = *(*[]management.ObjectName)(unsafe.Pointer(&in.TeamMemberships)) + out.ProjectMemberships = *(*[]management.ProjectMembership)(unsafe.Pointer(&in.ProjectMemberships)) + out.ManagementRoles = *(*[]management.ManagementRole)(unsafe.Pointer(&in.ManagementRoles)) + out.ClusterAccessRoles = *(*[]management.ClusterAccessRole)(unsafe.Pointer(&in.ClusterAccessRoles)) + out.VirtualClusterRoles = *(*[]management.VirtualClusterRole)(unsafe.Pointer(&in.VirtualClusterRoles)) return nil } @@ -9228,6 +10724,11 @@ func autoConvert_management_UserPermissions_To_v1_UserPermissions(in *management out.ObjectMeta = in.ObjectMeta out.ClusterRoles = *(*[]UserPermissionsRole)(unsafe.Pointer(&in.ClusterRoles)) out.NamespaceRoles = *(*[]UserPermissionsRole)(unsafe.Pointer(&in.NamespaceRoles)) + out.TeamMemberships = *(*[]ObjectName)(unsafe.Pointer(&in.TeamMemberships)) + out.ProjectMemberships = *(*[]ProjectMembership)(unsafe.Pointer(&in.ProjectMemberships)) + out.ManagementRoles = *(*[]ManagementRole)(unsafe.Pointer(&in.ManagementRoles)) + out.ClusterAccessRoles = *(*[]ClusterAccessRole)(unsafe.Pointer(&in.ClusterAccessRoles)) + out.VirtualClusterRoles = *(*[]VirtualClusterRole)(unsafe.Pointer(&in.VirtualClusterRoles)) return nil } @@ -9293,6 +10794,7 @@ func autoConvert_v1_UserProfile_To_management_UserProfile(in *UserProfile, out * out.Email = in.Email out.Icon = (*string)(unsafe.Pointer(in.Icon)) out.Custom = in.Custom + out.Secrets = (*map[string]*management.UserProfileSecret)(unsafe.Pointer(in.Secrets)) return nil } @@ -9310,6 +10812,7 @@ func autoConvert_management_UserProfile_To_v1_UserProfile(in *management.UserPro out.Email = in.Email out.Icon = (*string)(unsafe.Pointer(in.Icon)) out.Custom = in.Custom + out.Secrets = (*map[string]*UserProfileSecret)(unsafe.Pointer(in.Secrets)) return nil } @@ -9340,6 +10843,28 @@ func Convert_management_UserProfileList_To_v1_UserProfileList(in *management.Use return autoConvert_management_UserProfileList_To_v1_UserProfileList(in, out, s) } +func autoConvert_v1_UserProfileSecret_To_management_UserProfileSecret(in *UserProfileSecret, out *management.UserProfileSecret, s conversion.Scope) error { + out.Type = in.Type + out.Data = in.Data + return nil +} + +// Convert_v1_UserProfileSecret_To_management_UserProfileSecret is an autogenerated conversion function. +func Convert_v1_UserProfileSecret_To_management_UserProfileSecret(in *UserProfileSecret, out *management.UserProfileSecret, s conversion.Scope) error { + return autoConvert_v1_UserProfileSecret_To_management_UserProfileSecret(in, out, s) +} + +func autoConvert_management_UserProfileSecret_To_v1_UserProfileSecret(in *management.UserProfileSecret, out *UserProfileSecret, s conversion.Scope) error { + out.Type = in.Type + out.Data = in.Data + return nil +} + +// Convert_management_UserProfileSecret_To_v1_UserProfileSecret is an autogenerated conversion function. +func Convert_management_UserProfileSecret_To_v1_UserProfileSecret(in *management.UserProfileSecret, out *UserProfileSecret, s conversion.Scope) error { + return autoConvert_management_UserProfileSecret_To_v1_UserProfileSecret(in, out, s) +} + func autoConvert_v1_UserQuotasOptions_To_management_UserQuotasOptions(in *UserQuotasOptions, out *management.UserQuotasOptions, s conversion.Scope) error { out.Cluster = *(*[]string)(unsafe.Pointer(&in.Cluster)) return nil @@ -9532,6 +11057,100 @@ func Convert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKe return autoConvert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKeyList(in, out, s) } +func autoConvert_v1_VirtualClusterExternalDatabase_To_management_VirtualClusterExternalDatabase(in *VirtualClusterExternalDatabase, out *management.VirtualClusterExternalDatabase, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualClusterExternalDatabaseStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_VirtualClusterExternalDatabase_To_management_VirtualClusterExternalDatabase is an autogenerated conversion function. +func Convert_v1_VirtualClusterExternalDatabase_To_management_VirtualClusterExternalDatabase(in *VirtualClusterExternalDatabase, out *management.VirtualClusterExternalDatabase, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterExternalDatabase_To_management_VirtualClusterExternalDatabase(in, out, s) +} + +func autoConvert_management_VirtualClusterExternalDatabase_To_v1_VirtualClusterExternalDatabase(in *management.VirtualClusterExternalDatabase, out *VirtualClusterExternalDatabase, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_VirtualClusterExternalDatabaseStatus_To_v1_VirtualClusterExternalDatabaseStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_VirtualClusterExternalDatabase_To_v1_VirtualClusterExternalDatabase is an autogenerated conversion function. +func Convert_management_VirtualClusterExternalDatabase_To_v1_VirtualClusterExternalDatabase(in *management.VirtualClusterExternalDatabase, out *VirtualClusterExternalDatabase, s conversion.Scope) error { + return autoConvert_management_VirtualClusterExternalDatabase_To_v1_VirtualClusterExternalDatabase(in, out, s) +} + +func autoConvert_v1_VirtualClusterExternalDatabaseList_To_management_VirtualClusterExternalDatabaseList(in *VirtualClusterExternalDatabaseList, out *management.VirtualClusterExternalDatabaseList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.VirtualClusterExternalDatabase)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_VirtualClusterExternalDatabaseList_To_management_VirtualClusterExternalDatabaseList is an autogenerated conversion function. +func Convert_v1_VirtualClusterExternalDatabaseList_To_management_VirtualClusterExternalDatabaseList(in *VirtualClusterExternalDatabaseList, out *management.VirtualClusterExternalDatabaseList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterExternalDatabaseList_To_management_VirtualClusterExternalDatabaseList(in, out, s) +} + +func autoConvert_management_VirtualClusterExternalDatabaseList_To_v1_VirtualClusterExternalDatabaseList(in *management.VirtualClusterExternalDatabaseList, out *VirtualClusterExternalDatabaseList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]VirtualClusterExternalDatabase)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_VirtualClusterExternalDatabaseList_To_v1_VirtualClusterExternalDatabaseList is an autogenerated conversion function. +func Convert_management_VirtualClusterExternalDatabaseList_To_v1_VirtualClusterExternalDatabaseList(in *management.VirtualClusterExternalDatabaseList, out *VirtualClusterExternalDatabaseList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterExternalDatabaseList_To_v1_VirtualClusterExternalDatabaseList(in, out, s) +} + +func autoConvert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec(in *VirtualClusterExternalDatabaseSpec, out *management.VirtualClusterExternalDatabaseSpec, s conversion.Scope) error { + out.Connector = in.Connector + return nil +} + +// Convert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec is an autogenerated conversion function. +func Convert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec(in *VirtualClusterExternalDatabaseSpec, out *management.VirtualClusterExternalDatabaseSpec, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec(in, out, s) +} + +func autoConvert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec(in *management.VirtualClusterExternalDatabaseSpec, out *VirtualClusterExternalDatabaseSpec, s conversion.Scope) error { + out.Connector = in.Connector + return nil +} + +// Convert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec is an autogenerated conversion function. +func Convert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec(in *management.VirtualClusterExternalDatabaseSpec, out *VirtualClusterExternalDatabaseSpec, s conversion.Scope) error { + return autoConvert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec(in, out, s) +} + +func autoConvert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualClusterExternalDatabaseStatus(in *VirtualClusterExternalDatabaseStatus, out *management.VirtualClusterExternalDatabaseStatus, s conversion.Scope) error { + out.DataSource = in.DataSource + return nil +} + +// Convert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualClusterExternalDatabaseStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualClusterExternalDatabaseStatus(in *VirtualClusterExternalDatabaseStatus, out *management.VirtualClusterExternalDatabaseStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualClusterExternalDatabaseStatus(in, out, s) +} + +func autoConvert_management_VirtualClusterExternalDatabaseStatus_To_v1_VirtualClusterExternalDatabaseStatus(in *management.VirtualClusterExternalDatabaseStatus, out *VirtualClusterExternalDatabaseStatus, s conversion.Scope) error { + out.DataSource = in.DataSource + return nil +} + +// Convert_management_VirtualClusterExternalDatabaseStatus_To_v1_VirtualClusterExternalDatabaseStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterExternalDatabaseStatus_To_v1_VirtualClusterExternalDatabaseStatus(in *management.VirtualClusterExternalDatabaseStatus, out *VirtualClusterExternalDatabaseStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterExternalDatabaseStatus_To_v1_VirtualClusterExternalDatabaseStatus(in, out, s) +} + func autoConvert_v1_VirtualClusterInstance_To_management_VirtualClusterInstance(in *VirtualClusterInstance, out *management.VirtualClusterInstance, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec(&in.Spec, &out.Spec, s); err != nil { @@ -9620,6 +11239,8 @@ func Convert_management_VirtualClusterInstanceKubeConfigList_To_v1_VirtualCluste func autoConvert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec(in *VirtualClusterInstanceKubeConfigSpec, out *management.VirtualClusterInstanceKubeConfigSpec, s conversion.Scope) error { out.CertificateTTL = (*int32)(unsafe.Pointer(in.CertificateTTL)) + out.Server = in.Server + out.ClientCert = in.ClientCert return nil } @@ -9630,6 +11251,8 @@ func Convert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualCluste func autoConvert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec(in *management.VirtualClusterInstanceKubeConfigSpec, out *VirtualClusterInstanceKubeConfigSpec, s conversion.Scope) error { out.CertificateTTL = (*int32)(unsafe.Pointer(in.CertificateTTL)) + out.Server = in.Server + out.ClientCert = in.ClientCert return nil } @@ -9880,6 +11503,134 @@ func Convert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanc return autoConvert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(in, out, s) } +func autoConvert_v1_VirtualClusterRole_To_management_VirtualClusterRole(in *VirtualClusterRole, out *management.VirtualClusterRole, s conversion.Scope) error { + if err := Convert_v1_ObjectName_To_management_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Role = in.Role + if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_v1_VirtualClusterRole_To_management_VirtualClusterRole is an autogenerated conversion function. +func Convert_v1_VirtualClusterRole_To_management_VirtualClusterRole(in *VirtualClusterRole, out *management.VirtualClusterRole, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterRole_To_management_VirtualClusterRole(in, out, s) +} + +func autoConvert_management_VirtualClusterRole_To_v1_VirtualClusterRole(in *management.VirtualClusterRole, out *VirtualClusterRole, s conversion.Scope) error { + if err := Convert_management_ObjectName_To_v1_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Role = in.Role + if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_management_VirtualClusterRole_To_v1_VirtualClusterRole is an autogenerated conversion function. +func Convert_management_VirtualClusterRole_To_v1_VirtualClusterRole(in *management.VirtualClusterRole, out *VirtualClusterRole, s conversion.Scope) error { + return autoConvert_management_VirtualClusterRole_To_v1_VirtualClusterRole(in, out, s) +} + +func autoConvert_v1_VirtualClusterSchema_To_management_VirtualClusterSchema(in *VirtualClusterSchema, out *management.VirtualClusterSchema, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_VirtualClusterSchema_To_management_VirtualClusterSchema is an autogenerated conversion function. +func Convert_v1_VirtualClusterSchema_To_management_VirtualClusterSchema(in *VirtualClusterSchema, out *management.VirtualClusterSchema, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterSchema_To_management_VirtualClusterSchema(in, out, s) +} + +func autoConvert_management_VirtualClusterSchema_To_v1_VirtualClusterSchema(in *management.VirtualClusterSchema, out *VirtualClusterSchema, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_VirtualClusterSchema_To_v1_VirtualClusterSchema is an autogenerated conversion function. +func Convert_management_VirtualClusterSchema_To_v1_VirtualClusterSchema(in *management.VirtualClusterSchema, out *VirtualClusterSchema, s conversion.Scope) error { + return autoConvert_management_VirtualClusterSchema_To_v1_VirtualClusterSchema(in, out, s) +} + +func autoConvert_v1_VirtualClusterSchemaList_To_management_VirtualClusterSchemaList(in *VirtualClusterSchemaList, out *management.VirtualClusterSchemaList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.VirtualClusterSchema)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_VirtualClusterSchemaList_To_management_VirtualClusterSchemaList is an autogenerated conversion function. +func Convert_v1_VirtualClusterSchemaList_To_management_VirtualClusterSchemaList(in *VirtualClusterSchemaList, out *management.VirtualClusterSchemaList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterSchemaList_To_management_VirtualClusterSchemaList(in, out, s) +} + +func autoConvert_management_VirtualClusterSchemaList_To_v1_VirtualClusterSchemaList(in *management.VirtualClusterSchemaList, out *VirtualClusterSchemaList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]VirtualClusterSchema)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_VirtualClusterSchemaList_To_v1_VirtualClusterSchemaList is an autogenerated conversion function. +func Convert_management_VirtualClusterSchemaList_To_v1_VirtualClusterSchemaList(in *management.VirtualClusterSchemaList, out *VirtualClusterSchemaList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterSchemaList_To_v1_VirtualClusterSchemaList(in, out, s) +} + +func autoConvert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(in *VirtualClusterSchemaSpec, out *management.VirtualClusterSchemaSpec, s conversion.Scope) error { + out.Version = in.Version + return nil +} + +// Convert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec is an autogenerated conversion function. +func Convert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(in *VirtualClusterSchemaSpec, out *management.VirtualClusterSchemaSpec, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(in, out, s) +} + +func autoConvert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec(in *management.VirtualClusterSchemaSpec, out *VirtualClusterSchemaSpec, s conversion.Scope) error { + out.Version = in.Version + return nil +} + +// Convert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec is an autogenerated conversion function. +func Convert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec(in *management.VirtualClusterSchemaSpec, out *VirtualClusterSchemaSpec, s conversion.Scope) error { + return autoConvert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec(in, out, s) +} + +func autoConvert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus(in *VirtualClusterSchemaStatus, out *management.VirtualClusterSchemaStatus, s conversion.Scope) error { + out.Schema = in.Schema + out.DefaultValues = in.DefaultValues + return nil +} + +// Convert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus(in *VirtualClusterSchemaStatus, out *management.VirtualClusterSchemaStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus(in, out, s) +} + +func autoConvert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus(in *management.VirtualClusterSchemaStatus, out *VirtualClusterSchemaStatus, s conversion.Scope) error { + out.Schema = in.Schema + out.DefaultValues = in.DefaultValues + return nil +} + +// Convert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus(in *management.VirtualClusterSchemaStatus, out *VirtualClusterSchemaStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus(in, out, s) +} + func autoConvert_v1_VirtualClusterTemplate_To_management_VirtualClusterTemplate(in *VirtualClusterTemplate, out *management.VirtualClusterTemplate, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_VirtualClusterTemplateSpec_To_management_VirtualClusterTemplateSpec(&in.Spec, &out.Spec, s); err != nil { diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index 0dbb4fb9..8936875c 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -12,6 +12,7 @@ import ( auditv1 "github.com/loft-sh/api/v4/pkg/apis/audit/v1" storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" uiv1 "github.com/loft-sh/api/v4/pkg/apis/ui/v1" + corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -153,6 +154,28 @@ func (in *AgentAuditEventStatus) DeepCopy() *AgentAuditEventStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AgentCostControlConfig) DeepCopyInto(out *AgentCostControlConfig) { + *out = *in + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } + in.CostControlClusterConfig.DeepCopyInto(&out.CostControlClusterConfig) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentCostControlConfig. +func (in *AgentCostControlConfig) DeepCopy() *AgentCostControlConfig { + if in == nil { + return nil + } + out := new(AgentCostControlConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Announcement) DeepCopyInto(out *Announcement) { *out = *in @@ -436,6 +459,23 @@ func (in *Apps) DeepCopy() *Apps { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AssignedVia) DeepCopyInto(out *AssignedVia) { + *out = *in + out.ObjectName = in.ObjectName + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignedVia. +func (in *AssignedVia) DeepCopy() *AssignedVia { + if in == nil { + return nil + } + out := new(AssignedVia) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Audit) DeepCopyInto(out *Audit) { *out = *in @@ -720,6 +760,11 @@ func (in *AuthenticationMicrosoft) DeepCopy() *AuthenticationMicrosoft { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuthenticationOIDC) DeepCopyInto(out *AuthenticationOIDC) { *out = *in + if in.AllowedExtraClaims != nil { + in, out := &in.AllowedExtraClaims, &out.AllowedExtraClaims + *out = make([]string, len(*in)) + copy(*out, *in) + } if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]string, len(*in)) @@ -995,13 +1040,30 @@ func (in *BackupStatus) DeepCopy() *BackupStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Cloud) DeepCopyInto(out *Cloud) { + *out = *in + out.MaintenanceWindow = in.MaintenanceWindow + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cloud. +func (in *Cloud) DeepCopy() *Cloud { + if in == nil { + return nil + } + out := new(Cloud) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Cluster) DeepCopyInto(out *Cluster) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) return } @@ -1143,6 +1205,29 @@ func (in *ClusterAccessList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterAccessRole) DeepCopyInto(out *ClusterAccessRole) { + *out = *in + out.ObjectName = in.ObjectName + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make([]ObjectName, len(*in)) + copy(*out, *in) + } + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAccessRole. +func (in *ClusterAccessRole) DeepCopy() *ClusterAccessRole { + if in == nil { + return nil + } + out := new(ClusterAccessRole) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterAccessSpec) DeepCopyInto(out *ClusterAccessSpec) { *out = *in @@ -1273,6 +1358,11 @@ func (in *ClusterAgentConfigCommon) DeepCopyInto(out *ClusterAgentConfigCommon) copy(*out, *in) } out.AnalyticsSpec = in.AnalyticsSpec + if in.CostControl != nil { + in, out := &in.CostControl, &out.CostControl + *out = new(AgentCostControlConfig) + (*in).DeepCopyInto(*out) + } return } @@ -1817,7 +1907,7 @@ func (in *ClusterSpec) DeepCopy() *ClusterSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { *out = *in - out.ClusterStatus = in.ClusterStatus + in.ClusterStatus.DeepCopyInto(&out.ClusterStatus) return } @@ -1831,70 +1921,6 @@ func (in *ClusterStatus) DeepCopy() *ClusterStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterVirtualClusterDefaults) DeepCopyInto(out *ClusterVirtualClusterDefaults) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.DefaultTemplate != nil { - in, out := &in.DefaultTemplate, &out.DefaultTemplate - *out = new(storagev1.VirtualClusterTemplate) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVirtualClusterDefaults. -func (in *ClusterVirtualClusterDefaults) DeepCopy() *ClusterVirtualClusterDefaults { - if in == nil { - return nil - } - out := new(ClusterVirtualClusterDefaults) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterVirtualClusterDefaults) 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 *ClusterVirtualClusterDefaultsList) DeepCopyInto(out *ClusterVirtualClusterDefaultsList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterVirtualClusterDefaults, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVirtualClusterDefaultsList. -func (in *ClusterVirtualClusterDefaultsList) DeepCopy() *ClusterVirtualClusterDefaultsList { - if in == nil { - return nil - } - out := new(ClusterVirtualClusterDefaultsList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterVirtualClusterDefaultsList) 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 *Config) DeepCopyInto(out *Config) { *out = *in @@ -2011,6 +2037,21 @@ func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus) { *out = new(storagev1.VaultIntegrationSpec) (*in).DeepCopyInto(*out) } + if in.Cloud != nil { + in, out := &in.Cloud, &out.Cloud + *out = new(Cloud) + **out = **in + } + if in.CostControl != nil { + in, out := &in.CostControl, &out.CostControl + *out = new(CostControl) + (*in).DeepCopyInto(*out) + } + if in.ImageBuilder != nil { + in, out := &in.ImageBuilder, &out.ImageBuilder + *out = new(ImageBuilder) + (*in).DeepCopyInto(*out) + } return } @@ -2188,174 +2229,175 @@ func (in *ConvertVirtualClusterConfigStatus) DeepCopy() *ConvertVirtualClusterCo } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodDeleteOptions) DeepCopyInto(out *DevPodDeleteOptions) { +func (in *CostControl) DeepCopyInto(out *CostControl) { *out = *in - out.TypeMeta = in.TypeMeta + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } + in.Global.DeepCopyInto(&out.Global) + in.Cluster.DeepCopyInto(&out.Cluster) + if in.Settings != nil { + in, out := &in.Settings, &out.Settings + *out = new(CostControlSettings) + (*in).DeepCopyInto(*out) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodDeleteOptions. -func (in *DevPodDeleteOptions) DeepCopy() *DevPodDeleteOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CostControl. +func (in *CostControl) DeepCopy() *CostControl { if in == nil { return nil } - out := new(DevPodDeleteOptions) + out := new(CostControl) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodDeleteOptions) 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 *DevPodDeleteOptionsList) DeepCopyInto(out *DevPodDeleteOptionsList) { +func (in *CostControlClusterConfig) DeepCopyInto(out *CostControlClusterConfig) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodDeleteOptions, len(*in)) - copy(*out, *in) + if in.Metrics != nil { + in, out := &in.Metrics, &out.Metrics + *out = new(storagev1.Metrics) + (*in).DeepCopyInto(*out) + } + if in.OpenCost != nil { + in, out := &in.OpenCost, &out.OpenCost + *out = new(storagev1.OpenCost) + (*in).DeepCopyInto(*out) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodDeleteOptionsList. -func (in *DevPodDeleteOptionsList) DeepCopy() *DevPodDeleteOptionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CostControlClusterConfig. +func (in *CostControlClusterConfig) DeepCopy() *CostControlClusterConfig { if in == nil { return nil } - out := new(DevPodDeleteOptionsList) + out := new(CostControlClusterConfig) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodDeleteOptionsList) 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 *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { +func (in *CostControlGPUSettings) DeepCopyInto(out *CostControlGPUSettings) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + if in.AvgGPUPrice != nil { + in, out := &in.AvgGPUPrice, &out.AvgGPUPrice + *out = new(CostControlResourcePrice) + **out = **in + } 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 CostControlGPUSettings. +func (in *CostControlGPUSettings) DeepCopy() *CostControlGPUSettings { if in == nil { return nil } - out := new(DevPodEnvironmentTemplate) + out := new(CostControlGPUSettings) 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 { - 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 *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemplateList) { +func (in *CostControlGlobalConfig) DeepCopyInto(out *CostControlGlobalConfig) { *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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.Metrics != nil { + in, out := &in.Metrics, &out.Metrics + *out = new(storagev1.Metrics) + (*in).DeepCopyInto(*out) } 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 CostControlGlobalConfig. +func (in *CostControlGlobalConfig) DeepCopy() *CostControlGlobalConfig { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateList) + out := new(CostControlGlobalConfig) 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 { - 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 *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemplateSpec) { +func (in *CostControlResourcePrice) DeepCopyInto(out *CostControlResourcePrice) { *out = *in - in.DevPodEnvironmentTemplateSpec.DeepCopyInto(&out.DevPodEnvironmentTemplateSpec) 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 CostControlResourcePrice. +func (in *CostControlResourcePrice) DeepCopy() *CostControlResourcePrice { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateSpec) + out := new(CostControlResourcePrice) 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 *CostControlSettings) DeepCopyInto(out *CostControlSettings) { *out = *in + if in.AvgCPUPricePerNode != nil { + in, out := &in.AvgCPUPricePerNode, &out.AvgCPUPricePerNode + *out = new(CostControlResourcePrice) + **out = **in + } + if in.AvgRAMPricePerNode != nil { + in, out := &in.AvgRAMPricePerNode, &out.AvgRAMPricePerNode + *out = new(CostControlResourcePrice) + **out = **in + } + if in.GPUSettings != nil { + in, out := &in.GPUSettings, &out.GPUSettings + *out = new(CostControlGPUSettings) + (*in).DeepCopyInto(*out) + } + if in.ControlPlanePricePerCluster != nil { + in, out := &in.ControlPlanePricePerCluster, &out.ControlPlanePricePerCluster + *out = new(CostControlResourcePrice) + **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 CostControlSettings. +func (in *CostControlSettings) DeepCopy() *CostControlSettings { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateStatus) + out := new(CostControlSettings) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodSshOptions) DeepCopyInto(out *DevPodSshOptions) { +func (in *DatabaseConnector) DeepCopyInto(out *DatabaseConnector) { *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 DevPodSshOptions. -func (in *DevPodSshOptions) DeepCopy() *DevPodSshOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnector. +func (in *DatabaseConnector) DeepCopy() *DatabaseConnector { if in == nil { return nil } - out := new(DevPodSshOptions) + out := new(DatabaseConnector) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodSshOptions) DeepCopyObject() runtime.Object { +func (in *DatabaseConnector) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2363,30 +2405,32 @@ func (in *DevPodSshOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodSshOptionsList) DeepCopyInto(out *DevPodSshOptionsList) { +func (in *DatabaseConnectorList) DeepCopyInto(out *DatabaseConnectorList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodSshOptions, len(*in)) - copy(*out, *in) + *out = make([]DatabaseConnector, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodSshOptionsList. -func (in *DevPodSshOptionsList) DeepCopy() *DevPodSshOptionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectorList. +func (in *DatabaseConnectorList) DeepCopy() *DatabaseConnectorList { if in == nil { return nil } - out := new(DevPodSshOptionsList) + out := new(DatabaseConnectorList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodSshOptionsList) DeepCopyObject() runtime.Object { +func (in *DatabaseConnectorList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2394,80 +2438,59 @@ func (in *DevPodSshOptionsList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodStatusOptions) DeepCopyInto(out *DevPodStatusOptions) { +func (in *DatabaseConnectorSpec) DeepCopyInto(out *DatabaseConnectorSpec) { *out = *in - out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodStatusOptions. -func (in *DevPodStatusOptions) DeepCopy() *DevPodStatusOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectorSpec. +func (in *DatabaseConnectorSpec) DeepCopy() *DatabaseConnectorSpec { if in == nil { return nil } - out := new(DevPodStatusOptions) + out := new(DatabaseConnectorSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodStatusOptions) 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 *DevPodStatusOptionsList) DeepCopyInto(out *DevPodStatusOptionsList) { +func (in *DatabaseConnectorStatus) DeepCopyInto(out *DatabaseConnectorStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodStatusOptions, len(*in)) - copy(*out, *in) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodStatusOptionsList. -func (in *DevPodStatusOptionsList) DeepCopy() *DevPodStatusOptionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectorStatus. +func (in *DatabaseConnectorStatus) DeepCopy() *DatabaseConnectorStatus { if in == nil { return nil } - out := new(DevPodStatusOptionsList) + out := new(DatabaseConnectorStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodStatusOptionsList) 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 *DevPodStopOptions) DeepCopyInto(out *DevPodStopOptions) { +func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { *out = *in out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodStopOptions. -func (in *DevPodStopOptions) DeepCopy() *DevPodStopOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplate. +func (in *DevPodEnvironmentTemplate) DeepCopy() *DevPodEnvironmentTemplate { if in == nil { return nil } - out := new(DevPodStopOptions) + out := new(DevPodEnvironmentTemplate) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodStopOptions) DeepCopyObject() runtime.Object { +func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2475,30 +2498,32 @@ func (in *DevPodStopOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodStopOptionsList) DeepCopyInto(out *DevPodStopOptionsList) { +func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemplateList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodStopOptions, len(*in)) - copy(*out, *in) + *out = make([]DevPodEnvironmentTemplate, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodStopOptionsList. -func (in *DevPodStopOptionsList) DeepCopy() *DevPodStopOptionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateList. +func (in *DevPodEnvironmentTemplateList) DeepCopy() *DevPodEnvironmentTemplateList { if in == nil { return nil } - out := new(DevPodStopOptionsList) + out := new(DevPodEnvironmentTemplateList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodStopOptionsList) DeepCopyObject() runtime.Object { +func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2506,61 +2531,38 @@ func (in *DevPodStopOptionsList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodUpOptions) DeepCopyInto(out *DevPodUpOptions) { +func (in *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemplateSpec) { *out = *in - out.TypeMeta = in.TypeMeta + in.DevPodEnvironmentTemplateSpec.DeepCopyInto(&out.DevPodEnvironmentTemplateSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodUpOptions. -func (in *DevPodUpOptions) DeepCopy() *DevPodUpOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateSpec. +func (in *DevPodEnvironmentTemplateSpec) DeepCopy() *DevPodEnvironmentTemplateSpec { if in == nil { return nil } - out := new(DevPodUpOptions) + out := new(DevPodEnvironmentTemplateSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodUpOptions) 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 *DevPodUpOptionsList) DeepCopyInto(out *DevPodUpOptionsList) { +func (in *DevPodEnvironmentTemplateStatus) DeepCopyInto(out *DevPodEnvironmentTemplateStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodUpOptions, len(*in)) - copy(*out, *in) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodUpOptionsList. -func (in *DevPodUpOptionsList) DeepCopy() *DevPodUpOptionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateStatus. +func (in *DevPodEnvironmentTemplateStatus) DeepCopy() *DevPodEnvironmentTemplateStatus { if in == nil { return nil } - out := new(DevPodUpOptionsList) + out := new(DevPodEnvironmentTemplateStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodUpOptionsList) 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 *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { *out = *in @@ -2590,32 +2592,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 *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { +func (in *DevPodWorkspaceInstanceCancel) DeepCopyInto(out *DevPodWorkspaceInstanceCancel) { *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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 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 DevPodWorkspaceInstanceCancel. +func (in *DevPodWorkspaceInstanceCancel) DeepCopy() *DevPodWorkspaceInstanceCancel { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceList) + out := new(DevPodWorkspaceInstanceCancel) 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 *DevPodWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2623,42 +2618,58 @@ 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 *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { +func (in *DevPodWorkspaceInstanceCancelList) DeepCopyInto(out *DevPodWorkspaceInstanceCancelList) { *out = *in - in.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspaceInstanceCancel, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } 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 DevPodWorkspaceInstanceCancelList. +func (in *DevPodWorkspaceInstanceCancelList) DeepCopy() *DevPodWorkspaceInstanceCancelList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + out := new(DevPodWorkspaceInstanceCancelList) 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 { + 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 *DevPodWorkspaceInstanceState) DeepCopyInto(out *DevPodWorkspaceInstanceState) { +func (in *DevPodWorkspaceInstanceDownload) DeepCopyInto(out *DevPodWorkspaceInstanceDownload) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceState. -func (in *DevPodWorkspaceInstanceState) DeepCopy() *DevPodWorkspaceInstanceState { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownload. +func (in *DevPodWorkspaceInstanceDownload) DeepCopy() *DevPodWorkspaceInstanceDownload { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceState) + out := new(DevPodWorkspaceInstanceDownload) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceState) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceDownload) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2666,13 +2677,13 @@ func (in *DevPodWorkspaceInstanceState) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStateList) DeepCopyInto(out *DevPodWorkspaceInstanceStateList) { +func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceState, len(*in)) + *out = make([]DevPodWorkspaceInstanceDownload, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2680,18 +2691,18 @@ func (in *DevPodWorkspaceInstanceStateList) DeepCopyInto(out *DevPodWorkspaceIns return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStateList. -func (in *DevPodWorkspaceInstanceStateList) DeepCopy() *DevPodWorkspaceInstanceStateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownloadList. +func (in *DevPodWorkspaceInstanceDownloadList) DeepCopy() *DevPodWorkspaceInstanceDownloadList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStateList) + out := new(DevPodWorkspaceInstanceDownloadList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceStateList) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2699,49 +2710,24 @@ func (in *DevPodWorkspaceInstanceStateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { - *out = *in - in.DevPodWorkspaceInstanceStatus.DeepCopyInto(&out.DevPodWorkspaceInstanceStatus) - if in.SleepModeConfig != nil { - in, out := &in.SleepModeConfig, &out.SleepModeConfig - *out = new(clusterv1.SleepModeConfig) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStatus. -func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstanceStatus) - 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 *DevPodWorkspaceInstanceDownloadOptions) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadOptions) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status 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 DevPodWorkspaceInstanceDownloadOptions. +func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopy() *DevPodWorkspaceInstanceDownloadOptions { if in == nil { return nil } - out := new(DevPodWorkspaceTemplate) + out := new(DevPodWorkspaceInstanceDownloadOptions) 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 *DevPodWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2749,13 +2735,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 *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { *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([]DevPodWorkspaceInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2763,18 +2749,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 DevPodWorkspaceInstanceList. +func (in *DevPodWorkspaceInstanceList) DeepCopy() *DevPodWorkspaceInstanceList { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateList) + out := new(DevPodWorkspaceInstanceList) 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 *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2782,61 +2768,58 @@ 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 *DevPodWorkspaceInstanceLog) DeepCopyInto(out *DevPodWorkspaceInstanceLog) { *out = *in - in.DevPodWorkspaceTemplateSpec.DeepCopyInto(&out.DevPodWorkspaceTemplateSpec) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 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 DevPodWorkspaceInstanceLog. +func (in *DevPodWorkspaceInstanceLog) DeepCopy() *DevPodWorkspaceInstanceLog { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateSpec) + out := new(DevPodWorkspaceInstanceLog) 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) { - *out = *in - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateStatus. -func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { - if in == nil { - return nil +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceLog) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - out := new(DevPodWorkspaceTemplateStatus) - in.DeepCopyInto(out) - return out + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DirectClusterEndpointToken) DeepCopyInto(out *DirectClusterEndpointToken) { +func (in *DevPodWorkspaceInstanceLogList) DeepCopyInto(out *DevPodWorkspaceInstanceLogList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspaceInstanceLog, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointToken. -func (in *DirectClusterEndpointToken) DeepCopy() *DirectClusterEndpointToken { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogList. +func (in *DevPodWorkspaceInstanceLogList) DeepCopy() *DevPodWorkspaceInstanceLogList { if in == nil { return nil } - out := new(DirectClusterEndpointToken) + out := new(DevPodWorkspaceInstanceLogList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DirectClusterEndpointToken) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceLogList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2844,32 +2827,24 @@ func (in *DirectClusterEndpointToken) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DirectClusterEndpointTokenList) DeepCopyInto(out *DirectClusterEndpointTokenList) { +func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyInto(out *DevPodWorkspaceInstanceLogOptions) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DirectClusterEndpointToken, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenList. -func (in *DirectClusterEndpointTokenList) DeepCopy() *DirectClusterEndpointTokenList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogOptions. +func (in *DevPodWorkspaceInstanceLogOptions) DeepCopy() *DevPodWorkspaceInstanceLogOptions { if in == nil { return nil } - out := new(DirectClusterEndpointTokenList) + out := new(DevPodWorkspaceInstanceLogOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DirectClusterEndpointTokenList) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2877,64 +2852,66 @@ func (in *DirectClusterEndpointTokenList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DirectClusterEndpointTokenSpec) DeepCopyInto(out *DirectClusterEndpointTokenSpec) { +func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { *out = *in - if in.Scope != nil { - in, out := &in.Scope, &out.Scope - *out = new(storagev1.AccessKeyScope) - (*in).DeepCopyInto(*out) - } + in.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenSpec. -func (in *DirectClusterEndpointTokenSpec) DeepCopy() *DirectClusterEndpointTokenSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceSpec. +func (in *DevPodWorkspaceInstanceSpec) DeepCopy() *DevPodWorkspaceInstanceSpec { if in == nil { return nil } - out := new(DirectClusterEndpointTokenSpec) + out := new(DevPodWorkspaceInstanceSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DirectClusterEndpointTokenStatus) DeepCopyInto(out *DirectClusterEndpointTokenStatus) { +func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { *out = *in + in.DevPodWorkspaceInstanceStatus.DeepCopyInto(&out.DevPodWorkspaceInstanceStatus) + if in.SleepModeConfig != nil { + in, out := &in.SleepModeConfig, &out.SleepModeConfig + *out = new(clusterv1.SleepModeConfig) + (*in).DeepCopyInto(*out) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenStatus. -func (in *DirectClusterEndpointTokenStatus) DeepCopy() *DirectClusterEndpointTokenStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStatus. +func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { if in == nil { return nil } - out := new(DirectClusterEndpointTokenStatus) + out := new(DevPodWorkspaceInstanceStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Event) DeepCopyInto(out *Event) { +func (in *DevPodWorkspaceInstanceStop) DeepCopyInto(out *DevPodWorkspaceInstanceStop) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event. -func (in *Event) DeepCopy() *Event { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStop. +func (in *DevPodWorkspaceInstanceStop) DeepCopy() *DevPodWorkspaceInstanceStop { if in == nil { return nil } - out := new(Event) + out := new(DevPodWorkspaceInstanceStop) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Event) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceStop) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2942,13 +2919,13 @@ func (in *Event) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EventList) DeepCopyInto(out *EventList) { +func (in *DevPodWorkspaceInstanceStopList) DeepCopyInto(out *DevPodWorkspaceInstanceStopList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Event, len(*in)) + *out = make([]DevPodWorkspaceInstanceStop, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2956,18 +2933,18 @@ func (in *EventList) DeepCopyInto(out *EventList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventList. -func (in *EventList) DeepCopy() *EventList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopList. +func (in *DevPodWorkspaceInstanceStopList) DeepCopy() *DevPodWorkspaceInstanceStopList { if in == nil { return nil } - out := new(EventList) + out := new(DevPodWorkspaceInstanceStopList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *EventList) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2975,60 +2952,91 @@ func (in *EventList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EventSpec) DeepCopyInto(out *EventSpec) { +func (in *DevPodWorkspaceInstanceStopSpec) DeepCopyInto(out *DevPodWorkspaceInstanceStopSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSpec. -func (in *EventSpec) DeepCopy() *EventSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopSpec. +func (in *DevPodWorkspaceInstanceStopSpec) DeepCopy() *DevPodWorkspaceInstanceStopSpec { if in == nil { return nil } - out := new(EventSpec) + out := new(DevPodWorkspaceInstanceStopSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EventStatus) DeepCopyInto(out *EventStatus) { +func (in *DevPodWorkspaceInstanceStopStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStopStatus) { *out = *in - in.Event.DeepCopyInto(&out.Event) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventStatus. -func (in *EventStatus) DeepCopy() *EventStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopStatus. +func (in *DevPodWorkspaceInstanceStopStatus) DeepCopy() *DevPodWorkspaceInstanceStopStatus { if in == nil { return nil } - out := new(EventStatus) + out := new(DevPodWorkspaceInstanceStopStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Feature) DeepCopyInto(out *Feature) { +func (in *DevPodWorkspaceInstanceTask) DeepCopyInto(out *DevPodWorkspaceInstanceTask) { + *out = *in + if in.Result != nil { + in, out := &in.Result, &out.Result + *out = make([]byte, len(*in)) + copy(*out, *in) + } + if in.Logs != nil { + in, out := &in.Logs, &out.Logs + *out = make([]byte, len(*in)) + copy(*out, *in) + } + in.CreatedAt.DeepCopyInto(&out.CreatedAt) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTask. +func (in *DevPodWorkspaceInstanceTask) DeepCopy() *DevPodWorkspaceInstanceTask { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceTask) + 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) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) + if in.Tasks != nil { + in, out := &in.Tasks, &out.Tasks + *out = make([]DevPodWorkspaceInstanceTask, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Feature. -func (in *Feature) DeepCopy() *Feature { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasks. +func (in *DevPodWorkspaceInstanceTasks) DeepCopy() *DevPodWorkspaceInstanceTasks { if in == nil { return nil } - out := new(Feature) + out := new(DevPodWorkspaceInstanceTasks) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Feature) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3036,13 +3044,13 @@ func (in *Feature) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FeatureList) DeepCopyInto(out *FeatureList) { +func (in *DevPodWorkspaceInstanceTasksList) DeepCopyInto(out *DevPodWorkspaceInstanceTasksList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Feature, len(*in)) + *out = make([]DevPodWorkspaceInstanceTasks, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3050,18 +3058,18 @@ func (in *FeatureList) DeepCopyInto(out *FeatureList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureList. -func (in *FeatureList) DeepCopy() *FeatureList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasksList. +func (in *DevPodWorkspaceInstanceTasksList) DeepCopy() *DevPodWorkspaceInstanceTasksList { if in == nil { return nil } - out := new(FeatureList) + out := new(DevPodWorkspaceInstanceTasksList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FeatureList) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3069,102 +3077,1183 @@ func (in *FeatureList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FeatureSpec) DeepCopyInto(out *FeatureSpec) { +func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyInto(out *DevPodWorkspaceInstanceTasksOptions) { *out = *in + out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureSpec. -func (in *FeatureSpec) DeepCopy() *FeatureSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasksOptions. +func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopy() *DevPodWorkspaceInstanceTasksOptions { if in == nil { return nil } - out := new(FeatureSpec) + out := new(DevPodWorkspaceInstanceTasksOptions) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FeatureStatus) DeepCopyInto(out *FeatureStatus) { - *out = *in - in.Feature.DeepCopyInto(&out.Feature) - return +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureStatus. -func (in *FeatureStatus) DeepCopy() *FeatureStatus { - if in == nil { - return nil - } - out := new(FeatureStatus) - in.DeepCopyInto(out) +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshoot) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Workspace != nil { + in, out := &in.Workspace, &out.Workspace + *out = new(DevPodWorkspaceInstance) + (*in).DeepCopyInto(*out) + } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(storagev1.DevPodWorkspaceTemplate) + (*in).DeepCopyInto(*out) + } + if in.Pods != nil { + in, out := &in.Pods, &out.Pods + *out = make([]corev1.Pod, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.PVCs != nil { + in, out := &in.PVCs, &out.PVCs + *out = make([]corev1.PersistentVolumeClaim, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Netmaps != nil { + in, out := &in.Netmaps, &out.Netmaps + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Errors != nil { + in, out := &in.Errors, &out.Errors + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshoot. +func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopy() *DevPodWorkspaceInstanceTroubleshoot { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceTroubleshoot) + 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 { + 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 *DevPodWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshootList) { + *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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshootList. +func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopy() *DevPodWorkspaceInstanceTroubleshootList { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceTroubleshootList) + 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 { + 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 *DevPodWorkspaceInstanceUp) DeepCopyInto(out *DevPodWorkspaceInstanceUp) { + *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 DevPodWorkspaceInstanceUp. +func (in *DevPodWorkspaceInstanceUp) DeepCopy() *DevPodWorkspaceInstanceUp { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUp) + 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 { + 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 *DevPodWorkspaceInstanceUpList) DeepCopyInto(out *DevPodWorkspaceInstanceUpList) { + *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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpList. +func (in *DevPodWorkspaceInstanceUpList) DeepCopy() *DevPodWorkspaceInstanceUpList { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUpList) + 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 { + 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 *DevPodWorkspaceInstanceUpSpec) DeepCopyInto(out *DevPodWorkspaceInstanceUpSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpSpec. +func (in *DevPodWorkspaceInstanceUpSpec) DeepCopy() *DevPodWorkspaceInstanceUpSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUpSpec) + 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) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpStatus. +func (in *DevPodWorkspaceInstanceUpStatus) DeepCopy() *DevPodWorkspaceInstanceUpStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUpStatus) + 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) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePreset. +func (in *DevPodWorkspacePreset) DeepCopy() *DevPodWorkspacePreset { + if in == nil { + return nil + } + out := new(DevPodWorkspacePreset) + 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 { + 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 *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList) { + *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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetList. +func (in *DevPodWorkspacePresetList) DeepCopy() *DevPodWorkspacePresetList { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetList) + 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 { + 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 *DevPodWorkspacePresetSource) DeepCopyInto(out *DevPodWorkspacePresetSource) { + *out = *in + out.DevPodWorkspacePresetSource = in.DevPodWorkspacePresetSource + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSource. +func (in *DevPodWorkspacePresetSource) DeepCopy() *DevPodWorkspacePresetSource { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetSource) + 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) { + *out = *in + in.DevPodWorkspacePresetSpec.DeepCopyInto(&out.DevPodWorkspacePresetSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSpec. +func (in *DevPodWorkspacePresetSpec) DeepCopy() *DevPodWorkspacePresetSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetSpec) + 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) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetStatus. +func (in *DevPodWorkspacePresetStatus) DeepCopy() *DevPodWorkspacePresetStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetStatus) + 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) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplate. +func (in *DevPodWorkspaceTemplate) DeepCopy() *DevPodWorkspaceTemplate { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplate) + 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 { + 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 *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplateList) { + *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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateList. +func (in *DevPodWorkspaceTemplateList) DeepCopy() *DevPodWorkspaceTemplateList { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplateList) + 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 { + 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 *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplateSpec) { + *out = *in + in.DevPodWorkspaceTemplateSpec.DeepCopyInto(&out.DevPodWorkspaceTemplateSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateSpec. +func (in *DevPodWorkspaceTemplateSpec) DeepCopy() *DevPodWorkspaceTemplateSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplateSpec) + 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) { + *out = *in + out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateStatus. +func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplateStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DirectClusterEndpointToken) DeepCopyInto(out *DirectClusterEndpointToken) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointToken. +func (in *DirectClusterEndpointToken) DeepCopy() *DirectClusterEndpointToken { + if in == nil { + return nil + } + out := new(DirectClusterEndpointToken) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DirectClusterEndpointToken) 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 *DirectClusterEndpointTokenList) DeepCopyInto(out *DirectClusterEndpointTokenList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DirectClusterEndpointToken, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenList. +func (in *DirectClusterEndpointTokenList) DeepCopy() *DirectClusterEndpointTokenList { + if in == nil { + return nil + } + out := new(DirectClusterEndpointTokenList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DirectClusterEndpointTokenList) 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 *DirectClusterEndpointTokenSpec) DeepCopyInto(out *DirectClusterEndpointTokenSpec) { + *out = *in + if in.Scope != nil { + in, out := &in.Scope, &out.Scope + *out = new(storagev1.AccessKeyScope) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenSpec. +func (in *DirectClusterEndpointTokenSpec) DeepCopy() *DirectClusterEndpointTokenSpec { + if in == nil { + return nil + } + out := new(DirectClusterEndpointTokenSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DirectClusterEndpointTokenStatus) DeepCopyInto(out *DirectClusterEndpointTokenStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenStatus. +func (in *DirectClusterEndpointTokenStatus) DeepCopy() *DirectClusterEndpointTokenStatus { + if in == nil { + return nil + } + out := new(DirectClusterEndpointTokenStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Event) DeepCopyInto(out *Event) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event. +func (in *Event) DeepCopy() *Event { + if in == nil { + return nil + } + out := new(Event) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Event) 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 *EventList) DeepCopyInto(out *EventList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Event, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventList. +func (in *EventList) DeepCopy() *EventList { + if in == nil { + return nil + } + out := new(EventList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EventList) 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 *EventSpec) DeepCopyInto(out *EventSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSpec. +func (in *EventSpec) DeepCopy() *EventSpec { + if in == nil { + return nil + } + out := new(EventSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EventStatus) DeepCopyInto(out *EventStatus) { + *out = *in + in.Event.DeepCopyInto(&out.Event) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventStatus. +func (in *EventStatus) DeepCopy() *EventStatus { + if in == nil { + return nil + } + out := new(EventStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Feature) DeepCopyInto(out *Feature) { + *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 Feature. +func (in *Feature) DeepCopy() *Feature { + if in == nil { + return nil + } + out := new(Feature) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Feature) 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 *FeatureList) DeepCopyInto(out *FeatureList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Feature, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureList. +func (in *FeatureList) DeepCopy() *FeatureList { + if in == nil { + return nil + } + out := new(FeatureList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FeatureList) 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 *FeatureSpec) DeepCopyInto(out *FeatureSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureSpec. +func (in *FeatureSpec) DeepCopy() *FeatureSpec { + if in == nil { + return nil + } + out := new(FeatureSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FeatureStatus) DeepCopyInto(out *FeatureStatus) { + *out = *in + out.Feature = in.Feature + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureStatus. +func (in *FeatureStatus) DeepCopy() *FeatureStatus { + if in == nil { + return nil + } + out := new(FeatureStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GroupResources) DeepCopyInto(out *GroupResources) { + *out = *in + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ResourceNames != nil { + in, out := &in.ResourceNames, &out.ResourceNames + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources. +func (in *GroupResources) DeepCopy() *GroupResources { + if in == nil { + return nil + } + out := new(GroupResources) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ImageBuilder) DeepCopyInto(out *ImageBuilder) { + *out = *in + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = new(corev1.ResourceRequirements) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageBuilder. +func (in *ImageBuilder) DeepCopy() *ImageBuilder { + if in == nil { + return nil + } + out := new(ImageBuilder) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { + *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 IngressAuthToken. +func (in *IngressAuthToken) DeepCopy() *IngressAuthToken { + if in == nil { + return nil + } + out := new(IngressAuthToken) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *IngressAuthToken) 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 *IngressAuthTokenList) DeepCopyInto(out *IngressAuthTokenList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]IngressAuthToken, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenList. +func (in *IngressAuthTokenList) DeepCopy() *IngressAuthTokenList { + if in == nil { + return nil + } + out := new(IngressAuthTokenList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *IngressAuthTokenList) 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 *IngressAuthTokenSpec) DeepCopyInto(out *IngressAuthTokenSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenSpec. +func (in *IngressAuthTokenSpec) DeepCopy() *IngressAuthTokenSpec { + if in == nil { + return nil + } + out := new(IngressAuthTokenSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenStatus. +func (in *IngressAuthTokenStatus) DeepCopy() *IngressAuthTokenStatus { + if in == nil { + return nil + } + out := new(IngressAuthTokenStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Kiosk) DeepCopyInto(out *Kiosk) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kiosk. +func (in *Kiosk) DeepCopy() *Kiosk { + if in == nil { + return nil + } + out := new(Kiosk) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Kiosk) 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 *KioskList) DeepCopyInto(out *KioskList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Kiosk, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskList. +func (in *KioskList) DeepCopy() *KioskList { + if in == nil { + return nil + } + out := new(KioskList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *KioskList) 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 *KioskSpec) DeepCopyInto(out *KioskSpec) { + *out = *in + in.HelmRelease.DeepCopyInto(&out.HelmRelease) + in.SleepModeConfig.DeepCopyInto(&out.SleepModeConfig) + in.ChartInfo.DeepCopyInto(&out.ChartInfo) + in.StorageClusterQuota.DeepCopyInto(&out.StorageClusterQuota) + in.UISettings.DeepCopyInto(&out.UISettings) + in.License.DeepCopyInto(&out.License) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskSpec. +func (in *KioskSpec) DeepCopy() *KioskSpec { + if in == nil { + return nil + } + out := new(KioskSpec) + in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GitEnvironmentTemplate) DeepCopyInto(out *GitEnvironmentTemplate) { +func (in *KioskStatus) DeepCopyInto(out *KioskStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitEnvironmentTemplate. -func (in *GitEnvironmentTemplate) DeepCopy() *GitEnvironmentTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskStatus. +func (in *KioskStatus) DeepCopy() *KioskStatus { if in == nil { return nil } - out := new(GitEnvironmentTemplate) + out := new(KioskStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GroupResources) DeepCopyInto(out *GroupResources) { +func (in *License) DeepCopyInto(out *License) { *out = *in - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new License. +func (in *License) DeepCopy() *License { + if in == nil { + return nil } - if in.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames - *out = make([]string, len(*in)) - copy(*out, *in) + out := new(License) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *License) 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 *LicenseList) DeepCopyInto(out *LicenseList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]License, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources. -func (in *GroupResources) DeepCopy() *GroupResources { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseList. +func (in *LicenseList) DeepCopy() *LicenseList { if in == nil { return nil } - out := new(GroupResources) + out := new(LicenseList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *LicenseList) 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 *LicenseRequest) DeepCopyInto(out *LicenseRequest) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequest. +func (in *LicenseRequest) DeepCopy() *LicenseRequest { + if in == nil { + return nil + } + out := new(LicenseRequest) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *LicenseRequest) 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 *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { +func (in *LicenseRequestList) DeepCopyInto(out *LicenseRequestList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]LicenseRequest, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestList. +func (in *LicenseRequestList) DeepCopy() *LicenseRequestList { + if in == nil { + return nil + } + out := new(LicenseRequestList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *LicenseRequestList) 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 *LicenseRequestSpec) DeepCopyInto(out *LicenseRequestSpec) { + *out = *in + in.Input.DeepCopyInto(&out.Input) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestSpec. +func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { + if in == nil { + return nil + } + out := new(LicenseRequestSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { + *out = *in + if in.Output != nil { + in, out := &in.Output, &out.Output + *out = new(licenseapi.GenericRequestOutput) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestStatus. +func (in *LicenseRequestStatus) DeepCopy() *LicenseRequestStatus { + if in == nil { + return nil + } + out := new(LicenseRequestStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseSpec. +func (in *LicenseSpec) DeepCopy() *LicenseSpec { + if in == nil { + return nil + } + out := new(LicenseSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseStatus) DeepCopyInto(out *LicenseStatus) { + *out = *in + if in.License != nil { + in, out := &in.License, &out.License + *out = new(licenseapi.License) + (*in).DeepCopyInto(*out) + } + if in.ResourceUsage != nil { + in, out := &in.ResourceUsage, &out.ResourceUsage + *out = make(map[string]licenseapi.ResourceCount, len(*in)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseStatus. +func (in *LicenseStatus) DeepCopy() *LicenseStatus { + if in == nil { + return nil + } + out := new(LicenseStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseToken) DeepCopyInto(out *LicenseToken) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthToken. -func (in *IngressAuthToken) DeepCopy() *IngressAuthToken { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseToken. +func (in *LicenseToken) DeepCopy() *LicenseToken { if in == nil { return nil } - out := new(IngressAuthToken) + out := new(LicenseToken) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IngressAuthToken) DeepCopyObject() runtime.Object { +func (in *LicenseToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3172,13 +4261,13 @@ func (in *IngressAuthToken) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressAuthTokenList) DeepCopyInto(out *IngressAuthTokenList) { +func (in *LicenseTokenList) DeepCopyInto(out *LicenseTokenList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]IngressAuthToken, len(*in)) + *out = make([]LicenseToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3186,18 +4275,18 @@ func (in *IngressAuthTokenList) DeepCopyInto(out *IngressAuthTokenList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenList. -func (in *IngressAuthTokenList) DeepCopy() *IngressAuthTokenList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenList. +func (in *LicenseTokenList) DeepCopy() *LicenseTokenList { if in == nil { return nil } - out := new(IngressAuthTokenList) + out := new(LicenseTokenList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IngressAuthTokenList) DeepCopyObject() runtime.Object { +func (in *LicenseTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3205,59 +4294,64 @@ func (in *IngressAuthTokenList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressAuthTokenSpec) DeepCopyInto(out *IngressAuthTokenSpec) { +func (in *LicenseTokenSpec) DeepCopyInto(out *LicenseTokenSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenSpec. -func (in *IngressAuthTokenSpec) DeepCopy() *IngressAuthTokenSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenSpec. +func (in *LicenseTokenSpec) DeepCopy() *LicenseTokenSpec { if in == nil { return nil } - out := new(IngressAuthTokenSpec) + out := new(LicenseTokenSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { +func (in *LicenseTokenStatus) DeepCopyInto(out *LicenseTokenStatus) { *out = *in + if in.Token != nil { + in, out := &in.Token, &out.Token + *out = new(licenseapi.InstanceTokenAuth) + **out = **in + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenStatus. -func (in *IngressAuthTokenStatus) DeepCopy() *IngressAuthTokenStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenStatus. +func (in *LicenseTokenStatus) DeepCopy() *LicenseTokenStatus { if in == nil { return nil } - out := new(IngressAuthTokenStatus) + out := new(LicenseTokenStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Kiosk) DeepCopyInto(out *Kiosk) { +func (in *LoftUpgrade) DeepCopyInto(out *LoftUpgrade) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) + out.Spec = in.Spec out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kiosk. -func (in *Kiosk) DeepCopy() *Kiosk { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgrade. +func (in *LoftUpgrade) DeepCopy() *LoftUpgrade { if in == nil { return nil } - out := new(Kiosk) + out := new(LoftUpgrade) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Kiosk) DeepCopyObject() runtime.Object { +func (in *LoftUpgrade) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3265,13 +4359,13 @@ func (in *Kiosk) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KioskList) DeepCopyInto(out *KioskList) { +func (in *LoftUpgradeList) DeepCopyInto(out *LoftUpgradeList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Kiosk, len(*in)) + *out = make([]LoftUpgrade, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3279,18 +4373,18 @@ func (in *KioskList) DeepCopyInto(out *KioskList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskList. -func (in *KioskList) DeepCopy() *KioskList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeList. +func (in *LoftUpgradeList) DeepCopy() *LoftUpgradeList { if in == nil { return nil } - out := new(KioskList) + out := new(LoftUpgradeList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *KioskList) DeepCopyObject() runtime.Object { +func (in *LoftUpgradeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3298,106 +4392,73 @@ func (in *KioskList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KioskSpec) DeepCopyInto(out *KioskSpec) { +func (in *LoftUpgradeSpec) DeepCopyInto(out *LoftUpgradeSpec) { *out = *in - in.HelmRelease.DeepCopyInto(&out.HelmRelease) - in.SleepModeConfig.DeepCopyInto(&out.SleepModeConfig) - in.ChartInfo.DeepCopyInto(&out.ChartInfo) - in.StorageClusterQuota.DeepCopyInto(&out.StorageClusterQuota) - in.UISettings.DeepCopyInto(&out.UISettings) - in.License.DeepCopyInto(&out.License) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskSpec. -func (in *KioskSpec) DeepCopy() *KioskSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeSpec. +func (in *LoftUpgradeSpec) DeepCopy() *LoftUpgradeSpec { if in == nil { return nil } - out := new(KioskSpec) + out := new(LoftUpgradeSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KioskStatus) DeepCopyInto(out *KioskStatus) { +func (in *LoftUpgradeStatus) DeepCopyInto(out *LoftUpgradeStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskStatus. -func (in *KioskStatus) DeepCopy() *KioskStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeStatus. +func (in *LoftUpgradeStatus) DeepCopy() *LoftUpgradeStatus { if in == nil { return nil } - out := new(KioskStatus) + out := new(LoftUpgradeStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *License) DeepCopyInto(out *License) { +func (in *MaintenanceWindow) DeepCopyInto(out *MaintenanceWindow) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new License. -func (in *License) DeepCopy() *License { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceWindow. +func (in *MaintenanceWindow) DeepCopy() *MaintenanceWindow { if in == nil { return nil } - out := new(License) + out := new(MaintenanceWindow) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *License) 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 *LicenseList) DeepCopyInto(out *LicenseList) { +func (in *ManagementRole) DeepCopyInto(out *ManagementRole) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]License, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + out.ObjectName = in.ObjectName + out.AssignedVia = in.AssignedVia return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseList. -func (in *LicenseList) DeepCopy() *LicenseList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagementRole. +func (in *ManagementRole) DeepCopy() *ManagementRole { if in == nil { return nil } - out := new(LicenseList) + out := new(ManagementRole) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseList) 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 *LicenseRequest) DeepCopyInto(out *LicenseRequest) { +func (in *NodeClaim) DeepCopyInto(out *NodeClaim) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3406,18 +4467,18 @@ func (in *LicenseRequest) DeepCopyInto(out *LicenseRequest) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequest. -func (in *LicenseRequest) DeepCopy() *LicenseRequest { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaim. +func (in *NodeClaim) DeepCopy() *NodeClaim { if in == nil { return nil } - out := new(LicenseRequest) + out := new(NodeClaim) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseRequest) DeepCopyObject() runtime.Object { +func (in *NodeClaim) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3425,13 +4486,13 @@ func (in *LicenseRequest) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseRequestList) DeepCopyInto(out *LicenseRequestList) { +func (in *NodeClaimList) DeepCopyInto(out *NodeClaimList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]LicenseRequest, len(*in)) + *out = make([]NodeClaim, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3439,18 +4500,18 @@ func (in *LicenseRequestList) DeepCopyInto(out *LicenseRequestList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestList. -func (in *LicenseRequestList) DeepCopy() *LicenseRequestList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimList. +func (in *NodeClaimList) DeepCopy() *NodeClaimList { if in == nil { return nil } - out := new(LicenseRequestList) + out := new(NodeClaimList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseRequestList) DeepCopyObject() runtime.Object { +func (in *NodeClaimList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3458,109 +4519,61 @@ func (in *LicenseRequestList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseRequestSpec) DeepCopyInto(out *LicenseRequestSpec) { - *out = *in - in.Input.DeepCopyInto(&out.Input) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestSpec. -func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { - if in == nil { - return nil - } - out := new(LicenseRequestSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { - *out = *in - if in.Output != nil { - in, out := &in.Output, &out.Output - *out = new(licenseapi.GenericRequestOutput) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestStatus. -func (in *LicenseRequestStatus) DeepCopy() *LicenseRequestStatus { - if in == nil { - return nil - } - out := new(LicenseRequestStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec) { +func (in *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { *out = *in + in.NodeClaimSpec.DeepCopyInto(&out.NodeClaimSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseSpec. -func (in *LicenseSpec) DeepCopy() *LicenseSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimSpec. +func (in *NodeClaimSpec) DeepCopy() *NodeClaimSpec { if in == nil { return nil } - out := new(LicenseSpec) + out := new(NodeClaimSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseStatus) DeepCopyInto(out *LicenseStatus) { +func (in *NodeClaimStatus) DeepCopyInto(out *NodeClaimStatus) { *out = *in - if in.License != nil { - in, out := &in.License, &out.License - *out = new(licenseapi.License) - (*in).DeepCopyInto(*out) - } - if in.ResourceUsage != nil { - in, out := &in.ResourceUsage, &out.ResourceUsage - *out = make(map[string]licenseapi.ResourceCount, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() - } - } + in.NodeClaimStatus.DeepCopyInto(&out.NodeClaimStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseStatus. -func (in *LicenseStatus) DeepCopy() *LicenseStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimStatus. +func (in *NodeClaimStatus) DeepCopy() *NodeClaimStatus { if in == nil { return nil } - out := new(LicenseStatus) + out := new(NodeClaimStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseToken) DeepCopyInto(out *LicenseToken) { +func (in *NodeProvider) DeepCopyInto(out *NodeProvider) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec + in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseToken. -func (in *LicenseToken) DeepCopy() *LicenseToken { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProvider. +func (in *NodeProvider) DeepCopy() *NodeProvider { if in == nil { return nil } - out := new(LicenseToken) + out := new(NodeProvider) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseToken) DeepCopyObject() runtime.Object { +func (in *NodeProvider) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3568,13 +4581,13 @@ func (in *LicenseToken) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenList) DeepCopyInto(out *LicenseTokenList) { +func (in *NodeProviderList) DeepCopyInto(out *NodeProviderList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]LicenseToken, len(*in)) + *out = make([]NodeProvider, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3582,18 +4595,18 @@ func (in *LicenseTokenList) DeepCopyInto(out *LicenseTokenList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenList. -func (in *LicenseTokenList) DeepCopy() *LicenseTokenList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderList. +func (in *NodeProviderList) DeepCopy() *NodeProviderList { if in == nil { return nil } - out := new(LicenseTokenList) + out := new(NodeProviderList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseTokenList) DeepCopyObject() runtime.Object { +func (in *NodeProviderList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3601,64 +4614,61 @@ func (in *LicenseTokenList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenSpec) DeepCopyInto(out *LicenseTokenSpec) { +func (in *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { *out = *in + in.NodeProviderSpec.DeepCopyInto(&out.NodeProviderSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenSpec. -func (in *LicenseTokenSpec) DeepCopy() *LicenseTokenSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderSpec. +func (in *NodeProviderSpec) DeepCopy() *NodeProviderSpec { if in == nil { return nil } - out := new(LicenseTokenSpec) + out := new(NodeProviderSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenStatus) DeepCopyInto(out *LicenseTokenStatus) { +func (in *NodeProviderStatus) DeepCopyInto(out *NodeProviderStatus) { *out = *in - if in.Token != nil { - in, out := &in.Token, &out.Token - *out = new(licenseapi.InstanceTokenAuth) - **out = **in - } + in.NodeProviderStatus.DeepCopyInto(&out.NodeProviderStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenStatus. -func (in *LicenseTokenStatus) DeepCopy() *LicenseTokenStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderStatus. +func (in *NodeProviderStatus) DeepCopy() *NodeProviderStatus { if in == nil { return nil } - out := new(LicenseTokenStatus) + out := new(NodeProviderStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgrade) DeepCopyInto(out *LoftUpgrade) { +func (in *NodeType) DeepCopyInto(out *NodeType) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgrade. -func (in *LoftUpgrade) DeepCopy() *LoftUpgrade { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeType. +func (in *NodeType) DeepCopy() *NodeType { if in == nil { return nil } - out := new(LoftUpgrade) + out := new(NodeType) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LoftUpgrade) DeepCopyObject() runtime.Object { +func (in *NodeType) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3666,13 +4676,13 @@ func (in *LoftUpgrade) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgradeList) DeepCopyInto(out *LoftUpgradeList) { +func (in *NodeTypeList) DeepCopyInto(out *NodeTypeList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]LoftUpgrade, len(*in)) + *out = make([]NodeType, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3680,18 +4690,18 @@ func (in *LoftUpgradeList) DeepCopyInto(out *LoftUpgradeList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeList. -func (in *LoftUpgradeList) DeepCopy() *LoftUpgradeList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeList. +func (in *NodeTypeList) DeepCopy() *NodeTypeList { if in == nil { return nil } - out := new(LoftUpgradeList) + out := new(NodeTypeList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LoftUpgradeList) DeepCopyObject() runtime.Object { +func (in *NodeTypeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3699,33 +4709,35 @@ func (in *LoftUpgradeList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgradeSpec) DeepCopyInto(out *LoftUpgradeSpec) { +func (in *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { *out = *in + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeSpec. -func (in *LoftUpgradeSpec) DeepCopy() *LoftUpgradeSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeSpec. +func (in *NodeTypeSpec) DeepCopy() *NodeTypeSpec { if in == nil { return nil } - out := new(LoftUpgradeSpec) + out := new(NodeTypeSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgradeStatus) DeepCopyInto(out *LoftUpgradeStatus) { +func (in *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { *out = *in + in.NodeTypeStatus.DeepCopyInto(&out.NodeTypeStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeStatus. -func (in *LoftUpgradeStatus) DeepCopy() *LoftUpgradeStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeStatus. +func (in *NodeTypeStatus) DeepCopy() *NodeTypeStatus { if in == nil { return nil } - out := new(LoftUpgradeStatus) + out := new(NodeTypeStatus) in.DeepCopyInto(out) return out } @@ -3851,6 +4863,44 @@ func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ObjectName) DeepCopyInto(out *ObjectName) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectName. +func (in *ObjectName) DeepCopy() *ObjectName { + if in == nil { + return nil + } + out := new(ObjectName) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ObjectPermission) DeepCopyInto(out *ObjectPermission) { + *out = *in + out.ObjectName = in.ObjectName + if in.Verbs != nil { + in, out := &in.Verbs, &out.Verbs + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectPermission. +func (in *ObjectPermission) DeepCopy() *ObjectPermission { + if in == nil { + return nil + } + out := new(ObjectPermission) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *OwnedAccessKey) DeepCopyInto(out *OwnedAccessKey) { *out = *in @@ -4168,13 +5218,6 @@ func (in *ProjectClusters) DeepCopyInto(out *ProjectClusters) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Runners != nil { - in, out := &in.Runners, &out.Runners - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } @@ -4411,19 +5454,38 @@ func (in *ProjectMembersList) DeepCopy() *ProjectMembersList { if in == nil { return nil } - out := new(ProjectMembersList) + out := new(ProjectMembersList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectMembersList) 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 *ProjectMembership) DeepCopyInto(out *ProjectMembership) { + *out = *in + out.ObjectName = in.ObjectName + out.Role = in.Role + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMembership. +func (in *ProjectMembership) DeepCopy() *ProjectMembership { + if in == nil { + return nil + } + out := new(ProjectMembership) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMembersList) 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 *ProjectMigrateSpaceInstance) DeepCopyInto(out *ProjectMigrateSpaceInstance) { *out = *in @@ -4577,71 +5639,22 @@ func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrate } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectRunners) DeepCopyInto(out *ProjectRunners) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Runners != nil { - in, out := &in.Runners, &out.Runners - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRunners. -func (in *ProjectRunners) DeepCopy() *ProjectRunners { - if in == nil { - return nil - } - out := new(ProjectRunners) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectRunners) 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 *ProjectRunnersList) DeepCopyInto(out *ProjectRunnersList) { +func (in *ProjectRole) DeepCopyInto(out *ProjectRole) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ProjectRunners, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + out.ObjectName = in.ObjectName return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRunnersList. -func (in *ProjectRunnersList) DeepCopy() *ProjectRunnersList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRole. +func (in *ProjectRole) DeepCopy() *ProjectRole { if in == nil { return nil } - out := new(ProjectRunnersList) + out := new(ProjectRole) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectRunnersList) 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 *ProjectSecret) DeepCopyInto(out *ProjectSecret) { *out = *in @@ -4836,6 +5849,13 @@ func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.DevPodWorkspacePresets != nil { + in, out := &in.DevPodWorkspacePresets, &out.DevPodWorkspacePresets + *out = make([]DevPodWorkspacePreset, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } @@ -4905,215 +5925,13 @@ func (in *RedirectToken) DeepCopy() *RedirectToken { if in == nil { return nil } - out := new(RedirectToken) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RedirectToken) 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 *RedirectTokenClaims) DeepCopyInto(out *RedirectTokenClaims) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenClaims. -func (in *RedirectTokenClaims) DeepCopy() *RedirectTokenClaims { - if in == nil { - return nil - } - out := new(RedirectTokenClaims) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RedirectTokenList) DeepCopyInto(out *RedirectTokenList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RedirectToken, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenList. -func (in *RedirectTokenList) DeepCopy() *RedirectTokenList { - if in == nil { - return nil - } - out := new(RedirectTokenList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RedirectTokenList) 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 *RedirectTokenSpec) DeepCopyInto(out *RedirectTokenSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenSpec. -func (in *RedirectTokenSpec) DeepCopy() *RedirectTokenSpec { - if in == nil { - return nil - } - out := new(RedirectTokenSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RedirectTokenStatus) DeepCopyInto(out *RedirectTokenStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenStatus. -func (in *RedirectTokenStatus) DeepCopy() *RedirectTokenStatus { - if in == nil { - return nil - } - out := new(RedirectTokenStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RegisterVirtualCluster) DeepCopyInto(out *RegisterVirtualCluster) { - *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 RegisterVirtualCluster. -func (in *RegisterVirtualCluster) DeepCopy() *RegisterVirtualCluster { - if in == nil { - return nil - } - out := new(RegisterVirtualCluster) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RegisterVirtualCluster) 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 *RegisterVirtualClusterList) DeepCopyInto(out *RegisterVirtualClusterList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RegisterVirtualCluster, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterList. -func (in *RegisterVirtualClusterList) DeepCopy() *RegisterVirtualClusterList { - if in == nil { - return nil - } - out := new(RegisterVirtualClusterList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RegisterVirtualClusterList) 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 *RegisterVirtualClusterSpec) DeepCopyInto(out *RegisterVirtualClusterSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterSpec. -func (in *RegisterVirtualClusterSpec) DeepCopy() *RegisterVirtualClusterSpec { - if in == nil { - return nil - } - out := new(RegisterVirtualClusterSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RegisterVirtualClusterStatus) DeepCopyInto(out *RegisterVirtualClusterStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterStatus. -func (in *RegisterVirtualClusterStatus) DeepCopy() *RegisterVirtualClusterStatus { - if in == nil { - return nil - } - out := new(RegisterVirtualClusterStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResetAccessKey) DeepCopyInto(out *ResetAccessKey) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKey. -func (in *ResetAccessKey) DeepCopy() *ResetAccessKey { - if in == nil { - return nil - } - out := new(ResetAccessKey) + out := new(RedirectToken) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResetAccessKey) DeepCopyObject() runtime.Object { +func (in *RedirectToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5121,13 +5939,29 @@ func (in *ResetAccessKey) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResetAccessKeyList) DeepCopyInto(out *ResetAccessKeyList) { +func (in *RedirectTokenClaims) DeepCopyInto(out *RedirectTokenClaims) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenClaims. +func (in *RedirectTokenClaims) DeepCopy() *RedirectTokenClaims { + if in == nil { + return nil + } + out := new(RedirectTokenClaims) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RedirectTokenList) DeepCopyInto(out *RedirectTokenList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ResetAccessKey, len(*in)) + *out = make([]RedirectToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5135,18 +5969,18 @@ func (in *ResetAccessKeyList) DeepCopyInto(out *ResetAccessKeyList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeyList. -func (in *ResetAccessKeyList) DeepCopy() *ResetAccessKeyList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenList. +func (in *RedirectTokenList) DeepCopy() *RedirectTokenList { if in == nil { return nil } - out := new(ResetAccessKeyList) + out := new(RedirectTokenList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResetAccessKeyList) DeepCopyObject() runtime.Object { +func (in *RedirectTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5154,61 +5988,59 @@ func (in *ResetAccessKeyList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResetAccessKeySpec) DeepCopyInto(out *ResetAccessKeySpec) { +func (in *RedirectTokenSpec) DeepCopyInto(out *RedirectTokenSpec) { *out = *in - in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeySpec. -func (in *ResetAccessKeySpec) DeepCopy() *ResetAccessKeySpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenSpec. +func (in *RedirectTokenSpec) DeepCopy() *RedirectTokenSpec { if in == nil { return nil } - out := new(ResetAccessKeySpec) + out := new(RedirectTokenSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResetAccessKeyStatus) DeepCopyInto(out *ResetAccessKeyStatus) { +func (in *RedirectTokenStatus) DeepCopyInto(out *RedirectTokenStatus) { *out = *in - in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeyStatus. -func (in *ResetAccessKeyStatus) DeepCopy() *ResetAccessKeyStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenStatus. +func (in *RedirectTokenStatus) DeepCopy() *RedirectTokenStatus { if in == nil { return nil } - out := new(ResetAccessKeyStatus) + out := new(RedirectTokenStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Runner) DeepCopyInto(out *Runner) { +func (in *RegisterVirtualCluster) DeepCopyInto(out *RegisterVirtualCluster) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Spec = in.Spec + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Runner. -func (in *Runner) DeepCopy() *Runner { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualCluster. +func (in *RegisterVirtualCluster) DeepCopy() *RegisterVirtualCluster { if in == nil { return nil } - out := new(Runner) + out := new(RegisterVirtualCluster) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Runner) DeepCopyObject() runtime.Object { +func (in *RegisterVirtualCluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5216,25 +6048,32 @@ func (in *Runner) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerAccessKey) DeepCopyInto(out *RunnerAccessKey) { +func (in *RegisterVirtualClusterList) DeepCopyInto(out *RegisterVirtualClusterList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RegisterVirtualCluster, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerAccessKey. -func (in *RunnerAccessKey) DeepCopy() *RunnerAccessKey { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterList. +func (in *RegisterVirtualClusterList) DeepCopy() *RegisterVirtualClusterList { if in == nil { return nil } - out := new(RunnerAccessKey) + out := new(RegisterVirtualClusterList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerAccessKey) DeepCopyObject() runtime.Object { +func (in *RegisterVirtualClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5242,96 +6081,59 @@ func (in *RunnerAccessKey) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerAccessKeyList) DeepCopyInto(out *RunnerAccessKeyList) { +func (in *RegisterVirtualClusterSpec) DeepCopyInto(out *RegisterVirtualClusterSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RunnerAccessKey, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerAccessKeyList. -func (in *RunnerAccessKeyList) DeepCopy() *RunnerAccessKeyList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterSpec. +func (in *RegisterVirtualClusterSpec) DeepCopy() *RegisterVirtualClusterSpec { if in == nil { return nil } - out := new(RunnerAccessKeyList) + out := new(RegisterVirtualClusterSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerAccessKeyList) 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 *RunnerConfig) DeepCopyInto(out *RunnerConfig) { +func (in *RegisterVirtualClusterStatus) DeepCopyInto(out *RegisterVirtualClusterStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.TokenCaCert != nil { - in, out := &in.TokenCaCert, &out.TokenCaCert - *out = make([]byte, len(*in)) - copy(*out, *in) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerConfig. -func (in *RunnerConfig) DeepCopy() *RunnerConfig { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterStatus. +func (in *RegisterVirtualClusterStatus) DeepCopy() *RegisterVirtualClusterStatus { if in == nil { return nil } - out := new(RunnerConfig) + out := new(RegisterVirtualClusterStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerConfig) 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 *RunnerConfigList) DeepCopyInto(out *RunnerConfigList) { +func (in *ResetAccessKey) DeepCopyInto(out *ResetAccessKey) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RunnerConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerConfigList. -func (in *RunnerConfigList) DeepCopy() *RunnerConfigList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKey. +func (in *ResetAccessKey) DeepCopy() *ResetAccessKey { if in == nil { return nil } - out := new(RunnerConfigList) + out := new(ResetAccessKey) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerConfigList) DeepCopyObject() runtime.Object { +func (in *ResetAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5339,13 +6141,13 @@ func (in *RunnerConfigList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerList) DeepCopyInto(out *RunnerList) { +func (in *ResetAccessKeyList) DeepCopyInto(out *ResetAccessKeyList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Runner, len(*in)) + *out = make([]ResetAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5353,18 +6155,18 @@ func (in *RunnerList) DeepCopyInto(out *RunnerList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerList. -func (in *RunnerList) DeepCopy() *RunnerList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeyList. +func (in *ResetAccessKeyList) DeepCopy() *ResetAccessKeyList { if in == nil { return nil } - out := new(RunnerList) + out := new(ResetAccessKeyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerList) DeepCopyObject() runtime.Object { +func (in *ResetAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5372,35 +6174,35 @@ func (in *RunnerList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerSpec) DeepCopyInto(out *RunnerSpec) { +func (in *ResetAccessKeySpec) DeepCopyInto(out *ResetAccessKeySpec) { *out = *in - in.RunnerSpec.DeepCopyInto(&out.RunnerSpec) + in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerSpec. -func (in *RunnerSpec) DeepCopy() *RunnerSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeySpec. +func (in *ResetAccessKeySpec) DeepCopy() *ResetAccessKeySpec { if in == nil { return nil } - out := new(RunnerSpec) + out := new(ResetAccessKeySpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerStatus) DeepCopyInto(out *RunnerStatus) { +func (in *ResetAccessKeyStatus) DeepCopyInto(out *ResetAccessKeyStatus) { *out = *in - in.RunnerStatus.DeepCopyInto(&out.RunnerStatus) + in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerStatus. -func (in *RunnerStatus) DeepCopy() *RunnerStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeyStatus. +func (in *ResetAccessKeyStatus) DeepCopy() *ResetAccessKeyStatus { if in == nil { return nil } - out := new(RunnerStatus) + out := new(ResetAccessKeyStatus) in.DeepCopyInto(out) return out } @@ -6364,18 +7166,170 @@ func (in *TeamClustersList) DeepCopyInto(out *TeamClustersList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamClustersList. -func (in *TeamClustersList) DeepCopy() *TeamClustersList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamClustersList. +func (in *TeamClustersList) DeepCopy() *TeamClustersList { + if in == nil { + return nil + } + out := new(TeamClustersList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamClustersList) 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 *TeamList) DeepCopyInto(out *TeamList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Team, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamList. +func (in *TeamList) DeepCopy() *TeamList { + if in == nil { + return nil + } + out := new(TeamList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamList) 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 *TeamObjectPermissions) DeepCopyInto(out *TeamObjectPermissions) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.ObjectPermissions != nil { + in, out := &in.ObjectPermissions, &out.ObjectPermissions + *out = make([]ObjectPermission, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamObjectPermissions. +func (in *TeamObjectPermissions) DeepCopy() *TeamObjectPermissions { + if in == nil { + return nil + } + out := new(TeamObjectPermissions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamObjectPermissions) 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 *TeamObjectPermissionsList) DeepCopyInto(out *TeamObjectPermissionsList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TeamObjectPermissions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamObjectPermissionsList. +func (in *TeamObjectPermissionsList) DeepCopy() *TeamObjectPermissionsList { + if in == nil { + return nil + } + out := new(TeamObjectPermissionsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamObjectPermissionsList) 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 *TeamPermissions) DeepCopyInto(out *TeamPermissions) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Members != nil { + in, out := &in.Members, &out.Members + *out = make([]ObjectName, len(*in)) + copy(*out, *in) + } + if in.ProjectMemberships != nil { + in, out := &in.ProjectMemberships, &out.ProjectMemberships + *out = make([]ProjectMembership, len(*in)) + copy(*out, *in) + } + if in.ManagementRoles != nil { + in, out := &in.ManagementRoles, &out.ManagementRoles + *out = make([]ManagementRole, len(*in)) + copy(*out, *in) + } + if in.ClusterAccessRoles != nil { + in, out := &in.ClusterAccessRoles, &out.ClusterAccessRoles + *out = make([]ClusterAccessRole, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.VirtualClusterRoles != nil { + in, out := &in.VirtualClusterRoles, &out.VirtualClusterRoles + *out = make([]VirtualClusterRole, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamPermissions. +func (in *TeamPermissions) DeepCopy() *TeamPermissions { if in == nil { return nil } - out := new(TeamClustersList) + out := new(TeamPermissions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamClustersList) DeepCopyObject() runtime.Object { +func (in *TeamPermissions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6383,13 +7337,13 @@ func (in *TeamClustersList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamList) DeepCopyInto(out *TeamList) { +func (in *TeamPermissionsList) DeepCopyInto(out *TeamPermissionsList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Team, len(*in)) + *out = make([]TeamPermissions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6397,18 +7351,18 @@ func (in *TeamList) DeepCopyInto(out *TeamList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamList. -func (in *TeamList) DeepCopy() *TeamList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamPermissionsList. +func (in *TeamPermissionsList) DeepCopy() *TeamPermissionsList { if in == nil { return nil } - out := new(TeamList) + out := new(TeamPermissionsList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamList) DeepCopyObject() runtime.Object { +func (in *TeamPermissionsList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6763,6 +7717,72 @@ func (in *UserList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserObjectPermissions) DeepCopyInto(out *UserObjectPermissions) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.ObjectPermissions != nil { + in, out := &in.ObjectPermissions, &out.ObjectPermissions + *out = make([]ObjectPermission, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserObjectPermissions. +func (in *UserObjectPermissions) DeepCopy() *UserObjectPermissions { + if in == nil { + return nil + } + out := new(UserObjectPermissions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserObjectPermissions) 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 *UserObjectPermissionsList) DeepCopyInto(out *UserObjectPermissionsList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UserObjectPermissions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserObjectPermissionsList. +func (in *UserObjectPermissionsList) DeepCopy() *UserObjectPermissionsList { + if in == nil { + return nil + } + out := new(UserObjectPermissionsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserObjectPermissionsList) 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 *UserPermissions) DeepCopyInto(out *UserPermissions) { *out = *in @@ -6782,6 +7802,33 @@ func (in *UserPermissions) DeepCopyInto(out *UserPermissions) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.TeamMemberships != nil { + in, out := &in.TeamMemberships, &out.TeamMemberships + *out = make([]ObjectName, len(*in)) + copy(*out, *in) + } + if in.ProjectMemberships != nil { + in, out := &in.ProjectMemberships, &out.ProjectMemberships + *out = make([]ProjectMembership, len(*in)) + copy(*out, *in) + } + if in.ManagementRoles != nil { + in, out := &in.ManagementRoles, &out.ManagementRoles + *out = make([]ManagementRole, len(*in)) + copy(*out, *in) + } + if in.ClusterAccessRoles != nil { + in, out := &in.ClusterAccessRoles, &out.ClusterAccessRoles + *out = make([]ClusterAccessRole, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.VirtualClusterRoles != nil { + in, out := &in.VirtualClusterRoles, &out.VirtualClusterRoles + *out = make([]VirtualClusterRole, len(*in)) + copy(*out, *in) + } return } @@ -6869,6 +7916,25 @@ func (in *UserProfile) DeepCopyInto(out *UserProfile) { *out = new(string) **out = **in } + if in.Secrets != nil { + in, out := &in.Secrets, &out.Secrets + *out = new(map[string]*UserProfileSecret) + if **in != nil { + in, out := *in, *out + *out = make(map[string]*UserProfileSecret, len(*in)) + for key, val := range *in { + var outVal *UserProfileSecret + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(UserProfileSecret) + **out = **in + } + (*out)[key] = outVal + } + } + } return } @@ -6923,6 +7989,22 @@ func (in *UserProfileList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserProfileSecret) DeepCopyInto(out *UserProfileSecret) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProfileSecret. +func (in *UserProfileSecret) DeepCopy() *UserProfileSecret { + if in == nil { + return nil + } + out := new(UserProfileSecret) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserQuotasOptions) DeepCopyInto(out *UserQuotasOptions) { *out = *in @@ -7106,6 +8188,99 @@ func (in *VirtualClusterAccessKeyList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabase) DeepCopyInto(out *VirtualClusterExternalDatabase) { + *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 VirtualClusterExternalDatabase. +func (in *VirtualClusterExternalDatabase) DeepCopy() *VirtualClusterExternalDatabase { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabase) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterExternalDatabase) 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 *VirtualClusterExternalDatabaseList) DeepCopyInto(out *VirtualClusterExternalDatabaseList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterExternalDatabase, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseList. +func (in *VirtualClusterExternalDatabaseList) DeepCopy() *VirtualClusterExternalDatabaseList { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterExternalDatabaseList) 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 *VirtualClusterExternalDatabaseSpec) DeepCopyInto(out *VirtualClusterExternalDatabaseSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseSpec. +func (in *VirtualClusterExternalDatabaseSpec) DeepCopy() *VirtualClusterExternalDatabaseSpec { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopyInto(out *VirtualClusterExternalDatabaseStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseStatus. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopy() *VirtualClusterExternalDatabaseStatus { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { *out = *in @@ -7407,6 +8582,117 @@ func (in *VirtualClusterInstanceStatus) DeepCopy() *VirtualClusterInstanceStatus return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterRole) DeepCopyInto(out *VirtualClusterRole) { + *out = *in + out.ObjectName = in.ObjectName + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterRole. +func (in *VirtualClusterRole) DeepCopy() *VirtualClusterRole { + if in == nil { + return nil + } + out := new(VirtualClusterRole) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterSchema) DeepCopyInto(out *VirtualClusterSchema) { + *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 VirtualClusterSchema. +func (in *VirtualClusterSchema) DeepCopy() *VirtualClusterSchema { + if in == nil { + return nil + } + out := new(VirtualClusterSchema) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterSchema) 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 *VirtualClusterSchemaList) DeepCopyInto(out *VirtualClusterSchemaList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterSchema, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaList. +func (in *VirtualClusterSchemaList) DeepCopy() *VirtualClusterSchemaList { + if in == nil { + return nil + } + out := new(VirtualClusterSchemaList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterSchemaList) 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 *VirtualClusterSchemaSpec) DeepCopyInto(out *VirtualClusterSchemaSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaSpec. +func (in *VirtualClusterSchemaSpec) DeepCopy() *VirtualClusterSchemaSpec { + if in == nil { + return nil + } + out := new(VirtualClusterSchemaSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterSchemaStatus) DeepCopyInto(out *VirtualClusterSchemaStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaStatus. +func (in *VirtualClusterSchemaStatus) DeepCopy() *VirtualClusterSchemaStatus { + if in == nil { + return nil + } + out := new(VirtualClusterSchemaStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualClusterTemplate) DeepCopyInto(out *VirtualClusterTemplate) { *out = *in diff --git a/pkg/apis/management/v1/zz_generated.defaults.go b/pkg/apis/management/v1/zz_generated.defaults.go index d7e43310..fd9afaf0 100644 --- a/pkg/apis/management/v1/zz_generated.defaults.go +++ b/pkg/apis/management/v1/zz_generated.defaults.go @@ -6,7 +6,7 @@ package v1 import ( - v1 "k8s.io/api/core/v1" + corev1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -14,48 +14,669 @@ 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(&ProjectClusters{}, func(obj interface{}) { SetObjectDefaults_ProjectClusters(obj.(*ProjectClusters)) }) - scheme.AddTypeDefaultingFunc(&ProjectClustersList{}, func(obj interface{}) { SetObjectDefaults_ProjectClustersList(obj.(*ProjectClustersList)) }) - scheme.AddTypeDefaultingFunc(&ProjectRunners{}, func(obj interface{}) { SetObjectDefaults_ProjectRunners(obj.(*ProjectRunners)) }) - scheme.AddTypeDefaultingFunc(&ProjectRunnersList{}, func(obj interface{}) { SetObjectDefaults_ProjectRunnersList(obj.(*ProjectRunnersList)) }) - scheme.AddTypeDefaultingFunc(&Runner{}, func(obj interface{}) { SetObjectDefaults_Runner(obj.(*Runner)) }) - scheme.AddTypeDefaultingFunc(&RunnerList{}, func(obj interface{}) { SetObjectDefaults_RunnerList(obj.(*RunnerList)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstance(obj.(*DevPodWorkspaceInstance)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceList{}, func(obj interface{}) { + SetObjectDefaults_DevPodWorkspaceInstanceList(obj.(*DevPodWorkspaceInstanceList)) + }) + 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(&ProjectTemplates{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplates(obj.(*ProjectTemplates)) }) + scheme.AddTypeDefaultingFunc(&ProjectTemplatesList{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplatesList(obj.(*ProjectTemplatesList)) }) return nil } -func SetObjectDefaults_ProjectClusters(in *ProjectClusters) { - for i := range in.Runners { - a := &in.Runners[i] - SetObjectDefaults_Runner(a) +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] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } + 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 a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers { + a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers { + a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } } } -func SetObjectDefaults_ProjectClustersList(in *ProjectClustersList) { +func SetObjectDefaults_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_ProjectClusters(a) + SetObjectDefaults_DevPodWorkspaceInstance(a) } } -func SetObjectDefaults_ProjectRunners(in *ProjectRunners) { - for i := range in.Runners { - a := &in.Runners[i] - SetObjectDefaults_Runner(a) +func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot) { + if in.Workspace != nil { + SetObjectDefaults_DevPodWorkspaceInstance(in.Workspace) + } + if in.Template != nil { + if in.Template.Spec.Template.Kubernetes != nil { + if in.Template.Spec.Template.Kubernetes.Pod != nil { + for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.Volumes[i] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + for i := range in.Template.Spec.Versions { + a := &in.Template.Spec.Versions[i] + if a.Template.Kubernetes != nil { + if a.Template.Kubernetes.Pod != nil { + for j := range a.Template.Kubernetes.Pod.Spec.Volumes { + b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { + b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.Containers { + b := &a.Template.Kubernetes.Pod.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } + } + for i := range in.Pods { + a := &in.Pods[i] + for j := range a.Spec.Volumes { + b := &a.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Spec.InitContainers { + b := &a.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Spec.Containers { + b := &a.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Spec.EphemeralContainers { + b := &a.Spec.EphemeralContainers[j] + for k := range b.EphemeralContainerCommon.Ports { + c := &b.EphemeralContainerCommon.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.EphemeralContainerCommon.LivenessProbe != nil { + if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil { + if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.EphemeralContainerCommon.ReadinessProbe != nil { + if b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.EphemeralContainerCommon.StartupProbe != nil { + if b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil { + if b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } } } -func SetObjectDefaults_ProjectRunnersList(in *ProjectRunnersList) { +func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_ProjectRunners(a) + SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(a) } } -func SetObjectDefaults_Runner(in *Runner) { - if in.Spec.RunnerSpec.ClusterRef != nil { - if in.Spec.RunnerSpec.ClusterRef.PodTemplate != nil { - for i := range in.Spec.RunnerSpec.ClusterRef.PodTemplate.Spec.Volumes { - a := &in.Spec.RunnerSpec.ClusterRef.PodTemplate.Spec.Volumes[i] +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] if a.VolumeSource.ISCSI != nil { if a.VolumeSource.ISCSI.ISCSIInterface == "" { a.VolumeSource.ISCSI.ISCSIInterface = "default" @@ -74,7 +695,7 @@ func SetObjectDefaults_Runner(in *Runner) { } if a.VolumeSource.AzureDisk != nil { if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 } if a.VolumeSource.AzureDisk.FSType == nil { @@ -86,7 +707,7 @@ func SetObjectDefaults_Runner(in *Runner) { a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 } if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) a.VolumeSource.AzureDisk.Kind = &ptrVar1 } } @@ -99,8 +720,41 @@ func SetObjectDefaults_Runner(in *Runner) { } } } - for i := range in.Spec.RunnerSpec.ClusterRef.PodTemplate.Spec.InitContainers { - a := &in.Spec.RunnerSpec.ClusterRef.PodTemplate.Spec.InitContainers[i] + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { @@ -134,11 +788,143 @@ func SetObjectDefaults_Runner(in *Runner) { } } } + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Versions { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Versions[i] + if a.Template.Kubernetes != nil { + if a.Template.Kubernetes.Pod != nil { + for j := range a.Template.Kubernetes.Pod.Spec.Volumes { + b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { + b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.Containers { + b := &a.Template.Kubernetes.Pod.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } +} + +func SetObjectDefaults_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_DevPodWorkspaceTemplate(a) + } +} + +func SetObjectDefaults_ProjectTemplates(in *ProjectTemplates) { + for i := range in.DevPodWorkspaceTemplates { + a := &in.DevPodWorkspaceTemplates[i] + SetObjectDefaults_DevPodWorkspaceTemplate(a) + } } -func SetObjectDefaults_RunnerList(in *RunnerList) { +func SetObjectDefaults_ProjectTemplatesList(in *ProjectTemplatesList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_Runner(a) + SetObjectDefaults_ProjectTemplates(a) } } diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 15c51fdc..7a9e9879 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -15,6 +15,7 @@ import ( "github.com/loft-sh/api/v4/pkg/managerfactory" "github.com/loft-sh/apiserver/pkg/builders" authorizationv1 "k8s.io/api/authorization/v1" + corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" "k8s.io/apimachinery/pkg/apis/meta/internalversion" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -76,7 +77,11 @@ var ( NewClusterREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewClusterRESTFunc(Factory) } - NewClusterRESTFunc NewRESTFunc + NewClusterRESTFunc NewRESTFunc + NewClusterStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewClusterStatusRESTFunc(Factory) + } + NewClusterStatusRESTFunc NewRESTFunc ManagementClusterAccessStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalClusterAccess, func() runtime.Object { return &ClusterAccess{} }, // Register versioned resource @@ -116,7 +121,17 @@ var ( NewConvertVirtualClusterConfigREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewConvertVirtualClusterConfigRESTFunc(Factory) } - NewConvertVirtualClusterConfigRESTFunc NewRESTFunc + NewConvertVirtualClusterConfigRESTFunc NewRESTFunc + ManagementDatabaseConnectorStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalDatabaseConnector, + func() runtime.Object { return &DatabaseConnector{} }, // Register versioned resource + func() runtime.Object { return &DatabaseConnectorList{} }, // Register versioned resource list + NewDatabaseConnectorREST, + ) + 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 @@ -136,7 +151,17 @@ var ( NewDevPodWorkspaceInstanceREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewDevPodWorkspaceInstanceRESTFunc(Factory) } - NewDevPodWorkspaceInstanceRESTFunc NewRESTFunc + 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 @@ -230,7 +255,49 @@ var ( NewLoftUpgradeREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewLoftUpgradeRESTFunc(Factory) } - NewLoftUpgradeRESTFunc NewRESTFunc + NewLoftUpgradeRESTFunc NewRESTFunc + ManagementNodeClaimStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalNodeClaim, + func() runtime.Object { return &NodeClaim{} }, // Register versioned resource + func() runtime.Object { return &NodeClaimList{} }, // Register versioned resource list + NewNodeClaimREST, + ) + NewNodeClaimREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeClaimRESTFunc(Factory) + } + NewNodeClaimRESTFunc NewRESTFunc + NewNodeClaimStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeClaimStatusRESTFunc(Factory) + } + NewNodeClaimStatusRESTFunc NewRESTFunc + ManagementNodeProviderStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalNodeProvider, + func() runtime.Object { return &NodeProvider{} }, // Register versioned resource + func() runtime.Object { return &NodeProviderList{} }, // Register versioned resource list + NewNodeProviderREST, + ) + NewNodeProviderREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeProviderRESTFunc(Factory) + } + NewNodeProviderRESTFunc NewRESTFunc + NewNodeProviderStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeProviderStatusRESTFunc(Factory) + } + NewNodeProviderStatusRESTFunc NewRESTFunc + ManagementNodeTypeStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalNodeType, + func() runtime.Object { return &NodeType{} }, // Register versioned resource + func() runtime.Object { return &NodeTypeList{} }, // Register versioned resource list + NewNodeTypeREST, + ) + NewNodeTypeREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeTypeRESTFunc(Factory) + } + NewNodeTypeRESTFunc NewRESTFunc + NewNodeTypeStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeTypeStatusRESTFunc(Factory) + } + NewNodeTypeStatusRESTFunc NewRESTFunc ManagementOIDCClientStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalOIDCClient, func() runtime.Object { return &OIDCClient{} }, // Register versioned resource @@ -305,21 +372,7 @@ var ( return NewResetAccessKeyRESTFunc(Factory) } NewResetAccessKeyRESTFunc NewRESTFunc - ManagementRunnerStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalRunner, - func() runtime.Object { return &Runner{} }, // Register versioned resource - func() runtime.Object { return &RunnerList{} }, // Register versioned resource list - NewRunnerREST, - ) - NewRunnerREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewRunnerRESTFunc(Factory) - } - NewRunnerRESTFunc NewRESTFunc - NewRunnerStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewRunnerStatusRESTFunc(Factory) - } - NewRunnerStatusRESTFunc NewRESTFunc - ManagementSelfStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + ManagementSelfStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalSelf, func() runtime.Object { return &Self{} }, // Register versioned resource func() runtime.Object { return &SelfList{} }, // Register versioned resource list @@ -428,7 +481,17 @@ var ( NewVirtualClusterInstanceREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewVirtualClusterInstanceRESTFunc(Factory) } - NewVirtualClusterInstanceRESTFunc NewRESTFunc + NewVirtualClusterInstanceRESTFunc NewRESTFunc + ManagementVirtualClusterSchemaStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalVirtualClusterSchema, + func() runtime.Object { return &VirtualClusterSchema{} }, // Register versioned resource + func() runtime.Object { return &VirtualClusterSchemaList{} }, // Register versioned resource list + NewVirtualClusterSchemaREST, + ) + NewVirtualClusterSchemaREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewVirtualClusterSchemaRESTFunc(Factory) + } + NewVirtualClusterSchemaRESTFunc NewRESTFunc ManagementVirtualClusterTemplateStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalVirtualClusterTemplate, func() runtime.Object { return &VirtualClusterTemplate{} }, // Register versioned resource @@ -570,16 +633,8 @@ var ( NewClusterResetREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewClusterResetRESTFunc(Factory) } - NewClusterResetRESTFunc NewRESTFunc - InternalClusterVirtualClusterDefaultsREST = builders.NewInternalSubresource( - "clusters", "ClusterVirtualClusterDefaults", "virtualclusterdefaults", - func() runtime.Object { return &ClusterVirtualClusterDefaults{} }, - ) - NewClusterVirtualClusterDefaultsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewClusterVirtualClusterDefaultsRESTFunc(Factory) - } - NewClusterVirtualClusterDefaultsRESTFunc NewRESTFunc - InternalClusterAccess = builders.NewInternalResource( + NewClusterResetRESTFunc NewRESTFunc + InternalClusterAccess = builders.NewInternalResource( "clusteraccesses", "ClusterAccess", func() runtime.Object { return &ClusterAccess{} }, @@ -627,6 +682,18 @@ var ( func() runtime.Object { return &ConvertVirtualClusterConfig{} }, func() runtime.Object { return &ConvertVirtualClusterConfigList{} }, ) + InternalDatabaseConnector = builders.NewInternalResource( + "databaseconnectors", + "DatabaseConnector", + func() runtime.Object { return &DatabaseConnector{} }, + func() runtime.Object { return &DatabaseConnectorList{} }, + ) + InternalDatabaseConnectorStatus = builders.NewInternalResourceStatus( + "databaseconnectors", + "DatabaseConnectorStatus", + func() runtime.Object { return &DatabaseConnector{} }, + func() runtime.Object { return &DatabaseConnectorList{} }, + ) InternalDevPodEnvironmentTemplate = builders.NewInternalResource( "devpodenvironmenttemplates", "DevPodEnvironmentTemplate", @@ -651,54 +718,74 @@ var ( func() runtime.Object { return &DevPodWorkspaceInstance{} }, func() runtime.Object { return &DevPodWorkspaceInstanceList{} }, ) - InternalDevPodDeleteOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodDeleteOptions", "delete", - func() runtime.Object { return &DevPodDeleteOptions{} }, + InternalDevPodWorkspaceInstanceCancelREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceCancel", "cancel", + func() runtime.Object { return &DevPodWorkspaceInstanceCancel{} }, + ) + NewDevPodWorkspaceInstanceCancelREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceCancelRESTFunc(Factory) + } + NewDevPodWorkspaceInstanceCancelRESTFunc NewRESTFunc + InternalDevPodWorkspaceInstanceDownloadREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceDownload", "download", + func() runtime.Object { return &DevPodWorkspaceInstanceDownload{} }, ) - NewDevPodDeleteOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodDeleteOptionsRESTFunc(Factory) + NewDevPodWorkspaceInstanceDownloadREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceDownloadRESTFunc(Factory) } - NewDevPodDeleteOptionsRESTFunc NewRESTFunc - InternalDevPodStatusOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodStatusOptions", "getstatus", - func() runtime.Object { return &DevPodStatusOptions{} }, + NewDevPodWorkspaceInstanceDownloadRESTFunc NewRESTFunc + InternalDevPodWorkspaceInstanceLogREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceLog", "log", + func() runtime.Object { return &DevPodWorkspaceInstanceLog{} }, ) - NewDevPodStatusOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodStatusOptionsRESTFunc(Factory) + NewDevPodWorkspaceInstanceLogREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceLogRESTFunc(Factory) } - NewDevPodStatusOptionsRESTFunc NewRESTFunc - InternalDevPodSshOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodSshOptions", "ssh", - func() runtime.Object { return &DevPodSshOptions{} }, + NewDevPodWorkspaceInstanceLogRESTFunc NewRESTFunc + InternalDevPodWorkspaceInstanceStopREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceStop", "stop", + func() runtime.Object { return &DevPodWorkspaceInstanceStop{} }, ) - NewDevPodSshOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodSshOptionsRESTFunc(Factory) + NewDevPodWorkspaceInstanceStopREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceStopRESTFunc(Factory) } - NewDevPodSshOptionsRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceStateREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceState", "state", - func() runtime.Object { return &DevPodWorkspaceInstanceState{} }, + NewDevPodWorkspaceInstanceStopRESTFunc NewRESTFunc + InternalDevPodWorkspaceInstanceTasksREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceTasks", "tasks", + func() runtime.Object { return &DevPodWorkspaceInstanceTasks{} }, ) - NewDevPodWorkspaceInstanceStateREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceStateRESTFunc(Factory) + NewDevPodWorkspaceInstanceTasksREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceTasksRESTFunc(Factory) } - NewDevPodWorkspaceInstanceStateRESTFunc NewRESTFunc - InternalDevPodStopOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodStopOptions", "stop", - func() runtime.Object { return &DevPodStopOptions{} }, + NewDevPodWorkspaceInstanceTasksRESTFunc NewRESTFunc + InternalDevPodWorkspaceInstanceTroubleshootREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceTroubleshoot", "troubleshoot", + func() runtime.Object { return &DevPodWorkspaceInstanceTroubleshoot{} }, ) - NewDevPodStopOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodStopOptionsRESTFunc(Factory) + NewDevPodWorkspaceInstanceTroubleshootREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceTroubleshootRESTFunc(Factory) } - NewDevPodStopOptionsRESTFunc NewRESTFunc - InternalDevPodUpOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodUpOptions", "up", - func() runtime.Object { return &DevPodUpOptions{} }, + NewDevPodWorkspaceInstanceTroubleshootRESTFunc NewRESTFunc + InternalDevPodWorkspaceInstanceUpREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceUp", "up", + func() runtime.Object { return &DevPodWorkspaceInstanceUp{} }, ) - NewDevPodUpOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodUpOptionsRESTFunc(Factory) + NewDevPodWorkspaceInstanceUpREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceUpRESTFunc(Factory) } - NewDevPodUpOptionsRESTFunc NewRESTFunc + NewDevPodWorkspaceInstanceUpRESTFunc NewRESTFunc + InternalDevPodWorkspacePreset = builders.NewInternalResource( + "devpodworkspacepresets", + "DevPodWorkspacePreset", + func() runtime.Object { return &DevPodWorkspacePreset{} }, + func() runtime.Object { return &DevPodWorkspacePresetList{} }, + ) + InternalDevPodWorkspacePresetStatus = builders.NewInternalResourceStatus( + "devpodworkspacepresets", + "DevPodWorkspacePresetStatus", + func() runtime.Object { return &DevPodWorkspacePreset{} }, + func() runtime.Object { return &DevPodWorkspacePresetList{} }, + ) InternalDevPodWorkspaceTemplate = builders.NewInternalResource( "devpodworkspacetemplates", "DevPodWorkspaceTemplate", @@ -815,6 +902,42 @@ var ( func() runtime.Object { return &LoftUpgrade{} }, func() runtime.Object { return &LoftUpgradeList{} }, ) + InternalNodeClaim = builders.NewInternalResource( + "nodeclaims", + "NodeClaim", + func() runtime.Object { return &NodeClaim{} }, + func() runtime.Object { return &NodeClaimList{} }, + ) + InternalNodeClaimStatus = builders.NewInternalResourceStatus( + "nodeclaims", + "NodeClaimStatus", + func() runtime.Object { return &NodeClaim{} }, + func() runtime.Object { return &NodeClaimList{} }, + ) + InternalNodeProvider = builders.NewInternalResource( + "nodeproviders", + "NodeProvider", + func() runtime.Object { return &NodeProvider{} }, + func() runtime.Object { return &NodeProviderList{} }, + ) + InternalNodeProviderStatus = builders.NewInternalResourceStatus( + "nodeproviders", + "NodeProviderStatus", + func() runtime.Object { return &NodeProvider{} }, + func() runtime.Object { return &NodeProviderList{} }, + ) + InternalNodeType = builders.NewInternalResource( + "nodetypes", + "NodeType", + func() runtime.Object { return &NodeType{} }, + func() runtime.Object { return &NodeTypeList{} }, + ) + InternalNodeTypeStatus = builders.NewInternalResourceStatus( + "nodetypes", + "NodeTypeStatus", + func() runtime.Object { return &NodeType{} }, + func() runtime.Object { return &NodeTypeList{} }, + ) InternalOIDCClient = builders.NewInternalResource( "oidcclients", "OIDCClient", @@ -907,15 +1030,7 @@ var ( return NewProjectMigrateVirtualClusterInstanceRESTFunc(Factory) } NewProjectMigrateVirtualClusterInstanceRESTFunc NewRESTFunc - InternalProjectRunnersREST = builders.NewInternalSubresource( - "projects", "ProjectRunners", "runners", - func() runtime.Object { return &ProjectRunners{} }, - ) - NewProjectRunnersREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewProjectRunnersRESTFunc(Factory) - } - NewProjectRunnersRESTFunc NewRESTFunc - InternalProjectTemplatesREST = builders.NewInternalSubresource( + InternalProjectTemplatesREST = builders.NewInternalSubresource( "projects", "ProjectTemplates", "templates", func() runtime.Object { return &ProjectTemplates{} }, ) @@ -971,35 +1086,7 @@ var ( func() runtime.Object { return &ResetAccessKey{} }, func() runtime.Object { return &ResetAccessKeyList{} }, ) - InternalRunner = builders.NewInternalResource( - "runners", - "Runner", - func() runtime.Object { return &Runner{} }, - func() runtime.Object { return &RunnerList{} }, - ) - InternalRunnerStatus = builders.NewInternalResourceStatus( - "runners", - "RunnerStatus", - func() runtime.Object { return &Runner{} }, - func() runtime.Object { return &RunnerList{} }, - ) - InternalRunnerAccessKeyREST = builders.NewInternalSubresource( - "runners", "RunnerAccessKey", "accesskey", - func() runtime.Object { return &RunnerAccessKey{} }, - ) - NewRunnerAccessKeyREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewRunnerAccessKeyRESTFunc(Factory) - } - NewRunnerAccessKeyRESTFunc NewRESTFunc - InternalRunnerConfigREST = builders.NewInternalSubresource( - "runners", "RunnerConfig", "config", - func() runtime.Object { return &RunnerConfig{} }, - ) - NewRunnerConfigREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewRunnerConfigRESTFunc(Factory) - } - NewRunnerConfigRESTFunc NewRESTFunc - InternalSelf = builders.NewInternalResource( + InternalSelf = builders.NewInternalResource( "selves", "Self", func() runtime.Object { return &Self{} }, @@ -1118,7 +1205,23 @@ var ( NewTeamClustersREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewTeamClustersRESTFunc(Factory) } - NewTeamClustersRESTFunc NewRESTFunc + NewTeamClustersRESTFunc NewRESTFunc + InternalTeamObjectPermissionsREST = builders.NewInternalSubresource( + "teams", "TeamObjectPermissions", "object-permissions", + func() runtime.Object { return &TeamObjectPermissions{} }, + ) + NewTeamObjectPermissionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewTeamObjectPermissionsRESTFunc(Factory) + } + NewTeamObjectPermissionsRESTFunc NewRESTFunc + InternalTeamPermissionsREST = builders.NewInternalSubresource( + "teams", "TeamPermissions", "permissions", + func() runtime.Object { return &TeamPermissions{} }, + ) + NewTeamPermissionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewTeamPermissionsRESTFunc(Factory) + } + NewTeamPermissionsRESTFunc NewRESTFunc InternalTranslateVClusterResourceName = builders.NewInternalResource( "translatevclusterresourcenames", "TranslateVClusterResourceName", @@ -1158,8 +1261,16 @@ var ( NewUserClustersREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewUserClustersRESTFunc(Factory) } - NewUserClustersRESTFunc NewRESTFunc - InternalUserPermissionsREST = builders.NewInternalSubresource( + NewUserClustersRESTFunc NewRESTFunc + InternalUserObjectPermissionsREST = builders.NewInternalSubresource( + "users", "UserObjectPermissions", "object-permissions", + func() runtime.Object { return &UserObjectPermissions{} }, + ) + NewUserObjectPermissionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewUserObjectPermissionsRESTFunc(Factory) + } + NewUserObjectPermissionsRESTFunc NewRESTFunc + InternalUserPermissionsREST = builders.NewInternalSubresource( "users", "UserPermissions", "permissions", func() runtime.Object { return &UserPermissions{} }, ) @@ -1194,7 +1305,15 @@ var ( NewVirtualClusterAccessKeyREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewVirtualClusterAccessKeyRESTFunc(Factory) } - NewVirtualClusterAccessKeyRESTFunc NewRESTFunc + NewVirtualClusterAccessKeyRESTFunc NewRESTFunc + InternalVirtualClusterExternalDatabaseREST = builders.NewInternalSubresource( + "virtualclusterinstances", "VirtualClusterExternalDatabase", "externaldatabase", + func() runtime.Object { return &VirtualClusterExternalDatabase{} }, + ) + NewVirtualClusterExternalDatabaseREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewVirtualClusterExternalDatabaseRESTFunc(Factory) + } + NewVirtualClusterExternalDatabaseRESTFunc NewRESTFunc InternalVirtualClusterInstanceKubeConfigREST = builders.NewInternalSubresource( "virtualclusterinstances", "VirtualClusterInstanceKubeConfig", "kubeconfig", func() runtime.Object { return &VirtualClusterInstanceKubeConfig{} }, @@ -1211,7 +1330,19 @@ var ( return NewVirtualClusterInstanceLogRESTFunc(Factory) } NewVirtualClusterInstanceLogRESTFunc NewRESTFunc - InternalVirtualClusterTemplate = builders.NewInternalResource( + InternalVirtualClusterSchema = builders.NewInternalResource( + "virtualclusterschemas", + "VirtualClusterSchema", + func() runtime.Object { return &VirtualClusterSchema{} }, + func() runtime.Object { return &VirtualClusterSchemaList{} }, + ) + InternalVirtualClusterSchemaStatus = builders.NewInternalResourceStatus( + "virtualclusterschemas", + "VirtualClusterSchemaStatus", + func() runtime.Object { return &VirtualClusterSchema{} }, + func() runtime.Object { return &VirtualClusterSchemaList{} }, + ) + InternalVirtualClusterTemplate = builders.NewInternalResource( "virtualclustertemplates", "VirtualClusterTemplate", func() runtime.Object { return &VirtualClusterTemplate{} }, @@ -1244,7 +1375,6 @@ var ( InternalClusterMemberAccessREST, InternalClusterMembersREST, InternalClusterResetREST, - InternalClusterVirtualClusterDefaultsREST, InternalClusterAccess, InternalClusterAccessStatus, InternalClusterRoleTemplate, @@ -1253,16 +1383,21 @@ var ( InternalConfigStatus, InternalConvertVirtualClusterConfig, InternalConvertVirtualClusterConfigStatus, + InternalDatabaseConnector, + InternalDatabaseConnectorStatus, InternalDevPodEnvironmentTemplate, InternalDevPodEnvironmentTemplateStatus, InternalDevPodWorkspaceInstance, InternalDevPodWorkspaceInstanceStatus, - InternalDevPodDeleteOptionsREST, - InternalDevPodStatusOptionsREST, - InternalDevPodSshOptionsREST, - InternalDevPodWorkspaceInstanceStateREST, - InternalDevPodStopOptionsREST, - InternalDevPodUpOptionsREST, + InternalDevPodWorkspaceInstanceCancelREST, + InternalDevPodWorkspaceInstanceDownloadREST, + InternalDevPodWorkspaceInstanceLogREST, + InternalDevPodWorkspaceInstanceStopREST, + InternalDevPodWorkspaceInstanceTasksREST, + InternalDevPodWorkspaceInstanceTroubleshootREST, + InternalDevPodWorkspaceInstanceUpREST, + InternalDevPodWorkspacePreset, + InternalDevPodWorkspacePresetStatus, InternalDevPodWorkspaceTemplate, InternalDevPodWorkspaceTemplateStatus, InternalDirectClusterEndpointToken, @@ -1282,6 +1417,12 @@ var ( InternalLicenseTokenStatus, InternalLoftUpgrade, InternalLoftUpgradeStatus, + InternalNodeClaim, + InternalNodeClaimStatus, + InternalNodeProvider, + InternalNodeProviderStatus, + InternalNodeType, + InternalNodeTypeStatus, InternalOIDCClient, InternalOIDCClientStatus, InternalOwnedAccessKey, @@ -1295,7 +1436,6 @@ var ( InternalProjectMembersREST, InternalProjectMigrateSpaceInstanceREST, InternalProjectMigrateVirtualClusterInstanceREST, - InternalProjectRunnersREST, InternalProjectTemplatesREST, InternalProjectSecret, InternalProjectSecretStatus, @@ -1305,10 +1445,6 @@ var ( InternalRegisterVirtualClusterStatus, InternalResetAccessKey, InternalResetAccessKeyStatus, - InternalRunner, - InternalRunnerStatus, - InternalRunnerAccessKeyREST, - InternalRunnerConfigREST, InternalSelf, InternalSelfStatus, InternalSelfSubjectAccessReview, @@ -1328,19 +1464,25 @@ var ( InternalTeamStatus, InternalTeamAccessKeysREST, InternalTeamClustersREST, + InternalTeamObjectPermissionsREST, + InternalTeamPermissionsREST, InternalTranslateVClusterResourceName, InternalTranslateVClusterResourceNameStatus, InternalUser, InternalUserStatus, InternalUserAccessKeysREST, InternalUserClustersREST, + InternalUserObjectPermissionsREST, InternalUserPermissionsREST, InternalUserProfileREST, InternalVirtualClusterInstance, InternalVirtualClusterInstanceStatus, InternalVirtualClusterAccessKeyREST, + InternalVirtualClusterExternalDatabaseREST, InternalVirtualClusterInstanceKubeConfigREST, InternalVirtualClusterInstanceLogREST, + InternalVirtualClusterSchema, + InternalVirtualClusterSchemaStatus, InternalVirtualClusterTemplate, InternalVirtualClusterTemplateStatus, ) @@ -1406,6 +1548,11 @@ type AgentAuditEventSpec struct { type AgentAuditEventStatus struct { } +type AgentCostControlConfig struct { + Enabled *bool `json:"enabled,omitempty"` + CostControlClusterConfig `json:",inline"` +} + // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -1457,6 +1604,12 @@ type Apps struct { PredefinedApps []PredefinedApp `json:"predefinedApps,omitempty"` } +type AssignedVia struct { + ObjectName `json:",inline"` + Kind string `json:"kind,omitempty"` + Owner bool `json:"owner,omitempty"` +} + type Audit struct { Enabled bool `json:"enabled,omitempty"` DisableAgentSyncBack bool `json:"disableAgentSyncBack,omitempty"` @@ -1557,6 +1710,7 @@ type AuthenticationOIDC struct { LoftUsernameClaim string `json:"loftUsernameClaim,omitempty"` UsernameClaim string `json:"usernameClaim,omitempty"` EmailClaim string `json:"emailClaim,omitempty"` + AllowedExtraClaims []string `json:"allowedExtraClaims,omitempty"` UsernamePrefix string `json:"usernamePrefix,omitempty"` GroupsClaim string `json:"groupsClaim,omitempty"` Groups []string `json:"groups,omitempty"` @@ -1623,6 +1777,11 @@ type BackupStatus struct { RawBackup string `json:"rawBackup,omitempty"` } +type Cloud struct { + ReleaseChannel string `json:"releaseChannel,omitempty"` + MaintenanceWindow MaintenanceWindow `json:"maintenanceWindow,omitempty"` +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -1656,6 +1815,12 @@ type ClusterAccessKey struct { CaCert string `json:"caCert,omitempty"` } +type ClusterAccessRole struct { + ObjectName `json:",inline"` + Clusters []ObjectName `json:"clusters,omitempty"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + type ClusterAccessSpec struct { storagev1.ClusterAccessSpec `json:",inline"` } @@ -1681,14 +1846,15 @@ type ClusterAgentConfig struct { } type ClusterAgentConfigCommon struct { - Cluster string `json:"cluster,omitempty"` - Audit *AgentAuditConfig `json:"audit,omitempty"` - DefaultImageRegistry string `json:"defaultImageRegistry,omitempty"` - TokenCaCert []byte `json:"tokenCaCert,omitempty"` - LoftHost string `json:"loftHost,omitempty"` - ProjectNamespacePrefix string `json:"projectNamespacePrefix,omitempty"` - LoftInstanceID string `json:"loftInstanceID,omitempty"` - AnalyticsSpec AgentAnalyticsSpec `json:"analyticsSpec"` + Cluster string `json:"cluster,omitempty"` + Audit *AgentAuditConfig `json:"audit,omitempty"` + DefaultImageRegistry string `json:"defaultImageRegistry,omitempty"` + TokenCaCert []byte `json:"tokenCaCert,omitempty"` + LoftHost string `json:"loftHost,omitempty"` + ProjectNamespacePrefix string `json:"projectNamespacePrefix,omitempty"` + LoftInstanceID string `json:"loftInstanceID,omitempty"` + AnalyticsSpec AgentAnalyticsSpec `json:"analyticsSpec"` + CostControl *AgentCostControlConfig `json:"costControl,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -1769,17 +1935,6 @@ type ClusterStatus struct { Online bool `json:"online,omitempty"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type ClusterVirtualClusterDefaults struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - DefaultTemplate *storagev1.VirtualClusterTemplate `json:"defaultTemplate,omitempty"` - LatestVersion string `json:"latestVersion,omitempty"` - Values string `json:"values,omitempty"` - Warning string `json:"warning,omitempty"` -} - // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -1806,6 +1961,9 @@ type ConfigStatus struct { UISettings *uiv1.UISettingsConfig `json:"uiSettings,omitempty"` VaultIntegration *storagev1.VaultIntegrationSpec `json:"vault,omitempty"` DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` + Cloud *Cloud `json:"cloud,omitempty"` + CostControl *CostControl `json:"costControl,omitempty"` + ImageBuilder *ImageBuilder `json:"imageBuilder,omitempty"` } type Connector struct { @@ -1845,11 +2003,57 @@ type ConvertVirtualClusterConfigStatus struct { Converted bool `json:"converted"` } +type CostControl struct { + Enabled *bool `json:"enabled,omitempty"` + Global CostControlGlobalConfig `json:"global,omitempty"` + Cluster CostControlClusterConfig `json:"cluster,omitempty"` + Settings *CostControlSettings `json:"settings,omitempty"` +} + +type CostControlClusterConfig struct { + Metrics *storagev1.Metrics `json:"metrics,omitempty"` + OpenCost *storagev1.OpenCost `json:"opencost,omitempty"` +} + +type CostControlGPUSettings struct { + Enabled bool `json:"enabled,omitempty"` + AvgGPUPrice *CostControlResourcePrice `json:"averageGPUPrice,omitempty"` +} + +type CostControlGlobalConfig struct { + Metrics *storagev1.Metrics `json:"metrics,omitempty"` +} + +type CostControlResourcePrice struct { + Price float64 `json:"price,omitempty"` + TimePeriod string `json:"timePeriod,omitempty"` +} + +type CostControlSettings struct { + PriceCurrency string `json:"priceCurrency,omitempty"` + AvgCPUPricePerNode *CostControlResourcePrice `json:"averageCPUPricePerNode,omitempty"` + AvgRAMPricePerNode *CostControlResourcePrice `json:"averageRAMPricePerNode,omitempty"` + GPUSettings *CostControlGPUSettings `json:"gpuSettings,omitempty"` + ControlPlanePricePerCluster *CostControlResourcePrice `json:"controlPlanePricePerCluster,omitempty"` +} + +// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodDeleteOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` +type DatabaseConnector struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec DatabaseConnectorSpec `json:"spec,omitempty"` + Status DatabaseConnectorStatus `json:"status,omitempty"` +} + +type DatabaseConnectorSpec struct { + Type string `json:"type,omitempty"` + DisplayName string `json:"displayName,omitempty"` +} + +type DatabaseConnectorStatus struct { } // +genclient @@ -1870,63 +2074,130 @@ type DevPodEnvironmentTemplateSpec struct { type DevPodEnvironmentTemplateStatus struct { } +// +genclient +// +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodSshOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` +type DevPodWorkspaceInstance struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec DevPodWorkspaceInstanceSpec `json:"spec,omitempty"` + Status DevPodWorkspaceInstanceStatus `json:"status,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodStatusOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` +type DevPodWorkspaceInstanceCancel struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + TaskID string `json:"taskId,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodStopOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` +type DevPodWorkspaceInstanceDownload struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodUpOptions struct { - metav1.TypeMeta `json:",inline"` - WebMode bool `json:"webMode,omitempty"` - CLIMode bool `json:"cliMode,omitempty"` - Debug bool `json:"debug,omitempty"` - Options string `json:"options,omitempty"` +type DevPodWorkspaceInstanceLog struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` +} + +type DevPodWorkspaceInstanceSpec struct { + storagev1.DevPodWorkspaceInstanceSpec `json:",inline"` +} + +type DevPodWorkspaceInstanceStatus struct { + storagev1.DevPodWorkspaceInstanceStatus `json:",inline"` + SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` } -// +genclient -// +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstance struct { +type DevPodWorkspaceInstanceStop struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceInstanceSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStatus `json:"status,omitempty"` + Spec DevPodWorkspaceInstanceStopSpec `json:"spec,omitempty"` + Status DevPodWorkspaceInstanceStopStatus `json:"status,omitempty"` } -type DevPodWorkspaceInstanceSpec struct { - storagev1.DevPodWorkspaceInstanceSpec `json:",inline"` +type DevPodWorkspaceInstanceStopSpec struct { + Options string `json:"options,omitempty"` +} + +type DevPodWorkspaceInstanceStopStatus struct { + TaskID string `json:"taskId,omitempty"` +} + +type DevPodWorkspaceInstanceTask struct { + ID string `json:"id,omitempty"` + Type string `json:"type,omitempty"` + Status string `json:"status,omitempty"` + Result []byte `json:"result,omitempty"` + Logs []byte `json:"logs,omitempty"` + CreatedAt metav1.Time `json:"createdAt,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceState struct { +type DevPodWorkspaceInstanceTasks struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - State string `json:"state,omitempty"` + Tasks []DevPodWorkspaceInstanceTask `json:"tasks,omitempty"` } -type DevPodWorkspaceInstanceStatus struct { - storagev1.DevPodWorkspaceInstanceStatus `json:",inline"` - SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceTroubleshoot 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"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceUp struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec DevPodWorkspaceInstanceUpSpec `json:"spec,omitempty"` + Status DevPodWorkspaceInstanceUpStatus `json:"status,omitempty"` +} + +type DevPodWorkspaceInstanceUpSpec struct { + Debug bool `json:"debug,omitempty"` + Options string `json:"options,omitempty"` +} + +type DevPodWorkspaceInstanceUpStatus struct { + TaskID string `json:"taskId,omitempty"` +} + +// +genclient +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspacePreset struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec DevPodWorkspacePresetSpec `json:"spec,omitempty"` + Status DevPodWorkspacePresetStatus `json:"status,omitempty"` +} + +type DevPodWorkspacePresetSpec struct { + storagev1.DevPodWorkspacePresetSpec `json:",inline"` +} + +type DevPodWorkspacePresetStatus struct { } // +genclient @@ -2012,6 +2283,12 @@ type GroupResources struct { ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,3,rep,name=resourceNames"` } +type ImageBuilder struct { + Enabled *bool `json:"enabled,omitempty"` + Replicas *int32 `json:"replicas,omitempty"` + Resources *corev1.ResourceRequirements `json:"resources,omitempty"` +} + // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2132,6 +2409,73 @@ type LoftUpgradeSpec struct { type LoftUpgradeStatus struct { } +type MaintenanceWindow struct { + DayOfWeek string `json:"dayOfWeek,omitempty"` + TimeWindow string `json:"timeWindow,omitempty"` +} + +type ManagementRole struct { + ObjectName `json:",inline"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +// +genclient +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeClaim struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec NodeClaimSpec `json:"spec,omitempty"` + Status NodeClaimStatus `json:"status,omitempty"` +} + +type NodeClaimSpec struct { + storagev1.NodeClaimSpec `json:",inline"` +} + +type NodeClaimStatus struct { + storagev1.NodeClaimStatus `json:",inline"` +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeProvider struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec NodeProviderSpec `json:"spec,omitempty"` + Status NodeProviderStatus `json:"status,omitempty"` +} + +type NodeProviderSpec struct { + storagev1.NodeProviderSpec `json:",inline"` +} + +type NodeProviderStatus struct { + storagev1.NodeProviderStatus `json:",inline"` +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeType struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec NodeTypeSpec `json:"spec,omitempty"` + Status NodeTypeStatus `json:"status,omitempty"` +} + +type NodeTypeSpec struct { + storagev1.NodeTypeSpec `json:",inline"` +} + +type NodeTypeStatus struct { + storagev1.NodeTypeStatus `json:",inline"` +} + type OIDC struct { Enabled bool `json:"enabled,omitempty"` WildcardRedirect bool `json:"wildcardRedirect,omitempty"` @@ -2159,6 +2503,17 @@ type OIDCClientSpec struct { type OIDCClientStatus struct { } +type ObjectName struct { + Namespace string `json:"namespace,omitempty"` + Name string `json:"name,omitempty"` + DisplayName string `json:"displayName,omitempty"` +} + +type ObjectPermission struct { + ObjectName `json:",inline"` + Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2231,7 +2586,6 @@ type ProjectClusters struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Clusters []Cluster `json:"clusters,omitempty"` - Runners []Runner `json:"runners,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2261,6 +2615,12 @@ type ProjectMembers struct { Users []ProjectMember `json:"users,omitempty"` } +type ProjectMembership struct { + ObjectName `json:",inline"` + Role ProjectRole `json:"role,omitempty"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type ProjectMigrateSpaceInstance struct { @@ -2287,12 +2647,9 @@ type ProjectMigrateVirtualClusterInstanceSource struct { Namespace string `json:"namespace,omitempty"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type ProjectRunners struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Runners []Runner `json:"runners,omitempty"` +type ProjectRole struct { + ObjectName `json:",inline"` + IsAdmin bool `json:"isAdmin,omitempty"` } // +genclient @@ -2338,6 +2695,7 @@ type ProjectTemplates struct { 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"` } @@ -2404,41 +2762,6 @@ type ResetAccessKeyStatus struct { storagev1.AccessKeyStatus `json:",inline"` } -// +genclient -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type Runner struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec RunnerSpec `json:"spec,omitempty"` - Status RunnerStatus `json:"status,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerAccessKey struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - AccessKey string `json:"accessKey,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerConfig struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - TokenCaCert []byte `json:"tokenCaCert,omitempty"` -} - -type RunnerSpec struct { - storagev1.RunnerSpec `json:",inline"` -} - -type RunnerStatus struct { - storagev1.RunnerStatus `json:",inline"` -} - // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2622,6 +2945,26 @@ type TeamClusters struct { Clusters []ClusterAccounts `json:"clusters,omitempty"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type TeamObjectPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + ObjectPermissions []ObjectPermission `json:"objectPermissions,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type TeamPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Members []ObjectName `json:"members,omitempty"` + ProjectMemberships []ProjectMembership `json:"projectMemberships,omitempty"` + ManagementRoles []ManagementRole `json:"managementRoles,omitempty"` + ClusterAccessRoles []ClusterAccessRole `json:"clusterAccessRoles,omitempty"` + VirtualClusterRoles []VirtualClusterRole `json:"virtualClusterRoles,omitempty"` +} + type TeamSpec struct { storagev1.TeamSpec `json:",inline"` } @@ -2685,11 +3028,24 @@ type UserInfo struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type UserPermissions struct { +type UserObjectPermissions struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - ClusterRoles []UserPermissionsRole `json:"clusterRoles,omitempty"` - NamespaceRoles []UserPermissionsRole `json:"namespaceRoles,omitempty"` + ObjectPermissions []ObjectPermission `json:"objectPermissions,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type UserPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + ClusterRoles []UserPermissionsRole `json:"clusterRoles,omitempty"` + NamespaceRoles []UserPermissionsRole `json:"namespaceRoles,omitempty"` + TeamMemberships []ObjectName `json:"teamMemberships,omitempty"` + ProjectMemberships []ProjectMembership `json:"projectMemberships,omitempty"` + ManagementRoles []ManagementRole `json:"managementRoles,omitempty"` + ClusterAccessRoles []ClusterAccessRole `json:"clusterAccessRoles,omitempty"` + VirtualClusterRoles []VirtualClusterRole `json:"virtualClusterRoles,omitempty"` } type UserPermissionsRole struct { @@ -2704,13 +3060,19 @@ type UserPermissionsRole struct { type UserProfile struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - DisplayName string `json:"displayName,omitempty"` - Username string `json:"username,omitempty"` - Password string `json:"password,omitempty"` - CurrentPassword string `json:"currentPassword,omitempty"` - Email string `json:"email,omitempty"` - Icon *string `json:"icon,omitempty"` - Custom string `json:"custom,omitempty"` + DisplayName string `json:"displayName,omitempty"` + Username string `json:"username,omitempty"` + Password string `json:"password,omitempty"` + CurrentPassword string `json:"currentPassword,omitempty"` + Email string `json:"email,omitempty"` + Icon *string `json:"icon,omitempty"` + Custom string `json:"custom,omitempty"` + Secrets *map[string]*UserProfileSecret `json:"secrets,omitempty"` +} + +type UserProfileSecret struct { + Type string `json:"type,omitempty"` + Data string `json:"data,omitempty"` } type UserSpec struct { @@ -2729,6 +3091,23 @@ type VirtualClusterAccessKey struct { AccessKey string `json:"accessKey,omitempty"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterExternalDatabase struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec VirtualClusterExternalDatabaseSpec `json:"spec,omitempty"` + Status VirtualClusterExternalDatabaseStatus `json:"status,omitempty"` +} + +type VirtualClusterExternalDatabaseSpec struct { + Connector string `json:"connector,omitempty"` +} + +type VirtualClusterExternalDatabaseStatus struct { + DataSource string `json:"dataSource,omitempty"` +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2751,6 +3130,8 @@ type VirtualClusterInstanceKubeConfig struct { type VirtualClusterInstanceKubeConfigSpec struct { CertificateTTL *int32 `json:"certificateTTL,omitempty"` + Server string `json:"server,omitempty"` + ClientCert bool `json:"clientCert,omitempty"` } type VirtualClusterInstanceKubeConfigStatus struct { @@ -2776,19 +3157,45 @@ type VirtualClusterInstanceStatus struct { Online bool `json:"online,omitempty"` } +type VirtualClusterRole struct { + ObjectName `json:",inline"` + Role string `json:"role,omitempty"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type VirtualClusterTemplate struct { +type VirtualClusterSchema struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec VirtualClusterTemplateSpec `json:"spec,omitempty"` - Status VirtualClusterTemplateStatus `json:"status,omitempty"` + Spec VirtualClusterSchemaSpec `json:"spec,omitempty"` + Status VirtualClusterSchemaStatus `json:"status,omitempty"` } -type VirtualClusterTemplateSpec struct { - storagev1.VirtualClusterTemplateSpec `json:",inline"` +type VirtualClusterSchemaSpec struct { + Version string `json:"version,omitempty"` +} + +type VirtualClusterSchemaStatus struct { + Schema string `json:"schema,omitempty"` + DefaultValues string `json:"defaultValues,omitempty"` +} + +// +genclient +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterTemplate struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec VirtualClusterTemplateSpec `json:"spec,omitempty"` + Status VirtualClusterTemplateStatus `json:"status,omitempty"` +} + +type VirtualClusterTemplateSpec struct { + storagev1.VirtualClusterTemplateSpec `json:",inline"` } type VirtualClusterTemplateStatus struct { @@ -3364,14 +3771,6 @@ type ClusterResetList struct { Items []ClusterReset `json:"items"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type ClusterVirtualClusterDefaultsList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []ClusterVirtualClusterDefaults `json:"items"` -} - func (Cluster) NewStatus() interface{} { return ClusterStatus{} } @@ -3947,6 +4346,125 @@ func (s *storageConvertVirtualClusterConfig) DeleteConvertVirtualClusterConfig(c return sync, err } +// DatabaseConnector Functions and Structs +// +// +k8s:deepcopy-gen=false +type DatabaseConnectorStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type DatabaseConnectorStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DatabaseConnectorList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DatabaseConnector `json:"items"` +} + +func (DatabaseConnector) NewStatus() interface{} { + return DatabaseConnectorStatus{} +} + +func (pc *DatabaseConnector) GetStatus() interface{} { + return pc.Status +} + +func (pc *DatabaseConnector) SetStatus(s interface{}) { + pc.Status = s.(DatabaseConnectorStatus) +} + +func (pc *DatabaseConnector) GetSpec() interface{} { + return pc.Spec +} + +func (pc *DatabaseConnector) SetSpec(s interface{}) { + pc.Spec = s.(DatabaseConnectorSpec) +} + +func (pc *DatabaseConnector) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *DatabaseConnector) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc DatabaseConnector) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store DatabaseConnector. +// +k8s:deepcopy-gen=false +type DatabaseConnectorRegistry interface { + ListDatabaseConnectors(ctx context.Context, options *internalversion.ListOptions) (*DatabaseConnectorList, error) + GetDatabaseConnector(ctx context.Context, id string, options *metav1.GetOptions) (*DatabaseConnector, error) + CreateDatabaseConnector(ctx context.Context, id *DatabaseConnector) (*DatabaseConnector, error) + UpdateDatabaseConnector(ctx context.Context, id *DatabaseConnector) (*DatabaseConnector, error) + DeleteDatabaseConnector(ctx context.Context, id string) (bool, error) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewDatabaseConnectorRegistry(sp builders.StandardStorageProvider) DatabaseConnectorRegistry { + return &storageDatabaseConnector{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageDatabaseConnector struct { + builders.StandardStorageProvider +} + +func (s *storageDatabaseConnector) ListDatabaseConnectors(ctx context.Context, options *internalversion.ListOptions) (*DatabaseConnectorList, 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.(*DatabaseConnectorList), err +} + +func (s *storageDatabaseConnector) GetDatabaseConnector(ctx context.Context, id string, options *metav1.GetOptions) (*DatabaseConnector, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*DatabaseConnector), nil +} + +func (s *storageDatabaseConnector) CreateDatabaseConnector(ctx context.Context, object *DatabaseConnector) (*DatabaseConnector, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*DatabaseConnector), nil +} + +func (s *storageDatabaseConnector) UpdateDatabaseConnector(ctx context.Context, object *DatabaseConnector) (*DatabaseConnector, 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.(*DatabaseConnector), nil +} + +func (s *storageDatabaseConnector) DeleteDatabaseConnector(ctx context.Context, id string) (bool, error) { + st := s.GetStandardStorage() + _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) + return sync, err +} + // DevPodEnvironmentTemplate Functions and Structs // // +k8s:deepcopy-gen=false @@ -4088,50 +4606,58 @@ type DevPodWorkspaceInstanceList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodDeleteOptionsList struct { +type DevPodWorkspaceInstanceCancelList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevPodWorkspaceInstanceCancel `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceDownloadList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodDeleteOptions `json:"items"` + Items []DevPodWorkspaceInstanceDownload `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodStatusOptionsList struct { +type DevPodWorkspaceInstanceLogList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodStatusOptions `json:"items"` + Items []DevPodWorkspaceInstanceLog `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodSshOptionsList struct { +type DevPodWorkspaceInstanceStopList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodSshOptions `json:"items"` + Items []DevPodWorkspaceInstanceStop `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceStateList struct { +type DevPodWorkspaceInstanceTasksList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceState `json:"items"` + Items []DevPodWorkspaceInstanceTasks `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodStopOptionsList struct { +type DevPodWorkspaceInstanceTroubleshootList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodStopOptions `json:"items"` + Items []DevPodWorkspaceInstanceTroubleshoot `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodUpOptionsList struct { +type DevPodWorkspaceInstanceUpList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodUpOptions `json:"items"` + Items []DevPodWorkspaceInstanceUp `json:"items"` } func (DevPodWorkspaceInstance) NewStatus() interface{} { @@ -4233,6 +4759,125 @@ func (s *storageDevPodWorkspaceInstance) DeleteDevPodWorkspaceInstance(ctx conte return sync, err } +// DevPodWorkspacePreset Functions and Structs +// +// +k8s:deepcopy-gen=false +type DevPodWorkspacePresetStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type DevPodWorkspacePresetStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspacePresetList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevPodWorkspacePreset `json:"items"` +} + +func (DevPodWorkspacePreset) NewStatus() interface{} { + return DevPodWorkspacePresetStatus{} +} + +func (pc *DevPodWorkspacePreset) GetStatus() interface{} { + return pc.Status +} + +func (pc *DevPodWorkspacePreset) SetStatus(s interface{}) { + pc.Status = s.(DevPodWorkspacePresetStatus) +} + +func (pc *DevPodWorkspacePreset) GetSpec() interface{} { + return pc.Spec +} + +func (pc *DevPodWorkspacePreset) SetSpec(s interface{}) { + pc.Spec = s.(DevPodWorkspacePresetSpec) +} + +func (pc *DevPodWorkspacePreset) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *DevPodWorkspacePreset) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc DevPodWorkspacePreset) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store DevPodWorkspacePreset. +// +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) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewDevPodWorkspacePresetRegistry(sp builders.StandardStorageProvider) DevPodWorkspacePresetRegistry { + return &storageDevPodWorkspacePreset{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageDevPodWorkspacePreset struct { + builders.StandardStorageProvider +} + +func (s *storageDevPodWorkspacePreset) ListDevPodWorkspacePresets(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspacePresetList, 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.(*DevPodWorkspacePresetList), err +} + +func (s *storageDevPodWorkspacePreset) GetDevPodWorkspacePreset(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspacePreset, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*DevPodWorkspacePreset), nil +} + +func (s *storageDevPodWorkspacePreset) CreateDevPodWorkspacePreset(ctx context.Context, object *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*DevPodWorkspacePreset), nil +} + +func (s *storageDevPodWorkspacePreset) UpdateDevPodWorkspacePreset(ctx context.Context, object *DevPodWorkspacePreset) (*DevPodWorkspacePreset, 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 +} + +func (s *storageDevPodWorkspacePreset) DeleteDevPodWorkspacePreset(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 // // +k8s:deepcopy-gen=false @@ -5312,81 +5957,81 @@ func (s *storageLoftUpgrade) DeleteLoftUpgrade(ctx context.Context, id string) ( return sync, err } -// OIDCClient Functions and Structs +// NodeClaim Functions and Structs // // +k8s:deepcopy-gen=false -type OIDCClientStrategy struct { +type NodeClaimStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type OIDCClientStatusStrategy struct { +type NodeClaimStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type OIDCClientList struct { +type NodeClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []OIDCClient `json:"items"` + Items []NodeClaim `json:"items"` } -func (OIDCClient) NewStatus() interface{} { - return OIDCClientStatus{} +func (NodeClaim) NewStatus() interface{} { + return NodeClaimStatus{} } -func (pc *OIDCClient) GetStatus() interface{} { +func (pc *NodeClaim) GetStatus() interface{} { return pc.Status } -func (pc *OIDCClient) SetStatus(s interface{}) { - pc.Status = s.(OIDCClientStatus) +func (pc *NodeClaim) SetStatus(s interface{}) { + pc.Status = s.(NodeClaimStatus) } -func (pc *OIDCClient) GetSpec() interface{} { +func (pc *NodeClaim) GetSpec() interface{} { return pc.Spec } -func (pc *OIDCClient) SetSpec(s interface{}) { - pc.Spec = s.(OIDCClientSpec) +func (pc *NodeClaim) SetSpec(s interface{}) { + pc.Spec = s.(NodeClaimSpec) } -func (pc *OIDCClient) GetObjectMeta() *metav1.ObjectMeta { +func (pc *NodeClaim) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *OIDCClient) SetGeneration(generation int64) { +func (pc *NodeClaim) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc OIDCClient) GetGeneration() int64 { +func (pc NodeClaim) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store OIDCClient. +// Registry is an interface for things that know how to store NodeClaim. // +k8s:deepcopy-gen=false -type OIDCClientRegistry interface { - ListOIDCClients(ctx context.Context, options *internalversion.ListOptions) (*OIDCClientList, error) - GetOIDCClient(ctx context.Context, id string, options *metav1.GetOptions) (*OIDCClient, error) - CreateOIDCClient(ctx context.Context, id *OIDCClient) (*OIDCClient, error) - UpdateOIDCClient(ctx context.Context, id *OIDCClient) (*OIDCClient, error) - DeleteOIDCClient(ctx context.Context, id string) (bool, error) +type NodeClaimRegistry interface { + ListNodeClaims(ctx context.Context, options *internalversion.ListOptions) (*NodeClaimList, error) + GetNodeClaim(ctx context.Context, id string, options *metav1.GetOptions) (*NodeClaim, error) + CreateNodeClaim(ctx context.Context, id *NodeClaim) (*NodeClaim, error) + UpdateNodeClaim(ctx context.Context, id *NodeClaim) (*NodeClaim, error) + DeleteNodeClaim(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewOIDCClientRegistry(sp builders.StandardStorageProvider) OIDCClientRegistry { - return &storageOIDCClient{sp} +func NewNodeClaimRegistry(sp builders.StandardStorageProvider) NodeClaimRegistry { + return &storageNodeClaim{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageOIDCClient struct { +type storageNodeClaim struct { builders.StandardStorageProvider } -func (s *storageOIDCClient) ListOIDCClients(ctx context.Context, options *internalversion.ListOptions) (*OIDCClientList, error) { +func (s *storageNodeClaim) ListNodeClaims(ctx context.Context, options *internalversion.ListOptions) (*NodeClaimList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -5395,106 +6040,463 @@ func (s *storageOIDCClient) ListOIDCClients(ctx context.Context, options *intern if err != nil { return nil, err } - return obj.(*OIDCClientList), err + return obj.(*NodeClaimList), err } -func (s *storageOIDCClient) GetOIDCClient(ctx context.Context, id string, options *metav1.GetOptions) (*OIDCClient, error) { +func (s *storageNodeClaim) GetNodeClaim(ctx context.Context, id string, options *metav1.GetOptions) (*NodeClaim, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*OIDCClient), nil + return obj.(*NodeClaim), nil } -func (s *storageOIDCClient) CreateOIDCClient(ctx context.Context, object *OIDCClient) (*OIDCClient, error) { +func (s *storageNodeClaim) CreateNodeClaim(ctx context.Context, object *NodeClaim) (*NodeClaim, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*OIDCClient), nil + return obj.(*NodeClaim), nil } -func (s *storageOIDCClient) UpdateOIDCClient(ctx context.Context, object *OIDCClient) (*OIDCClient, error) { +func (s *storageNodeClaim) UpdateNodeClaim(ctx context.Context, object *NodeClaim) (*NodeClaim, 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.(*OIDCClient), nil + return obj.(*NodeClaim), nil } -func (s *storageOIDCClient) DeleteOIDCClient(ctx context.Context, id string) (bool, error) { +func (s *storageNodeClaim) DeleteNodeClaim(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err } -// OwnedAccessKey Functions and Structs +// NodeProvider Functions and Structs // // +k8s:deepcopy-gen=false -type OwnedAccessKeyStrategy struct { +type NodeProviderStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type OwnedAccessKeyStatusStrategy struct { +type NodeProviderStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type OwnedAccessKeyList struct { +type NodeProviderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []OwnedAccessKey `json:"items"` + Items []NodeProvider `json:"items"` } -func (OwnedAccessKey) NewStatus() interface{} { - return OwnedAccessKeyStatus{} +func (NodeProvider) NewStatus() interface{} { + return NodeProviderStatus{} } -func (pc *OwnedAccessKey) GetStatus() interface{} { +func (pc *NodeProvider) GetStatus() interface{} { return pc.Status } -func (pc *OwnedAccessKey) SetStatus(s interface{}) { - pc.Status = s.(OwnedAccessKeyStatus) +func (pc *NodeProvider) SetStatus(s interface{}) { + pc.Status = s.(NodeProviderStatus) } -func (pc *OwnedAccessKey) GetSpec() interface{} { +func (pc *NodeProvider) GetSpec() interface{} { return pc.Spec } -func (pc *OwnedAccessKey) SetSpec(s interface{}) { - pc.Spec = s.(OwnedAccessKeySpec) +func (pc *NodeProvider) SetSpec(s interface{}) { + pc.Spec = s.(NodeProviderSpec) } -func (pc *OwnedAccessKey) GetObjectMeta() *metav1.ObjectMeta { +func (pc *NodeProvider) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *OwnedAccessKey) SetGeneration(generation int64) { +func (pc *NodeProvider) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc OwnedAccessKey) GetGeneration() int64 { +func (pc NodeProvider) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store OwnedAccessKey. +// Registry is an interface for things that know how to store NodeProvider. // +k8s:deepcopy-gen=false -type OwnedAccessKeyRegistry interface { - ListOwnedAccessKeys(ctx context.Context, options *internalversion.ListOptions) (*OwnedAccessKeyList, error) - GetOwnedAccessKey(ctx context.Context, id string, options *metav1.GetOptions) (*OwnedAccessKey, error) - CreateOwnedAccessKey(ctx context.Context, id *OwnedAccessKey) (*OwnedAccessKey, error) - UpdateOwnedAccessKey(ctx context.Context, id *OwnedAccessKey) (*OwnedAccessKey, error) - DeleteOwnedAccessKey(ctx context.Context, id string) (bool, error) +type NodeProviderRegistry interface { + ListNodeProviders(ctx context.Context, options *internalversion.ListOptions) (*NodeProviderList, error) + GetNodeProvider(ctx context.Context, id string, options *metav1.GetOptions) (*NodeProvider, error) + CreateNodeProvider(ctx context.Context, id *NodeProvider) (*NodeProvider, error) + UpdateNodeProvider(ctx context.Context, id *NodeProvider) (*NodeProvider, error) + DeleteNodeProvider(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewOwnedAccessKeyRegistry(sp builders.StandardStorageProvider) OwnedAccessKeyRegistry { +func NewNodeProviderRegistry(sp builders.StandardStorageProvider) NodeProviderRegistry { + return &storageNodeProvider{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageNodeProvider struct { + builders.StandardStorageProvider +} + +func (s *storageNodeProvider) ListNodeProviders(ctx context.Context, options *internalversion.ListOptions) (*NodeProviderList, 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.(*NodeProviderList), err +} + +func (s *storageNodeProvider) GetNodeProvider(ctx context.Context, id string, options *metav1.GetOptions) (*NodeProvider, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*NodeProvider), nil +} + +func (s *storageNodeProvider) CreateNodeProvider(ctx context.Context, object *NodeProvider) (*NodeProvider, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*NodeProvider), nil +} + +func (s *storageNodeProvider) UpdateNodeProvider(ctx context.Context, object *NodeProvider) (*NodeProvider, 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.(*NodeProvider), nil +} + +func (s *storageNodeProvider) DeleteNodeProvider(ctx context.Context, id string) (bool, error) { + st := s.GetStandardStorage() + _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) + return sync, err +} + +// NodeType Functions and Structs +// +// +k8s:deepcopy-gen=false +type NodeTypeStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type NodeTypeStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeTypeList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeType `json:"items"` +} + +func (NodeType) NewStatus() interface{} { + return NodeTypeStatus{} +} + +func (pc *NodeType) GetStatus() interface{} { + return pc.Status +} + +func (pc *NodeType) SetStatus(s interface{}) { + pc.Status = s.(NodeTypeStatus) +} + +func (pc *NodeType) GetSpec() interface{} { + return pc.Spec +} + +func (pc *NodeType) SetSpec(s interface{}) { + pc.Spec = s.(NodeTypeSpec) +} + +func (pc *NodeType) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *NodeType) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc NodeType) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store NodeType. +// +k8s:deepcopy-gen=false +type NodeTypeRegistry interface { + ListNodeTypes(ctx context.Context, options *internalversion.ListOptions) (*NodeTypeList, error) + GetNodeType(ctx context.Context, id string, options *metav1.GetOptions) (*NodeType, error) + CreateNodeType(ctx context.Context, id *NodeType) (*NodeType, error) + UpdateNodeType(ctx context.Context, id *NodeType) (*NodeType, error) + DeleteNodeType(ctx context.Context, id string) (bool, error) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewNodeTypeRegistry(sp builders.StandardStorageProvider) NodeTypeRegistry { + return &storageNodeType{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageNodeType struct { + builders.StandardStorageProvider +} + +func (s *storageNodeType) ListNodeTypes(ctx context.Context, options *internalversion.ListOptions) (*NodeTypeList, 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.(*NodeTypeList), err +} + +func (s *storageNodeType) GetNodeType(ctx context.Context, id string, options *metav1.GetOptions) (*NodeType, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*NodeType), nil +} + +func (s *storageNodeType) CreateNodeType(ctx context.Context, object *NodeType) (*NodeType, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*NodeType), nil +} + +func (s *storageNodeType) UpdateNodeType(ctx context.Context, object *NodeType) (*NodeType, 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.(*NodeType), nil +} + +func (s *storageNodeType) DeleteNodeType(ctx context.Context, id string) (bool, error) { + st := s.GetStandardStorage() + _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) + return sync, err +} + +// OIDCClient Functions and Structs +// +// +k8s:deepcopy-gen=false +type OIDCClientStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type OIDCClientStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type OIDCClientList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []OIDCClient `json:"items"` +} + +func (OIDCClient) NewStatus() interface{} { + return OIDCClientStatus{} +} + +func (pc *OIDCClient) GetStatus() interface{} { + return pc.Status +} + +func (pc *OIDCClient) SetStatus(s interface{}) { + pc.Status = s.(OIDCClientStatus) +} + +func (pc *OIDCClient) GetSpec() interface{} { + return pc.Spec +} + +func (pc *OIDCClient) SetSpec(s interface{}) { + pc.Spec = s.(OIDCClientSpec) +} + +func (pc *OIDCClient) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *OIDCClient) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc OIDCClient) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store OIDCClient. +// +k8s:deepcopy-gen=false +type OIDCClientRegistry interface { + ListOIDCClients(ctx context.Context, options *internalversion.ListOptions) (*OIDCClientList, error) + GetOIDCClient(ctx context.Context, id string, options *metav1.GetOptions) (*OIDCClient, error) + CreateOIDCClient(ctx context.Context, id *OIDCClient) (*OIDCClient, error) + UpdateOIDCClient(ctx context.Context, id *OIDCClient) (*OIDCClient, error) + DeleteOIDCClient(ctx context.Context, id string) (bool, error) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewOIDCClientRegistry(sp builders.StandardStorageProvider) OIDCClientRegistry { + return &storageOIDCClient{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageOIDCClient struct { + builders.StandardStorageProvider +} + +func (s *storageOIDCClient) ListOIDCClients(ctx context.Context, options *internalversion.ListOptions) (*OIDCClientList, 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.(*OIDCClientList), err +} + +func (s *storageOIDCClient) GetOIDCClient(ctx context.Context, id string, options *metav1.GetOptions) (*OIDCClient, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*OIDCClient), nil +} + +func (s *storageOIDCClient) CreateOIDCClient(ctx context.Context, object *OIDCClient) (*OIDCClient, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*OIDCClient), nil +} + +func (s *storageOIDCClient) UpdateOIDCClient(ctx context.Context, object *OIDCClient) (*OIDCClient, 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.(*OIDCClient), nil +} + +func (s *storageOIDCClient) DeleteOIDCClient(ctx context.Context, id string) (bool, error) { + st := s.GetStandardStorage() + _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) + return sync, err +} + +// OwnedAccessKey Functions and Structs +// +// +k8s:deepcopy-gen=false +type OwnedAccessKeyStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type OwnedAccessKeyStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type OwnedAccessKeyList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []OwnedAccessKey `json:"items"` +} + +func (OwnedAccessKey) NewStatus() interface{} { + return OwnedAccessKeyStatus{} +} + +func (pc *OwnedAccessKey) GetStatus() interface{} { + return pc.Status +} + +func (pc *OwnedAccessKey) SetStatus(s interface{}) { + pc.Status = s.(OwnedAccessKeyStatus) +} + +func (pc *OwnedAccessKey) GetSpec() interface{} { + return pc.Spec +} + +func (pc *OwnedAccessKey) SetSpec(s interface{}) { + pc.Spec = s.(OwnedAccessKeySpec) +} + +func (pc *OwnedAccessKey) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *OwnedAccessKey) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc OwnedAccessKey) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store OwnedAccessKey. +// +k8s:deepcopy-gen=false +type OwnedAccessKeyRegistry interface { + ListOwnedAccessKeys(ctx context.Context, options *internalversion.ListOptions) (*OwnedAccessKeyList, error) + GetOwnedAccessKey(ctx context.Context, id string, options *metav1.GetOptions) (*OwnedAccessKey, error) + CreateOwnedAccessKey(ctx context.Context, id *OwnedAccessKey) (*OwnedAccessKey, error) + UpdateOwnedAccessKey(ctx context.Context, id *OwnedAccessKey) (*OwnedAccessKey, error) + DeleteOwnedAccessKey(ctx context.Context, id string) (bool, error) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewOwnedAccessKeyRegistry(sp builders.StandardStorageProvider) OwnedAccessKeyRegistry { return &storageOwnedAccessKey{sp} } @@ -5628,14 +6630,6 @@ type ProjectMigrateVirtualClusterInstanceList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type ProjectRunnersList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []ProjectRunners `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - type ProjectTemplatesList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -6217,141 +7211,6 @@ func (s *storageResetAccessKey) DeleteResetAccessKey(ctx context.Context, id str return sync, err } -// Runner Functions and Structs -// -// +k8s:deepcopy-gen=false -type RunnerStrategy struct { - builders.DefaultStorageStrategy -} - -// +k8s:deepcopy-gen=false -type RunnerStatusStrategy struct { - builders.DefaultStatusStorageStrategy -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Runner `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerAccessKeyList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RunnerAccessKey `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerConfigList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RunnerConfig `json:"items"` -} - -func (Runner) NewStatus() interface{} { - return RunnerStatus{} -} - -func (pc *Runner) GetStatus() interface{} { - return pc.Status -} - -func (pc *Runner) SetStatus(s interface{}) { - pc.Status = s.(RunnerStatus) -} - -func (pc *Runner) GetSpec() interface{} { - return pc.Spec -} - -func (pc *Runner) SetSpec(s interface{}) { - pc.Spec = s.(RunnerSpec) -} - -func (pc *Runner) GetObjectMeta() *metav1.ObjectMeta { - return &pc.ObjectMeta -} - -func (pc *Runner) SetGeneration(generation int64) { - pc.ObjectMeta.Generation = generation -} - -func (pc Runner) GetGeneration() int64 { - return pc.ObjectMeta.Generation -} - -// Registry is an interface for things that know how to store Runner. -// +k8s:deepcopy-gen=false -type RunnerRegistry interface { - ListRunners(ctx context.Context, options *internalversion.ListOptions) (*RunnerList, error) - GetRunner(ctx context.Context, id string, options *metav1.GetOptions) (*Runner, error) - CreateRunner(ctx context.Context, id *Runner) (*Runner, error) - UpdateRunner(ctx context.Context, id *Runner) (*Runner, error) - DeleteRunner(ctx context.Context, id string) (bool, error) -} - -// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewRunnerRegistry(sp builders.StandardStorageProvider) RunnerRegistry { - return &storageRunner{sp} -} - -// Implement Registry -// storage puts strong typing around storage calls -// +k8s:deepcopy-gen=false -type storageRunner struct { - builders.StandardStorageProvider -} - -func (s *storageRunner) ListRunners(ctx context.Context, options *internalversion.ListOptions) (*RunnerList, 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.(*RunnerList), err -} - -func (s *storageRunner) GetRunner(ctx context.Context, id string, options *metav1.GetOptions) (*Runner, error) { - st := s.GetStandardStorage() - obj, err := st.Get(ctx, id, options) - if err != nil { - return nil, err - } - return obj.(*Runner), nil -} - -func (s *storageRunner) CreateRunner(ctx context.Context, object *Runner) (*Runner, error) { - st := s.GetStandardStorage() - obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) - if err != nil { - return nil, err - } - return obj.(*Runner), nil -} - -func (s *storageRunner) UpdateRunner(ctx context.Context, object *Runner) (*Runner, 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.(*Runner), nil -} - -func (s *storageRunner) DeleteRunner(ctx context.Context, id string) (bool, error) { - st := s.GetStandardStorage() - _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) - return sync, err -} - // Self Functions and Structs // // +k8s:deepcopy-gen=false @@ -7229,6 +8088,22 @@ type TeamClustersList struct { Items []TeamClusters `json:"items"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type TeamObjectPermissionsList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []TeamObjectPermissions `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type TeamPermissionsList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []TeamPermissions `json:"items"` +} + func (Team) NewStatus() interface{} { return TeamStatus{} } @@ -7485,6 +8360,14 @@ type UserClustersList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type UserObjectPermissionsList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []UserObjectPermissions `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type UserPermissionsList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -7628,6 +8511,14 @@ type VirtualClusterAccessKeyList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type VirtualClusterExternalDatabaseList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterExternalDatabase `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type VirtualClusterInstanceKubeConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -7741,6 +8632,125 @@ func (s *storageVirtualClusterInstance) DeleteVirtualClusterInstance(ctx context return sync, err } +// VirtualClusterSchema Functions and Structs +// +// +k8s:deepcopy-gen=false +type VirtualClusterSchemaStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type VirtualClusterSchemaStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterSchemaList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterSchema `json:"items"` +} + +func (VirtualClusterSchema) NewStatus() interface{} { + return VirtualClusterSchemaStatus{} +} + +func (pc *VirtualClusterSchema) GetStatus() interface{} { + return pc.Status +} + +func (pc *VirtualClusterSchema) SetStatus(s interface{}) { + pc.Status = s.(VirtualClusterSchemaStatus) +} + +func (pc *VirtualClusterSchema) GetSpec() interface{} { + return pc.Spec +} + +func (pc *VirtualClusterSchema) SetSpec(s interface{}) { + pc.Spec = s.(VirtualClusterSchemaSpec) +} + +func (pc *VirtualClusterSchema) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *VirtualClusterSchema) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc VirtualClusterSchema) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store VirtualClusterSchema. +// +k8s:deepcopy-gen=false +type VirtualClusterSchemaRegistry interface { + ListVirtualClusterSchemas(ctx context.Context, options *internalversion.ListOptions) (*VirtualClusterSchemaList, error) + GetVirtualClusterSchema(ctx context.Context, id string, options *metav1.GetOptions) (*VirtualClusterSchema, error) + CreateVirtualClusterSchema(ctx context.Context, id *VirtualClusterSchema) (*VirtualClusterSchema, error) + UpdateVirtualClusterSchema(ctx context.Context, id *VirtualClusterSchema) (*VirtualClusterSchema, error) + DeleteVirtualClusterSchema(ctx context.Context, id string) (bool, error) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewVirtualClusterSchemaRegistry(sp builders.StandardStorageProvider) VirtualClusterSchemaRegistry { + return &storageVirtualClusterSchema{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageVirtualClusterSchema struct { + builders.StandardStorageProvider +} + +func (s *storageVirtualClusterSchema) ListVirtualClusterSchemas(ctx context.Context, options *internalversion.ListOptions) (*VirtualClusterSchemaList, 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.(*VirtualClusterSchemaList), err +} + +func (s *storageVirtualClusterSchema) GetVirtualClusterSchema(ctx context.Context, id string, options *metav1.GetOptions) (*VirtualClusterSchema, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*VirtualClusterSchema), nil +} + +func (s *storageVirtualClusterSchema) CreateVirtualClusterSchema(ctx context.Context, object *VirtualClusterSchema) (*VirtualClusterSchema, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*VirtualClusterSchema), nil +} + +func (s *storageVirtualClusterSchema) UpdateVirtualClusterSchema(ctx context.Context, object *VirtualClusterSchema) (*VirtualClusterSchema, 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.(*VirtualClusterSchema), nil +} + +func (s *storageVirtualClusterSchema) DeleteVirtualClusterSchema(ctx context.Context, id string) (bool, error) { + st := s.GetStandardStorage() + _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) + return sync, err +} + // VirtualClusterTemplate 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 a6d83fc6..e137b878 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -12,6 +12,7 @@ import ( v1 "github.com/loft-sh/api/v4/pkg/apis/audit/v1" storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" uiv1 "github.com/loft-sh/api/v4/pkg/apis/ui/v1" + corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -153,6 +154,28 @@ func (in *AgentAuditEventStatus) DeepCopy() *AgentAuditEventStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AgentCostControlConfig) DeepCopyInto(out *AgentCostControlConfig) { + *out = *in + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } + in.CostControlClusterConfig.DeepCopyInto(&out.CostControlClusterConfig) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentCostControlConfig. +func (in *AgentCostControlConfig) DeepCopy() *AgentCostControlConfig { + if in == nil { + return nil + } + out := new(AgentCostControlConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Announcement) DeepCopyInto(out *Announcement) { *out = *in @@ -436,6 +459,23 @@ func (in *Apps) DeepCopy() *Apps { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AssignedVia) DeepCopyInto(out *AssignedVia) { + *out = *in + out.ObjectName = in.ObjectName + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AssignedVia. +func (in *AssignedVia) DeepCopy() *AssignedVia { + if in == nil { + return nil + } + out := new(AssignedVia) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Audit) DeepCopyInto(out *Audit) { *out = *in @@ -720,6 +760,11 @@ func (in *AuthenticationMicrosoft) DeepCopy() *AuthenticationMicrosoft { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuthenticationOIDC) DeepCopyInto(out *AuthenticationOIDC) { *out = *in + if in.AllowedExtraClaims != nil { + in, out := &in.AllowedExtraClaims, &out.AllowedExtraClaims + *out = make([]string, len(*in)) + copy(*out, *in) + } if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]string, len(*in)) @@ -970,13 +1015,30 @@ func (in *BackupStatus) DeepCopy() *BackupStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Cloud) DeepCopyInto(out *Cloud) { + *out = *in + out.MaintenanceWindow = in.MaintenanceWindow + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cloud. +func (in *Cloud) DeepCopy() *Cloud { + if in == nil { + return nil + } + out := new(Cloud) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Cluster) DeepCopyInto(out *Cluster) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) return } @@ -1118,6 +1180,29 @@ func (in *ClusterAccessList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterAccessRole) DeepCopyInto(out *ClusterAccessRole) { + *out = *in + out.ObjectName = in.ObjectName + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make([]ObjectName, len(*in)) + copy(*out, *in) + } + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAccessRole. +func (in *ClusterAccessRole) DeepCopy() *ClusterAccessRole { + if in == nil { + return nil + } + out := new(ClusterAccessRole) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterAccessSpec) DeepCopyInto(out *ClusterAccessSpec) { *out = *in @@ -1248,6 +1333,11 @@ func (in *ClusterAgentConfigCommon) DeepCopyInto(out *ClusterAgentConfigCommon) copy(*out, *in) } out.AnalyticsSpec = in.AnalyticsSpec + if in.CostControl != nil { + in, out := &in.CostControl, &out.CostControl + *out = new(AgentCostControlConfig) + (*in).DeepCopyInto(*out) + } return } @@ -1792,7 +1882,7 @@ func (in *ClusterSpec) DeepCopy() *ClusterSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { *out = *in - out.ClusterStatus = in.ClusterStatus + in.ClusterStatus.DeepCopyInto(&out.ClusterStatus) return } @@ -1806,70 +1896,6 @@ func (in *ClusterStatus) DeepCopy() *ClusterStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterVirtualClusterDefaults) DeepCopyInto(out *ClusterVirtualClusterDefaults) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.DefaultTemplate != nil { - in, out := &in.DefaultTemplate, &out.DefaultTemplate - *out = new(storagev1.VirtualClusterTemplate) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVirtualClusterDefaults. -func (in *ClusterVirtualClusterDefaults) DeepCopy() *ClusterVirtualClusterDefaults { - if in == nil { - return nil - } - out := new(ClusterVirtualClusterDefaults) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterVirtualClusterDefaults) 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 *ClusterVirtualClusterDefaultsList) DeepCopyInto(out *ClusterVirtualClusterDefaultsList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterVirtualClusterDefaults, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVirtualClusterDefaultsList. -func (in *ClusterVirtualClusterDefaultsList) DeepCopy() *ClusterVirtualClusterDefaultsList { - if in == nil { - return nil - } - out := new(ClusterVirtualClusterDefaultsList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterVirtualClusterDefaultsList) 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 *Config) DeepCopyInto(out *Config) { *out = *in @@ -1986,6 +2012,21 @@ func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus) { *out = new(storagev1.VaultIntegrationSpec) (*in).DeepCopyInto(*out) } + if in.Cloud != nil { + in, out := &in.Cloud, &out.Cloud + *out = new(Cloud) + **out = **in + } + if in.CostControl != nil { + in, out := &in.CostControl, &out.CostControl + *out = new(CostControl) + (*in).DeepCopyInto(*out) + } + if in.ImageBuilder != nil { + in, out := &in.ImageBuilder, &out.ImageBuilder + *out = new(ImageBuilder) + (*in).DeepCopyInto(*out) + } return } @@ -2163,174 +2204,175 @@ func (in *ConvertVirtualClusterConfigStatus) DeepCopy() *ConvertVirtualClusterCo } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodDeleteOptions) DeepCopyInto(out *DevPodDeleteOptions) { +func (in *CostControl) DeepCopyInto(out *CostControl) { *out = *in - out.TypeMeta = in.TypeMeta + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } + in.Global.DeepCopyInto(&out.Global) + in.Cluster.DeepCopyInto(&out.Cluster) + if in.Settings != nil { + in, out := &in.Settings, &out.Settings + *out = new(CostControlSettings) + (*in).DeepCopyInto(*out) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodDeleteOptions. -func (in *DevPodDeleteOptions) DeepCopy() *DevPodDeleteOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CostControl. +func (in *CostControl) DeepCopy() *CostControl { if in == nil { return nil } - out := new(DevPodDeleteOptions) + out := new(CostControl) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodDeleteOptions) 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 *DevPodDeleteOptionsList) DeepCopyInto(out *DevPodDeleteOptionsList) { +func (in *CostControlClusterConfig) DeepCopyInto(out *CostControlClusterConfig) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodDeleteOptions, len(*in)) - copy(*out, *in) + if in.Metrics != nil { + in, out := &in.Metrics, &out.Metrics + *out = new(storagev1.Metrics) + (*in).DeepCopyInto(*out) + } + if in.OpenCost != nil { + in, out := &in.OpenCost, &out.OpenCost + *out = new(storagev1.OpenCost) + (*in).DeepCopyInto(*out) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodDeleteOptionsList. -func (in *DevPodDeleteOptionsList) DeepCopy() *DevPodDeleteOptionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CostControlClusterConfig. +func (in *CostControlClusterConfig) DeepCopy() *CostControlClusterConfig { if in == nil { return nil } - out := new(DevPodDeleteOptionsList) + out := new(CostControlClusterConfig) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodDeleteOptionsList) 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 *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { +func (in *CostControlGPUSettings) DeepCopyInto(out *CostControlGPUSettings) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + if in.AvgGPUPrice != nil { + in, out := &in.AvgGPUPrice, &out.AvgGPUPrice + *out = new(CostControlResourcePrice) + **out = **in + } 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 CostControlGPUSettings. +func (in *CostControlGPUSettings) DeepCopy() *CostControlGPUSettings { if in == nil { return nil } - out := new(DevPodEnvironmentTemplate) + out := new(CostControlGPUSettings) 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 { - 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 *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemplateList) { +func (in *CostControlGlobalConfig) DeepCopyInto(out *CostControlGlobalConfig) { *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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.Metrics != nil { + in, out := &in.Metrics, &out.Metrics + *out = new(storagev1.Metrics) + (*in).DeepCopyInto(*out) } 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 CostControlGlobalConfig. +func (in *CostControlGlobalConfig) DeepCopy() *CostControlGlobalConfig { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateList) + out := new(CostControlGlobalConfig) 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 { - 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 *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemplateSpec) { +func (in *CostControlResourcePrice) DeepCopyInto(out *CostControlResourcePrice) { *out = *in - in.DevPodEnvironmentTemplateSpec.DeepCopyInto(&out.DevPodEnvironmentTemplateSpec) 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 CostControlResourcePrice. +func (in *CostControlResourcePrice) DeepCopy() *CostControlResourcePrice { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateSpec) + out := new(CostControlResourcePrice) 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 *CostControlSettings) DeepCopyInto(out *CostControlSettings) { *out = *in + if in.AvgCPUPricePerNode != nil { + in, out := &in.AvgCPUPricePerNode, &out.AvgCPUPricePerNode + *out = new(CostControlResourcePrice) + **out = **in + } + if in.AvgRAMPricePerNode != nil { + in, out := &in.AvgRAMPricePerNode, &out.AvgRAMPricePerNode + *out = new(CostControlResourcePrice) + **out = **in + } + if in.GPUSettings != nil { + in, out := &in.GPUSettings, &out.GPUSettings + *out = new(CostControlGPUSettings) + (*in).DeepCopyInto(*out) + } + if in.ControlPlanePricePerCluster != nil { + in, out := &in.ControlPlanePricePerCluster, &out.ControlPlanePricePerCluster + *out = new(CostControlResourcePrice) + **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 CostControlSettings. +func (in *CostControlSettings) DeepCopy() *CostControlSettings { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateStatus) + out := new(CostControlSettings) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodSshOptions) DeepCopyInto(out *DevPodSshOptions) { +func (in *DatabaseConnector) DeepCopyInto(out *DatabaseConnector) { *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 DevPodSshOptions. -func (in *DevPodSshOptions) DeepCopy() *DevPodSshOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnector. +func (in *DatabaseConnector) DeepCopy() *DatabaseConnector { if in == nil { return nil } - out := new(DevPodSshOptions) + out := new(DatabaseConnector) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodSshOptions) DeepCopyObject() runtime.Object { +func (in *DatabaseConnector) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2338,30 +2380,32 @@ func (in *DevPodSshOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodSshOptionsList) DeepCopyInto(out *DevPodSshOptionsList) { +func (in *DatabaseConnectorList) DeepCopyInto(out *DatabaseConnectorList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodSshOptions, len(*in)) - copy(*out, *in) + *out = make([]DatabaseConnector, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodSshOptionsList. -func (in *DevPodSshOptionsList) DeepCopy() *DevPodSshOptionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectorList. +func (in *DatabaseConnectorList) DeepCopy() *DatabaseConnectorList { if in == nil { return nil } - out := new(DevPodSshOptionsList) + out := new(DatabaseConnectorList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodSshOptionsList) DeepCopyObject() runtime.Object { +func (in *DatabaseConnectorList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2369,80 +2413,59 @@ func (in *DevPodSshOptionsList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodStatusOptions) DeepCopyInto(out *DevPodStatusOptions) { +func (in *DatabaseConnectorSpec) DeepCopyInto(out *DatabaseConnectorSpec) { *out = *in - out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodStatusOptions. -func (in *DevPodStatusOptions) DeepCopy() *DevPodStatusOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectorSpec. +func (in *DatabaseConnectorSpec) DeepCopy() *DatabaseConnectorSpec { if in == nil { return nil } - out := new(DevPodStatusOptions) + out := new(DatabaseConnectorSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodStatusOptions) 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 *DevPodStatusOptionsList) DeepCopyInto(out *DevPodStatusOptionsList) { +func (in *DatabaseConnectorStatus) DeepCopyInto(out *DatabaseConnectorStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodStatusOptions, len(*in)) - copy(*out, *in) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodStatusOptionsList. -func (in *DevPodStatusOptionsList) DeepCopy() *DevPodStatusOptionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectorStatus. +func (in *DatabaseConnectorStatus) DeepCopy() *DatabaseConnectorStatus { if in == nil { return nil } - out := new(DevPodStatusOptionsList) + out := new(DatabaseConnectorStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodStatusOptionsList) 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 *DevPodStopOptions) DeepCopyInto(out *DevPodStopOptions) { +func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { *out = *in out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodStopOptions. -func (in *DevPodStopOptions) DeepCopy() *DevPodStopOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplate. +func (in *DevPodEnvironmentTemplate) DeepCopy() *DevPodEnvironmentTemplate { if in == nil { return nil } - out := new(DevPodStopOptions) + out := new(DevPodEnvironmentTemplate) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodStopOptions) DeepCopyObject() runtime.Object { +func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2450,30 +2473,32 @@ func (in *DevPodStopOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodStopOptionsList) DeepCopyInto(out *DevPodStopOptionsList) { +func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemplateList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodStopOptions, len(*in)) - copy(*out, *in) + *out = make([]DevPodEnvironmentTemplate, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodStopOptionsList. -func (in *DevPodStopOptionsList) DeepCopy() *DevPodStopOptionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateList. +func (in *DevPodEnvironmentTemplateList) DeepCopy() *DevPodEnvironmentTemplateList { if in == nil { return nil } - out := new(DevPodStopOptionsList) + out := new(DevPodEnvironmentTemplateList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodStopOptionsList) DeepCopyObject() runtime.Object { +func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2481,61 +2506,38 @@ func (in *DevPodStopOptionsList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodUpOptions) DeepCopyInto(out *DevPodUpOptions) { +func (in *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemplateSpec) { *out = *in - out.TypeMeta = in.TypeMeta + in.DevPodEnvironmentTemplateSpec.DeepCopyInto(&out.DevPodEnvironmentTemplateSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodUpOptions. -func (in *DevPodUpOptions) DeepCopy() *DevPodUpOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateSpec. +func (in *DevPodEnvironmentTemplateSpec) DeepCopy() *DevPodEnvironmentTemplateSpec { if in == nil { return nil } - out := new(DevPodUpOptions) + out := new(DevPodEnvironmentTemplateSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodUpOptions) 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 *DevPodUpOptionsList) DeepCopyInto(out *DevPodUpOptionsList) { +func (in *DevPodEnvironmentTemplateStatus) DeepCopyInto(out *DevPodEnvironmentTemplateStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodUpOptions, len(*in)) - copy(*out, *in) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodUpOptionsList. -func (in *DevPodUpOptionsList) DeepCopy() *DevPodUpOptionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateStatus. +func (in *DevPodEnvironmentTemplateStatus) DeepCopy() *DevPodEnvironmentTemplateStatus { if in == nil { return nil } - out := new(DevPodUpOptionsList) + out := new(DevPodEnvironmentTemplateStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodUpOptionsList) 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 *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { *out = *in @@ -2565,32 +2567,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 *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { +func (in *DevPodWorkspaceInstanceCancel) DeepCopyInto(out *DevPodWorkspaceInstanceCancel) { *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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 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 DevPodWorkspaceInstanceCancel. +func (in *DevPodWorkspaceInstanceCancel) DeepCopy() *DevPodWorkspaceInstanceCancel { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceList) + out := new(DevPodWorkspaceInstanceCancel) 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 *DevPodWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2598,42 +2593,58 @@ 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 *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { +func (in *DevPodWorkspaceInstanceCancelList) DeepCopyInto(out *DevPodWorkspaceInstanceCancelList) { *out = *in - in.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspaceInstanceCancel, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } 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 DevPodWorkspaceInstanceCancelList. +func (in *DevPodWorkspaceInstanceCancelList) DeepCopy() *DevPodWorkspaceInstanceCancelList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + out := new(DevPodWorkspaceInstanceCancelList) 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 { + 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 *DevPodWorkspaceInstanceState) DeepCopyInto(out *DevPodWorkspaceInstanceState) { +func (in *DevPodWorkspaceInstanceDownload) DeepCopyInto(out *DevPodWorkspaceInstanceDownload) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceState. -func (in *DevPodWorkspaceInstanceState) DeepCopy() *DevPodWorkspaceInstanceState { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownload. +func (in *DevPodWorkspaceInstanceDownload) DeepCopy() *DevPodWorkspaceInstanceDownload { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceState) + out := new(DevPodWorkspaceInstanceDownload) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceState) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceDownload) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2641,13 +2652,13 @@ func (in *DevPodWorkspaceInstanceState) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStateList) DeepCopyInto(out *DevPodWorkspaceInstanceStateList) { +func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceState, len(*in)) + *out = make([]DevPodWorkspaceInstanceDownload, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2655,18 +2666,18 @@ func (in *DevPodWorkspaceInstanceStateList) DeepCopyInto(out *DevPodWorkspaceIns return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStateList. -func (in *DevPodWorkspaceInstanceStateList) DeepCopy() *DevPodWorkspaceInstanceStateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownloadList. +func (in *DevPodWorkspaceInstanceDownloadList) DeepCopy() *DevPodWorkspaceInstanceDownloadList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStateList) + out := new(DevPodWorkspaceInstanceDownloadList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceStateList) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2674,49 +2685,24 @@ func (in *DevPodWorkspaceInstanceStateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { - *out = *in - in.DevPodWorkspaceInstanceStatus.DeepCopyInto(&out.DevPodWorkspaceInstanceStatus) - if in.SleepModeConfig != nil { - in, out := &in.SleepModeConfig, &out.SleepModeConfig - *out = new(clusterv1.SleepModeConfig) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStatus. -func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstanceStatus) - 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 *DevPodWorkspaceInstanceDownloadOptions) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadOptions) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status 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 DevPodWorkspaceInstanceDownloadOptions. +func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopy() *DevPodWorkspaceInstanceDownloadOptions { if in == nil { return nil } - out := new(DevPodWorkspaceTemplate) + out := new(DevPodWorkspaceInstanceDownloadOptions) 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 *DevPodWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2724,13 +2710,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 *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { *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([]DevPodWorkspaceInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2738,18 +2724,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 DevPodWorkspaceInstanceList. +func (in *DevPodWorkspaceInstanceList) DeepCopy() *DevPodWorkspaceInstanceList { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateList) + out := new(DevPodWorkspaceInstanceList) 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 *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2757,61 +2743,58 @@ 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 *DevPodWorkspaceInstanceLog) DeepCopyInto(out *DevPodWorkspaceInstanceLog) { *out = *in - in.DevPodWorkspaceTemplateSpec.DeepCopyInto(&out.DevPodWorkspaceTemplateSpec) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 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 DevPodWorkspaceInstanceLog. +func (in *DevPodWorkspaceInstanceLog) DeepCopy() *DevPodWorkspaceInstanceLog { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateSpec) + out := new(DevPodWorkspaceInstanceLog) 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) { - *out = *in - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateStatus. -func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { - if in == nil { - return nil +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceLog) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - out := new(DevPodWorkspaceTemplateStatus) - in.DeepCopyInto(out) - return out + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DirectClusterEndpointToken) DeepCopyInto(out *DirectClusterEndpointToken) { +func (in *DevPodWorkspaceInstanceLogList) DeepCopyInto(out *DevPodWorkspaceInstanceLogList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspaceInstanceLog, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointToken. -func (in *DirectClusterEndpointToken) DeepCopy() *DirectClusterEndpointToken { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogList. +func (in *DevPodWorkspaceInstanceLogList) DeepCopy() *DevPodWorkspaceInstanceLogList { if in == nil { return nil } - out := new(DirectClusterEndpointToken) + out := new(DevPodWorkspaceInstanceLogList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DirectClusterEndpointToken) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceLogList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2819,32 +2802,24 @@ func (in *DirectClusterEndpointToken) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DirectClusterEndpointTokenList) DeepCopyInto(out *DirectClusterEndpointTokenList) { +func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyInto(out *DevPodWorkspaceInstanceLogOptions) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DirectClusterEndpointToken, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenList. -func (in *DirectClusterEndpointTokenList) DeepCopy() *DirectClusterEndpointTokenList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogOptions. +func (in *DevPodWorkspaceInstanceLogOptions) DeepCopy() *DevPodWorkspaceInstanceLogOptions { if in == nil { return nil } - out := new(DirectClusterEndpointTokenList) + out := new(DevPodWorkspaceInstanceLogOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DirectClusterEndpointTokenList) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2852,64 +2827,66 @@ func (in *DirectClusterEndpointTokenList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DirectClusterEndpointTokenSpec) DeepCopyInto(out *DirectClusterEndpointTokenSpec) { +func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { *out = *in - if in.Scope != nil { - in, out := &in.Scope, &out.Scope - *out = new(storagev1.AccessKeyScope) - (*in).DeepCopyInto(*out) - } + in.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenSpec. -func (in *DirectClusterEndpointTokenSpec) DeepCopy() *DirectClusterEndpointTokenSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceSpec. +func (in *DevPodWorkspaceInstanceSpec) DeepCopy() *DevPodWorkspaceInstanceSpec { if in == nil { return nil } - out := new(DirectClusterEndpointTokenSpec) + out := new(DevPodWorkspaceInstanceSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DirectClusterEndpointTokenStatus) DeepCopyInto(out *DirectClusterEndpointTokenStatus) { +func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { *out = *in + in.DevPodWorkspaceInstanceStatus.DeepCopyInto(&out.DevPodWorkspaceInstanceStatus) + if in.SleepModeConfig != nil { + in, out := &in.SleepModeConfig, &out.SleepModeConfig + *out = new(clusterv1.SleepModeConfig) + (*in).DeepCopyInto(*out) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenStatus. -func (in *DirectClusterEndpointTokenStatus) DeepCopy() *DirectClusterEndpointTokenStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStatus. +func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { if in == nil { return nil } - out := new(DirectClusterEndpointTokenStatus) + out := new(DevPodWorkspaceInstanceStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Event) DeepCopyInto(out *Event) { +func (in *DevPodWorkspaceInstanceStop) DeepCopyInto(out *DevPodWorkspaceInstanceStop) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event. -func (in *Event) DeepCopy() *Event { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStop. +func (in *DevPodWorkspaceInstanceStop) DeepCopy() *DevPodWorkspaceInstanceStop { if in == nil { return nil } - out := new(Event) + out := new(DevPodWorkspaceInstanceStop) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Event) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceStop) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2917,13 +2894,13 @@ func (in *Event) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EventList) DeepCopyInto(out *EventList) { +func (in *DevPodWorkspaceInstanceStopList) DeepCopyInto(out *DevPodWorkspaceInstanceStopList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Event, len(*in)) + *out = make([]DevPodWorkspaceInstanceStop, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2931,18 +2908,18 @@ func (in *EventList) DeepCopyInto(out *EventList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventList. -func (in *EventList) DeepCopy() *EventList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopList. +func (in *DevPodWorkspaceInstanceStopList) DeepCopy() *DevPodWorkspaceInstanceStopList { if in == nil { return nil } - out := new(EventList) + out := new(DevPodWorkspaceInstanceStopList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *EventList) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2950,60 +2927,91 @@ func (in *EventList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EventSpec) DeepCopyInto(out *EventSpec) { +func (in *DevPodWorkspaceInstanceStopSpec) DeepCopyInto(out *DevPodWorkspaceInstanceStopSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSpec. -func (in *EventSpec) DeepCopy() *EventSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopSpec. +func (in *DevPodWorkspaceInstanceStopSpec) DeepCopy() *DevPodWorkspaceInstanceStopSpec { if in == nil { return nil } - out := new(EventSpec) + out := new(DevPodWorkspaceInstanceStopSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EventStatus) DeepCopyInto(out *EventStatus) { +func (in *DevPodWorkspaceInstanceStopStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStopStatus) { *out = *in - in.Event.DeepCopyInto(&out.Event) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventStatus. -func (in *EventStatus) DeepCopy() *EventStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopStatus. +func (in *DevPodWorkspaceInstanceStopStatus) DeepCopy() *DevPodWorkspaceInstanceStopStatus { if in == nil { return nil } - out := new(EventStatus) + out := new(DevPodWorkspaceInstanceStopStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Feature) DeepCopyInto(out *Feature) { +func (in *DevPodWorkspaceInstanceTask) DeepCopyInto(out *DevPodWorkspaceInstanceTask) { + *out = *in + if in.Result != nil { + in, out := &in.Result, &out.Result + *out = make([]byte, len(*in)) + copy(*out, *in) + } + if in.Logs != nil { + in, out := &in.Logs, &out.Logs + *out = make([]byte, len(*in)) + copy(*out, *in) + } + in.CreatedAt.DeepCopyInto(&out.CreatedAt) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTask. +func (in *DevPodWorkspaceInstanceTask) DeepCopy() *DevPodWorkspaceInstanceTask { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceTask) + 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) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) + if in.Tasks != nil { + in, out := &in.Tasks, &out.Tasks + *out = make([]DevPodWorkspaceInstanceTask, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Feature. -func (in *Feature) DeepCopy() *Feature { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasks. +func (in *DevPodWorkspaceInstanceTasks) DeepCopy() *DevPodWorkspaceInstanceTasks { if in == nil { return nil } - out := new(Feature) + out := new(DevPodWorkspaceInstanceTasks) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Feature) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3011,13 +3019,13 @@ func (in *Feature) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FeatureList) DeepCopyInto(out *FeatureList) { +func (in *DevPodWorkspaceInstanceTasksList) DeepCopyInto(out *DevPodWorkspaceInstanceTasksList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Feature, len(*in)) + *out = make([]DevPodWorkspaceInstanceTasks, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3025,18 +3033,18 @@ func (in *FeatureList) DeepCopyInto(out *FeatureList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureList. -func (in *FeatureList) DeepCopy() *FeatureList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasksList. +func (in *DevPodWorkspaceInstanceTasksList) DeepCopy() *DevPodWorkspaceInstanceTasksList { if in == nil { return nil } - out := new(FeatureList) + out := new(DevPodWorkspaceInstanceTasksList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FeatureList) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3044,66 +3052,125 @@ func (in *FeatureList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FeatureSpec) DeepCopyInto(out *FeatureSpec) { +func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyInto(out *DevPodWorkspaceInstanceTasksOptions) { *out = *in + out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureSpec. -func (in *FeatureSpec) DeepCopy() *FeatureSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasksOptions. +func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopy() *DevPodWorkspaceInstanceTasksOptions { if in == nil { return nil } - out := new(FeatureSpec) + out := new(DevPodWorkspaceInstanceTasksOptions) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FeatureStatus) DeepCopyInto(out *FeatureStatus) { - *out = *in - in.Feature.DeepCopyInto(&out.Feature) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureStatus. -func (in *FeatureStatus) DeepCopy() *FeatureStatus { - if in == nil { - return nil - } - out := new(FeatureStatus) - 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 { + 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 *GroupResources) DeepCopyInto(out *GroupResources) { +func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshoot) { *out = *in - if in.Resources != nil { - in, out := &in.Resources, &out.Resources + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Workspace != nil { + in, out := &in.Workspace, &out.Workspace + *out = new(DevPodWorkspaceInstance) + (*in).DeepCopyInto(*out) + } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(storagev1.DevPodWorkspaceTemplate) + (*in).DeepCopyInto(*out) + } + if in.Pods != nil { + in, out := &in.Pods, &out.Pods + *out = make([]corev1.Pod, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.PVCs != nil { + in, out := &in.PVCs, &out.PVCs + *out = make([]corev1.PersistentVolumeClaim, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Netmaps != nil { + in, out := &in.Netmaps, &out.Netmaps *out = make([]string, len(*in)) copy(*out, *in) } - if in.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames + if in.Errors != nil { + in, out := &in.Errors, &out.Errors *out = make([]string, len(*in)) copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources. -func (in *GroupResources) DeepCopy() *GroupResources { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshoot. +func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopy() *DevPodWorkspaceInstanceTroubleshoot { if in == nil { return nil } - out := new(GroupResources) + out := new(DevPodWorkspaceInstanceTroubleshoot) + 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 { + 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 *DevPodWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshootList) { + *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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshootList. +func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopy() *DevPodWorkspaceInstanceTroubleshootList { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceTroubleshootList) 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 { + 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 *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { +func (in *DevPodWorkspaceInstanceUp) DeepCopyInto(out *DevPodWorkspaceInstanceUp) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3112,18 +3179,18 @@ func (in *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthToken. -func (in *IngressAuthToken) DeepCopy() *IngressAuthToken { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUp. +func (in *DevPodWorkspaceInstanceUp) DeepCopy() *DevPodWorkspaceInstanceUp { if in == nil { return nil } - out := new(IngressAuthToken) + out := new(DevPodWorkspaceInstanceUp) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IngressAuthToken) DeepCopyObject() runtime.Object { +func (in *DevPodWorkspaceInstanceUp) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3131,13 +3198,13 @@ func (in *IngressAuthToken) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressAuthTokenList) DeepCopyInto(out *IngressAuthTokenList) { +func (in *DevPodWorkspaceInstanceUpList) DeepCopyInto(out *DevPodWorkspaceInstanceUpList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]IngressAuthToken, len(*in)) + *out = make([]DevPodWorkspaceInstanceUp, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3145,18 +3212,1039 @@ func (in *IngressAuthTokenList) DeepCopyInto(out *IngressAuthTokenList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenList. -func (in *IngressAuthTokenList) DeepCopy() *IngressAuthTokenList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpList. +func (in *DevPodWorkspaceInstanceUpList) DeepCopy() *DevPodWorkspaceInstanceUpList { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUpList) + 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 { + 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 *DevPodWorkspaceInstanceUpSpec) DeepCopyInto(out *DevPodWorkspaceInstanceUpSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpSpec. +func (in *DevPodWorkspaceInstanceUpSpec) DeepCopy() *DevPodWorkspaceInstanceUpSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUpSpec) + 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) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpStatus. +func (in *DevPodWorkspaceInstanceUpStatus) DeepCopy() *DevPodWorkspaceInstanceUpStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUpStatus) + 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) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePreset. +func (in *DevPodWorkspacePreset) DeepCopy() *DevPodWorkspacePreset { + if in == nil { + return nil + } + out := new(DevPodWorkspacePreset) + 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 { + 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 *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList) { + *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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetList. +func (in *DevPodWorkspacePresetList) DeepCopy() *DevPodWorkspacePresetList { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetList) + 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 { + 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 *DevPodWorkspacePresetSpec) DeepCopyInto(out *DevPodWorkspacePresetSpec) { + *out = *in + in.DevPodWorkspacePresetSpec.DeepCopyInto(&out.DevPodWorkspacePresetSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSpec. +func (in *DevPodWorkspacePresetSpec) DeepCopy() *DevPodWorkspacePresetSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetSpec) + 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) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetStatus. +func (in *DevPodWorkspacePresetStatus) DeepCopy() *DevPodWorkspacePresetStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetStatus) + 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) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplate. +func (in *DevPodWorkspaceTemplate) DeepCopy() *DevPodWorkspaceTemplate { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplate) + 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 { + 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 *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplateList) { + *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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateList. +func (in *DevPodWorkspaceTemplateList) DeepCopy() *DevPodWorkspaceTemplateList { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplateList) + 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 { + 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 *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplateSpec) { + *out = *in + in.DevPodWorkspaceTemplateSpec.DeepCopyInto(&out.DevPodWorkspaceTemplateSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateSpec. +func (in *DevPodWorkspaceTemplateSpec) DeepCopy() *DevPodWorkspaceTemplateSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplateSpec) + 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) { + *out = *in + out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateStatus. +func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplateStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DirectClusterEndpointToken) DeepCopyInto(out *DirectClusterEndpointToken) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointToken. +func (in *DirectClusterEndpointToken) DeepCopy() *DirectClusterEndpointToken { + if in == nil { + return nil + } + out := new(DirectClusterEndpointToken) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DirectClusterEndpointToken) 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 *DirectClusterEndpointTokenList) DeepCopyInto(out *DirectClusterEndpointTokenList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DirectClusterEndpointToken, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenList. +func (in *DirectClusterEndpointTokenList) DeepCopy() *DirectClusterEndpointTokenList { + if in == nil { + return nil + } + out := new(DirectClusterEndpointTokenList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DirectClusterEndpointTokenList) 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 *DirectClusterEndpointTokenSpec) DeepCopyInto(out *DirectClusterEndpointTokenSpec) { + *out = *in + if in.Scope != nil { + in, out := &in.Scope, &out.Scope + *out = new(storagev1.AccessKeyScope) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenSpec. +func (in *DirectClusterEndpointTokenSpec) DeepCopy() *DirectClusterEndpointTokenSpec { + if in == nil { + return nil + } + out := new(DirectClusterEndpointTokenSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DirectClusterEndpointTokenStatus) DeepCopyInto(out *DirectClusterEndpointTokenStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenStatus. +func (in *DirectClusterEndpointTokenStatus) DeepCopy() *DirectClusterEndpointTokenStatus { + if in == nil { + return nil + } + out := new(DirectClusterEndpointTokenStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Event) DeepCopyInto(out *Event) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event. +func (in *Event) DeepCopy() *Event { + if in == nil { + return nil + } + out := new(Event) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Event) 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 *EventList) DeepCopyInto(out *EventList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Event, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventList. +func (in *EventList) DeepCopy() *EventList { + if in == nil { + return nil + } + out := new(EventList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EventList) 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 *EventSpec) DeepCopyInto(out *EventSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSpec. +func (in *EventSpec) DeepCopy() *EventSpec { + if in == nil { + return nil + } + out := new(EventSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EventStatus) DeepCopyInto(out *EventStatus) { + *out = *in + in.Event.DeepCopyInto(&out.Event) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventStatus. +func (in *EventStatus) DeepCopy() *EventStatus { + if in == nil { + return nil + } + out := new(EventStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Feature) DeepCopyInto(out *Feature) { + *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 Feature. +func (in *Feature) DeepCopy() *Feature { + if in == nil { + return nil + } + out := new(Feature) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Feature) 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 *FeatureList) DeepCopyInto(out *FeatureList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Feature, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureList. +func (in *FeatureList) DeepCopy() *FeatureList { + if in == nil { + return nil + } + out := new(FeatureList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FeatureList) 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 *FeatureSpec) DeepCopyInto(out *FeatureSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureSpec. +func (in *FeatureSpec) DeepCopy() *FeatureSpec { + if in == nil { + return nil + } + out := new(FeatureSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FeatureStatus) DeepCopyInto(out *FeatureStatus) { + *out = *in + out.Feature = in.Feature + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureStatus. +func (in *FeatureStatus) DeepCopy() *FeatureStatus { + if in == nil { + return nil + } + out := new(FeatureStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GroupResources) DeepCopyInto(out *GroupResources) { + *out = *in + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ResourceNames != nil { + in, out := &in.ResourceNames, &out.ResourceNames + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources. +func (in *GroupResources) DeepCopy() *GroupResources { + if in == nil { + return nil + } + out := new(GroupResources) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ImageBuilder) DeepCopyInto(out *ImageBuilder) { + *out = *in + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = new(corev1.ResourceRequirements) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageBuilder. +func (in *ImageBuilder) DeepCopy() *ImageBuilder { + if in == nil { + return nil + } + out := new(ImageBuilder) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { + *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 IngressAuthToken. +func (in *IngressAuthToken) DeepCopy() *IngressAuthToken { + if in == nil { + return nil + } + out := new(IngressAuthToken) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *IngressAuthToken) 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 *IngressAuthTokenList) DeepCopyInto(out *IngressAuthTokenList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]IngressAuthToken, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenList. +func (in *IngressAuthTokenList) DeepCopy() *IngressAuthTokenList { + if in == nil { + return nil + } + out := new(IngressAuthTokenList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *IngressAuthTokenList) 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 *IngressAuthTokenSpec) DeepCopyInto(out *IngressAuthTokenSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenSpec. +func (in *IngressAuthTokenSpec) DeepCopy() *IngressAuthTokenSpec { + if in == nil { + return nil + } + out := new(IngressAuthTokenSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenStatus. +func (in *IngressAuthTokenStatus) DeepCopy() *IngressAuthTokenStatus { + if in == nil { + return nil + } + out := new(IngressAuthTokenStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Kiosk) DeepCopyInto(out *Kiosk) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kiosk. +func (in *Kiosk) DeepCopy() *Kiosk { + if in == nil { + return nil + } + out := new(Kiosk) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Kiosk) 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 *KioskList) DeepCopyInto(out *KioskList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Kiosk, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskList. +func (in *KioskList) DeepCopy() *KioskList { + if in == nil { + return nil + } + out := new(KioskList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *KioskList) 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 *KioskSpec) DeepCopyInto(out *KioskSpec) { + *out = *in + in.HelmRelease.DeepCopyInto(&out.HelmRelease) + in.SleepModeConfig.DeepCopyInto(&out.SleepModeConfig) + in.ChartInfo.DeepCopyInto(&out.ChartInfo) + in.StorageClusterQuota.DeepCopyInto(&out.StorageClusterQuota) + in.UISettings.DeepCopyInto(&out.UISettings) + in.License.DeepCopyInto(&out.License) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskSpec. +func (in *KioskSpec) DeepCopy() *KioskSpec { + if in == nil { + return nil + } + out := new(KioskSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KioskStatus) DeepCopyInto(out *KioskStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskStatus. +func (in *KioskStatus) DeepCopy() *KioskStatus { + if in == nil { + return nil + } + out := new(KioskStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *License) DeepCopyInto(out *License) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new License. +func (in *License) DeepCopy() *License { + if in == nil { + return nil + } + out := new(License) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *License) 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 *LicenseList) DeepCopyInto(out *LicenseList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]License, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseList. +func (in *LicenseList) DeepCopy() *LicenseList { + if in == nil { + return nil + } + out := new(LicenseList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *LicenseList) 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 *LicenseRequest) DeepCopyInto(out *LicenseRequest) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequest. +func (in *LicenseRequest) DeepCopy() *LicenseRequest { + if in == nil { + return nil + } + out := new(LicenseRequest) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *LicenseRequest) 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 *LicenseRequestList) DeepCopyInto(out *LicenseRequestList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]LicenseRequest, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestList. +func (in *LicenseRequestList) DeepCopy() *LicenseRequestList { + if in == nil { + return nil + } + out := new(LicenseRequestList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *LicenseRequestList) 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 *LicenseRequestSpec) DeepCopyInto(out *LicenseRequestSpec) { + *out = *in + in.Input.DeepCopyInto(&out.Input) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestSpec. +func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { + if in == nil { + return nil + } + out := new(LicenseRequestSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { + *out = *in + if in.Output != nil { + in, out := &in.Output, &out.Output + *out = new(licenseapi.GenericRequestOutput) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestStatus. +func (in *LicenseRequestStatus) DeepCopy() *LicenseRequestStatus { + if in == nil { + return nil + } + out := new(LicenseRequestStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseSpec. +func (in *LicenseSpec) DeepCopy() *LicenseSpec { + if in == nil { + return nil + } + out := new(LicenseSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseStatus) DeepCopyInto(out *LicenseStatus) { + *out = *in + if in.License != nil { + in, out := &in.License, &out.License + *out = new(licenseapi.License) + (*in).DeepCopyInto(*out) + } + if in.ResourceUsage != nil { + in, out := &in.ResourceUsage, &out.ResourceUsage + *out = make(map[string]licenseapi.ResourceCount, len(*in)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseStatus. +func (in *LicenseStatus) DeepCopy() *LicenseStatus { + if in == nil { + return nil + } + out := new(LicenseStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseToken) DeepCopyInto(out *LicenseToken) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseToken. +func (in *LicenseToken) DeepCopy() *LicenseToken { + if in == nil { + return nil + } + out := new(LicenseToken) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *LicenseToken) 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 *LicenseTokenList) DeepCopyInto(out *LicenseTokenList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]LicenseToken, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenList. +func (in *LicenseTokenList) DeepCopy() *LicenseTokenList { if in == nil { return nil } - out := new(IngressAuthTokenList) + out := new(LicenseTokenList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IngressAuthTokenList) DeepCopyObject() runtime.Object { +func (in *LicenseTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3164,59 +4252,64 @@ func (in *IngressAuthTokenList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressAuthTokenSpec) DeepCopyInto(out *IngressAuthTokenSpec) { +func (in *LicenseTokenSpec) DeepCopyInto(out *LicenseTokenSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenSpec. -func (in *IngressAuthTokenSpec) DeepCopy() *IngressAuthTokenSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenSpec. +func (in *LicenseTokenSpec) DeepCopy() *LicenseTokenSpec { if in == nil { return nil } - out := new(IngressAuthTokenSpec) + out := new(LicenseTokenSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { +func (in *LicenseTokenStatus) DeepCopyInto(out *LicenseTokenStatus) { *out = *in + if in.Token != nil { + in, out := &in.Token, &out.Token + *out = new(licenseapi.InstanceTokenAuth) + **out = **in + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenStatus. -func (in *IngressAuthTokenStatus) DeepCopy() *IngressAuthTokenStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenStatus. +func (in *LicenseTokenStatus) DeepCopy() *LicenseTokenStatus { if in == nil { return nil } - out := new(IngressAuthTokenStatus) + out := new(LicenseTokenStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Kiosk) DeepCopyInto(out *Kiosk) { +func (in *LoftUpgrade) DeepCopyInto(out *LoftUpgrade) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) + out.Spec = in.Spec out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kiosk. -func (in *Kiosk) DeepCopy() *Kiosk { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgrade. +func (in *LoftUpgrade) DeepCopy() *LoftUpgrade { if in == nil { return nil } - out := new(Kiosk) + out := new(LoftUpgrade) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Kiosk) DeepCopyObject() runtime.Object { +func (in *LoftUpgrade) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3224,13 +4317,13 @@ func (in *Kiosk) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KioskList) DeepCopyInto(out *KioskList) { +func (in *LoftUpgradeList) DeepCopyInto(out *LoftUpgradeList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Kiosk, len(*in)) + *out = make([]LoftUpgrade, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3238,18 +4331,18 @@ func (in *KioskList) DeepCopyInto(out *KioskList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskList. -func (in *KioskList) DeepCopy() *KioskList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeList. +func (in *LoftUpgradeList) DeepCopy() *LoftUpgradeList { if in == nil { return nil } - out := new(KioskList) + out := new(LoftUpgradeList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *KioskList) DeepCopyObject() runtime.Object { +func (in *LoftUpgradeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3257,106 +4350,73 @@ func (in *KioskList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KioskSpec) DeepCopyInto(out *KioskSpec) { +func (in *LoftUpgradeSpec) DeepCopyInto(out *LoftUpgradeSpec) { *out = *in - in.HelmRelease.DeepCopyInto(&out.HelmRelease) - in.SleepModeConfig.DeepCopyInto(&out.SleepModeConfig) - in.ChartInfo.DeepCopyInto(&out.ChartInfo) - in.StorageClusterQuota.DeepCopyInto(&out.StorageClusterQuota) - in.UISettings.DeepCopyInto(&out.UISettings) - in.License.DeepCopyInto(&out.License) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskSpec. -func (in *KioskSpec) DeepCopy() *KioskSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeSpec. +func (in *LoftUpgradeSpec) DeepCopy() *LoftUpgradeSpec { if in == nil { return nil } - out := new(KioskSpec) + out := new(LoftUpgradeSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KioskStatus) DeepCopyInto(out *KioskStatus) { +func (in *LoftUpgradeStatus) DeepCopyInto(out *LoftUpgradeStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskStatus. -func (in *KioskStatus) DeepCopy() *KioskStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeStatus. +func (in *LoftUpgradeStatus) DeepCopy() *LoftUpgradeStatus { if in == nil { return nil } - out := new(KioskStatus) + out := new(LoftUpgradeStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *License) DeepCopyInto(out *License) { +func (in *MaintenanceWindow) DeepCopyInto(out *MaintenanceWindow) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new License. -func (in *License) DeepCopy() *License { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceWindow. +func (in *MaintenanceWindow) DeepCopy() *MaintenanceWindow { if in == nil { return nil } - out := new(License) + out := new(MaintenanceWindow) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *License) 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 *LicenseList) DeepCopyInto(out *LicenseList) { +func (in *ManagementRole) DeepCopyInto(out *ManagementRole) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]License, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + out.ObjectName = in.ObjectName + out.AssignedVia = in.AssignedVia return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseList. -func (in *LicenseList) DeepCopy() *LicenseList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagementRole. +func (in *ManagementRole) DeepCopy() *ManagementRole { if in == nil { return nil } - out := new(LicenseList) + out := new(ManagementRole) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseList) 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 *LicenseRequest) DeepCopyInto(out *LicenseRequest) { +func (in *NodeClaim) DeepCopyInto(out *NodeClaim) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3365,18 +4425,18 @@ func (in *LicenseRequest) DeepCopyInto(out *LicenseRequest) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequest. -func (in *LicenseRequest) DeepCopy() *LicenseRequest { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaim. +func (in *NodeClaim) DeepCopy() *NodeClaim { if in == nil { return nil } - out := new(LicenseRequest) + out := new(NodeClaim) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseRequest) DeepCopyObject() runtime.Object { +func (in *NodeClaim) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3384,13 +4444,13 @@ func (in *LicenseRequest) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseRequestList) DeepCopyInto(out *LicenseRequestList) { +func (in *NodeClaimList) DeepCopyInto(out *NodeClaimList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]LicenseRequest, len(*in)) + *out = make([]NodeClaim, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3398,18 +4458,18 @@ func (in *LicenseRequestList) DeepCopyInto(out *LicenseRequestList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestList. -func (in *LicenseRequestList) DeepCopy() *LicenseRequestList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimList. +func (in *NodeClaimList) DeepCopy() *NodeClaimList { if in == nil { return nil } - out := new(LicenseRequestList) + out := new(NodeClaimList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseRequestList) DeepCopyObject() runtime.Object { +func (in *NodeClaimList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3417,109 +4477,61 @@ func (in *LicenseRequestList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseRequestSpec) DeepCopyInto(out *LicenseRequestSpec) { - *out = *in - in.Input.DeepCopyInto(&out.Input) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestSpec. -func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { - if in == nil { - return nil - } - out := new(LicenseRequestSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { - *out = *in - if in.Output != nil { - in, out := &in.Output, &out.Output - *out = new(licenseapi.GenericRequestOutput) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestStatus. -func (in *LicenseRequestStatus) DeepCopy() *LicenseRequestStatus { - if in == nil { - return nil - } - out := new(LicenseRequestStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec) { +func (in *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { *out = *in + in.NodeClaimSpec.DeepCopyInto(&out.NodeClaimSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseSpec. -func (in *LicenseSpec) DeepCopy() *LicenseSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimSpec. +func (in *NodeClaimSpec) DeepCopy() *NodeClaimSpec { if in == nil { return nil } - out := new(LicenseSpec) + out := new(NodeClaimSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseStatus) DeepCopyInto(out *LicenseStatus) { +func (in *NodeClaimStatus) DeepCopyInto(out *NodeClaimStatus) { *out = *in - if in.License != nil { - in, out := &in.License, &out.License - *out = new(licenseapi.License) - (*in).DeepCopyInto(*out) - } - if in.ResourceUsage != nil { - in, out := &in.ResourceUsage, &out.ResourceUsage - *out = make(map[string]licenseapi.ResourceCount, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() - } - } + in.NodeClaimStatus.DeepCopyInto(&out.NodeClaimStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseStatus. -func (in *LicenseStatus) DeepCopy() *LicenseStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimStatus. +func (in *NodeClaimStatus) DeepCopy() *NodeClaimStatus { if in == nil { return nil } - out := new(LicenseStatus) + out := new(NodeClaimStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseToken) DeepCopyInto(out *LicenseToken) { +func (in *NodeProvider) DeepCopyInto(out *NodeProvider) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec + in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseToken. -func (in *LicenseToken) DeepCopy() *LicenseToken { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProvider. +func (in *NodeProvider) DeepCopy() *NodeProvider { if in == nil { return nil } - out := new(LicenseToken) + out := new(NodeProvider) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseToken) DeepCopyObject() runtime.Object { +func (in *NodeProvider) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3527,13 +4539,13 @@ func (in *LicenseToken) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenList) DeepCopyInto(out *LicenseTokenList) { +func (in *NodeProviderList) DeepCopyInto(out *NodeProviderList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]LicenseToken, len(*in)) + *out = make([]NodeProvider, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3541,18 +4553,18 @@ func (in *LicenseTokenList) DeepCopyInto(out *LicenseTokenList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenList. -func (in *LicenseTokenList) DeepCopy() *LicenseTokenList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderList. +func (in *NodeProviderList) DeepCopy() *NodeProviderList { if in == nil { return nil } - out := new(LicenseTokenList) + out := new(NodeProviderList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseTokenList) DeepCopyObject() runtime.Object { +func (in *NodeProviderList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3560,64 +4572,61 @@ func (in *LicenseTokenList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenSpec) DeepCopyInto(out *LicenseTokenSpec) { +func (in *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { *out = *in + in.NodeProviderSpec.DeepCopyInto(&out.NodeProviderSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenSpec. -func (in *LicenseTokenSpec) DeepCopy() *LicenseTokenSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderSpec. +func (in *NodeProviderSpec) DeepCopy() *NodeProviderSpec { if in == nil { return nil } - out := new(LicenseTokenSpec) + out := new(NodeProviderSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenStatus) DeepCopyInto(out *LicenseTokenStatus) { +func (in *NodeProviderStatus) DeepCopyInto(out *NodeProviderStatus) { *out = *in - if in.Token != nil { - in, out := &in.Token, &out.Token - *out = new(licenseapi.InstanceTokenAuth) - **out = **in - } + in.NodeProviderStatus.DeepCopyInto(&out.NodeProviderStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenStatus. -func (in *LicenseTokenStatus) DeepCopy() *LicenseTokenStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderStatus. +func (in *NodeProviderStatus) DeepCopy() *NodeProviderStatus { if in == nil { return nil } - out := new(LicenseTokenStatus) + out := new(NodeProviderStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgrade) DeepCopyInto(out *LoftUpgrade) { +func (in *NodeType) DeepCopyInto(out *NodeType) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgrade. -func (in *LoftUpgrade) DeepCopy() *LoftUpgrade { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeType. +func (in *NodeType) DeepCopy() *NodeType { if in == nil { return nil } - out := new(LoftUpgrade) + out := new(NodeType) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LoftUpgrade) DeepCopyObject() runtime.Object { +func (in *NodeType) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3625,13 +4634,13 @@ func (in *LoftUpgrade) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgradeList) DeepCopyInto(out *LoftUpgradeList) { +func (in *NodeTypeList) DeepCopyInto(out *NodeTypeList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]LoftUpgrade, len(*in)) + *out = make([]NodeType, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3639,18 +4648,18 @@ func (in *LoftUpgradeList) DeepCopyInto(out *LoftUpgradeList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeList. -func (in *LoftUpgradeList) DeepCopy() *LoftUpgradeList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeList. +func (in *NodeTypeList) DeepCopy() *NodeTypeList { if in == nil { return nil } - out := new(LoftUpgradeList) + out := new(NodeTypeList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LoftUpgradeList) DeepCopyObject() runtime.Object { +func (in *NodeTypeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3658,33 +4667,35 @@ func (in *LoftUpgradeList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgradeSpec) DeepCopyInto(out *LoftUpgradeSpec) { +func (in *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { *out = *in + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeSpec. -func (in *LoftUpgradeSpec) DeepCopy() *LoftUpgradeSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeSpec. +func (in *NodeTypeSpec) DeepCopy() *NodeTypeSpec { if in == nil { return nil } - out := new(LoftUpgradeSpec) + out := new(NodeTypeSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgradeStatus) DeepCopyInto(out *LoftUpgradeStatus) { +func (in *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { *out = *in + in.NodeTypeStatus.DeepCopyInto(&out.NodeTypeStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeStatus. -func (in *LoftUpgradeStatus) DeepCopy() *LoftUpgradeStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeStatus. +func (in *NodeTypeStatus) DeepCopy() *NodeTypeStatus { if in == nil { return nil } - out := new(LoftUpgradeStatus) + out := new(NodeTypeStatus) in.DeepCopyInto(out) return out } @@ -3789,23 +4800,61 @@ func (in *OIDCClientSpec) DeepCopy() *OIDCClientSpec { if in == nil { return nil } - out := new(OIDCClientSpec) + out := new(OIDCClientSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *OIDCClientStatus) DeepCopyInto(out *OIDCClientStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClientStatus. +func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus { + if in == nil { + return nil + } + out := new(OIDCClientStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ObjectName) DeepCopyInto(out *ObjectName) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectName. +func (in *ObjectName) DeepCopy() *ObjectName { + if in == nil { + return nil + } + out := new(ObjectName) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OIDCClientStatus) DeepCopyInto(out *OIDCClientStatus) { +func (in *ObjectPermission) DeepCopyInto(out *ObjectPermission) { *out = *in + out.ObjectName = in.ObjectName + if in.Verbs != nil { + in, out := &in.Verbs, &out.Verbs + *out = make([]string, len(*in)) + copy(*out, *in) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClientStatus. -func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectPermission. +func (in *ObjectPermission) DeepCopy() *ObjectPermission { if in == nil { return nil } - out := new(OIDCClientStatus) + out := new(ObjectPermission) in.DeepCopyInto(out) return out } @@ -4127,13 +5176,6 @@ func (in *ProjectClusters) DeepCopyInto(out *ProjectClusters) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Runners != nil { - in, out := &in.Runners, &out.Runners - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } @@ -4383,6 +5425,25 @@ func (in *ProjectMembersList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectMembership) DeepCopyInto(out *ProjectMembership) { + *out = *in + out.ObjectName = in.ObjectName + out.Role = in.Role + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMembership. +func (in *ProjectMembership) DeepCopy() *ProjectMembership { + if in == nil { + return nil + } + out := new(ProjectMembership) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProjectMigrateSpaceInstance) DeepCopyInto(out *ProjectMigrateSpaceInstance) { *out = *in @@ -4536,71 +5597,22 @@ func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrate } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectRunners) DeepCopyInto(out *ProjectRunners) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Runners != nil { - in, out := &in.Runners, &out.Runners - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRunners. -func (in *ProjectRunners) DeepCopy() *ProjectRunners { - if in == nil { - return nil - } - out := new(ProjectRunners) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectRunners) 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 *ProjectRunnersList) DeepCopyInto(out *ProjectRunnersList) { +func (in *ProjectRole) DeepCopyInto(out *ProjectRole) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ProjectRunners, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + out.ObjectName = in.ObjectName return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRunnersList. -func (in *ProjectRunnersList) DeepCopy() *ProjectRunnersList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRole. +func (in *ProjectRole) DeepCopy() *ProjectRole { if in == nil { return nil } - out := new(ProjectRunnersList) + out := new(ProjectRole) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectRunnersList) 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 *ProjectSecret) DeepCopyInto(out *ProjectSecret) { *out = *in @@ -4795,6 +5807,13 @@ func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.DevPodWorkspacePresets != nil { + in, out := &in.DevPodWorkspacePresets, &out.DevPodWorkspacePresets + *out = make([]DevPodWorkspacePreset, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } @@ -4843,220 +5862,34 @@ func (in *ProjectTemplatesList) DeepCopy() *ProjectTemplatesList { // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *ProjectTemplatesList) 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 *RedirectToken) DeepCopyInto(out *RedirectToken) { - *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 RedirectToken. -func (in *RedirectToken) DeepCopy() *RedirectToken { - if in == nil { - return nil - } - out := new(RedirectToken) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RedirectToken) 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 *RedirectTokenList) DeepCopyInto(out *RedirectTokenList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RedirectToken, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenList. -func (in *RedirectTokenList) DeepCopy() *RedirectTokenList { - if in == nil { - return nil - } - out := new(RedirectTokenList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RedirectTokenList) 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 *RedirectTokenSpec) DeepCopyInto(out *RedirectTokenSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenSpec. -func (in *RedirectTokenSpec) DeepCopy() *RedirectTokenSpec { - if in == nil { - return nil - } - out := new(RedirectTokenSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RedirectTokenStatus) DeepCopyInto(out *RedirectTokenStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenStatus. -func (in *RedirectTokenStatus) DeepCopy() *RedirectTokenStatus { - if in == nil { - return nil - } - out := new(RedirectTokenStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RegisterVirtualCluster) DeepCopyInto(out *RegisterVirtualCluster) { - *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 RegisterVirtualCluster. -func (in *RegisterVirtualCluster) DeepCopy() *RegisterVirtualCluster { - if in == nil { - return nil - } - out := new(RegisterVirtualCluster) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RegisterVirtualCluster) 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 *RegisterVirtualClusterList) DeepCopyInto(out *RegisterVirtualClusterList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RegisterVirtualCluster, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterList. -func (in *RegisterVirtualClusterList) DeepCopy() *RegisterVirtualClusterList { - if in == nil { - return nil - } - out := new(RegisterVirtualClusterList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RegisterVirtualClusterList) 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 *RegisterVirtualClusterSpec) DeepCopyInto(out *RegisterVirtualClusterSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterSpec. -func (in *RegisterVirtualClusterSpec) DeepCopy() *RegisterVirtualClusterSpec { - if in == nil { - return nil - } - out := new(RegisterVirtualClusterSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RegisterVirtualClusterStatus) DeepCopyInto(out *RegisterVirtualClusterStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterStatus. -func (in *RegisterVirtualClusterStatus) DeepCopy() *RegisterVirtualClusterStatus { - if in == nil { - return nil + if c := in.DeepCopy(); c != nil { + return c } - out := new(RegisterVirtualClusterStatus) - in.DeepCopyInto(out) - return out + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResetAccessKey) DeepCopyInto(out *ResetAccessKey) { +func (in *RedirectToken) DeepCopyInto(out *RedirectToken) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Spec = in.Spec + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKey. -func (in *ResetAccessKey) DeepCopy() *ResetAccessKey { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectToken. +func (in *RedirectToken) DeepCopy() *RedirectToken { if in == nil { return nil } - out := new(ResetAccessKey) + out := new(RedirectToken) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResetAccessKey) DeepCopyObject() runtime.Object { +func (in *RedirectToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5064,13 +5897,13 @@ func (in *ResetAccessKey) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResetAccessKeyList) DeepCopyInto(out *ResetAccessKeyList) { +func (in *RedirectTokenList) DeepCopyInto(out *RedirectTokenList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ResetAccessKey, len(*in)) + *out = make([]RedirectToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5078,18 +5911,18 @@ func (in *ResetAccessKeyList) DeepCopyInto(out *ResetAccessKeyList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeyList. -func (in *ResetAccessKeyList) DeepCopy() *ResetAccessKeyList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenList. +func (in *RedirectTokenList) DeepCopy() *RedirectTokenList { if in == nil { return nil } - out := new(ResetAccessKeyList) + out := new(RedirectTokenList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResetAccessKeyList) DeepCopyObject() runtime.Object { +func (in *RedirectTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5097,61 +5930,59 @@ func (in *ResetAccessKeyList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResetAccessKeySpec) DeepCopyInto(out *ResetAccessKeySpec) { +func (in *RedirectTokenSpec) DeepCopyInto(out *RedirectTokenSpec) { *out = *in - in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeySpec. -func (in *ResetAccessKeySpec) DeepCopy() *ResetAccessKeySpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenSpec. +func (in *RedirectTokenSpec) DeepCopy() *RedirectTokenSpec { if in == nil { return nil } - out := new(ResetAccessKeySpec) + out := new(RedirectTokenSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResetAccessKeyStatus) DeepCopyInto(out *ResetAccessKeyStatus) { +func (in *RedirectTokenStatus) DeepCopyInto(out *RedirectTokenStatus) { *out = *in - in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeyStatus. -func (in *ResetAccessKeyStatus) DeepCopy() *ResetAccessKeyStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenStatus. +func (in *RedirectTokenStatus) DeepCopy() *RedirectTokenStatus { if in == nil { return nil } - out := new(ResetAccessKeyStatus) + out := new(RedirectTokenStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Runner) DeepCopyInto(out *Runner) { +func (in *RegisterVirtualCluster) DeepCopyInto(out *RegisterVirtualCluster) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Spec = in.Spec + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Runner. -func (in *Runner) DeepCopy() *Runner { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualCluster. +func (in *RegisterVirtualCluster) DeepCopy() *RegisterVirtualCluster { if in == nil { return nil } - out := new(Runner) + out := new(RegisterVirtualCluster) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Runner) DeepCopyObject() runtime.Object { +func (in *RegisterVirtualCluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5159,25 +5990,32 @@ func (in *Runner) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerAccessKey) DeepCopyInto(out *RunnerAccessKey) { +func (in *RegisterVirtualClusterList) DeepCopyInto(out *RegisterVirtualClusterList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RegisterVirtualCluster, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerAccessKey. -func (in *RunnerAccessKey) DeepCopy() *RunnerAccessKey { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterList. +func (in *RegisterVirtualClusterList) DeepCopy() *RegisterVirtualClusterList { if in == nil { return nil } - out := new(RunnerAccessKey) + out := new(RegisterVirtualClusterList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerAccessKey) DeepCopyObject() runtime.Object { +func (in *RegisterVirtualClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5185,96 +6023,59 @@ func (in *RunnerAccessKey) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerAccessKeyList) DeepCopyInto(out *RunnerAccessKeyList) { +func (in *RegisterVirtualClusterSpec) DeepCopyInto(out *RegisterVirtualClusterSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RunnerAccessKey, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerAccessKeyList. -func (in *RunnerAccessKeyList) DeepCopy() *RunnerAccessKeyList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterSpec. +func (in *RegisterVirtualClusterSpec) DeepCopy() *RegisterVirtualClusterSpec { if in == nil { return nil } - out := new(RunnerAccessKeyList) + out := new(RegisterVirtualClusterSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerAccessKeyList) 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 *RunnerConfig) DeepCopyInto(out *RunnerConfig) { +func (in *RegisterVirtualClusterStatus) DeepCopyInto(out *RegisterVirtualClusterStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.TokenCaCert != nil { - in, out := &in.TokenCaCert, &out.TokenCaCert - *out = make([]byte, len(*in)) - copy(*out, *in) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerConfig. -func (in *RunnerConfig) DeepCopy() *RunnerConfig { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterStatus. +func (in *RegisterVirtualClusterStatus) DeepCopy() *RegisterVirtualClusterStatus { if in == nil { return nil } - out := new(RunnerConfig) + out := new(RegisterVirtualClusterStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerConfig) 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 *RunnerConfigList) DeepCopyInto(out *RunnerConfigList) { +func (in *ResetAccessKey) DeepCopyInto(out *ResetAccessKey) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RunnerConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerConfigList. -func (in *RunnerConfigList) DeepCopy() *RunnerConfigList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKey. +func (in *ResetAccessKey) DeepCopy() *ResetAccessKey { if in == nil { return nil } - out := new(RunnerConfigList) + out := new(ResetAccessKey) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerConfigList) DeepCopyObject() runtime.Object { +func (in *ResetAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5282,13 +6083,13 @@ func (in *RunnerConfigList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerList) DeepCopyInto(out *RunnerList) { +func (in *ResetAccessKeyList) DeepCopyInto(out *ResetAccessKeyList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Runner, len(*in)) + *out = make([]ResetAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5296,18 +6097,18 @@ func (in *RunnerList) DeepCopyInto(out *RunnerList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerList. -func (in *RunnerList) DeepCopy() *RunnerList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeyList. +func (in *ResetAccessKeyList) DeepCopy() *ResetAccessKeyList { if in == nil { return nil } - out := new(RunnerList) + out := new(ResetAccessKeyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerList) DeepCopyObject() runtime.Object { +func (in *ResetAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5315,35 +6116,35 @@ func (in *RunnerList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerSpec) DeepCopyInto(out *RunnerSpec) { +func (in *ResetAccessKeySpec) DeepCopyInto(out *ResetAccessKeySpec) { *out = *in - in.RunnerSpec.DeepCopyInto(&out.RunnerSpec) + in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerSpec. -func (in *RunnerSpec) DeepCopy() *RunnerSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeySpec. +func (in *ResetAccessKeySpec) DeepCopy() *ResetAccessKeySpec { if in == nil { return nil } - out := new(RunnerSpec) + out := new(ResetAccessKeySpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerStatus) DeepCopyInto(out *RunnerStatus) { +func (in *ResetAccessKeyStatus) DeepCopyInto(out *ResetAccessKeyStatus) { *out = *in - in.RunnerStatus.DeepCopyInto(&out.RunnerStatus) + in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerStatus. -func (in *RunnerStatus) DeepCopy() *RunnerStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeyStatus. +func (in *ResetAccessKeyStatus) DeepCopy() *ResetAccessKeyStatus { if in == nil { return nil } - out := new(RunnerStatus) + out := new(ResetAccessKeyStatus) in.DeepCopyInto(out) return out } @@ -6307,18 +7108,170 @@ func (in *TeamClustersList) DeepCopyInto(out *TeamClustersList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamClustersList. -func (in *TeamClustersList) DeepCopy() *TeamClustersList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamClustersList. +func (in *TeamClustersList) DeepCopy() *TeamClustersList { + if in == nil { + return nil + } + out := new(TeamClustersList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamClustersList) 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 *TeamList) DeepCopyInto(out *TeamList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Team, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamList. +func (in *TeamList) DeepCopy() *TeamList { + if in == nil { + return nil + } + out := new(TeamList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamList) 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 *TeamObjectPermissions) DeepCopyInto(out *TeamObjectPermissions) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.ObjectPermissions != nil { + in, out := &in.ObjectPermissions, &out.ObjectPermissions + *out = make([]ObjectPermission, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamObjectPermissions. +func (in *TeamObjectPermissions) DeepCopy() *TeamObjectPermissions { + if in == nil { + return nil + } + out := new(TeamObjectPermissions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamObjectPermissions) 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 *TeamObjectPermissionsList) DeepCopyInto(out *TeamObjectPermissionsList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TeamObjectPermissions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamObjectPermissionsList. +func (in *TeamObjectPermissionsList) DeepCopy() *TeamObjectPermissionsList { + if in == nil { + return nil + } + out := new(TeamObjectPermissionsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamObjectPermissionsList) 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 *TeamPermissions) DeepCopyInto(out *TeamPermissions) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Members != nil { + in, out := &in.Members, &out.Members + *out = make([]ObjectName, len(*in)) + copy(*out, *in) + } + if in.ProjectMemberships != nil { + in, out := &in.ProjectMemberships, &out.ProjectMemberships + *out = make([]ProjectMembership, len(*in)) + copy(*out, *in) + } + if in.ManagementRoles != nil { + in, out := &in.ManagementRoles, &out.ManagementRoles + *out = make([]ManagementRole, len(*in)) + copy(*out, *in) + } + if in.ClusterAccessRoles != nil { + in, out := &in.ClusterAccessRoles, &out.ClusterAccessRoles + *out = make([]ClusterAccessRole, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.VirtualClusterRoles != nil { + in, out := &in.VirtualClusterRoles, &out.VirtualClusterRoles + *out = make([]VirtualClusterRole, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamPermissions. +func (in *TeamPermissions) DeepCopy() *TeamPermissions { if in == nil { return nil } - out := new(TeamClustersList) + out := new(TeamPermissions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamClustersList) DeepCopyObject() runtime.Object { +func (in *TeamPermissions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6326,13 +7279,13 @@ func (in *TeamClustersList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamList) DeepCopyInto(out *TeamList) { +func (in *TeamPermissionsList) DeepCopyInto(out *TeamPermissionsList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Team, len(*in)) + *out = make([]TeamPermissions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6340,18 +7293,18 @@ func (in *TeamList) DeepCopyInto(out *TeamList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamList. -func (in *TeamList) DeepCopy() *TeamList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamPermissionsList. +func (in *TeamPermissionsList) DeepCopy() *TeamPermissionsList { if in == nil { return nil } - out := new(TeamList) + out := new(TeamPermissionsList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamList) DeepCopyObject() runtime.Object { +func (in *TeamPermissionsList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6706,6 +7659,72 @@ func (in *UserList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserObjectPermissions) DeepCopyInto(out *UserObjectPermissions) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.ObjectPermissions != nil { + in, out := &in.ObjectPermissions, &out.ObjectPermissions + *out = make([]ObjectPermission, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserObjectPermissions. +func (in *UserObjectPermissions) DeepCopy() *UserObjectPermissions { + if in == nil { + return nil + } + out := new(UserObjectPermissions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserObjectPermissions) 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 *UserObjectPermissionsList) DeepCopyInto(out *UserObjectPermissionsList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UserObjectPermissions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserObjectPermissionsList. +func (in *UserObjectPermissionsList) DeepCopy() *UserObjectPermissionsList { + if in == nil { + return nil + } + out := new(UserObjectPermissionsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserObjectPermissionsList) 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 *UserPermissions) DeepCopyInto(out *UserPermissions) { *out = *in @@ -6725,6 +7744,33 @@ func (in *UserPermissions) DeepCopyInto(out *UserPermissions) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.TeamMemberships != nil { + in, out := &in.TeamMemberships, &out.TeamMemberships + *out = make([]ObjectName, len(*in)) + copy(*out, *in) + } + if in.ProjectMemberships != nil { + in, out := &in.ProjectMemberships, &out.ProjectMemberships + *out = make([]ProjectMembership, len(*in)) + copy(*out, *in) + } + if in.ManagementRoles != nil { + in, out := &in.ManagementRoles, &out.ManagementRoles + *out = make([]ManagementRole, len(*in)) + copy(*out, *in) + } + if in.ClusterAccessRoles != nil { + in, out := &in.ClusterAccessRoles, &out.ClusterAccessRoles + *out = make([]ClusterAccessRole, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.VirtualClusterRoles != nil { + in, out := &in.VirtualClusterRoles, &out.VirtualClusterRoles + *out = make([]VirtualClusterRole, len(*in)) + copy(*out, *in) + } return } @@ -6812,6 +7858,25 @@ func (in *UserProfile) DeepCopyInto(out *UserProfile) { *out = new(string) **out = **in } + if in.Secrets != nil { + in, out := &in.Secrets, &out.Secrets + *out = new(map[string]*UserProfileSecret) + if **in != nil { + in, out := *in, *out + *out = make(map[string]*UserProfileSecret, len(*in)) + for key, val := range *in { + var outVal *UserProfileSecret + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(UserProfileSecret) + **out = **in + } + (*out)[key] = outVal + } + } + } return } @@ -6866,6 +7931,22 @@ func (in *UserProfileList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserProfileSecret) DeepCopyInto(out *UserProfileSecret) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProfileSecret. +func (in *UserProfileSecret) DeepCopy() *UserProfileSecret { + if in == nil { + return nil + } + out := new(UserProfileSecret) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserQuotasOptions) DeepCopyInto(out *UserQuotasOptions) { *out = *in @@ -7049,6 +8130,99 @@ func (in *VirtualClusterAccessKeyList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabase) DeepCopyInto(out *VirtualClusterExternalDatabase) { + *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 VirtualClusterExternalDatabase. +func (in *VirtualClusterExternalDatabase) DeepCopy() *VirtualClusterExternalDatabase { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabase) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterExternalDatabase) 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 *VirtualClusterExternalDatabaseList) DeepCopyInto(out *VirtualClusterExternalDatabaseList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterExternalDatabase, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseList. +func (in *VirtualClusterExternalDatabaseList) DeepCopy() *VirtualClusterExternalDatabaseList { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterExternalDatabaseList) 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 *VirtualClusterExternalDatabaseSpec) DeepCopyInto(out *VirtualClusterExternalDatabaseSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseSpec. +func (in *VirtualClusterExternalDatabaseSpec) DeepCopy() *VirtualClusterExternalDatabaseSpec { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopyInto(out *VirtualClusterExternalDatabaseStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseStatus. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopy() *VirtualClusterExternalDatabaseStatus { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { *out = *in @@ -7350,6 +8524,117 @@ func (in *VirtualClusterInstanceStatus) DeepCopy() *VirtualClusterInstanceStatus return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterRole) DeepCopyInto(out *VirtualClusterRole) { + *out = *in + out.ObjectName = in.ObjectName + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterRole. +func (in *VirtualClusterRole) DeepCopy() *VirtualClusterRole { + if in == nil { + return nil + } + out := new(VirtualClusterRole) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterSchema) DeepCopyInto(out *VirtualClusterSchema) { + *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 VirtualClusterSchema. +func (in *VirtualClusterSchema) DeepCopy() *VirtualClusterSchema { + if in == nil { + return nil + } + out := new(VirtualClusterSchema) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterSchema) 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 *VirtualClusterSchemaList) DeepCopyInto(out *VirtualClusterSchemaList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterSchema, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaList. +func (in *VirtualClusterSchemaList) DeepCopy() *VirtualClusterSchemaList { + if in == nil { + return nil + } + out := new(VirtualClusterSchemaList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterSchemaList) 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 *VirtualClusterSchemaSpec) DeepCopyInto(out *VirtualClusterSchemaSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaSpec. +func (in *VirtualClusterSchemaSpec) DeepCopy() *VirtualClusterSchemaSpec { + if in == nil { + return nil + } + out := new(VirtualClusterSchemaSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterSchemaStatus) DeepCopyInto(out *VirtualClusterSchemaStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaStatus. +func (in *VirtualClusterSchemaStatus) DeepCopy() *VirtualClusterSchemaStatus { + if in == nil { + return nil + } + out := new(VirtualClusterSchemaStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualClusterTemplate) DeepCopyInto(out *VirtualClusterTemplate) { *out = *in diff --git a/pkg/apis/management/zz_generated.defaults.go b/pkg/apis/management/zz_generated.defaults.go index 619605f4..632f5e31 100644 --- a/pkg/apis/management/zz_generated.defaults.go +++ b/pkg/apis/management/zz_generated.defaults.go @@ -14,48 +14,669 @@ 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(&ProjectClusters{}, func(obj interface{}) { SetObjectDefaults_ProjectClusters(obj.(*ProjectClusters)) }) - scheme.AddTypeDefaultingFunc(&ProjectClustersList{}, func(obj interface{}) { SetObjectDefaults_ProjectClustersList(obj.(*ProjectClustersList)) }) - scheme.AddTypeDefaultingFunc(&ProjectRunners{}, func(obj interface{}) { SetObjectDefaults_ProjectRunners(obj.(*ProjectRunners)) }) - scheme.AddTypeDefaultingFunc(&ProjectRunnersList{}, func(obj interface{}) { SetObjectDefaults_ProjectRunnersList(obj.(*ProjectRunnersList)) }) - scheme.AddTypeDefaultingFunc(&Runner{}, func(obj interface{}) { SetObjectDefaults_Runner(obj.(*Runner)) }) - scheme.AddTypeDefaultingFunc(&RunnerList{}, func(obj interface{}) { SetObjectDefaults_RunnerList(obj.(*RunnerList)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstance(obj.(*DevPodWorkspaceInstance)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceList{}, func(obj interface{}) { + SetObjectDefaults_DevPodWorkspaceInstanceList(obj.(*DevPodWorkspaceInstanceList)) + }) + 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(&ProjectTemplates{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplates(obj.(*ProjectTemplates)) }) + scheme.AddTypeDefaultingFunc(&ProjectTemplatesList{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplatesList(obj.(*ProjectTemplatesList)) }) return nil } -func SetObjectDefaults_ProjectClusters(in *ProjectClusters) { - for i := range in.Runners { - a := &in.Runners[i] - SetObjectDefaults_Runner(a) +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] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } + 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 a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers { + a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers { + a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } } } -func SetObjectDefaults_ProjectClustersList(in *ProjectClustersList) { +func SetObjectDefaults_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_ProjectClusters(a) + SetObjectDefaults_DevPodWorkspaceInstance(a) } } -func SetObjectDefaults_ProjectRunners(in *ProjectRunners) { - for i := range in.Runners { - a := &in.Runners[i] - SetObjectDefaults_Runner(a) +func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot) { + if in.Workspace != nil { + SetObjectDefaults_DevPodWorkspaceInstance(in.Workspace) + } + if in.Template != nil { + if in.Template.Spec.Template.Kubernetes != nil { + if in.Template.Spec.Template.Kubernetes.Pod != nil { + for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.Volumes[i] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + for i := range in.Template.Spec.Versions { + a := &in.Template.Spec.Versions[i] + if a.Template.Kubernetes != nil { + if a.Template.Kubernetes.Pod != nil { + for j := range a.Template.Kubernetes.Pod.Spec.Volumes { + b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { + b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.Containers { + b := &a.Template.Kubernetes.Pod.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } + } + for i := range in.Pods { + a := &in.Pods[i] + for j := range a.Spec.Volumes { + b := &a.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Spec.InitContainers { + b := &a.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Spec.Containers { + b := &a.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Spec.EphemeralContainers { + b := &a.Spec.EphemeralContainers[j] + for k := range b.EphemeralContainerCommon.Ports { + c := &b.EphemeralContainerCommon.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.EphemeralContainerCommon.LivenessProbe != nil { + if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil { + if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.EphemeralContainerCommon.ReadinessProbe != nil { + if b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.EphemeralContainerCommon.StartupProbe != nil { + if b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil { + if b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } } } -func SetObjectDefaults_ProjectRunnersList(in *ProjectRunnersList) { +func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_ProjectRunners(a) + SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(a) } } -func SetObjectDefaults_Runner(in *Runner) { - if in.Spec.RunnerSpec.ClusterRef != nil { - if in.Spec.RunnerSpec.ClusterRef.PodTemplate != nil { - for i := range in.Spec.RunnerSpec.ClusterRef.PodTemplate.Spec.Volumes { - a := &in.Spec.RunnerSpec.ClusterRef.PodTemplate.Spec.Volumes[i] +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] if a.VolumeSource.ISCSI != nil { if a.VolumeSource.ISCSI.ISCSIInterface == "" { a.VolumeSource.ISCSI.ISCSIInterface = "default" @@ -99,8 +720,41 @@ func SetObjectDefaults_Runner(in *Runner) { } } } - for i := range in.Spec.RunnerSpec.ClusterRef.PodTemplate.Spec.InitContainers { - a := &in.Spec.RunnerSpec.ClusterRef.PodTemplate.Spec.InitContainers[i] + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { @@ -134,11 +788,143 @@ func SetObjectDefaults_Runner(in *Runner) { } } } + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Versions { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Versions[i] + if a.Template.Kubernetes != nil { + if a.Template.Kubernetes.Pod != nil { + for j := range a.Template.Kubernetes.Pod.Spec.Volumes { + b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { + b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.Containers { + b := &a.Template.Kubernetes.Pod.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } +} + +func SetObjectDefaults_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_DevPodWorkspaceTemplate(a) + } +} + +func SetObjectDefaults_ProjectTemplates(in *ProjectTemplates) { + for i := range in.DevPodWorkspaceTemplates { + a := &in.DevPodWorkspaceTemplates[i] + SetObjectDefaults_DevPodWorkspaceTemplate(a) + } } -func SetObjectDefaults_RunnerList(in *RunnerList) { +func SetObjectDefaults_ProjectTemplatesList(in *ProjectTemplatesList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_Runner(a) + SetObjectDefaults_ProjectTemplates(a) } } diff --git a/pkg/apis/storage/v1/accesskey_types.go b/pkg/apis/storage/v1/accesskey_types.go index 9c8d9fac..cfa5f288 100644 --- a/pkg/apis/storage/v1/accesskey_types.go +++ b/pkg/apis/storage/v1/accesskey_types.go @@ -75,7 +75,7 @@ type AccessKeySpec struct { // If available, contains information about the sso login data for this // access key // +optional - Identity *AccessKeyIdentity `json:"identity,omitempty"` + Identity *SSOIdentity `json:"identity,omitempty"` // The last time the identity was refreshed // +optional @@ -210,6 +210,7 @@ const ( AccessKeyScopeRoleNetworkPeer AccessKeyScopeRoleName = "network-peer" AccessKeyScopeRoleLoftCLI AccessKeyScopeRoleName = "loft-cli" AccessKeyScopeRoleRunner AccessKeyScopeRoleName = "runner" + AccessKeyScopeRoleWorkspace AccessKeyScopeRoleName = "workspace" ) type AccessKeyScopeCluster struct { @@ -343,7 +344,7 @@ type GroupResources struct { ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,3,rep,name=resourceNames"` } -type AccessKeyIdentity struct { +type SSOIdentity struct { // The subject of the user // +optional UserID string `json:"userId,omitempty"` @@ -364,6 +365,11 @@ type AccessKeyIdentity struct { // +optional EmailVerified bool `json:"emailVerified,omitempty"` + // 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. + // +optional + ExtraClaims map[string]string `json:"extraClaims,omitempty"` + // The groups from the identity provider // +optional Groups []string `json:"groups,omitempty"` @@ -428,6 +434,7 @@ const ( AccessKeyTypeReset AccessKeyType = "Reset" AccessKeyTypeOIDCRefreshToken AccessKeyType = "OIDCRefreshToken" AccessKeyTypeNetworkPeer AccessKeyType = "NetworkPeer" + AccessKeyTypeWorkspace AccessKeyType = "Workspace" ) // AccessKeyStatus holds the status of an access key diff --git a/pkg/apis/storage/v1/cluster_types.go b/pkg/apis/storage/v1/cluster_types.go index e814511f..37ebf40d 100644 --- a/pkg/apis/storage/v1/cluster_types.go +++ b/pkg/apis/storage/v1/cluster_types.go @@ -2,9 +2,37 @@ package v1 import ( clusterv1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1" + agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) +const ( + LoftCluster = "loft-cluster" + + MetricsFederationServiceNamespaceAnnotation = "loft.sh/metrics-federation-service-namespace" + MetricsFederationServiceNameAnnotation = "loft.sh/metrics-federation-service-name" + MetricsFederationServicePortAnnotation = "loft.sh/metrics-federation-service-port" + + PrometheusLastAppliedHashAnnotation = "loft.sh/prometheus-last-applied-hash" + PrometheusDeployed agentstoragev1.ConditionType = "PrometheusDeployed" + PrometheusAvailable agentstoragev1.ConditionType = "PrometheusAvailable" + + GlobalPrometheusServiceAddress = "loft.sh/global-prometheus-service-address" + GlobalPrometheusLastAppliedHashAnnotation = "loft.sh/global-prometheus-last-applied-hash" + GlobalPrometheusDeployed agentstoragev1.ConditionType = "GlobalPrometheusDeployed" + GlobalPrometheusAvailable agentstoragev1.ConditionType = "GlobalPrometheusAvailable" + + OpenCostLastAppliedHashAnnotation = "loft.sh/opencost-last-applied-hash" + OpenCostDeployed agentstoragev1.ConditionType = "OpenCostDeployed" + OpenCostAvailable agentstoragev1.ConditionType = "OpenCostAvailable" + + BuildKitServiceAddress = "loft.sh/buildkit-service-address" + BuildKitLastAppliedHashAnnotation = "loft.sh/buildkit-last-applied-hash" + BuildKitDeployed agentstoragev1.ConditionType = "BuildKitDeployed" + BuildKitAvailable agentstoragev1.ConditionType = "BuildKitAvailable" +) + // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -35,6 +63,14 @@ func (a *Cluster) SetAccess(access []Access) { a.Spec.Access = access } +func (a *Cluster) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *Cluster) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} + // ClusterSpec holds the cluster specification type ClusterSpec struct { // If specified this name is displayed in the UI instead of the metadata name @@ -72,6 +108,12 @@ type ClusterSpec struct { // Access holds the access rights for users and teams // +optional Access []Access `json:"access,omitempty"` + + // Metrics holds the cluster's metrics backend configuration + Metrics *Metrics `json:"metrics,omitempty"` + + // OpenCost holds the cluster's OpenCost backend configuration + OpenCost *OpenCost `json:"opencost,omitempty"` } type AllowedClusterAccountTemplate struct { @@ -90,6 +132,10 @@ type ClusterStatus struct { // +optional Message string `json:"message,omitempty"` + + // Conditions holds several conditions the cluster might be in + // +optional + Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` } // ClusterStatusPhase describes the phase of a cluster @@ -173,3 +219,34 @@ type Chart struct { // +optional Password string `json:"password,omitempty"` } +type Metrics struct { + // Replicas is the number of desired replicas. + Replicas *int32 `json:"replicas,omitempty"` + + // Resources are compute resource required by the metrics backend + Resources *corev1.ResourceRequirements `json:"resources,omitempty"` + + // Retention is the metrics data retention period. Default is 1y + Retention string `json:"retention,omitempty"` + + // Storage contains settings related to the metrics backend's persistent volume configuration + Storage `json:"storage,omitempty"` +} + +type Storage struct { + // 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 + StorageClass *string `json:"storageClass,omitempty"` + + // Size the size of the metrics backend's persistent volume + Size string `json:"size,omitempty"` +} + +type OpenCost struct { + // Replicas is the number of desired replicas. + Replicas *int32 `json:"replicas,omitempty"` + + // Resources are compute resource required by the OpenCost backend + Resources *corev1.ResourceRequirements `json:"resources,omitempty"` +} diff --git a/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go b/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go index c2737baa..b1d73905 100644 --- a/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go +++ b/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go @@ -15,7 +15,26 @@ type DevPodEnvironmentTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodEnvironmentTemplateSpec `json:"spec,omitempty"` + Spec DevPodEnvironmentTemplateSpec `json:"spec,omitempty"` + Status DevPodEnvironmentTemplateStatus `json:"status,omitempty"` +} + +// DevPodEnvironmentTemplateStatus holds the status +type DevPodEnvironmentTemplateStatus struct { +} + +func (a *DevPodEnvironmentTemplate) GetVersions() []VersionAccessor { + var retVersions []VersionAccessor + for _, v := range a.Spec.Versions { + b := v + retVersions = append(retVersions, &b) + } + + return retVersions +} + +func (a *DevPodEnvironmentTemplateVersion) GetVersion() string { + return a.Version } func (a *DevPodEnvironmentTemplate) GetOwner() *UserOrTeam { @@ -39,9 +58,9 @@ type DevPodEnvironmentTemplateSpec struct { // +optional DisplayName string `json:"displayName,omitempty"` - // Git holds configuration for git environment spec source + // Description describes the environment template // +optional - Git GitEnvironmentTemplate `json:"git,omitempty"` + Description string `json:"description,omitempty"` // Owner holds the owner of this object // +optional @@ -51,11 +70,33 @@ type DevPodEnvironmentTemplateSpec struct { // +optional Access []Access `json:"access,omitempty"` + // Template is the inline template to use for DevPod environments + // +optional + Template *DevPodEnvironmentTemplateDefinition `json:"template,omitempty"` + // Versions are different versions of the template that can be referenced as well // +optional Versions []DevPodEnvironmentTemplateVersion `json:"versions,omitempty"` } +type DevPodEnvironmentTemplateDefinition struct { + // Git holds configuration for git environment spec source + // +optional + Git *GitEnvironmentTemplate `json:"git,omitempty"` + + // Inline holds an inline devcontainer.json definition + // +optional + Inline string `json:"inline,omitempty"` + + // WorkspaceRepositoryCloneStrategy determines how the workspaces git repository will be checked out in the pod if the workspace is git based + // +optional + WorkspaceRepositoryCloneStrategy GitCloneStrategy `json:"workspaceRepositoryCloneStrategy,omitempty"` + + // WorkspaceRepositorySkipLFS specifies if git lfs will be skipped when cloning the repository into the workspace + // +optional + WorkspaceRepositorySkipLFS bool `json:"workspaceRepositorySkipLFS,omitempty"` +} + // GitEnvironmentTemplate stores configuration of Git environment template source type GitEnvironmentTemplate struct { // Repository stores repository URL for Git environment spec source @@ -75,15 +116,26 @@ type GitEnvironmentTemplate struct { } type DevPodEnvironmentTemplateVersion struct { - // Git holds the GitEnvironmentTemplate + // Template holds the environment template definition // +optional - Git GitEnvironmentTemplate `json:"git,omitempty"` + Template DevPodEnvironmentTemplateDefinition `json:"template,omitempty"` // Version is the version. Needs to be in X.X.X format. // +optional Version string `json:"version,omitempty"` } +// +enum +type GitCloneStrategy string + +// WARN: Need to match https://github.com/loft-sh/devpod/pkg/git/clone.go +const ( + FullCloneStrategy GitCloneStrategy = "" + BloblessCloneStrategy GitCloneStrategy = "blobless" + TreelessCloneStrategy GitCloneStrategy = "treeless" + ShallowCloneStrategy GitCloneStrategy = "shallow" +) + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // DevPodEnvironmentTemplateList contains a list of DevPodEnvironmentTemplate objects diff --git a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go index 51e8fedd..eebd16ef 100644 --- a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go +++ b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go @@ -2,7 +2,9 @@ package v1 import ( agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + metricsv1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) var ( @@ -17,21 +19,25 @@ var ( // DevPodWorkspaceUIDLabel holds the actual workspace uid of the devpod workspace DevPodWorkspaceUIDLabel = "loft.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" + // DevPodWorkspacePictureAnnotation holds the workspace picture url of the devpod workspace DevPodWorkspacePictureAnnotation = "loft.sh/workspace-picture" // DevPodWorkspaceSourceAnnotation holds the workspace source of the devpod workspace DevPodWorkspaceSourceAnnotation = "loft.sh/workspace-source" - // DevPodWorkspaceRunnerNetworkPeerAnnotation holds the workspace runner network peer name of the devpod workspace - DevPodWorkspaceRunnerEndpointAnnotation = "loft.sh/runner-endpoint" + // DevPodClientsAnnotation holds the active clients for a workspace networpeer + DevPodClientsAnnotation = "loft.sh/devpod-clients" ) var ( + DevPodPlatformOptions = "DEVPOD_PLATFORM_OPTIONS" + DevPodFlagsUp = "DEVPOD_FLAGS_UP" DevPodFlagsDelete = "DEVPOD_FLAGS_DELETE" - DevPodFlagsStatus = "DEVPOD_FLAGS_STATUS" - DevPodFlagsSsh = "DEVPOD_FLAGS_SSH" DevPodFlagsStop = "DEVPOD_FLAGS_STOP" ) @@ -86,21 +92,28 @@ type DevPodWorkspaceInstanceSpec struct { // +optional Owner *UserOrTeam `json:"owner,omitempty"` + // PresetRef holds the DevPodWorkspacePreset template reference + // +optional + PresetRef *PresetRef `json:"presetRef,omitempty"` + // TemplateRef holds the DevPod machine template reference // +optional TemplateRef *TemplateRef `json:"templateRef,omitempty"` // EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used // +optional - EnvironmentRef EnvironmentRef `json:"environmentRef,omitempty"` + EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` // Template is the inline template to use for DevPod machine creation. This is mutually // exclusive with templateRef. // +optional Template *DevPodWorkspaceTemplateDefinition `json:"template,omitempty"` - // RunnerRef is the reference to the connected runner holding - // this workspace + // Target is the reference to the cluster holding this workspace + // +optional + Target WorkspaceTarget `json:"target,omitempty"` + + // RunnerRef is the reference to the runner holding this workspace // +optional RunnerRef RunnerRef `json:"runnerRef,omitempty"` @@ -118,6 +131,60 @@ type DevPodWorkspaceInstanceSpec struct { PreventWakeUpOnConnection bool `json:"preventWakeUpOnConnection,omitempty"` } +type PresetRef struct { + // Name is the name of DevPodWorkspacePreset + Name string `json:"name"` + + // 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 Loft to automatically select + // the latest major, minor or patch version. + // +optional + Version string `json:"version,omitempty"` +} + +type WorkspaceTarget struct { + // Cluster is the reference to the cluster holding this workspace + // +optional + Cluster *WorkspaceTargetName `json:"cluster,omitempty"` + + // Cluster is the reference to the virtual cluster holding this workspace + // +optional + VirtualCluster *WorkspaceTargetName `json:"virtualCluster,omitempty"` +} + +type WorkspaceResolvedTarget struct { + // Cluster is the reference to the cluster holding this workspace + // +optional + Cluster *WorkspaceTargetNamespace `json:"cluster,omitempty"` + + // Cluster is the reference to the virtual cluster holding this workspace + // +optional + VirtualCluster *WorkspaceTargetNamespace `json:"virtualCluster,omitempty"` + + // Space is the reference to the space holding this workspace + // +optional + Space *WorkspaceTargetName `json:"space,omitempty"` +} + +func (w WorkspaceResolvedTarget) Empty() bool { + return w == WorkspaceResolvedTarget{} +} + +type WorkspaceTargetName struct { + // Name is the name of the target + Name string `json:"name"` +} + +type WorkspaceTargetNamespace struct { + // Name is the name of the object + Name string `json:"name"` + + // Namespace is the namespace within the cluster. + // +optional + Namespace string `json:"namespace,omitempty"` +} + type RunnerRef struct { // Runner is the connected runner the workspace will be created in // +optional @@ -127,9 +194,17 @@ type RunnerRef struct { type EnvironmentRef struct { // Name is the name of DevPodEnvironmentTemplate this references Name string `json:"name"` + + // Version is the version of DevPodEnvironmentTemplate this references + // +optional + Version string `json:"version,omitempty"` } type DevPodWorkspaceInstanceStatus struct { + // ResolvedTarget is the resolved target of the workspace + // +optional + ResolvedTarget WorkspaceResolvedTarget `json:"resolvedTarget,omitempty"` + // LastWorkspaceStatus is the last workspace status reported by the runner. // +optional LastWorkspaceStatus WorkspaceStatus `json:"lastWorkspaceStatus,omitempty"` @@ -160,9 +235,146 @@ type DevPodWorkspaceInstanceStatus struct { // +optional IgnoreReconciliation bool `json:"ignoreReconciliation,omitempty"` - // ClusterRef holds the runners cluster if the workspace is scheduled - // on kubernetes based runner - ClusterRef *ClusterRef `json:"clusterRef,omitempty"` + // Kubernetes is the status of the workspace on kubernetes + // +optional + Kubernetes *DevPodWorkspaceInstanceKubernetesStatus `json:"kubernetes,omitempty"` +} + +type DevPodWorkspaceInstanceKubernetesStatus 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"` + + // PersistentVolumeClaimStatus is the pvc that is used to store the workspace + // +optional + PersistentVolumeClaimStatus *DevPodWorkspaceInstancePersistentVolumeClaimStatus `json:"persistentVolumeClaimStatus,omitempty"` +} + +type DevPodWorkspaceInstancePodStatus 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. + // There are five possible phase values: + // + // Pending: 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. + // + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + // +optional + Phase corev1.PodPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PodPhase"` + // Current service state of pod. + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + // +optional + // +patchMergeKey=type + // +patchStrategy=merge + // +listType=map + // +listMapKey=type + Conditions []corev1.PodCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` + // A human readable message indicating details about why the pod is in this condition. + // +optional + Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` + // A brief CamelCase message indicating details about why the pod is in this state. + // e.g. 'Evicted' + // +optional + Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` + // 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 + // +listType=atomic + InitContainerStatuses []corev1.ContainerStatus `json:"initContainerStatuses,omitempty" protobuf:"bytes,10,rep,name=initContainerStatuses"` + // 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 + // +optional + // +listType=atomic + ContainerStatuses []corev1.ContainerStatus `json:"containerStatuses,omitempty" protobuf:"bytes,8,rep,name=containerStatuses"` + // NodeName is the name of the node that is running the workspace + // +optional + 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"` + // ContainerResources are the resources of the containers that are running the workspace + // +optional + ContainerResources []DevPodWorkspaceInstanceContainerResource `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 { + // Name is the name of the container + // +optional + Name string `json:"name,omitempty"` + // Resources is the resources of the container + // +optional + Resources corev1.ResourceRequirements `json:"resources,omitempty"` +} + +type DevPodWorkspaceInstancePersistentVolumeClaimStatus struct { + // phase represents the current phase of PersistentVolumeClaim. + // +optional + Phase corev1.PersistentVolumeClaimPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PersistentVolumeClaimPhase"` + // capacity represents the actual resources of the underlying volume. + // +optional + Capacity corev1.ResourceList `json:"capacity,omitempty" protobuf:"bytes,3,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` + // conditions is the current Condition of persistent volume claim. If underlying persistent volume is being + // resized then the Condition will be set to 'Resizing'. + // +optional + // +patchMergeKey=type + // +patchStrategy=merge + // +listType=map + // +listMapKey=type + 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"` +} + +type DevPodWorkspaceInstanceEvent 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. + // +optional + Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` + + // A human-readable description of the status of this operation. + // TODO: decide on maximum length. + // +optional + Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` + + // The time at which the most recent occurrence of this event was recorded. + // +optional + LastTimestamp metav1.Time `json:"lastTimestamp,omitempty" protobuf:"bytes,7,opt,name=lastTimestamp"` + + // Type of this event (Normal, Warning), new types could be added in the future + // +optional + Type string `json:"type,omitempty" protobuf:"bytes,9,opt,name=type"` } type WorkspaceStatusResult struct { diff --git a/pkg/apis/storage/v1/devpodworkspacepreset_types.go b/pkg/apis/storage/v1/devpodworkspacepreset_types.go new file mode 100644 index 00000000..5aea86d5 --- /dev/null +++ b/pkg/apis/storage/v1/devpodworkspacepreset_types.go @@ -0,0 +1,117 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +genclient:noStatus +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// DevPodWorkspacePreset +// +k8s:openapi-gen=true +type DevPodWorkspacePreset struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec DevPodWorkspacePresetSpec `json:"spec,omitempty"` + Status DevPodWorkspacePresetStatus `json:"status,omitempty"` +} + +func (a *DevPodWorkspacePreset) GetOwner() *UserOrTeam { + return a.Spec.Owner +} + +func (a *DevPodWorkspacePreset) SetOwner(userOrTeam *UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *DevPodWorkspacePreset) GetAccess() []Access { + return a.Spec.Access +} + +func (a *DevPodWorkspacePreset) SetAccess(access []Access) { + a.Spec.Access = access +} + +type DevPodWorkspacePresetSpec 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"` + + // InfrastructureRef stores reference to DevPodWorkspaceTemplate to use + InfrastructureRef *TemplateRef `json:"infrastructureRef"` + + // EnvironmentRef stores reference to DevPodEnvironmentTemplate + // +optional + EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` + + // UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment + // +optional + UseProjectGitCredentials bool `json:"useProjectGitCredentials,omitempty"` + + // Owner holds the owner of this object + // +optional + Owner *UserOrTeam `json:"owner,omitempty"` + + // Access to the DevPod 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"` +} + +type DevPodWorkspacePresetSource struct { + // Git stores path to git repo to use as workspace source + // +optional + Git string `json:"git,omitempty"` + + // Image stores container image to use as workspace source + // +optional + Image string `json:"image,omitempty"` +} + +type DevPodWorkspacePresetVersion 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"` + + // InfrastructureRef stores reference to DevPodWorkspaceTemplate to use + // +optional + InfrastructureRef *TemplateRef `json:"infrastructureRef,omitempty"` + + // EnvironmentRef stores reference to DevPodEnvironmentTemplate + // +optional + EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` +} + +// DevPodWorkspacePresetStatus holds the status +type DevPodWorkspacePresetStatus struct { +} + +type WorkspaceRef struct { + // Name is the name of DevPodWorkspaceTemplate 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 { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevPodWorkspacePreset `json:"items"` +} + +func init() { + SchemeBuilder.Register(&DevPodWorkspacePreset{}, &DevPodWorkspacePresetList{}) +} diff --git a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go b/pkg/apis/storage/v1/devpodworkspacetemplate_types.go index 5d5bdb7b..19e34f20 100644 --- a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go +++ b/pkg/apis/storage/v1/devpodworkspacetemplate_types.go @@ -80,8 +80,50 @@ type DevPodWorkspaceTemplateSpec struct { } type DevPodWorkspaceTemplateDefinition struct { - // Provider holds the DevPod provider configuration - Provider DevPodWorkspaceProvider `json:"provider"` + // Kubernetes holds the definition for kubernetes based workspaces + Kubernetes *DevPodWorkspaceKubernetesSpec `json:"kubernetes,omitempty"` + + // WorkspaceEnv are environment variables that should be available within the created workspace. + // +optional + WorkspaceEnv map[string]DevPodProviderOption `json:"workspaceEnv,omitempty"` + + // InstanceTemplate holds the workspace instance template + // +optional + InstanceTemplate DevPodWorkspaceInstanceTemplateDefinition `json:"instanceTemplate,omitempty"` + + // CredentialForwarding specifies controls for how workspaces created by this template forward credentials into the workspace + // +optional + CredentialForwarding *CredentialForwarding `json:"credentialForwarding,omitempty"` + + // Provider holds the legacy VM provider configuration + // + // +optional + Provider *DevPodWorkspaceProvider `json:"provider,omitempty"` +} + +type DevPodWorkspaceKubernetesSpec struct { + // Pod holds the definition for workspace pod. + // + // Defaults will be applied for fields that aren't specified. + // +optional + Pod *DevPodWorkspacePodTemplate `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"` + + // PodTimeout specifies a maximum duration to wait for the workspace pod to start up before failing. + // Default: 10m + // +optional + PodTimeout string `json:"podTimeout,omitempty"` + + // 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. + // +optional + NodeArchitecure string `json:"nodeArchitecture,omitempty"` // 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. @@ -102,76 +144,322 @@ type DevPodWorkspaceTemplateDefinition struct { // If this is specified, the kubernetes provider will be selected automatically. // +optional VirtualClusterTemplate *VirtualClusterTemplateDefinition `json:"virtualClusterTemplate,omitempty"` +} - // WorkspaceEnv are environment variables that should be available within the created workspace. +// DevPodWorkspacePodTemplate is a less restrictive PodTemplate +type DevPodWorkspacePodTemplate struct { + // The pods metadata + // +kubebuilder:pruning:PreserveUnknownFields // +optional - WorkspaceEnv map[string]DevPodProviderOption `json:"workspaceEnv,omitempty"` + TemplateMetadata `json:"metadata,omitempty"` - // InitEnv are environment variables that should be available during the initialization phase of the created workspace. + Spec DevPodWorkspacePodTemplateSpec `json:"spec,omitempty"` +} + +// DevPodWorkspacePodResourceRequirements are less restrictive corev1.ResourceRequirements. +type DevPodWorkspaceResourceRequirements struct { + // Limits describes the maximum amount of compute resources allowed. // +optional - InitEnv map[string]DevPodProviderOption `json:"initEnv,omitempty"` + Limits map[corev1.ResourceName]string `json:"limits,omitempty"` - // InstanceTemplate holds the workspace instance template + // Requests describes the minimum amount of compute resources required. // +optional - InstanceTemplate DevPodWorkspaceInstanceTemplateDefinition `json:"instanceTemplate,omitempty"` + Requests map[corev1.ResourceName]string `json:"requests,omitempty"` + + // Claims lists the names of resources, defined in spec.resourceClaims, + // that are used by this container. + // +optional + Claims []corev1.ResourceClaim `json:"claims,omitempty"` +} + +// // DevPodWorkspacePodResourceRequirements is a less restrictive corev1.Container. +type DevPodWorkspaceContainer struct { + // Name of the container specified as a DNS_LABEL. + Name string `json:"name"` + // Container image name. + // +optional + Image string `json:"image,omitempty"` + // Entrypoint array. Not executed within a shell. + // +optional + // +listType=atomic + Command []string `json:"command,omitempty"` + // Arguments to the entrypoint. + // +optional + // +listType=atomic + Args []string `json:"args,omitempty"` + // Container's working directory. + // +optional + WorkingDir string `json:"workingDir,omitempty"` + // List of ports to expose from the container. Not specifying a port here + // +optional + Ports []corev1.ContainerPort `json:"ports,omitempty"` + // +optional + // +listType=atomic + EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"` + // List of environment variables to set in the container. + // +optional + Env []corev1.EnvVar `json:"env,omitempty"` + // Compute Resources required by this container. + // +optional + Resources DevPodWorkspaceResourceRequirements `json:"resources,omitempty"` + // Resources resize policy for the container. + // +optional + // +listType=atomic + ResizePolicy []corev1.ContainerResizePolicy `json:"resizePolicy,omitempty"` + // RestartPolicy defines the restart behavior of individual containers in a pod. + // +optional + RestartPolicy *corev1.ContainerRestartPolicy `json:"restartPolicy,omitempty"` + // Pod volumes to mount into the container's filesystem. + // +optional + VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"` + // volumeDevices is the list of block devices to be used by the container. + // +optional + VolumeDevices []corev1.VolumeDevice `json:"volumeDevices,omitempty"` + // Periodic probe of container liveness. + // +optional + LivenessProbe *corev1.Probe `json:"livenessProbe,omitempty"` + // Periodic probe of container service readiness. + // +optional + ReadinessProbe *corev1.Probe `json:"readinessProbe,omitempty"` + // StartupProbe indicates that the Pod has successfully initialized. + // +optional + StartupProbe *corev1.Probe `json:"startupProbe,omitempty"` + // Actions that the management system should take in response to container lifecycle events. + // +optional + Lifecycle *corev1.Lifecycle `json:"lifecycle,omitempty"` + // Optional: Path at which the file to which the container's termination message + // +optional + TerminationMessagePath string `json:"terminationMessagePath,omitempty"` + // Indicate how the termination message should be populated. File will use the contents of + // +optional + TerminationMessagePolicy corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"` + // Image pull policy. + // +optional + ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` + // SecurityContext defines the security options the container should be run with. + // +optional + SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"` - // UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this workspace + // Whether this container should allocate a buffer for stdin in the container runtime. // +optional - UseProjectGitCredentials bool `json:"useProjectGitCredentials,omitempty"` + Stdin bool `json:"stdin,omitempty"` + // StdinOnce default is false + // +optional + StdinOnce bool `json:"stdinOnce,omitempty"` + // TTY default is false. + // +optional + TTY bool `json:"tty,omitempty"` +} - // UseProjectSSHCredentials specifies if the project ssh credentials should be used instead of local ones for this workspace +// DevPodWorkspacePodTemplateSpec is a less restrictive PodSpec +type DevPodWorkspacePodTemplateSpec struct { + // List of volumes that can be mounted by containers belonging to the pod. // +optional - UseProjectSSHCredentials bool `json:"useProjectSSHCredentials,omitempty"` + Volumes []corev1.Volume `json:"volumes,omitempty"` - // GitCloneStrategy specifies how git based workspace are being cloned. Can be "" (full, default), treeless, blobless or shallow + // List of initialization containers belonging to the pod. // +optional - GitCloneStrategy GitCloneStrategy `json:"gitCloneStrategy,omitempty"` + InitContainers []DevPodWorkspaceContainer `json:"initContainers,omitempty"` - // CredentialForwarding specifies controls for how workspaces created by this template forward credentials into the workspace + // List of containers belonging to the pod. // +optional - CredentialForwarding *CredentialForwarding `json:"credentialForwarding,omitempty"` + Containers []DevPodWorkspaceContainer `json:"containers,omitempty"` - // PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection. + // Restart policy for all containers within the pod. // +optional - PreventWakeUpOnConnection bool `json:"preventWakeUpOnConnection,omitempty"` -} + RestartPolicy corev1.RestartPolicy `json:"restartPolicy,omitempty"` -// +enum -type GitCloneStrategy string + // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. + // +optional + TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` -// WARN: Need to match https://github.com/loft-sh/devpod/pkg/git/clone.go -const ( - FullCloneStrategy GitCloneStrategy = "" - BloblessCloneStrategy GitCloneStrategy = "blobless" - TreelessCloneStrategy GitCloneStrategy = "treeless" - ShallowCloneStrategy GitCloneStrategy = "shallow" -) + // Optional duration in seconds the pod may be active on the node relative to + // +optional + ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` -type CredentialForwarding struct { - // Docker specifies controls for how workspaces created by this template forward docker credentials + // Set DNS policy for the pod. // +optional - Docker *DockerCredentialForwarding `json:"docker,omitempty"` + DNSPolicy corev1.DNSPolicy `json:"dnsPolicy,omitempty"` - // Git specifies controls for how workspaces created by this template forward git credentials + // NodeSelector is a selector which must be true for the pod to fit on a node. // +optional - Git *GitCredentialForwarding `json:"git,omitempty"` + NodeSelector map[string]string `json:"nodeSelector,omitempty"` + + // ServiceAccountName is the name of the ServiceAccount to use to run this pod. + // +optional + ServiceAccountName string `json:"serviceAccountName,omitempty"` + + // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + // +optional + AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` + + // NodeName indicates in which node this pod is scheduled. + // +optional + NodeName string `json:"nodeName,omitempty"` + + // Host networking requested for this pod. Use the host's network namespace. + // +optional + HostNetwork bool `json:"hostNetwork,omitempty"` + + // Use the host's pid namespace. + // +optional + HostPID bool `json:"hostPID,omitempty"` + + // Use the host's ipc namespace. + // +optional + HostIPC bool `json:"hostIPC,omitempty"` + + // Share a single process namespace between all of the containers in a pod. + // +optional + ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty"` + + // SecurityContext holds pod-level security attributes and common container settings. + // +optional + SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"` + + // 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. + // +optional + ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` + + // Specifies the hostname of the Pod + // +optional + Hostname string `json:"hostname,omitempty"` + + // If specified, the fully qualified Pod hostname will be "...svc.". + // +optional + Subdomain string `json:"subdomain,omitempty"` + + // If specified, the pod's scheduling constraints + // +optional + Affinity *corev1.Affinity `json:"affinity,omitempty"` + + // If specified, the pod will be dispatched by specified scheduler. + // If not specified, the pod will be dispatched by default scheduler. + // +optional + SchedulerName string `json:"schedulerName,omitempty"` + + // If specified, the pod's tolerations. + // +optional + Tolerations []corev1.Toleration `json:"tolerations,omitempty"` + + // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts + // +optional + HostAliases []corev1.HostAlias `json:"hostAliases,omitempty"` + + // If specified, indicates the pod's priority. + // +optional + PriorityClassName string `json:"priorityClassName,omitempty"` + + // +optional + Priority *int32 `json:"priority,omitempty"` + + // Specifies the DNS parameters of a pod. + // +optional + DNSConfig *corev1.PodDNSConfig `json:"dnsConfig,omitempty"` + + // If specified, all readiness gates will be evaluated for pod readiness. + // +optional + ReadinessGates []corev1.PodReadinessGate `json:"readinessGates,omitempty"` + + // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod + // +optional + RuntimeClassName *string `json:"runtimeClassName,omitempty"` + + // EnableServiceLinks indicates whether information about services should be injected into pod's + // environment variables, matching the syntax of Docker links. + // +optional + EnableServiceLinks *bool `json:"enableServiceLinks,omitempty"` + + // PreemptionPolicy is the Policy for preempting pods with lower priority. + // +optional + PreemptionPolicy *corev1.PreemptionPolicy `json:"preemptionPolicy,omitempty"` + + // Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. + // +optional + Overhead corev1.ResourceList `json:"overhead,omitempty"` + + // TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. + // +optional + TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"` + + // 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. + // +optional + SetHostnameAsFQDN *bool `json:"setHostnameAsFQDN,omitempty"` + + // Specifies the OS of the containers in the pod. + // +optional + OS *corev1.PodOS `json:"os,omitempty"` + + // Use the host's user namespace. + // +optional + HostUsers *bool `json:"hostUsers,omitempty"` + + // 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. + // +optional + SchedulingGates []corev1.PodSchedulingGate `json:"schedulingGates,omitempty"` + + // 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. + // +optional + ResourceClaims []corev1.PodResourceClaim `json:"resourceClaims,omitempty"` + + // 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. + // +optional + Resources *DevPodWorkspaceResourceRequirements `json:"resources,omitempty"` } -type DockerCredentialForwarding struct { - // Disabled prevents all workspaces created by this template from forwarding credentials into the workspace +type DevPodWorkspaceVolumeClaimTemplate struct { + // The pods metadata + // +kubebuilder:pruning:PreserveUnknownFields // +optional - Disabled bool `json:"disabled,omitempty"` + TemplateMetadata `json:"metadata,omitempty"` + + Spec DevPodWorkspaceVolumeClaimSpec `json:"spec,omitempty"` } -type GitCredentialForwarding struct { - // Disabled prevents all workspaces created by this template from forwarding credentials into the workspace +type DevPodWorkspaceVolumeClaimSpec struct { + // accessModes contains the desired access modes the volume should have. // +optional - Disabled bool `json:"disabled,omitempty"` + // +listType=atomic + AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"` + // selector is a label query over volumes to consider for binding. + // +optional + Selector *metav1.LabelSelector `json:"selector,omitempty"` + // resources represents the minimum resources the volume should have. + // +optional + Resources DevPodWorkspaceResourceRequirements `json:"resources,omitempty"` + // volumeName is the binding reference to the PersistentVolume backing this claim. + // +optional + VolumeName string `json:"volumeName,omitempty"` + // storageClassName is the name of the StorageClass required by the claim. + // +optional + StorageClassName *string `json:"storageClassName,omitempty"` + // volumeMode defines what type of volume is required by the claim. + // +optional + VolumeMode *corev1.PersistentVolumeMode `json:"volumeMode,omitempty"` + // dataSource field can be used to specify either: + // +optional + DataSource *corev1.TypedLocalObjectReference `json:"dataSource,omitempty"` + // dataSourceRef specifies the object from which to populate the volume with data, if a non-empty + // +optional + DataSourceRef *corev1.TypedObjectReference `json:"dataSourceRef,omitempty"` + // volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. + // +optional + VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty"` } type DevPodWorkspaceProvider struct { // Name is the name of the provider. This can also be an url. - Name string `json:"name"` + // +optional + Name string `json:"name,omitempty"` // Options are the provider option values // +optional @@ -183,7 +471,7 @@ type DevPodWorkspaceProvider struct { } type DevPodWorkspaceInstanceTemplateDefinition struct { - // The virtual cluster instance metadata + // The workspace instance metadata // +kubebuilder:pruning:PreserveUnknownFields // +optional TemplateMetadata `json:"metadata,omitempty"` @@ -234,6 +522,28 @@ type DevPodWorkspaceTemplateVersion struct { Version string `json:"version,omitempty"` } +type CredentialForwarding struct { + // Docker specifies controls for how workspaces created by this template forward docker credentials + // +optional + Docker *DockerCredentialForwarding `json:"docker,omitempty"` + + // Git specifies controls for how workspaces created by this template forward git credentials + // +optional + Git *GitCredentialForwarding `json:"git,omitempty"` +} + +type DockerCredentialForwarding struct { + // Disabled prevents all workspaces created by this template from forwarding credentials into the workspace + // +optional + Disabled bool `json:"disabled,omitempty"` +} + +type GitCredentialForwarding struct { + // Disabled prevents all workspaces created by this template from forwarding credentials into the workspace + // +optional + Disabled bool `json:"disabled,omitempty"` +} + // DevPodWorkspaceTemplateStatus holds the status type DevPodWorkspaceTemplateStatus struct { } diff --git a/pkg/apis/storage/v1/networkpeer_types.go b/pkg/apis/storage/v1/networkpeer_types.go index 7613af7b..2c2cfe3c 100644 --- a/pkg/apis/storage/v1/networkpeer_types.go +++ b/pkg/apis/storage/v1/networkpeer_types.go @@ -12,7 +12,7 @@ import ( // +k8s:openapi-gen=true type NetworkPeer struct { metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` Spec NetworkPeerSpec `json:"spec,omitempty"` Status NetworkPeerStatus `json:"status,omitempty"` diff --git a/pkg/apis/storage/v1/nodeclaim_types.go b/pkg/apis/storage/v1/nodeclaim_types.go new file mode 100644 index 00000000..81f7e76f --- /dev/null +++ b/pkg/apis/storage/v1/nodeclaim_types.go @@ -0,0 +1,119 @@ +package v1 + +import ( + agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + // NodeClaim conditions + ConditionTypeProvisioned = "Provisioned" + // ConditionTypeScheduled is the condition that indicates if the node claim is scheduled. + ConditionTypeScheduled = "Scheduled" +) + +var ( + NodeClaimConditions = []agentstoragev1.ConditionType{ + ConditionTypeProvisioned, + ConditionTypeScheduled, + } +) + +// NodeClaimPhase defines the phase of the NodeClaim +type NodeClaimPhase string + +const ( + // NodeClaimPhasePending is the initial state of a NodeClaim. + NodeClaimPhasePending NodeClaimPhase = "Pending" + // NodeClaimPhaseAvailable means the underlying node has been successfully provisioned. + NodeClaimPhaseAvailable NodeClaimPhase = "Available" + // NodeClaimPhaseFailed means the provisioning process has failed. + NodeClaimPhaseFailed NodeClaimPhase = "Failed" +) + +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="VCluster",type="string",JSONPath=".spec.vClusterRef" +// +kubebuilder:printcolumn:name="NodeType",type="string",JSONPath=".spec.nodeTypeRef" +// +kubebuilder:subresource:status + +// NodeClaim holds the node claim for vCluster. +// +k8s:openapi-gen=true +type NodeClaim struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeClaimSpec `json:"spec,omitempty"` + Status NodeClaimStatus `json:"status,omitempty"` +} + +func (a *NodeClaim) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *NodeClaim) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} + +// NodeClaimSpec defines spec of node claim. +type NodeClaimSpec struct { + // Taints will be applied to the NodeClaim's node. + // +optional + Taints []corev1.Taint `json:"taints,omitempty"` + + // 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. + // +optional + StartupTaints []corev1.Taint `json:"startupTaints,omitempty"` + + // KubeletArgs are additional arguments to pass to the kubelet. + // +optional + KubeletArgs map[string]string `json:"kubeletArgs,omitempty"` + + // DesiredCapacity specifies the resources requested by the NodeClaim. + DesiredCapacity corev1.ResourceList `json:"desiredCapacity,omitempty"` + + // Requirements are the requirements for the NodeClaim. + Requirements []corev1.NodeSelectorRequirement `json:"requirements,omitempty"` + + // NodeTypeRef is the name of the NodeType that this NodeClaim is based on. + NodeTypeRef string `json:"nodeTypeRef,omitempty"` + + // VClusterRef references source vCluster. This is required. + VClusterRef string `json:"vClusterRef"` +} + +type NodeClaimStatus struct { + // Phase is the current lifecycle phase of the NodeClaim. + // +optional + Phase NodeClaimPhase `json:"phase,omitempty"` + + // Reason describes the reason in machine-readable form + // +optional + Reason string `json:"reason,omitempty"` + + // Message describes the reason in human-readable form + // +optional + Message string `json:"message,omitempty"` + + // Conditions describe the current state of the platform NodeClaim. + // +optional + Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// NodeClaimList contains a list of NodeClaim +type NodeClaimList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeClaim `json:"items"` +} + +func init() { + SchemeBuilder.Register(&NodeClaim{}, &NodeClaimList{}) +} diff --git a/pkg/apis/storage/v1/nodeprovider_types.go b/pkg/apis/storage/v1/nodeprovider_types.go new file mode 100644 index 00000000..1aa79fa9 --- /dev/null +++ b/pkg/apis/storage/v1/nodeprovider_types.go @@ -0,0 +1,167 @@ +package v1 + +import ( + agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + NodeProviderTypeBCM string = "bcm" + NodeProviderTypePods string = "pods" + NodeProviderTypeKubeVirt string = "kubeVirt" + + // NodeProviderConditionTypeInitialized is the condition that indicates if the node provider is initialized. + NodeProviderConditionTypeInitialized = "Initialized" +) + +var ( + NodeProviderConditions = []agentstoragev1.ConditionType{ + NodeProviderConditionTypeInitialized, + } +) + +// NodeProviderPhase defines the phase of the NodeProvider +type NodeProviderPhase string + +const ( + // NodeProviderPhasePending is the initial state of a NodeProvider. + NodeProviderPhasePending NodeProviderPhase = "Pending" + // NodeProviderPhaseAvailable means the underlying node has been successfully provisioned. + NodeProviderPhaseAvailable NodeProviderPhase = "Available" + // NodeProviderPhaseFailed means the provisioning process has failed. + NodeProviderPhaseFailed NodeProviderPhase = "Failed" + // NodeProvider specific label + NodeProvidedManagedTypeIndicatorLabel = "autoscaling.loft.sh/managed-by" + + // BCM specific annotations + NodeTypeNodesAnnotation = "bcm.loft.sh/nodes" + NodeTypeNodeGroupsAnnotation = "bcm.loft.sh/node-groups" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// NodeProvider holds the information of a node provider config. +// This resource defines various ways a node can be provisioned or configured. +// +k8s:openapi-gen=true +type NodeProvider struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeProviderSpec `json:"spec,omitempty"` + Status NodeProviderStatus `json:"status,omitempty"` +} + +func (a *NodeProvider) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *NodeProvider) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} + +// NodeProviderSpec defines the desired state of NodeProvider. +// Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time. +type NodeProviderSpec struct { + // Pods configures a node provider based on Kubernetes Pods. + // This can be used for simpler, pod-based node provisioning for testing or demos. + // +optional + Pods *NodeProviderPods `json:"pods,omitempty"` + + // BCM configures a node provider for BCM Bare Metal Cloud environments. + // +optional + BCM *NodeProviderBCM `json:"bcm,omitempty"` + + // Kubevirt configures a node provider using KubeVirt, enabling virtual machines + // to be provisioned as nodes within a vCluster. + // +optional + KubeVirt *NodeProviderKubeVirt `json:"kubeVirt,omitempty"` + + // DisplayName is the name that should be displayed in the UI + // +optional + DisplayName string `json:"displayName,omitempty"` +} + +// NodeProviderPodsSpec defines the configuration for a pod-based node provider. +type NodeProviderPods struct { + // Image is the container image to use for the pod-based node provider. + Image string `json:"image,omitempty"` +} + +// NodeProviderBCMSpec defines the configuration for a BCM node provider. +type NodeProviderBCM struct { + // SecretRef is a reference to secret with keys for BCM auth. + SecretRef *NamespacedRef `json:"secretRef"` + + // Endpoint is a address for head node. + Endpoint string `json:"endpoint"` + + // NodeTypes define NodeTypes that should be automatically created for this provider. + NodeTypes []BCMNodeTypeSpec `json:"nodeTypes,omitempty"` +} + +type BCMNodeTypeSpec struct { + NodeTypeSpec `json:",inline"` + + // Name is the name of this node type. + Name string `json:"name"` + + // Nodes specifies nodes. + Nodes []string `json:"nodes,omitempty"` + + // NodeGroups is the name of the node groups to use for this provider. + NodeGroups []string `json:"nodeGroups,omitempty"` +} + +type NamespacedRef struct { + // Name is the name of this resource + Name string `json:"name"` + // Namespace is the namespace of this resource + Namespace string `json:"namespace"` +} + +// NodeProviderKubeVirt defines the configuration for a KubeVirt node provider. +type NodeProviderKubeVirt struct { + // If KubeVirt is deployed inside one of the vClusters, reference this vCluster here. + // Otherwise it will be assumed to run in the same host cluster as platform. + // +optional + VirtualClusterRef *VirtualClusterClusterRef `json:"virtualClusterRef,omitempty"` + + // TargetNamespace is the namespace within the KubeVirt cluster where the + // VirtualMachines and their secrets will be created. + // +optional + TargetNamespace string `json:"targetNamespace,omitempty"` +} + +// NodeProviderStatus defines the observed state of NodeProvider. +type NodeProviderStatus struct { + // Conditions describe the current state of the platform NodeProvider. + // +optional + Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` + + // Reason describes the reason in machine-readable form + // +optional + Reason string `json:"reason,omitempty"` + + // Phase is the current lifecycle phase of the NodeProvider. + // +optional + Phase NodeProviderPhase `json:"phase,omitempty"` + + // Message is a human-readable message indicating details about why the NodeProvider is in its current state. + // +optional + Message string `json:"message,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// NodeProviderList contains a list of NodeProvider +type NodeProviderList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeProvider `json:"items"` +} + +func init() { + SchemeBuilder.Register(&NodeProvider{}, &NodeProviderList{}) +} diff --git a/pkg/apis/storage/v1/nodetype_types.go b/pkg/apis/storage/v1/nodetype_types.go new file mode 100644 index 00000000..ad6f2f43 --- /dev/null +++ b/pkg/apis/storage/v1/nodetype_types.go @@ -0,0 +1,211 @@ +package v1 + +import ( + "strings" + + agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + NodeProviderPropertyKey = "vcluster.com/node-provider" + NodeTypePropertyKey = "vcluster.com/node-type" + + // NodeTypeConditionTypeSynced is the condition that indicates if the node type is synced with provider. + NodeTypeConditionTypeSynced = "Synced" +) + +var ( + NodeTypeConditions = []agentstoragev1.ConditionType{ + NodeTypeConditionTypeSynced, + } +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:printcolumn:name="Available",type="integer",JSONPath=".status.capacity.available" +// +kubebuilder:printcolumn:name="Total",type="integer",JSONPath=".status.capacity.total" +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:resource:scope=Cluster + +// NodeType holds the information of a node type. +// +k8s:openapi-gen=true +type NodeType struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata"` + + Spec NodeTypeSpec `json:"spec,omitempty"` + Status NodeTypeStatus `json:"status,omitempty"` +} + +func (a *NodeType) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *NodeType) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} + +type NodeTypeSpec struct { + // ProviderRef is the node provider to use for this node type. + // +optional + ProviderRef string `json:"providerRef,omitempty"` + + // Zone is the zone of the node type. If empty, will default to "global". + // +optional + Zone string `json:"zone,omitempty"` + + // Region is the region of the node type. + // +optional + Region string `json:"region,omitempty"` + + // Properties returns a flexible set of properties that may be selected for scheduling. + Properties map[string]string `json:"properties,omitempty"` + + // Resources lists the full resources for a single node. + Resources corev1.ResourceList `json:"resources,omitempty"` + + // Overhead defines the resource overhead for this node type. + // +optional + Overhead *NodeTypeOverhead `json:"overhead,omitempty"` + + // 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. + // +optional + Cost int64 `json:"cost,omitempty"` + + // DisplayName is the name that should be displayed in the UI + // +optional + DisplayName string `json:"displayName,omitempty"` +} + +func (a *NodeType) GetAllProperties() []corev1.NodeSelectorRequirement { + // default properties + zone := "global" + if a.Spec.Zone != "" { + zone = a.Spec.Zone + } + + // build all properties + allProperties := []corev1.NodeSelectorRequirement{ + { + Key: corev1.LabelInstanceTypeStable, + Operator: corev1.NodeSelectorOpIn, + Values: []string{a.Name}, + }, + { + Key: corev1.LabelOSStable, + Operator: corev1.NodeSelectorOpIn, + Values: []string{string(corev1.Linux)}, + }, + { + Key: corev1.LabelTopologyZone, + Operator: corev1.NodeSelectorOpIn, + Values: []string{zone}, + }, + { + Key: "karpenter.sh/capacity-type", + Operator: corev1.NodeSelectorOpIn, + Values: []string{"on-demand"}, + }, + { + Key: NodeProviderPropertyKey, + Operator: corev1.NodeSelectorOpIn, + Values: []string{a.Spec.ProviderRef}, + }, + { + Key: NodeTypePropertyKey, + Operator: corev1.NodeSelectorOpIn, + Values: []string{a.Name}, + }, + } + if a.Spec.Region != "" { + allProperties = append(allProperties, corev1.NodeSelectorRequirement{ + Key: corev1.LabelTopologyRegion, + Operator: corev1.NodeSelectorOpIn, + Values: []string{a.Spec.Region}, + }) + } + + // add custom properties + for key, value := range a.Spec.Properties { + allProperties = append(allProperties, corev1.NodeSelectorRequirement{ + Key: key, + Operator: corev1.NodeSelectorOpIn, + Values: strings.Split(value, ","), + }) + } + + return allProperties +} + +// NodeTypeOverhead defines the resource overhead for a node type. +type NodeTypeOverhead struct { + // KubeReserved is the resource overhead for kubelet and other Kubernetes system daemons. + // +optional + KubeReserved corev1.ResourceList `json:"kubeReserved,omitempty"` +} + +// NodeTypePhase defines the phase of the NodeType +type NodeTypePhase string + +const ( + // PhasePending is the initial state of a NodeType. + NodeTypePhasePending NodeTypePhase = "Pending" + // NodeTypePhaseAvailable means the provisioning process has failed. + NodeTypePhaseAvailable NodeTypePhase = "Available" + // NodeTypePhaseFailed means the provisioning process has failed. + NodeTypePhaseFailed NodeTypePhase = "Failed" +) + +// NodeTypeStatus holds the status of a node type +type NodeTypeStatus struct { + // Phase is the current lifecycle phase of the NodeType. + // +optional + Phase NodeTypePhase `json:"phase,omitempty"` + + // Reason describes the reason in machine-readable form + // +optional + Reason string `json:"reason,omitempty"` + + // Message describes the reason in human-readable form + // +optional + Message string `json:"message,omitempty"` + + // Capacity is the capacity of the node type. + // +optional + Capacity *NodeTypeCapacity `json:"capacity,omitempty"` + + // Conditions holds several conditions the node type might be in + // +optional + Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` +} + +type NodeTypeCapacity struct { + // Total is the total number of nodes of this type + // +optional + Total int `json:"total,omitempty"` + + // Available is the number of available nodes of this type + // +optional + Available int `json:"available,omitempty"` + + // Provisioned is the number of already provisioned nodes of this type + // +optional + Provisioned int `json:"provisioned,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// NodeTypeList contains a list of NodeType +type NodeTypeList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeType `json:"items"` +} + +func init() { + SchemeBuilder.Register(&NodeType{}, &NodeTypeList{}) +} diff --git a/pkg/apis/storage/v1/project_types.go b/pkg/apis/storage/v1/project_types.go index 2fec41e1..086e8e60 100644 --- a/pkg/apis/storage/v1/project_types.go +++ b/pkg/apis/storage/v1/project_types.go @@ -106,6 +106,10 @@ type ProjectSpec struct { // +optional RequireTemplate RequireTemplate `json:"requireTemplate,omitempty"` + // RequirePreset configures if a preset is required for instance creation. + // +optional + RequirePreset RequirePreset `json:"requirePreset,omitempty"` + // Members are the users and teams that are part of this project // +optional Members []Member `json:"members,omitempty"` @@ -142,6 +146,13 @@ type RequireTemplate struct { Disabled bool `json:"disabled,omitempty"` } +type RequirePreset struct { + // 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. + // +optional + Enabled bool `json:"disabled,omitempty"` +} + type NamespacePattern struct { // Space holds the namespace pattern to use for space instances // +optional @@ -150,6 +161,10 @@ type NamespacePattern struct { // VirtualCluster holds the namespace pattern to use for virtual cluster instances // +optional VirtualCluster string `json:"virtualCluster,omitempty"` + + // DevPodWorkspace holds the namespace pattern to use for DevPod workspaces + // +optional + DevPodWorkspace string `json:"devPodWorkspace,omitempty"` } type Quotas struct { @@ -165,6 +180,7 @@ var ( SpaceTemplateKind = "SpaceTemplate" VirtualClusterTemplateKind = "VirtualClusterTemplate" DevPodWorkspaceTemplateKind = "DevPodWorkspaceTemplate" + DevPodWorkspacePresetKind = "DevPodWorkspacePreset" ) type AllowedTemplate struct { @@ -199,7 +215,7 @@ type Member struct { Name string `json:"name,omitempty"` // ClusterRole is the assigned role for the above member - ClusterRole string `json:"clusterRole,omitempty"` + ClusterRole string `json:"clusterRole"` } type AllowedRunner struct { @@ -504,34 +520,35 @@ type DevPodProjectSpec struct { // +optional Git *GitProjectSpec `json:"git,omitempty"` - // SSH defines additional ssh related settings like private keys, to be - // specified as base64 encoded strings. - // +optional - SSH *SSHProjectSpec `json:"ssh,omitempty"` - // FallbackImage defines an image all workspace will fall back to if no devcontainer.json could be detected // +optional FallbackImage string `json:"fallbackImage,omitempty"` + + // RegistryPattern specifies a template pattern to use for building images on the fly. + // Requires the platform pods to be authenticated against the registry. + // +optional + RegistryPattern string `json:"registryPattern,omitempty"` } type GitProjectSpec struct { - // Token defines the token to use for authentication. + // HTTP defines additional http related settings like credentials, to be + // specified as base64 encoded strings. // +optional - Token string `json:"token,omitempty"` + HTTP *GitProjectCredentials `json:"http,omitempty"` - // TokenSecretRef defines the project secret to use for token authentication. - // Will be used if `Token` is not provided. + // SSH defines additional ssh related settings like private keys, to be + // specified as base64 encoded strings. // +optional - TokenProjectSecretRef *corev1.SecretKeySelector `json:"tokenSecretRef,omitempty"` + SSH *GitProjectCredentials `json:"ssh,omitempty"` } -type SSHProjectSpec struct { - // Token defines the private ssh key to use for authentication, +type GitProjectCredentials struct { + // Token defines the credentials to use for authentication, // this is a base64 encoded string. // +optional Token string `json:"token,omitempty"` - // TokenSecretRef defines the project secret to use as private ssh key for authentication. + // TokenSecretRef defines the project secret to use as credentials for authentication. // Will be used if `Token` is not provided. // +optional TokenProjectSecretRef *corev1.SecretKeySelector `json:"tokenSecretRef,omitempty"` diff --git a/pkg/apis/storage/v1/runner_types.go b/pkg/apis/storage/v1/runner_types.go deleted file mode 100644 index ec9ae497..00000000 --- a/pkg/apis/storage/v1/runner_types.go +++ /dev/null @@ -1,258 +0,0 @@ -package v1 - -import ( - agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -var RunnerConditions = []agentstoragev1.ConditionType{ - RunnerDeployed, -} - -const ( - RunnerDeployed agentstoragev1.ConditionType = "Deployed" - - // BuiltinRunnerName is the name for the control plane runner - BuiltinRunnerName = "local" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// Runner holds the runner information -// +k8s:openapi-gen=true -type Runner struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec RunnerSpec `json:"spec,omitempty"` - Status RunnerStatus `json:"status,omitempty"` -} - -func (a *Runner) GetConditions() agentstoragev1.Conditions { - return a.Status.Conditions -} - -func (a *Runner) SetConditions(conditions agentstoragev1.Conditions) { - a.Status.Conditions = conditions -} - -func (a *Runner) GetOwner() *UserOrTeam { - return a.Spec.Owner -} - -func (a *Runner) SetOwner(userOrTeam *UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *Runner) GetAccess() []Access { - return a.Spec.Access -} - -func (a *Runner) SetAccess(access []Access) { - a.Spec.Access = access -} - -type RunnerSpec struct { - // The display name shown in the UI - // +optional - DisplayName string `json:"displayName,omitempty"` - - // Description describes a cluster access object - // +optional - Description string `json:"description,omitempty"` - - // NetworkPeerName is the network peer name used to connect directly to the runner - // +optional - NetworkPeerName string `json:"networkPeerName,omitempty"` - - // Endpoint is the hostname used to connect directly to the runner - // +optional - Endpoint string `json:"endpoint,omitempty"` - - // If ClusterRef is defined, Loft will schedule the runner on the given - // cluster. - // +optional - ClusterRef *RunnerClusterRef `json:"clusterRef,omitempty"` - - // Owner holds the owner of this object - // +optional - Owner *UserOrTeam `json:"owner,omitempty"` - - // If unusable is true, no DevPod workspaces can be scheduled on this runner. - // +optional - Unusable bool `json:"unusable,omitempty"` - - // Access holds the access rights for users and teams - // +optional - Access []Access `json:"access,omitempty"` -} - -type RunnerClusterRef struct { - // Cluster is the connected cluster the space will be created in - // +optional - Cluster string `json:"cluster,omitempty"` - - // Namespace is the namespace inside the connected cluster holding the space - // +optional - Namespace string `json:"namespace,omitempty"` - - // PersistentVolumeClaimTemplate holds additional options for the persistent volume claim - // +optional - PersistentVolumeClaimTemplate *RunnerPersistentVolumeClaimTemplate `json:"persistentVolumeClaimTemplate,omitempty"` - - // PodTemplate holds additional options for the runner pod - // +optional - PodTemplate *RunnerPodTemplate `json:"podTemplate,omitempty"` - - // ServiceTemplate holds additional options for the service - // +optional - ServiceTemplate *RunnerServiceTemplate `json:"serviceTemplate,omitempty"` -} - -type RunnerPodTemplate struct { - // Metadata holds the template metadata - // +optional - Metadata TemplateMetadata `json:"metadata,omitempty"` - - // Spec holds the template spec - // +optional - Spec RunnerPodTemplateSpec `json:"spec,omitempty"` -} - -type RunnerPodTemplateSpec struct { - // Runner pod image to use other than default - // +optional - Image string `json:"image,omitempty"` - - // Resources requirements - // +optional - Resources corev1.ResourceRequirements `json:"resource,omitempty"` - - // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"` - - // List of environment variables to set in the container. - // Cannot be updated. - // +optional - Env []corev1.EnvVar `json:"env,omitempty"` - - // Set the NodeSelector for the Runner Pod - // +optional - NodeSelector map[string]string `json:"nodeSelector,omitempty"` - - // Set the Affinity for the Runner Pod - // +optional - Affinity *corev1.Affinity `json:"affinity,omitempty"` - - // Set the Tolerations for the Runner Pod - // +optional - Tolerations []corev1.Toleration `json:"tolerations,omitempty"` - - // Set Volume Mounts for the Runner Pod - // +optional - VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"` - - // Set Volumes for the Runner Pod - // +optional - Volumes []corev1.Volume `json:"volumes,omitempty"` - - // Set up Init Containers for the Runner - // +optional - InitContainers []corev1.Container `json:"initContainers,omitempty"` - - // Set host aliases for the Runner Pod - // +optional - HostAliases []corev1.HostAlias `json:"hostAliases,omitempty"` -} - -type RunnerPersistentVolumeClaimTemplate struct { - // Metadata holds the template metadata - // +optional - Metadata TemplateMetadata `json:"metadata,omitempty"` - - // Spec holds the template spec - // +optional - Spec RunnerPersistentVolumeClaimTemplateSpec `json:"spec,omitempty"` -} - -type RunnerPersistentVolumeClaimTemplateSpec struct { - // accessModes contains the desired access modes the volume should have. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - // +optional - AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"` - - // storageClassName is the name of the StorageClass required by the claim. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - // +optional - StorageClassName *string `json:"storageClassName,omitempty"` - - // storageSize is the size of the storage to reserve for the pvc - // +optional - StorageSize string `json:"storageSize,omitempty"` -} - -type RunnerServiceTemplate struct { - // Metadata holds the template metadata - // +optional - Metadata TemplateMetadata `json:"metadata,omitempty"` - - // Spec holds the template spec - // +optional - Spec RunnerServiceTemplateSpec `json:"spec,omitempty"` -} - -type RunnerServiceTemplateSpec struct { - // type determines how the Service is exposed. Defaults to ClusterIP - // +optional - Type corev1.ServiceType `json:"type,omitempty"` -} - -type RunnerStatus struct { - // Phase describes the current phase the space instance is in - // +optional - Phase RunnerStatusPhase `json:"phase,omitempty"` - - // Reason describes the reason in machine-readable form - // +optional - Reason string `json:"reason,omitempty"` - - // Message describes the reason in human-readable form - // +optional - Message string `json:"message,omitempty"` - - // Conditions holds several conditions the virtual cluster might be in - // +optional - Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` -} - -// RunnerStatusPhase describes the phase of a cluster -type RunnerStatusPhase string - -// These are the valid admin account types -const ( - RunnerStatusPhaseInitializing RunnerStatusPhase = "" - RunnerStatusPhaseInitialized RunnerStatusPhase = "Initialized" - RunnerStatusPhaseFailed RunnerStatusPhase = "Failed" -) - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// RunnerList contains a list of Runner -type RunnerList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Runner `json:"items"` -} - -func init() { - SchemeBuilder.Register(&Runner{}, &RunnerList{}) -} diff --git a/pkg/apis/storage/v1/user_types.go b/pkg/apis/storage/v1/user_types.go index 244ac0ef..b2e60634 100644 --- a/pkg/apis/storage/v1/user_types.go +++ b/pkg/apis/storage/v1/user_types.go @@ -99,6 +99,10 @@ type UserSpec struct { // Access holds the access rights for users and teams // +optional Access []Access `json:"access,omitempty"` + + // ExtraClaims are additional claims that have been added to the user by an admin. + // +optional + ExtraClaims map[string]string `json:"extraClaims,omitempty"` } // UserStatus holds the status of an user diff --git a/pkg/apis/storage/v1/virtualclusterinstance_types.go b/pkg/apis/storage/v1/virtualclusterinstance_types.go index ddcfe6b1..5687f402 100644 --- a/pkg/apis/storage/v1/virtualclusterinstance_types.go +++ b/pkg/apis/storage/v1/virtualclusterinstance_types.go @@ -19,6 +19,7 @@ const ( InstanceProjectsSecretsSynced agentstoragev1.ConditionType = "ProjectSecretsSynced" InstanceVirtualClusterAppsAndObjectsSynced agentstoragev1.ConditionType = "VirtualClusterAppsAndObjectsSynced" + InstanceVirtualClusterDBConnectorSynced agentstoragev1.ConditionType = "DBConnectorSynced" ) // +genclient @@ -317,6 +318,10 @@ type VirtualClusterHelmChart struct { // the version of the helm chart to use // +optional Version string `json:"version,omitempty"` + + // InsecureSkipTlsVerify skips the TLS verification for the helm chart + // +optional + InsecureSkipTlsVerify bool `json:"insecureSkipTlsVerify,omitempty"` } type PodSelector struct { diff --git a/pkg/apis/storage/v1/zz_generated.deepcopy.go b/pkg/apis/storage/v1/zz_generated.deepcopy.go index 7de9add4..5e1a7c02 100644 --- a/pkg/apis/storage/v1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1/zz_generated.deepcopy.go @@ -9,7 +9,9 @@ import ( storagev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + v1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -76,32 +78,6 @@ func (in *AccessKey) DeepCopyObject() runtime.Object { return nil } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AccessKeyIdentity) DeepCopyInto(out *AccessKeyIdentity) { - *out = *in - if in.Groups != nil { - in, out := &in.Groups, &out.Groups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ConnectorData != nil { - in, out := &in.ConnectorData, &out.ConnectorData - *out = make([]byte, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessKeyIdentity. -func (in *AccessKeyIdentity) DeepCopy() *AccessKeyIdentity { - if in == nil { - return nil - } - out := new(AccessKeyIdentity) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AccessKeyList) DeepCopyInto(out *AccessKeyList) { *out = *in @@ -389,7 +365,7 @@ func (in *AccessKeySpec) DeepCopyInto(out *AccessKeySpec) { } if in.Identity != nil { in, out := &in.Identity, &out.Identity - *out = new(AccessKeyIdentity) + *out = new(SSOIdentity) (*in).DeepCopyInto(*out) } if in.IdentityRefresh != nil { @@ -905,6 +881,33 @@ func (in *ArgoSSOSpec) DeepCopy() *ArgoSSOSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BCMNodeTypeSpec) DeepCopyInto(out *BCMNodeTypeSpec) { + *out = *in + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) + if in.Nodes != nil { + in, out := &in.Nodes, &out.Nodes + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.NodeGroups != nil { + in, out := &in.NodeGroups, &out.NodeGroups + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BCMNodeTypeSpec. +func (in *BCMNodeTypeSpec) DeepCopy() *BCMNodeTypeSpec { + if in == nil { + return nil + } + out := new(BCMNodeTypeSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Chart) DeepCopyInto(out *Chart) { *out = *in @@ -943,7 +946,7 @@ func (in *Cluster) DeepCopyInto(out *Cluster) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) return } @@ -1302,6 +1305,16 @@ func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.Metrics != nil { + in, out := &in.Metrics, &out.Metrics + *out = new(Metrics) + (*in).DeepCopyInto(*out) + } + if in.OpenCost != nil { + in, out := &in.OpenCost, &out.OpenCost + *out = new(OpenCost) + (*in).DeepCopyInto(*out) + } return } @@ -1318,6 +1331,13 @@ func (in *ClusterSpec) DeepCopy() *ClusterSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make(storagev1.Conditions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } @@ -1447,6 +1467,7 @@ func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status return } @@ -1468,6 +1489,27 @@ func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodEnvironmentTemplateDefinition) DeepCopyInto(out *DevPodEnvironmentTemplateDefinition) { + *out = *in + if in.Git != nil { + in, out := &in.Git, &out.Git + *out = new(GitEnvironmentTemplate) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateDefinition. +func (in *DevPodEnvironmentTemplateDefinition) DeepCopy() *DevPodEnvironmentTemplateDefinition { + if in == nil { + return nil + } + out := new(DevPodEnvironmentTemplateDefinition) + 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) { *out = *in @@ -1504,7 +1546,6 @@ 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) { *out = *in - out.Git = in.Git if in.Owner != nil { in, out := &in.Owner, &out.Owner *out = new(UserOrTeam) @@ -1517,10 +1558,17 @@ func (in *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemp (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(DevPodEnvironmentTemplateDefinition) + (*in).DeepCopyInto(*out) + } if in.Versions != nil { in, out := &in.Versions, &out.Versions *out = make([]DevPodEnvironmentTemplateVersion, len(*in)) - copy(*out, *in) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } @@ -1535,10 +1583,26 @@ func (in *DevPodEnvironmentTemplateSpec) DeepCopy() *DevPodEnvironmentTemplateSp 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) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateStatus. +func (in *DevPodEnvironmentTemplateStatus) DeepCopy() *DevPodEnvironmentTemplateStatus { + if in == nil { + return nil + } + out := new(DevPodEnvironmentTemplateStatus) + 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) { *out = *in - out.Git = in.Git + in.Template.DeepCopyInto(&out.Template) return } @@ -1560,11 +1624,6 @@ func (in *DevPodProjectSpec) DeepCopyInto(out *DevPodProjectSpec) { *out = new(GitProjectSpec) (*in).DeepCopyInto(*out) } - if in.SSH != nil { - in, out := &in.SSH, &out.SSH - *out = new(SSHProjectSpec) - (*in).DeepCopyInto(*out) - } return } @@ -1641,6 +1700,99 @@ func (in *DevPodProviderSource) DeepCopy() *DevPodProviderSource { 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) { + *out = *in + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]corev1.ContainerPort, len(*in)) + copy(*out, *in) + } + if in.EnvFrom != nil { + in, out := &in.EnvFrom, &out.EnvFrom + *out = make([]corev1.EnvFromSource, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Env != nil { + in, out := &in.Env, &out.Env + *out = make([]corev1.EnvVar, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + in.Resources.DeepCopyInto(&out.Resources) + if in.ResizePolicy != nil { + in, out := &in.ResizePolicy, &out.ResizePolicy + *out = make([]corev1.ContainerResizePolicy, len(*in)) + copy(*out, *in) + } + if in.RestartPolicy != nil { + in, out := &in.RestartPolicy, &out.RestartPolicy + *out = new(corev1.ContainerRestartPolicy) + **out = **in + } + if in.VolumeMounts != nil { + in, out := &in.VolumeMounts, &out.VolumeMounts + *out = make([]corev1.VolumeMount, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.VolumeDevices != nil { + in, out := &in.VolumeDevices, &out.VolumeDevices + *out = make([]corev1.VolumeDevice, len(*in)) + copy(*out, *in) + } + if in.LivenessProbe != nil { + in, out := &in.LivenessProbe, &out.LivenessProbe + *out = new(corev1.Probe) + (*in).DeepCopyInto(*out) + } + if in.ReadinessProbe != nil { + in, out := &in.ReadinessProbe, &out.ReadinessProbe + *out = new(corev1.Probe) + (*in).DeepCopyInto(*out) + } + if in.StartupProbe != nil { + in, out := &in.StartupProbe, &out.StartupProbe + *out = new(corev1.Probe) + (*in).DeepCopyInto(*out) + } + if in.Lifecycle != nil { + in, out := &in.Lifecycle, &out.Lifecycle + *out = new(corev1.Lifecycle) + (*in).DeepCopyInto(*out) + } + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(corev1.SecurityContext) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceContainer. +func (in *DevPodWorkspaceContainer) DeepCopy() *DevPodWorkspaceContainer { + if in == nil { + return nil + } + out := new(DevPodWorkspaceContainer) + 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) { *out = *in @@ -1669,6 +1821,67 @@ func (in *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceContainerResource) DeepCopyInto(out *DevPodWorkspaceInstanceContainerResource) { + *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 { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceContainerResource) + 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) { + *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 { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceEvent) + 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) { + *out = *in + in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) + if in.PodStatus != nil { + in, out := &in.PodStatus, &out.PodStatus + *out = new(DevPodWorkspaceInstancePodStatus) + (*in).DeepCopyInto(*out) + } + if in.PersistentVolumeClaimStatus != nil { + in, out := &in.PersistentVolumeClaimStatus, &out.PersistentVolumeClaimStatus + *out = new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceKubernetesStatus. +func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopy() *DevPodWorkspaceInstanceKubernetesStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceKubernetesStatus) + 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) { *out = *in @@ -1703,28 +1916,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 *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { +func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopyInto(out *DevPodWorkspaceInstancePersistentVolumeClaimStatus) { *out = *in - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(UserOrTeam) - **out = **in - } - if in.TemplateRef != nil { - in, out := &in.TemplateRef, &out.TemplateRef - *out = new(TemplateRef) - **out = **in + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(corev1.ResourceList, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } } - out.EnvironmentRef = in.EnvironmentRef - if in.Template != nil { - in, out := &in.Template, &out.Template - *out = new(DevPodWorkspaceTemplateDefinition) - (*in).DeepCopyInto(*out) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]corev1.PersistentVolumeClaimCondition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - out.RunnerRef = in.RunnerRef - if in.Access != nil { - in, out := &in.Access, &out.Access - *out = make([]Access, len(*in)) + if in.Events != nil { + in, out := &in.Events, &out.Events + *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -1732,128 +1942,188 @@ 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 DevPodWorkspaceInstancePersistentVolumeClaimStatus. +func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopy() *DevPodWorkspaceInstancePersistentVolumeClaimStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + out := new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) 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 *DevPodWorkspaceInstancePodStatus) DeepCopyInto(out *DevPodWorkspaceInstancePodStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make(storagev1.Conditions, len(*in)) + *out = make([]corev1.PodCondition, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Instance != nil { - in, out := &in.Instance, &out.Instance - *out = new(DevPodWorkspaceTemplateDefinition) - (*in).DeepCopyInto(*out) + if in.InitContainerStatuses != nil { + in, out := &in.InitContainerStatuses, &out.InitContainerStatuses + *out = make([]corev1.ContainerStatus, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - if in.ClusterRef != nil { - in, out := &in.ClusterRef, &out.ClusterRef - *out = new(ClusterRef) - **out = **in + if in.ContainerStatuses != nil { + in, out := &in.ContainerStatuses, &out.ContainerStatuses + *out = make([]corev1.ContainerStatus, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Events != nil { + in, out := &in.Events, &out.Events + *out = make([]DevPodWorkspaceInstanceEvent, 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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ContainerMetrics != nil { + in, out := &in.ContainerMetrics, &out.ContainerMetrics + *out = make([]v1beta1.ContainerMetrics, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } 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 DevPodWorkspaceInstancePodStatus. +func (in *DevPodWorkspaceInstancePodStatus) DeepCopy() *DevPodWorkspaceInstancePodStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStatus) + out := new(DevPodWorkspaceInstancePodStatus) 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 *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { *out = *in - in.TemplateMetadata.DeepCopyInto(&out.TemplateMetadata) - return -} + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = new(UserOrTeam) + **out = **in + } + if in.PresetRef != nil { + in, out := &in.PresetRef, &out.PresetRef + *out = new(PresetRef) + **out = **in + } + if in.TemplateRef != nil { + in, out := &in.TemplateRef, &out.TemplateRef + *out = new(TemplateRef) + **out = **in + } + if in.EnvironmentRef != nil { + in, out := &in.EnvironmentRef, &out.EnvironmentRef + *out = new(EnvironmentRef) + **out = **in + } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(DevPodWorkspaceTemplateDefinition) + (*in).DeepCopyInto(*out) + } + in.Target.DeepCopyInto(&out.Target) + out.RunnerRef = in.RunnerRef + if in.Access != nil { + in, out := &in.Access, &out.Access + *out = make([]Access, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + 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 DevPodWorkspaceInstanceSpec. +func (in *DevPodWorkspaceInstanceSpec) DeepCopy() *DevPodWorkspaceInstanceSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTemplateDefinition) + out := new(DevPodWorkspaceInstanceSpec) 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 *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { *out = *in - if in.Options != nil { - in, out := &in.Options, &out.Options - *out = make(map[string]DevPodProviderOption, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() + in.ResolvedTarget.DeepCopyInto(&out.ResolvedTarget) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make(storagev1.Conditions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make(map[string]DevPodProviderOption, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() - } + if in.Instance != nil { + in, out := &in.Instance, &out.Instance + *out = new(DevPodWorkspaceTemplateDefinition) + (*in).DeepCopyInto(*out) + } + if in.Kubernetes != nil { + in, out := &in.Kubernetes, &out.Kubernetes + *out = new(DevPodWorkspaceInstanceKubernetesStatus) + (*in).DeepCopyInto(*out) } 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 DevPodWorkspaceInstanceStatus. +func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { if in == nil { return nil } - out := new(DevPodWorkspaceProvider) + out := new(DevPodWorkspaceInstanceStatus) 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 *DevPodWorkspaceInstanceTemplateDefinition) DeepCopyInto(out *DevPodWorkspaceInstanceTemplateDefinition) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.TemplateMetadata.DeepCopyInto(&out.TemplateMetadata) 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 DevPodWorkspaceInstanceTemplateDefinition. +func (in *DevPodWorkspaceInstanceTemplateDefinition) DeepCopy() *DevPodWorkspaceInstanceTemplateDefinition { if in == nil { return nil } - out := new(DevPodWorkspaceTemplate) + out := new(DevPodWorkspaceInstanceTemplateDefinition) 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 { - 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 *DevPodWorkspaceTemplateDefinition) DeepCopyInto(out *DevPodWorkspaceTemplateDefinition) { +func (in *DevPodWorkspaceKubernetesSpec) DeepCopyInto(out *DevPodWorkspaceKubernetesSpec) { *out = *in - in.Provider.DeepCopyInto(&out.Provider) + if in.Pod != nil { + in, out := &in.Pod, &out.Pod + *out = new(DevPodWorkspacePodTemplate) + (*in).DeepCopyInto(*out) + } + if in.VolumeClaim != nil { + in, out := &in.VolumeClaim, &out.VolumeClaim + *out = new(DevPodWorkspaceVolumeClaimTemplate) + (*in).DeepCopyInto(*out) + } if in.SpaceTemplateRef != nil { in, out := &in.SpaceTemplateRef, &out.SpaceTemplateRef *out = new(TemplateRef) @@ -1874,407 +2144,1436 @@ func (in *DevPodWorkspaceTemplateDefinition) DeepCopyInto(out *DevPodWorkspaceTe *out = new(VirtualClusterTemplateDefinition) (*in).DeepCopyInto(*out) } - if in.WorkspaceEnv != nil { - in, out := &in.WorkspaceEnv, &out.WorkspaceEnv - *out = make(map[string]DevPodProviderOption, len(*in)) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceKubernetesSpec. +func (in *DevPodWorkspaceKubernetesSpec) DeepCopy() *DevPodWorkspaceKubernetesSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceKubernetesSpec) + 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) { + *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 { + if in == nil { + return nil + } + out := new(DevPodWorkspacePodTemplate) + 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) { + *out = *in + if in.Volumes != nil { + in, out := &in.Volumes, &out.Volumes + *out = make([]corev1.Volume, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.InitContainers != nil { + in, out := &in.InitContainers, &out.InitContainers + *out = make([]DevPodWorkspaceContainer, 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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.TerminationGracePeriodSeconds != nil { + in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds + *out = new(int64) + **out = **in + } + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } + if in.NodeSelector != nil { + in, out := &in.NodeSelector, &out.NodeSelector + *out = make(map[string]string, len(*in)) for key, val := range *in { - (*out)[key] = *val.DeepCopy() + (*out)[key] = val } } - if in.InitEnv != nil { - in, out := &in.InitEnv, &out.InitEnv - *out = make(map[string]DevPodProviderOption, len(*in)) + if in.AutomountServiceAccountToken != nil { + in, out := &in.AutomountServiceAccountToken, &out.AutomountServiceAccountToken + *out = new(bool) + **out = **in + } + if in.ShareProcessNamespace != nil { + in, out := &in.ShareProcessNamespace, &out.ShareProcessNamespace + *out = new(bool) + **out = **in + } + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(corev1.PodSecurityContext) + (*in).DeepCopyInto(*out) + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]corev1.LocalObjectReference, len(*in)) + copy(*out, *in) + } + if in.Affinity != nil { + in, out := &in.Affinity, &out.Affinity + *out = new(corev1.Affinity) + (*in).DeepCopyInto(*out) + } + if in.Tolerations != nil { + in, out := &in.Tolerations, &out.Tolerations + *out = make([]corev1.Toleration, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.HostAliases != nil { + in, out := &in.HostAliases, &out.HostAliases + *out = make([]corev1.HostAlias, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Priority != nil { + in, out := &in.Priority, &out.Priority + *out = new(int32) + **out = **in + } + if in.DNSConfig != nil { + in, out := &in.DNSConfig, &out.DNSConfig + *out = new(corev1.PodDNSConfig) + (*in).DeepCopyInto(*out) + } + if in.ReadinessGates != nil { + in, out := &in.ReadinessGates, &out.ReadinessGates + *out = make([]corev1.PodReadinessGate, len(*in)) + copy(*out, *in) + } + if in.RuntimeClassName != nil { + in, out := &in.RuntimeClassName, &out.RuntimeClassName + *out = new(string) + **out = **in + } + if in.EnableServiceLinks != nil { + in, out := &in.EnableServiceLinks, &out.EnableServiceLinks + *out = new(bool) + **out = **in + } + if in.PreemptionPolicy != nil { + in, out := &in.PreemptionPolicy, &out.PreemptionPolicy + *out = new(corev1.PreemptionPolicy) + **out = **in + } + if in.Overhead != nil { + in, out := &in.Overhead, &out.Overhead + *out = make(corev1.ResourceList, len(*in)) for key, val := range *in { - (*out)[key] = *val.DeepCopy() + (*out)[key] = val.DeepCopy() } } - in.InstanceTemplate.DeepCopyInto(&out.InstanceTemplate) - if in.CredentialForwarding != nil { - in, out := &in.CredentialForwarding, &out.CredentialForwarding - *out = new(CredentialForwarding) + if in.TopologySpreadConstraints != nil { + in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints + *out = make([]corev1.TopologySpreadConstraint, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.SetHostnameAsFQDN != nil { + in, out := &in.SetHostnameAsFQDN, &out.SetHostnameAsFQDN + *out = new(bool) + **out = **in + } + if in.OS != nil { + in, out := &in.OS, &out.OS + *out = new(corev1.PodOS) + **out = **in + } + if in.HostUsers != nil { + in, out := &in.HostUsers, &out.HostUsers + *out = new(bool) + **out = **in + } + if in.SchedulingGates != nil { + in, out := &in.SchedulingGates, &out.SchedulingGates + *out = make([]corev1.PodSchedulingGate, len(*in)) + copy(*out, *in) + } + if in.ResourceClaims != nil { + in, out := &in.ResourceClaims, &out.ResourceClaims + *out = make([]corev1.PodResourceClaim, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = new(DevPodWorkspaceResourceRequirements) (*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 DevPodWorkspacePodTemplateSpec. +func (in *DevPodWorkspacePodTemplateSpec) DeepCopy() *DevPodWorkspacePodTemplateSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspacePodTemplateSpec) + 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) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePreset. +func (in *DevPodWorkspacePreset) DeepCopy() *DevPodWorkspacePreset { + if in == nil { + return nil + } + out := new(DevPodWorkspacePreset) + 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 { + 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 *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList) { + *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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetList. +func (in *DevPodWorkspacePresetList) DeepCopy() *DevPodWorkspacePresetList { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetList) + 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 { + 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 *DevPodWorkspacePresetSource) DeepCopyInto(out *DevPodWorkspacePresetSource) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSource. +func (in *DevPodWorkspacePresetSource) DeepCopy() *DevPodWorkspacePresetSource { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetSource) + 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) { + *out = *in + if in.Source != nil { + in, out := &in.Source, &out.Source + *out = new(DevPodWorkspacePresetSource) + **out = **in + } + if in.InfrastructureRef != nil { + in, out := &in.InfrastructureRef, &out.InfrastructureRef + *out = new(TemplateRef) + **out = **in + } + if in.EnvironmentRef != nil { + in, out := &in.EnvironmentRef, &out.EnvironmentRef + *out = new(EnvironmentRef) + **out = **in + } + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = new(UserOrTeam) + **out = **in + } + if in.Access != nil { + in, out := &in.Access, &out.Access + *out = make([]Access, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = make([]DevPodWorkspacePresetVersion, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSpec. +func (in *DevPodWorkspacePresetSpec) DeepCopy() *DevPodWorkspacePresetSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetSpec) + 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) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetStatus. +func (in *DevPodWorkspacePresetStatus) DeepCopy() *DevPodWorkspacePresetStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetStatus) + 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) { + *out = *in + if in.Source != nil { + in, out := &in.Source, &out.Source + *out = new(DevPodWorkspacePresetSource) + **out = **in + } + if in.InfrastructureRef != nil { + in, out := &in.InfrastructureRef, &out.InfrastructureRef + *out = new(TemplateRef) + **out = **in + } + if in.EnvironmentRef != nil { + in, out := &in.EnvironmentRef, &out.EnvironmentRef + *out = new(EnvironmentRef) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetVersion. +func (in *DevPodWorkspacePresetVersion) DeepCopy() *DevPodWorkspacePresetVersion { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetVersion) + 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) { + *out = *in + if in.Options != nil { + in, out := &in.Options, &out.Options + *out = make(map[string]DevPodProviderOption, 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)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceProvider. +func (in *DevPodWorkspaceProvider) DeepCopy() *DevPodWorkspaceProvider { + if in == nil { + return nil + } + out := new(DevPodWorkspaceProvider) + 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) { + *out = *in + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make(map[corev1.ResourceName]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.Requests != nil { + in, out := &in.Requests, &out.Requests + *out = make(map[corev1.ResourceName]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.Claims != nil { + in, out := &in.Claims, &out.Claims + *out = make([]corev1.ResourceClaim, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceResourceRequirements. +func (in *DevPodWorkspaceResourceRequirements) DeepCopy() *DevPodWorkspaceResourceRequirements { + if in == nil { + return nil + } + out := new(DevPodWorkspaceResourceRequirements) + 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) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplate. +func (in *DevPodWorkspaceTemplate) DeepCopy() *DevPodWorkspaceTemplate { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplate) + 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 { + 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 *DevPodWorkspaceTemplateDefinition) DeepCopyInto(out *DevPodWorkspaceTemplateDefinition) { + *out = *in + if in.Kubernetes != nil { + in, out := &in.Kubernetes, &out.Kubernetes + *out = new(DevPodWorkspaceKubernetesSpec) + (*in).DeepCopyInto(*out) + } + if in.WorkspaceEnv != nil { + in, out := &in.WorkspaceEnv, &out.WorkspaceEnv + *out = make(map[string]DevPodProviderOption, len(*in)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() + } + } + in.InstanceTemplate.DeepCopyInto(&out.InstanceTemplate) + if in.CredentialForwarding != nil { + in, out := &in.CredentialForwarding, &out.CredentialForwarding + *out = new(CredentialForwarding) + (*in).DeepCopyInto(*out) + } + if in.Provider != nil { + in, out := &in.Provider, &out.Provider + *out = new(DevPodWorkspaceProvider) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateDefinition. +func (in *DevPodWorkspaceTemplateDefinition) DeepCopy() *DevPodWorkspaceTemplateDefinition { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplateDefinition) + 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) { + *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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateList. +func (in *DevPodWorkspaceTemplateList) DeepCopy() *DevPodWorkspaceTemplateList { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplateList) + 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 { + 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 *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplateSpec) { + *out = *in + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = new(UserOrTeam) + **out = **in + } + if in.Parameters != nil { + in, out := &in.Parameters, &out.Parameters + *out = make([]AppParameter, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + in.Template.DeepCopyInto(&out.Template) + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = make([]DevPodWorkspaceTemplateVersion, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Access != nil { + in, out := &in.Access, &out.Access + *out = make([]Access, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateSpec. +func (in *DevPodWorkspaceTemplateSpec) DeepCopy() *DevPodWorkspaceTemplateSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplateSpec) + 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) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateStatus. +func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplateStatus) + 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) { + *out = *in + in.Template.DeepCopyInto(&out.Template) + if in.Parameters != nil { + in, out := &in.Parameters, &out.Parameters + *out = make([]AppParameter, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateVersion. +func (in *DevPodWorkspaceTemplateVersion) DeepCopy() *DevPodWorkspaceTemplateVersion { + if in == nil { + return nil + } + out := new(DevPodWorkspaceTemplateVersion) + 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) { + *out = *in + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]corev1.PersistentVolumeAccessMode, len(*in)) + copy(*out, *in) + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(metav1.LabelSelector) + (*in).DeepCopyInto(*out) + } + in.Resources.DeepCopyInto(&out.Resources) + if in.StorageClassName != nil { + in, out := &in.StorageClassName, &out.StorageClassName + *out = new(string) + **out = **in + } + if in.VolumeMode != nil { + in, out := &in.VolumeMode, &out.VolumeMode + *out = new(corev1.PersistentVolumeMode) + **out = **in + } + if in.DataSource != nil { + in, out := &in.DataSource, &out.DataSource + *out = new(corev1.TypedLocalObjectReference) + (*in).DeepCopyInto(*out) + } + if in.DataSourceRef != nil { + in, out := &in.DataSourceRef, &out.DataSourceRef + *out = new(corev1.TypedObjectReference) + (*in).DeepCopyInto(*out) + } + if in.VolumeAttributesClassName != nil { + in, out := &in.VolumeAttributesClassName, &out.VolumeAttributesClassName + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceVolumeClaimSpec. +func (in *DevPodWorkspaceVolumeClaimSpec) DeepCopy() *DevPodWorkspaceVolumeClaimSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceVolumeClaimSpec) + 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) { + *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 { + if in == nil { + return nil + } + out := new(DevPodWorkspaceVolumeClaimTemplate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DockerCredentialForwarding) DeepCopyInto(out *DockerCredentialForwarding) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerCredentialForwarding. +func (in *DockerCredentialForwarding) DeepCopy() *DockerCredentialForwarding { + if in == nil { + return nil + } + out := new(DockerCredentialForwarding) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EntityInfo) DeepCopyInto(out *EntityInfo) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EntityInfo. +func (in *EntityInfo) DeepCopy() *EntityInfo { + if in == nil { + return nil + } + out := new(EntityInfo) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentRef) DeepCopyInto(out *EnvironmentRef) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentRef. +func (in *EnvironmentRef) DeepCopy() *EnvironmentRef { + if in == nil { + return nil + } + out := new(EnvironmentRef) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GitCredentialForwarding) DeepCopyInto(out *GitCredentialForwarding) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCredentialForwarding. +func (in *GitCredentialForwarding) DeepCopy() *GitCredentialForwarding { + if in == nil { + return nil + } + out := new(GitCredentialForwarding) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GitEnvironmentTemplate) DeepCopyInto(out *GitEnvironmentTemplate) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitEnvironmentTemplate. +func (in *GitEnvironmentTemplate) DeepCopy() *GitEnvironmentTemplate { + if in == nil { + return nil + } + out := new(GitEnvironmentTemplate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GitProjectCredentials) DeepCopyInto(out *GitProjectCredentials) { + *out = *in + if in.TokenProjectSecretRef != nil { + in, out := &in.TokenProjectSecretRef, &out.TokenProjectSecretRef + *out = new(corev1.SecretKeySelector) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitProjectCredentials. +func (in *GitProjectCredentials) DeepCopy() *GitProjectCredentials { + if in == nil { + return nil + } + out := new(GitProjectCredentials) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GitProjectSpec) DeepCopyInto(out *GitProjectSpec) { + *out = *in + if in.HTTP != nil { + in, out := &in.HTTP, &out.HTTP + *out = new(GitProjectCredentials) + (*in).DeepCopyInto(*out) + } + if in.SSH != nil { + in, out := &in.SSH, &out.SSH + *out = new(GitProjectCredentials) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitProjectSpec. +func (in *GitProjectSpec) DeepCopy() *GitProjectSpec { + if in == nil { + return nil + } + out := new(GitProjectSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GroupResources) DeepCopyInto(out *GroupResources) { + *out = *in + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ResourceNames != nil { + in, out := &in.ResourceNames, &out.ResourceNames + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources. +func (in *GroupResources) DeepCopy() *GroupResources { + if in == nil { + return nil + } + out := new(GroupResources) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HelmChart) DeepCopyInto(out *HelmChart) { + *out = *in + in.Metadata.DeepCopyInto(&out.Metadata) + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = make([]string, len(*in)) + copy(*out, *in) + } + out.Repository = in.Repository + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChart. +func (in *HelmChart) DeepCopy() *HelmChart { + if in == nil { + return nil + } + out := new(HelmChart) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HelmChartRepository) DeepCopyInto(out *HelmChartRepository) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChartRepository. +func (in *HelmChartRepository) DeepCopy() *HelmChartRepository { + if in == nil { + return nil + } + out := new(HelmChartRepository) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HelmConfiguration) DeepCopyInto(out *HelmConfiguration) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmConfiguration. +func (in *HelmConfiguration) DeepCopy() *HelmConfiguration { + if in == nil { + return nil + } + out := new(HelmConfiguration) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HelmTask) DeepCopyInto(out *HelmTask) { + *out = *in + in.Release.DeepCopyInto(&out.Release) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmTask. +func (in *HelmTask) DeepCopy() *HelmTask { + if in == nil { + return nil + } + out := new(HelmTask) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HelmTaskRelease) DeepCopyInto(out *HelmTaskRelease) { + *out = *in + in.Config.DeepCopyInto(&out.Config) + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmTaskRelease. +func (in *HelmTaskRelease) DeepCopy() *HelmTaskRelease { + if in == nil { + return nil + } + out := new(HelmTaskRelease) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ImportVirtualClustersSpec) DeepCopyInto(out *ImportVirtualClustersSpec) { + *out = *in + if in.RoleMapping != nil { + in, out := &in.RoleMapping, &out.RoleMapping + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImportVirtualClustersSpec. +func (in *ImportVirtualClustersSpec) DeepCopy() *ImportVirtualClustersSpec { + if in == nil { + return nil + } + out := new(ImportVirtualClustersSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *InstanceAccess) DeepCopyInto(out *InstanceAccess) { + *out = *in + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]InstanceAccessRule, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceAccess. +func (in *InstanceAccess) DeepCopy() *InstanceAccess { + if in == nil { + return nil + } + out := new(InstanceAccess) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *InstanceAccessRule) DeepCopyInto(out *InstanceAccessRule) { + *out = *in + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceAccessRule. +func (in *InstanceAccessRule) DeepCopy() *InstanceAccessRule { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateDefinition) + out := new(InstanceAccessRule) 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 *InstanceDeployedAppStatus) DeepCopyInto(out *InstanceDeployedAppStatus) { *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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } 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 InstanceDeployedAppStatus. +func (in *InstanceDeployedAppStatus) DeepCopy() *InstanceDeployedAppStatus { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateList) + out := new(InstanceDeployedAppStatus) 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 { - 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 *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplateSpec) { +func (in *KindSecretRef) DeepCopyInto(out *KindSecretRef) { *out = *in - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(UserOrTeam) - **out = **in - } - if in.Parameters != nil { - in, out := &in.Parameters, &out.Parameters - *out = make([]AppParameter, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - in.Template.DeepCopyInto(&out.Template) - if in.Versions != nil { - in, out := &in.Versions, &out.Versions - *out = make([]DevPodWorkspaceTemplateVersion, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Access != nil { - in, out := &in.Access, &out.Access - *out = make([]Access, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } 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 KindSecretRef. +func (in *KindSecretRef) DeepCopy() *KindSecretRef { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateSpec) + out := new(KindSecretRef) 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 *LocalClusterAccessSpec) DeepCopyInto(out *LocalClusterAccessSpec) { *out = *in + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = make([]UserOrTeam, len(*in)) + copy(*out, *in) + } + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ClusterRoles != nil { + in, out := &in.ClusterRoles, &out.ClusterRoles + *out = make([]ClusterRoleRef, len(*in)) + copy(*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 LocalClusterAccessSpec. +func (in *LocalClusterAccessSpec) DeepCopy() *LocalClusterAccessSpec { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateStatus) + out := new(LocalClusterAccessSpec) 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 *LocalClusterAccessTemplate) DeepCopyInto(out *LocalClusterAccessTemplate) { *out = *in - in.Template.DeepCopyInto(&out.Template) - if in.Parameters != nil { - in, out := &in.Parameters, &out.Parameters - *out = make([]AppParameter, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.Metadata.DeepCopyInto(&out.Metadata) + in.LocalClusterAccessSpec.DeepCopyInto(&out.LocalClusterAccessSpec) 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 LocalClusterAccessTemplate. +func (in *LocalClusterAccessTemplate) DeepCopy() *LocalClusterAccessTemplate { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateVersion) + out := new(LocalClusterAccessTemplate) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DockerCredentialForwarding) DeepCopyInto(out *DockerCredentialForwarding) { +func (in *LocalClusterRoleTemplate) DeepCopyInto(out *LocalClusterRoleTemplate) { *out = *in + in.Metadata.DeepCopyInto(&out.Metadata) + in.LocalClusterRoleTemplateSpec.DeepCopyInto(&out.LocalClusterRoleTemplateSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerCredentialForwarding. -func (in *DockerCredentialForwarding) DeepCopy() *DockerCredentialForwarding { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalClusterRoleTemplate. +func (in *LocalClusterRoleTemplate) DeepCopy() *LocalClusterRoleTemplate { if in == nil { return nil } - out := new(DockerCredentialForwarding) + out := new(LocalClusterRoleTemplate) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EntityInfo) DeepCopyInto(out *EntityInfo) { +func (in *LocalClusterRoleTemplateSpec) DeepCopyInto(out *LocalClusterRoleTemplateSpec) { *out = *in + in.ClusterRoleTemplate.DeepCopyInto(&out.ClusterRoleTemplate) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EntityInfo. -func (in *EntityInfo) DeepCopy() *EntityInfo { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalClusterRoleTemplateSpec. +func (in *LocalClusterRoleTemplateSpec) DeepCopy() *LocalClusterRoleTemplateSpec { if in == nil { return nil } - out := new(EntityInfo) + out := new(LocalClusterRoleTemplateSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentRef) DeepCopyInto(out *EnvironmentRef) { +func (in *Member) DeepCopyInto(out *Member) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentRef. -func (in *EnvironmentRef) DeepCopy() *EnvironmentRef { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Member. +func (in *Member) DeepCopy() *Member { if in == nil { return nil } - out := new(EnvironmentRef) + out := new(Member) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GitCredentialForwarding) DeepCopyInto(out *GitCredentialForwarding) { +func (in *Metrics) DeepCopyInto(out *Metrics) { *out = *in + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = new(corev1.ResourceRequirements) + (*in).DeepCopyInto(*out) + } + in.Storage.DeepCopyInto(&out.Storage) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCredentialForwarding. -func (in *GitCredentialForwarding) DeepCopy() *GitCredentialForwarding { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metrics. +func (in *Metrics) DeepCopy() *Metrics { if in == nil { return nil } - out := new(GitCredentialForwarding) + out := new(Metrics) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GitEnvironmentTemplate) DeepCopyInto(out *GitEnvironmentTemplate) { +func (in *NamespacePattern) DeepCopyInto(out *NamespacePattern) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitEnvironmentTemplate. -func (in *GitEnvironmentTemplate) DeepCopy() *GitEnvironmentTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacePattern. +func (in *NamespacePattern) DeepCopy() *NamespacePattern { if in == nil { return nil } - out := new(GitEnvironmentTemplate) + out := new(NamespacePattern) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GitProjectSpec) DeepCopyInto(out *GitProjectSpec) { +func (in *NamespacedRef) DeepCopyInto(out *NamespacedRef) { *out = *in - if in.TokenProjectSecretRef != nil { - in, out := &in.TokenProjectSecretRef, &out.TokenProjectSecretRef - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitProjectSpec. -func (in *GitProjectSpec) DeepCopy() *GitProjectSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedRef. +func (in *NamespacedRef) DeepCopy() *NamespacedRef { if in == nil { return nil } - out := new(GitProjectSpec) + out := new(NamespacedRef) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GroupResources) DeepCopyInto(out *GroupResources) { +func (in *NetworkPeer) DeepCopyInto(out *NetworkPeer) { *out = *in - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames - *out = make([]string, len(*in)) - copy(*out, *in) - } + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources. -func (in *GroupResources) DeepCopy() *GroupResources { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPeer. +func (in *NetworkPeer) DeepCopy() *NetworkPeer { if in == nil { return nil } - out := new(GroupResources) + out := new(NetworkPeer) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NetworkPeer) 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 *HelmChart) DeepCopyInto(out *HelmChart) { +func (in *NetworkPeerList) DeepCopyInto(out *NetworkPeerList) { *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - if in.Versions != nil { - in, out := &in.Versions, &out.Versions - *out = make([]string, len(*in)) - copy(*out, *in) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]NetworkPeer, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - out.Repository = in.Repository return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChart. -func (in *HelmChart) DeepCopy() *HelmChart { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPeerList. +func (in *NetworkPeerList) DeepCopy() *NetworkPeerList { if in == nil { return nil } - out := new(HelmChart) + out := new(NetworkPeerList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NetworkPeerList) 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 *HelmChartRepository) DeepCopyInto(out *HelmChartRepository) { +func (in *NetworkPeerSpec) DeepCopyInto(out *NetworkPeerSpec) { *out = *in + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.AllowedIPs != nil { + in, out := &in.AllowedIPs, &out.AllowedIPs + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Endpoints != nil { + in, out := &in.Endpoints, &out.Endpoints + *out = make([]string, len(*in)) + copy(*out, *in) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChartRepository. -func (in *HelmChartRepository) DeepCopy() *HelmChartRepository { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPeerSpec. +func (in *NetworkPeerSpec) DeepCopy() *NetworkPeerSpec { if in == nil { return nil } - out := new(HelmChartRepository) + out := new(NetworkPeerSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HelmConfiguration) DeepCopyInto(out *HelmConfiguration) { +func (in *NetworkPeerStatus) DeepCopyInto(out *NetworkPeerStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmConfiguration. -func (in *HelmConfiguration) DeepCopy() *HelmConfiguration { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPeerStatus. +func (in *NetworkPeerStatus) DeepCopy() *NetworkPeerStatus { if in == nil { return nil } - out := new(HelmConfiguration) + out := new(NetworkPeerStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HelmTask) DeepCopyInto(out *HelmTask) { +func (in *NodeClaim) DeepCopyInto(out *NodeClaim) { *out = *in - in.Release.DeepCopyInto(&out.Release) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmTask. -func (in *HelmTask) DeepCopy() *HelmTask { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaim. +func (in *NodeClaim) DeepCopy() *NodeClaim { if in == nil { return nil } - out := new(HelmTask) + out := new(NodeClaim) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeClaim) 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 *HelmTaskRelease) DeepCopyInto(out *HelmTaskRelease) { +func (in *NodeClaimList) DeepCopyInto(out *NodeClaimList) { *out = *in - in.Config.DeepCopyInto(&out.Config) - if in.Labels != nil { - in, out := &in.Labels, &out.Labels - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]NodeClaim, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmTaskRelease. -func (in *HelmTaskRelease) DeepCopy() *HelmTaskRelease { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimList. +func (in *NodeClaimList) DeepCopy() *NodeClaimList { if in == nil { return nil } - out := new(HelmTaskRelease) + out := new(NodeClaimList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeClaimList) 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 *ImportVirtualClustersSpec) DeepCopyInto(out *ImportVirtualClustersSpec) { +func (in *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { *out = *in - if in.RoleMapping != nil { - in, out := &in.RoleMapping, &out.RoleMapping + if in.Taints != nil { + in, out := &in.Taints, &out.Taints + *out = make([]corev1.Taint, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.StartupTaints != nil { + in, out := &in.StartupTaints, &out.StartupTaints + *out = make([]corev1.Taint, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.KubeletArgs != nil { + in, out := &in.KubeletArgs, &out.KubeletArgs *out = make(map[string]string, len(*in)) for key, val := range *in { (*out)[key] = val } } + if in.DesiredCapacity != nil { + in, out := &in.DesiredCapacity, &out.DesiredCapacity + *out = make(corev1.ResourceList, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } + if in.Requirements != nil { + in, out := &in.Requirements, &out.Requirements + *out = make([]corev1.NodeSelectorRequirement, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImportVirtualClustersSpec. -func (in *ImportVirtualClustersSpec) DeepCopy() *ImportVirtualClustersSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimSpec. +func (in *NodeClaimSpec) DeepCopy() *NodeClaimSpec { if in == nil { return nil } - out := new(ImportVirtualClustersSpec) + out := new(NodeClaimSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InstanceAccess) DeepCopyInto(out *InstanceAccess) { +func (in *NodeClaimStatus) DeepCopyInto(out *NodeClaimStatus) { *out = *in - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]InstanceAccessRule, len(*in)) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make(storagev1.Conditions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2282,212 +3581,267 @@ func (in *InstanceAccess) DeepCopyInto(out *InstanceAccess) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceAccess. -func (in *InstanceAccess) DeepCopy() *InstanceAccess { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimStatus. +func (in *NodeClaimStatus) DeepCopy() *NodeClaimStatus { if in == nil { return nil } - out := new(InstanceAccess) + out := new(NodeClaimStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InstanceAccessRule) DeepCopyInto(out *InstanceAccessRule) { +func (in *NodeProvider) DeepCopyInto(out *NodeProvider) { *out = *in - if in.Users != nil { - in, out := &in.Users, &out.Users - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]string, len(*in)) - copy(*out, *in) - } + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceAccessRule. -func (in *InstanceAccessRule) DeepCopy() *InstanceAccessRule { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProvider. +func (in *NodeProvider) DeepCopy() *NodeProvider { if in == nil { return nil } - out := new(InstanceAccessRule) + out := new(NodeProvider) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeProvider) 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 *InstanceDeployedAppStatus) DeepCopyInto(out *InstanceDeployedAppStatus) { +func (in *NodeProviderBCM) DeepCopyInto(out *NodeProviderBCM) { *out = *in + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(NamespacedRef) + **out = **in + } + if in.NodeTypes != nil { + in, out := &in.NodeTypes, &out.NodeTypes + *out = make([]BCMNodeTypeSpec, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceDeployedAppStatus. -func (in *InstanceDeployedAppStatus) DeepCopy() *InstanceDeployedAppStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderBCM. +func (in *NodeProviderBCM) DeepCopy() *NodeProviderBCM { if in == nil { return nil } - out := new(InstanceDeployedAppStatus) + out := new(NodeProviderBCM) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KindSecretRef) DeepCopyInto(out *KindSecretRef) { +func (in *NodeProviderKubeVirt) DeepCopyInto(out *NodeProviderKubeVirt) { *out = *in + if in.VirtualClusterRef != nil { + in, out := &in.VirtualClusterRef, &out.VirtualClusterRef + *out = new(VirtualClusterClusterRef) + **out = **in + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KindSecretRef. -func (in *KindSecretRef) DeepCopy() *KindSecretRef { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderKubeVirt. +func (in *NodeProviderKubeVirt) DeepCopy() *NodeProviderKubeVirt { if in == nil { return nil } - out := new(KindSecretRef) + out := new(NodeProviderKubeVirt) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LocalClusterAccessSpec) DeepCopyInto(out *LocalClusterAccessSpec) { +func (in *NodeProviderList) DeepCopyInto(out *NodeProviderList) { *out = *in - if in.Users != nil { - in, out := &in.Users, &out.Users - *out = make([]UserOrTeam, len(*in)) - copy(*out, *in) - } - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ClusterRoles != nil { - in, out := &in.ClusterRoles, &out.ClusterRoles - *out = make([]ClusterRoleRef, len(*in)) - copy(*out, *in) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]NodeProvider, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalClusterAccessSpec. -func (in *LocalClusterAccessSpec) DeepCopy() *LocalClusterAccessSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderList. +func (in *NodeProviderList) DeepCopy() *NodeProviderList { if in == nil { return nil } - out := new(LocalClusterAccessSpec) + out := new(NodeProviderList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeProviderList) 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 *LocalClusterAccessTemplate) DeepCopyInto(out *LocalClusterAccessTemplate) { +func (in *NodeProviderPods) DeepCopyInto(out *NodeProviderPods) { *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.LocalClusterAccessSpec.DeepCopyInto(&out.LocalClusterAccessSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalClusterAccessTemplate. -func (in *LocalClusterAccessTemplate) DeepCopy() *LocalClusterAccessTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderPods. +func (in *NodeProviderPods) DeepCopy() *NodeProviderPods { if in == nil { return nil } - out := new(LocalClusterAccessTemplate) + out := new(NodeProviderPods) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LocalClusterRoleTemplate) DeepCopyInto(out *LocalClusterRoleTemplate) { +func (in *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.LocalClusterRoleTemplateSpec.DeepCopyInto(&out.LocalClusterRoleTemplateSpec) + if in.Pods != nil { + in, out := &in.Pods, &out.Pods + *out = new(NodeProviderPods) + **out = **in + } + if in.BCM != nil { + in, out := &in.BCM, &out.BCM + *out = new(NodeProviderBCM) + (*in).DeepCopyInto(*out) + } + if in.KubeVirt != nil { + in, out := &in.KubeVirt, &out.KubeVirt + *out = new(NodeProviderKubeVirt) + (*in).DeepCopyInto(*out) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalClusterRoleTemplate. -func (in *LocalClusterRoleTemplate) DeepCopy() *LocalClusterRoleTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderSpec. +func (in *NodeProviderSpec) DeepCopy() *NodeProviderSpec { if in == nil { return nil } - out := new(LocalClusterRoleTemplate) + out := new(NodeProviderSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LocalClusterRoleTemplateSpec) DeepCopyInto(out *LocalClusterRoleTemplateSpec) { +func (in *NodeProviderStatus) DeepCopyInto(out *NodeProviderStatus) { *out = *in - in.ClusterRoleTemplate.DeepCopyInto(&out.ClusterRoleTemplate) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make(storagev1.Conditions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalClusterRoleTemplateSpec. -func (in *LocalClusterRoleTemplateSpec) DeepCopy() *LocalClusterRoleTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderStatus. +func (in *NodeProviderStatus) DeepCopy() *NodeProviderStatus { if in == nil { return nil } - out := new(LocalClusterRoleTemplateSpec) + out := new(NodeProviderStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Member) DeepCopyInto(out *Member) { +func (in *NodeType) DeepCopyInto(out *NodeType) { *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Member. -func (in *Member) DeepCopy() *Member { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeType. +func (in *NodeType) DeepCopy() *NodeType { if in == nil { return nil } - out := new(Member) + out := new(NodeType) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeType) 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 *NamespacePattern) DeepCopyInto(out *NamespacePattern) { +func (in *NodeTypeCapacity) DeepCopyInto(out *NodeTypeCapacity) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacePattern. -func (in *NamespacePattern) DeepCopy() *NamespacePattern { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeCapacity. +func (in *NodeTypeCapacity) DeepCopy() *NodeTypeCapacity { if in == nil { return nil } - out := new(NamespacePattern) + out := new(NodeTypeCapacity) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPeer) DeepCopyInto(out *NetworkPeer) { +func (in *NodeTypeList) DeepCopyInto(out *NodeTypeList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]NodeType, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPeer. -func (in *NetworkPeer) DeepCopy() *NetworkPeer { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeList. +func (in *NodeTypeList) DeepCopy() *NodeTypeList { if in == nil { return nil } - out := new(NetworkPeer) + out := new(NodeTypeList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *NetworkPeer) DeepCopyObject() runtime.Object { +func (in *NodeTypeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2495,81 +3849,87 @@ func (in *NetworkPeer) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPeerList) DeepCopyInto(out *NetworkPeerList) { +func (in *NodeTypeOverhead) DeepCopyInto(out *NodeTypeOverhead) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]NetworkPeer, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if in.KubeReserved != nil { + in, out := &in.KubeReserved, &out.KubeReserved + *out = make(corev1.ResourceList, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPeerList. -func (in *NetworkPeerList) DeepCopy() *NetworkPeerList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeOverhead. +func (in *NodeTypeOverhead) DeepCopy() *NodeTypeOverhead { if in == nil { return nil } - out := new(NetworkPeerList) + out := new(NodeTypeOverhead) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *NetworkPeerList) 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 *NetworkPeerSpec) DeepCopyInto(out *NetworkPeerSpec) { +func (in *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { *out = *in - if in.Addresses != nil { - in, out := &in.Addresses, &out.Addresses - *out = make([]string, len(*in)) - copy(*out, *in) + if in.Properties != nil { + in, out := &in.Properties, &out.Properties + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } } - if in.AllowedIPs != nil { - in, out := &in.AllowedIPs, &out.AllowedIPs - *out = make([]string, len(*in)) - copy(*out, *in) + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = make(corev1.ResourceList, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } } - if in.Endpoints != nil { - in, out := &in.Endpoints, &out.Endpoints - *out = make([]string, len(*in)) - copy(*out, *in) + if in.Overhead != nil { + in, out := &in.Overhead, &out.Overhead + *out = new(NodeTypeOverhead) + (*in).DeepCopyInto(*out) } return } - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPeerSpec. -func (in *NetworkPeerSpec) DeepCopy() *NetworkPeerSpec { + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeSpec. +func (in *NodeTypeSpec) DeepCopy() *NodeTypeSpec { if in == nil { return nil } - out := new(NetworkPeerSpec) + out := new(NodeTypeSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPeerStatus) DeepCopyInto(out *NetworkPeerStatus) { +func (in *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { *out = *in + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = new(NodeTypeCapacity) + **out = **in + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make(storagev1.Conditions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPeerStatus. -func (in *NetworkPeerStatus) DeepCopy() *NetworkPeerStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeStatus. +func (in *NodeTypeStatus) DeepCopy() *NodeTypeStatus { if in == nil { return nil } - out := new(NetworkPeerStatus) + out := new(NodeTypeStatus) in.DeepCopyInto(out) return out } @@ -2600,6 +3960,32 @@ func (in *ObjectsStatus) DeepCopy() *ObjectsStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *OpenCost) DeepCopyInto(out *OpenCost) { + *out = *in + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = new(corev1.ResourceRequirements) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenCost. +func (in *OpenCost) DeepCopy() *OpenCost { + if in == nil { + return nil + } + out := new(OpenCost) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodSelector) DeepCopyInto(out *PodSelector) { *out = *in @@ -2622,6 +4008,22 @@ func (in *PodSelector) DeepCopy() *PodSelector { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PresetRef) DeepCopyInto(out *PresetRef) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PresetRef. +func (in *PresetRef) DeepCopy() *PresetRef { + if in == nil { + return nil + } + out := new(PresetRef) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Project) DeepCopyInto(out *Project) { *out = *in @@ -2708,6 +4110,7 @@ func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec) { copy(*out, *in) } out.RequireTemplate = in.RequireTemplate + out.RequirePreset = in.RequirePreset if in.Members != nil { in, out := &in.Members, &out.Members *out = make([]Member, len(*in)) @@ -2923,472 +4326,178 @@ func (in *QuotaStatusUserUsed) DeepCopyInto(out *QuotaStatusUserUsed) { (*out)[key] = outVal } } - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make(map[string]map[string]string, len(*in)) - for key, val := range *in { - var outVal map[string]string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - (*out)[key] = outVal - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaStatusUserUsed. -func (in *QuotaStatusUserUsed) DeepCopy() *QuotaStatusUserUsed { - if in == nil { - return nil - } - out := new(QuotaStatusUserUsed) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Quotas) DeepCopyInto(out *Quotas) { - *out = *in - if in.Project != nil { - in, out := &in.Project, &out.Project - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.User != nil { - in, out := &in.User, &out.User - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Quotas. -func (in *Quotas) DeepCopy() *Quotas { - if in == nil { - return nil - } - out := new(Quotas) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RancherIntegrationSpec) DeepCopyInto(out *RancherIntegrationSpec) { - *out = *in - out.ProjectRef = in.ProjectRef - in.ImportVirtualClusters.DeepCopyInto(&out.ImportVirtualClusters) - in.SyncMembers.DeepCopyInto(&out.SyncMembers) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RancherIntegrationSpec. -func (in *RancherIntegrationSpec) DeepCopy() *RancherIntegrationSpec { - if in == nil { - return nil - } - out := new(RancherIntegrationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RancherProjectRef) DeepCopyInto(out *RancherProjectRef) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RancherProjectRef. -func (in *RancherProjectRef) DeepCopy() *RancherProjectRef { - if in == nil { - return nil - } - out := new(RancherProjectRef) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RequireTemplate) DeepCopyInto(out *RequireTemplate) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequireTemplate. -func (in *RequireTemplate) DeepCopy() *RequireTemplate { - if in == nil { - return nil - } - out := new(RequireTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Runner) DeepCopyInto(out *Runner) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Runner. -func (in *Runner) DeepCopy() *Runner { - if in == nil { - return nil - } - out := new(Runner) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Runner) 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 *RunnerClusterRef) DeepCopyInto(out *RunnerClusterRef) { - *out = *in - if in.PersistentVolumeClaimTemplate != nil { - in, out := &in.PersistentVolumeClaimTemplate, &out.PersistentVolumeClaimTemplate - *out = new(RunnerPersistentVolumeClaimTemplate) - (*in).DeepCopyInto(*out) - } - if in.PodTemplate != nil { - in, out := &in.PodTemplate, &out.PodTemplate - *out = new(RunnerPodTemplate) - (*in).DeepCopyInto(*out) - } - if in.ServiceTemplate != nil { - in, out := &in.ServiceTemplate, &out.ServiceTemplate - *out = new(RunnerServiceTemplate) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerClusterRef. -func (in *RunnerClusterRef) DeepCopy() *RunnerClusterRef { - if in == nil { - return nil - } - out := new(RunnerClusterRef) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerList) DeepCopyInto(out *RunnerList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerList. -func (in *RunnerList) DeepCopy() *RunnerList { - if in == nil { - return nil - } - out := new(RunnerList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerList) 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 *RunnerPersistentVolumeClaimTemplate) DeepCopyInto(out *RunnerPersistentVolumeClaimTemplate) { - *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerPersistentVolumeClaimTemplate. -func (in *RunnerPersistentVolumeClaimTemplate) DeepCopy() *RunnerPersistentVolumeClaimTemplate { - if in == nil { - return nil - } - out := new(RunnerPersistentVolumeClaimTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerPersistentVolumeClaimTemplateSpec) DeepCopyInto(out *RunnerPersistentVolumeClaimTemplateSpec) { - *out = *in - if in.AccessModes != nil { - in, out := &in.AccessModes, &out.AccessModes - *out = make([]corev1.PersistentVolumeAccessMode, len(*in)) - copy(*out, *in) - } - if in.StorageClassName != nil { - in, out := &in.StorageClassName, &out.StorageClassName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerPersistentVolumeClaimTemplateSpec. -func (in *RunnerPersistentVolumeClaimTemplateSpec) DeepCopy() *RunnerPersistentVolumeClaimTemplateSpec { - if in == nil { - return nil - } - out := new(RunnerPersistentVolumeClaimTemplateSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerPodTemplate) DeepCopyInto(out *RunnerPodTemplate) { - *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.Spec.DeepCopyInto(&out.Spec) + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make(map[string]map[string]string, len(*in)) + for key, val := range *in { + var outVal map[string]string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + (*out)[key] = outVal + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerPodTemplate. -func (in *RunnerPodTemplate) DeepCopy() *RunnerPodTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaStatusUserUsed. +func (in *QuotaStatusUserUsed) DeepCopy() *QuotaStatusUserUsed { if in == nil { return nil } - out := new(RunnerPodTemplate) + out := new(QuotaStatusUserUsed) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerPodTemplateSpec) DeepCopyInto(out *RunnerPodTemplateSpec) { +func (in *Quotas) DeepCopyInto(out *Quotas) { *out = *in - in.Resources.DeepCopyInto(&out.Resources) - if in.EnvFrom != nil { - in, out := &in.EnvFrom, &out.EnvFrom - *out = make([]corev1.EnvFromSource, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]corev1.EnvVar, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.NodeSelector != nil { - in, out := &in.NodeSelector, &out.NodeSelector + if in.Project != nil { + in, out := &in.Project, &out.Project *out = make(map[string]string, len(*in)) for key, val := range *in { (*out)[key] = val } } - if in.Affinity != nil { - in, out := &in.Affinity, &out.Affinity - *out = new(corev1.Affinity) - (*in).DeepCopyInto(*out) - } - if in.Tolerations != nil { - in, out := &in.Tolerations, &out.Tolerations - *out = make([]corev1.Toleration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.VolumeMounts != nil { - in, out := &in.VolumeMounts, &out.VolumeMounts - *out = make([]corev1.VolumeMount, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]corev1.Volume, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.InitContainers != nil { - in, out := &in.InitContainers, &out.InitContainers - *out = make([]corev1.Container, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.HostAliases != nil { - in, out := &in.HostAliases, &out.HostAliases - *out = make([]corev1.HostAlias, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if in.User != nil { + in, out := &in.User, &out.User + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerPodTemplateSpec. -func (in *RunnerPodTemplateSpec) DeepCopy() *RunnerPodTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Quotas. +func (in *Quotas) DeepCopy() *Quotas { if in == nil { return nil } - out := new(RunnerPodTemplateSpec) + out := new(Quotas) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerRef) DeepCopyInto(out *RunnerRef) { +func (in *RancherIntegrationSpec) DeepCopyInto(out *RancherIntegrationSpec) { *out = *in + out.ProjectRef = in.ProjectRef + in.ImportVirtualClusters.DeepCopyInto(&out.ImportVirtualClusters) + in.SyncMembers.DeepCopyInto(&out.SyncMembers) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerRef. -func (in *RunnerRef) DeepCopy() *RunnerRef { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RancherIntegrationSpec. +func (in *RancherIntegrationSpec) DeepCopy() *RancherIntegrationSpec { if in == nil { return nil } - out := new(RunnerRef) + out := new(RancherIntegrationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerServiceTemplate) DeepCopyInto(out *RunnerServiceTemplate) { +func (in *RancherProjectRef) DeepCopyInto(out *RancherProjectRef) { *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - out.Spec = in.Spec return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerServiceTemplate. -func (in *RunnerServiceTemplate) DeepCopy() *RunnerServiceTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RancherProjectRef. +func (in *RancherProjectRef) DeepCopy() *RancherProjectRef { if in == nil { return nil } - out := new(RunnerServiceTemplate) + out := new(RancherProjectRef) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerServiceTemplateSpec) DeepCopyInto(out *RunnerServiceTemplateSpec) { +func (in *RequirePreset) DeepCopyInto(out *RequirePreset) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerServiceTemplateSpec. -func (in *RunnerServiceTemplateSpec) DeepCopy() *RunnerServiceTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequirePreset. +func (in *RequirePreset) DeepCopy() *RequirePreset { if in == nil { return nil } - out := new(RunnerServiceTemplateSpec) + out := new(RequirePreset) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerSpec) DeepCopyInto(out *RunnerSpec) { +func (in *RequireTemplate) DeepCopyInto(out *RequireTemplate) { *out = *in - if in.ClusterRef != nil { - in, out := &in.ClusterRef, &out.ClusterRef - *out = new(RunnerClusterRef) - (*in).DeepCopyInto(*out) - } - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(UserOrTeam) - **out = **in - } - if in.Access != nil { - in, out := &in.Access, &out.Access - *out = make([]Access, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerSpec. -func (in *RunnerSpec) DeepCopy() *RunnerSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequireTemplate. +func (in *RequireTemplate) DeepCopy() *RequireTemplate { if in == nil { return nil } - out := new(RunnerSpec) + out := new(RequireTemplate) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerStatus) DeepCopyInto(out *RunnerStatus) { +func (in *RunnerRef) DeepCopyInto(out *RunnerRef) { *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make(storagev1.Conditions, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerStatus. -func (in *RunnerStatus) DeepCopy() *RunnerStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerRef. +func (in *RunnerRef) DeepCopy() *RunnerRef { if in == nil { return nil } - out := new(RunnerStatus) + out := new(RunnerRef) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SSHProjectSpec) DeepCopyInto(out *SSHProjectSpec) { +func (in *SSOIdentity) DeepCopyInto(out *SSOIdentity) { *out = *in - if in.TokenProjectSecretRef != nil { - in, out := &in.TokenProjectSecretRef, &out.TokenProjectSecretRef - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) + if in.ExtraClaims != nil { + in, out := &in.ExtraClaims, &out.ExtraClaims + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.Groups != nil { + in, out := &in.Groups, &out.Groups + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ConnectorData != nil { + in, out := &in.ConnectorData, &out.ConnectorData + *out = make([]byte, len(*in)) + copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHProjectSpec. -func (in *SSHProjectSpec) DeepCopy() *SSHProjectSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSOIdentity. +func (in *SSOIdentity) DeepCopy() *SSOIdentity { if in == nil { return nil } - out := new(SSHProjectSpec) + out := new(SSOIdentity) in.DeepCopyInto(out) return out } @@ -3872,6 +4981,27 @@ func (in *SpaceTemplateVersion) DeepCopy() *SpaceTemplateVersion { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Storage) DeepCopyInto(out *Storage) { + *out = *in + if in.StorageClass != nil { + in, out := &in.StorageClass, &out.StorageClass + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage. +func (in *Storage) DeepCopy() *Storage { + if in == nil { + return nil + } + out := new(Storage) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *StreamContainer) DeepCopyInto(out *StreamContainer) { *out = *in @@ -4489,6 +5619,13 @@ func (in *UserSpec) DeepCopyInto(out *UserSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.ExtraClaims != nil { + in, out := &in.ExtraClaims, &out.ExtraClaims + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } return } @@ -5132,6 +6269,53 @@ func (in *VirtualClusterTemplateVersion) DeepCopy() *VirtualClusterTemplateVersi return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WorkspaceRef) DeepCopyInto(out *WorkspaceRef) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceRef. +func (in *WorkspaceRef) DeepCopy() *WorkspaceRef { + if in == nil { + return nil + } + out := new(WorkspaceRef) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WorkspaceResolvedTarget) DeepCopyInto(out *WorkspaceResolvedTarget) { + *out = *in + if in.Cluster != nil { + in, out := &in.Cluster, &out.Cluster + *out = new(WorkspaceTargetNamespace) + **out = **in + } + if in.VirtualCluster != nil { + in, out := &in.VirtualCluster, &out.VirtualCluster + *out = new(WorkspaceTargetNamespace) + **out = **in + } + if in.Space != nil { + in, out := &in.Space, &out.Space + *out = new(WorkspaceTargetName) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceResolvedTarget. +func (in *WorkspaceResolvedTarget) DeepCopy() *WorkspaceResolvedTarget { + if in == nil { + return nil + } + out := new(WorkspaceResolvedTarget) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkspaceStatusResult) DeepCopyInto(out *WorkspaceStatusResult) { *out = *in @@ -5147,3 +6331,61 @@ func (in *WorkspaceStatusResult) DeepCopy() *WorkspaceStatusResult { in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WorkspaceTarget) DeepCopyInto(out *WorkspaceTarget) { + *out = *in + if in.Cluster != nil { + in, out := &in.Cluster, &out.Cluster + *out = new(WorkspaceTargetName) + **out = **in + } + if in.VirtualCluster != nil { + in, out := &in.VirtualCluster, &out.VirtualCluster + *out = new(WorkspaceTargetName) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceTarget. +func (in *WorkspaceTarget) DeepCopy() *WorkspaceTarget { + if in == nil { + return nil + } + out := new(WorkspaceTarget) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WorkspaceTargetName) DeepCopyInto(out *WorkspaceTargetName) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceTargetName. +func (in *WorkspaceTargetName) DeepCopy() *WorkspaceTargetName { + if in == nil { + return nil + } + out := new(WorkspaceTargetName) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WorkspaceTargetNamespace) DeepCopyInto(out *WorkspaceTargetNamespace) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceTargetNamespace. +func (in *WorkspaceTargetNamespace) DeepCopy() *WorkspaceTargetNamespace { + if in == nil { + return nil + } + out := new(WorkspaceTargetNamespace) + in.DeepCopyInto(out) + return out +} diff --git a/pkg/apis/storage/v1/zz_generated.defaults.go b/pkg/apis/storage/v1/zz_generated.defaults.go index e7944230..9cf29650 100644 --- a/pkg/apis/storage/v1/zz_generated.defaults.go +++ b/pkg/apis/storage/v1/zz_generated.defaults.go @@ -6,7 +6,7 @@ package v1 import ( - v1 "k8s.io/api/core/v1" + corev1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -14,16 +14,266 @@ 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(&Runner{}, func(obj interface{}) { SetObjectDefaults_Runner(obj.(*Runner)) }) - scheme.AddTypeDefaultingFunc(&RunnerList{}, func(obj interface{}) { SetObjectDefaults_RunnerList(obj.(*RunnerList)) }) + 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)) + }) return nil } -func SetObjectDefaults_Runner(in *Runner) { - if in.Spec.ClusterRef != nil { - if in.Spec.ClusterRef.PodTemplate != nil { - for i := range in.Spec.ClusterRef.PodTemplate.Spec.Volumes { - a := &in.Spec.ClusterRef.PodTemplate.Spec.Volumes[i] +func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { + if in.Spec.Template != nil { + if in.Spec.Template.Kubernetes != nil { + if in.Spec.Template.Kubernetes.Pod != nil { + for i := range in.Spec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Spec.Template.Kubernetes.Pod.Spec.Volumes[i] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Spec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Spec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.Template.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } + if in.Status.Instance != nil { + if in.Status.Instance.Kubernetes != nil { + if in.Status.Instance.Kubernetes.Pod != nil { + for i := range in.Status.Instance.Kubernetes.Pod.Spec.Volumes { + a := &in.Status.Instance.Kubernetes.Pod.Spec.Volumes[i] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Status.Instance.Kubernetes.Pod.Spec.InitContainers { + a := &in.Status.Instance.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Status.Instance.Kubernetes.Pod.Spec.Containers { + a := &in.Status.Instance.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } +} + +func SetObjectDefaults_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_DevPodWorkspaceInstance(a) + } +} + +func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { + if in.Spec.Template.Kubernetes != nil { + if in.Spec.Template.Kubernetes.Pod != nil { + for i := range in.Spec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Spec.Template.Kubernetes.Pod.Spec.Volumes[i] if a.VolumeSource.ISCSI != nil { if a.VolumeSource.ISCSI.ISCSIInterface == "" { a.VolumeSource.ISCSI.ISCSIInterface = "default" @@ -42,7 +292,7 @@ func SetObjectDefaults_Runner(in *Runner) { } if a.VolumeSource.AzureDisk != nil { if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 } if a.VolumeSource.AzureDisk.FSType == nil { @@ -54,7 +304,7 @@ func SetObjectDefaults_Runner(in *Runner) { a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 } if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) a.VolumeSource.AzureDisk.Kind = &ptrVar1 } } @@ -67,8 +317,41 @@ func SetObjectDefaults_Runner(in *Runner) { } } } - for i := range in.Spec.ClusterRef.PodTemplate.Spec.InitContainers { - a := &in.Spec.ClusterRef.PodTemplate.Spec.InitContainers[i] + for i := range in.Spec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Spec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.Template.Kubernetes.Pod.Spec.Containers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { @@ -102,11 +385,129 @@ func SetObjectDefaults_Runner(in *Runner) { } } } + for i := range in.Spec.Versions { + a := &in.Spec.Versions[i] + if a.Template.Kubernetes != nil { + if a.Template.Kubernetes.Pod != nil { + for j := range a.Template.Kubernetes.Pod.Spec.Volumes { + b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { + b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.Containers { + b := &a.Template.Kubernetes.Pod.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } } -func SetObjectDefaults_RunnerList(in *RunnerList) { +func SetObjectDefaults_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_Runner(a) + SetObjectDefaults_DevPodWorkspaceTemplate(a) } } diff --git a/pkg/apis/ui/v1/ui_types.go b/pkg/apis/ui/v1/ui_types.go index b5cd94b1..acf26dec 100644 --- a/pkg/apis/ui/v1/ui_types.go +++ b/pkg/apis/ui/v1/ui_types.go @@ -34,11 +34,16 @@ type UISettingsSpec struct { // +optional Offline bool `json:"offline,omitempty"` - // HasHelmRelease indicates whether loft has been installed via Helm + // HasHelmRelease indicates whether the vCluster Platform instance + // has been installed via Helm HasHelmRelease bool `json:"hasHelmRelease,omitempty"` // DefaultVClusterVersion is the default version of vClusters DefaultVClusterVersion string `json:"defaultVClusterVersion,omitempty"` + + // LoftHosted indicates whether the vCluster Platform instance + // is hosted and operated by Loft Labs Inc. + LoftHosted bool `json:"loftHosted,omitempty"` } type UISettingsConfig struct { @@ -49,6 +54,10 @@ type UISettingsConfig struct { // the Loft UI! // +optional LogoURL string `json:"logoURL,omitempty"` + // SmallLogoURL is url pointing to the small logo to use in the Loft UI. This path must be accessible for clients accessing + // the Loft UI! + // +optional + SmallLogoURL string `json:"smallLogoURL,omitempty"` // LogoBackgroundColor is the color value (ex: "#12345") to use as the background color for the logo // +optional LogoBackgroundColor string `json:"logoBackgroundColor,omitempty"` diff --git a/pkg/apis/virtualcluster/install/zz_generated.api.register.go b/pkg/apis/virtualcluster/install/zz_generated.api.register.go index 93e7345a..cb69a9a4 100644 --- a/pkg/apis/virtualcluster/install/zz_generated.api.register.go +++ b/pkg/apis/virtualcluster/install/zz_generated.api.register.go @@ -4,7 +4,7 @@ package install import ( "github.com/loft-sh/api/v4/pkg/apis/virtualcluster" - v1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" "github.com/loft-sh/apiserver/pkg/builders" "k8s.io/apimachinery/pkg/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime" diff --git a/pkg/apis/zz_generated.api.register.go b/pkg/apis/zz_generated.api.register.go index 3e4477ae..f7296d4c 100644 --- a/pkg/apis/zz_generated.api.register.go +++ b/pkg/apis/zz_generated.api.register.go @@ -48,7 +48,9 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "ClusterRoleTemplate", "Config", "ConvertVirtualClusterConfig", + "DatabaseConnector", "DevPodEnvironmentTemplate", + "DevPodWorkspacePreset", "DevPodWorkspaceTemplate", "DirectClusterEndpointToken", "Event", @@ -57,13 +59,14 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "License", "LicenseToken", "LoftUpgrade", + "NodeProvider", + "NodeType", "OIDCClient", "OwnedAccessKey", "Project", "RedirectToken", "RegisterVirtualCluster", "ResetAccessKey", - "Runner", "Self", "SelfSubjectAccessReview", "SpaceTemplate", @@ -72,6 +75,7 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "Team", "TranslateVClusterResourceName", "User", + "VirtualClusterSchema", "VirtualClusterTemplate", ) } diff --git a/pkg/clientset/versioned/clientset.go b/pkg/clientset/versioned/clientset.go index 83ed9c65..30051de7 100644 --- a/pkg/clientset/versioned/clientset.go +++ b/pkg/clientset/versioned/clientset.go @@ -3,8 +3,8 @@ package versioned import ( - "fmt" - "net/http" + fmt "fmt" + http "net/http" managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" diff --git a/pkg/clientset/versioned/fake/clientset_generated.go b/pkg/clientset/versioned/fake/clientset_generated.go index 9490a481..1ab266bd 100644 --- a/pkg/clientset/versioned/fake/clientset_generated.go +++ b/pkg/clientset/versioned/fake/clientset_generated.go @@ -10,6 +10,7 @@ import ( fakestoragev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1/fake" virtualclusterv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/virtualcluster/v1" fakevirtualclusterv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/virtualcluster/v1/fake" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/discovery" @@ -37,9 +38,13 @@ func NewSimpleClientset(objects ...runtime.Object) *Clientset { cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake} 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 + } gvr := action.GetResource() ns := action.GetNamespace() - watch, err := o.Watch(gvr, ns) + watch, err := o.Watch(gvr, ns, opts) if err != nil { return false, nil, err } diff --git a/pkg/clientset/versioned/typed/management/v1/agentauditevent.go b/pkg/clientset/versioned/typed/management/v1/agentauditevent.go index 4165cefa..aebebfa1 100644 --- a/pkg/clientset/versioned/typed/management/v1/agentauditevent.go +++ b/pkg/clientset/versioned/typed/management/v1/agentauditevent.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type AgentAuditEventsGetter interface { // AgentAuditEventInterface has methods to work with AgentAuditEvent resources. type AgentAuditEventInterface interface { - Create(ctx context.Context, agentAuditEvent *v1.AgentAuditEvent, opts metav1.CreateOptions) (*v1.AgentAuditEvent, error) - Update(ctx context.Context, agentAuditEvent *v1.AgentAuditEvent, opts metav1.UpdateOptions) (*v1.AgentAuditEvent, error) + Create(ctx context.Context, agentAuditEvent *managementv1.AgentAuditEvent, opts metav1.CreateOptions) (*managementv1.AgentAuditEvent, error) + Update(ctx context.Context, agentAuditEvent *managementv1.AgentAuditEvent, opts metav1.UpdateOptions) (*managementv1.AgentAuditEvent, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, agentAuditEvent *v1.AgentAuditEvent, opts metav1.UpdateOptions) (*v1.AgentAuditEvent, error) + UpdateStatus(ctx context.Context, agentAuditEvent *managementv1.AgentAuditEvent, opts metav1.UpdateOptions) (*managementv1.AgentAuditEvent, 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) (*v1.AgentAuditEvent, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.AgentAuditEventList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.AgentAuditEvent, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.AgentAuditEventList, 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 *v1.AgentAuditEvent, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.AgentAuditEvent, err error) AgentAuditEventExpansion } // agentAuditEvents implements AgentAuditEventInterface type agentAuditEvents struct { - *gentype.ClientWithList[*v1.AgentAuditEvent, *v1.AgentAuditEventList] + *gentype.ClientWithList[*managementv1.AgentAuditEvent, *managementv1.AgentAuditEventList] } // newAgentAuditEvents returns a AgentAuditEvents func newAgentAuditEvents(c *ManagementV1Client) *agentAuditEvents { return &agentAuditEvents{ - gentype.NewClientWithList[*v1.AgentAuditEvent, *v1.AgentAuditEventList]( + gentype.NewClientWithList[*managementv1.AgentAuditEvent, *managementv1.AgentAuditEventList]( "agentauditevents", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.AgentAuditEvent { return &v1.AgentAuditEvent{} }, - func() *v1.AgentAuditEventList { return &v1.AgentAuditEventList{} }), + func() *managementv1.AgentAuditEvent { return &managementv1.AgentAuditEvent{} }, + func() *managementv1.AgentAuditEventList { return &managementv1.AgentAuditEventList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/announcement.go b/pkg/clientset/versioned/typed/management/v1/announcement.go index e508230a..9192fdd1 100644 --- a/pkg/clientset/versioned/typed/management/v1/announcement.go +++ b/pkg/clientset/versioned/typed/management/v1/announcement.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type AnnouncementsGetter interface { // AnnouncementInterface has methods to work with Announcement resources. type AnnouncementInterface interface { - Create(ctx context.Context, announcement *v1.Announcement, opts metav1.CreateOptions) (*v1.Announcement, error) - Update(ctx context.Context, announcement *v1.Announcement, opts metav1.UpdateOptions) (*v1.Announcement, error) + Create(ctx context.Context, announcement *managementv1.Announcement, opts metav1.CreateOptions) (*managementv1.Announcement, error) + Update(ctx context.Context, announcement *managementv1.Announcement, opts metav1.UpdateOptions) (*managementv1.Announcement, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, announcement *v1.Announcement, opts metav1.UpdateOptions) (*v1.Announcement, error) + UpdateStatus(ctx context.Context, announcement *managementv1.Announcement, opts metav1.UpdateOptions) (*managementv1.Announcement, 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) (*v1.Announcement, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.AnnouncementList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Announcement, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.AnnouncementList, 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 *v1.Announcement, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Announcement, err error) AnnouncementExpansion } // announcements implements AnnouncementInterface type announcements struct { - *gentype.ClientWithList[*v1.Announcement, *v1.AnnouncementList] + *gentype.ClientWithList[*managementv1.Announcement, *managementv1.AnnouncementList] } // newAnnouncements returns a Announcements func newAnnouncements(c *ManagementV1Client) *announcements { return &announcements{ - gentype.NewClientWithList[*v1.Announcement, *v1.AnnouncementList]( + gentype.NewClientWithList[*managementv1.Announcement, *managementv1.AnnouncementList]( "announcements", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Announcement { return &v1.Announcement{} }, - func() *v1.AnnouncementList { return &v1.AnnouncementList{} }), + func() *managementv1.Announcement { return &managementv1.Announcement{} }, + func() *managementv1.AnnouncementList { return &managementv1.AnnouncementList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/app.go b/pkg/clientset/versioned/typed/management/v1/app.go index 6815ccc5..f21f9fd9 100644 --- a/pkg/clientset/versioned/typed/management/v1/app.go +++ b/pkg/clientset/versioned/typed/management/v1/app.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,42 +21,43 @@ type AppsGetter interface { // AppInterface has methods to work with App resources. type AppInterface interface { - Create(ctx context.Context, app *v1.App, opts metav1.CreateOptions) (*v1.App, error) - Update(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (*v1.App, error) + Create(ctx context.Context, app *managementv1.App, opts metav1.CreateOptions) (*managementv1.App, error) + Update(ctx context.Context, app *managementv1.App, opts metav1.UpdateOptions) (*managementv1.App, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (*v1.App, error) + UpdateStatus(ctx context.Context, app *managementv1.App, opts metav1.UpdateOptions) (*managementv1.App, 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) (*v1.App, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.AppList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.App, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.AppList, 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 *v1.App, err error) - GetCredentials(ctx context.Context, appName string, options metav1.GetOptions) (*v1.AppCredentials, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.App, err error) + GetCredentials(ctx context.Context, appName string, options metav1.GetOptions) (*managementv1.AppCredentials, error) AppExpansion } // apps implements AppInterface type apps struct { - *gentype.ClientWithList[*v1.App, *v1.AppList] + *gentype.ClientWithList[*managementv1.App, *managementv1.AppList] } // newApps returns a Apps func newApps(c *ManagementV1Client) *apps { return &apps{ - gentype.NewClientWithList[*v1.App, *v1.AppList]( + gentype.NewClientWithList[*managementv1.App, *managementv1.AppList]( "apps", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.App { return &v1.App{} }, - func() *v1.AppList { return &v1.AppList{} }), + func() *managementv1.App { return &managementv1.App{} }, + func() *managementv1.AppList { return &managementv1.AppList{} }, + ), } } -// GetCredentials takes name of the app, and returns the corresponding v1.AppCredentials object, and an error if there is any. -func (c *apps) GetCredentials(ctx context.Context, appName string, options metav1.GetOptions) (result *v1.AppCredentials, err error) { - result = &v1.AppCredentials{} +// GetCredentials takes name of the app, and returns the corresponding managementv1.AppCredentials object, and an error if there is any. +func (c *apps) GetCredentials(ctx context.Context, appName string, options metav1.GetOptions) (result *managementv1.AppCredentials, err error) { + result = &managementv1.AppCredentials{} err = c.GetClient().Get(). Resource("apps"). Name(appName). diff --git a/pkg/clientset/versioned/typed/management/v1/backup.go b/pkg/clientset/versioned/typed/management/v1/backup.go index 58846331..25de4852 100644 --- a/pkg/clientset/versioned/typed/management/v1/backup.go +++ b/pkg/clientset/versioned/typed/management/v1/backup.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type BackupsGetter interface { // BackupInterface has methods to work with Backup resources. type BackupInterface interface { - Create(ctx context.Context, backup *v1.Backup, opts metav1.CreateOptions) (*v1.Backup, error) - Update(ctx context.Context, backup *v1.Backup, opts metav1.UpdateOptions) (*v1.Backup, error) + Create(ctx context.Context, backup *managementv1.Backup, opts metav1.CreateOptions) (*managementv1.Backup, error) + Update(ctx context.Context, backup *managementv1.Backup, opts metav1.UpdateOptions) (*managementv1.Backup, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, backup *v1.Backup, opts metav1.UpdateOptions) (*v1.Backup, error) + UpdateStatus(ctx context.Context, backup *managementv1.Backup, opts metav1.UpdateOptions) (*managementv1.Backup, 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) (*v1.Backup, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.BackupList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Backup, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.BackupList, 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 *v1.Backup, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Backup, err error) BackupExpansion } // backups implements BackupInterface type backups struct { - *gentype.ClientWithList[*v1.Backup, *v1.BackupList] + *gentype.ClientWithList[*managementv1.Backup, *managementv1.BackupList] } // newBackups returns a Backups func newBackups(c *ManagementV1Client) *backups { return &backups{ - gentype.NewClientWithList[*v1.Backup, *v1.BackupList]( + gentype.NewClientWithList[*managementv1.Backup, *managementv1.BackupList]( "backups", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Backup { return &v1.Backup{} }, - func() *v1.BackupList { return &v1.BackupList{} }), + func() *managementv1.Backup { return &managementv1.Backup{} }, + func() *managementv1.BackupList { return &managementv1.BackupList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/cluster.go b/pkg/clientset/versioned/typed/management/v1/cluster.go index 78379be6..e1216d7a 100644 --- a/pkg/clientset/versioned/typed/management/v1/cluster.go +++ b/pkg/clientset/versioned/typed/management/v1/cluster.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,46 +21,46 @@ type ClustersGetter interface { // ClusterInterface has methods to work with Cluster resources. type ClusterInterface interface { - Create(ctx context.Context, cluster *v1.Cluster, opts metav1.CreateOptions) (*v1.Cluster, error) - Update(ctx context.Context, cluster *v1.Cluster, opts metav1.UpdateOptions) (*v1.Cluster, error) + Create(ctx context.Context, cluster *managementv1.Cluster, opts metav1.CreateOptions) (*managementv1.Cluster, error) + Update(ctx context.Context, cluster *managementv1.Cluster, opts metav1.UpdateOptions) (*managementv1.Cluster, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, cluster *v1.Cluster, opts metav1.UpdateOptions) (*v1.Cluster, error) + UpdateStatus(ctx context.Context, cluster *managementv1.Cluster, opts metav1.UpdateOptions) (*managementv1.Cluster, 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) (*v1.Cluster, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Cluster, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.ClusterList, 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 *v1.Cluster, err error) - ListAccess(ctx context.Context, clusterName string, options metav1.GetOptions) (*v1.ClusterMemberAccess, error) - ListMembers(ctx context.Context, clusterName string, options metav1.GetOptions) (*v1.ClusterMembers, error) - ListVirtualClusterDefaults(ctx context.Context, clusterName string, options metav1.GetOptions) (*v1.ClusterVirtualClusterDefaults, error) - GetAgentConfig(ctx context.Context, clusterName string, options metav1.GetOptions) (*v1.ClusterAgentConfig, error) - GetAccessKey(ctx context.Context, clusterName string, options metav1.GetOptions) (*v1.ClusterAccessKey, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Cluster, err error) + ListAccess(ctx context.Context, clusterName string, options metav1.GetOptions) (*managementv1.ClusterMemberAccess, error) + ListMembers(ctx context.Context, clusterName string, options metav1.GetOptions) (*managementv1.ClusterMembers, error) + GetAgentConfig(ctx context.Context, clusterName string, options metav1.GetOptions) (*managementv1.ClusterAgentConfig, error) + GetAccessKey(ctx context.Context, clusterName string, options metav1.GetOptions) (*managementv1.ClusterAccessKey, error) ClusterExpansion } // clusters implements ClusterInterface type clusters struct { - *gentype.ClientWithList[*v1.Cluster, *v1.ClusterList] + *gentype.ClientWithList[*managementv1.Cluster, *managementv1.ClusterList] } // newClusters returns a Clusters func newClusters(c *ManagementV1Client) *clusters { return &clusters{ - gentype.NewClientWithList[*v1.Cluster, *v1.ClusterList]( + gentype.NewClientWithList[*managementv1.Cluster, *managementv1.ClusterList]( "clusters", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Cluster { return &v1.Cluster{} }, - func() *v1.ClusterList { return &v1.ClusterList{} }), + func() *managementv1.Cluster { return &managementv1.Cluster{} }, + func() *managementv1.ClusterList { return &managementv1.ClusterList{} }, + ), } } -// ListAccess takes name of the cluster, and returns the corresponding v1.ClusterMemberAccess object, and an error if there is any. -func (c *clusters) ListAccess(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterMemberAccess, err error) { - result = &v1.ClusterMemberAccess{} +// ListAccess takes name of the cluster, and returns the corresponding managementv1.ClusterMemberAccess object, and an error if there is any. +func (c *clusters) ListAccess(ctx context.Context, clusterName string, options metav1.GetOptions) (result *managementv1.ClusterMemberAccess, err error) { + result = &managementv1.ClusterMemberAccess{} err = c.GetClient().Get(). Resource("clusters"). Name(clusterName). @@ -71,9 +71,9 @@ func (c *clusters) ListAccess(ctx context.Context, clusterName string, options m return } -// ListMembers takes name of the cluster, and returns the corresponding v1.ClusterMembers object, and an error if there is any. -func (c *clusters) ListMembers(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterMembers, err error) { - result = &v1.ClusterMembers{} +// ListMembers takes name of the cluster, and returns the corresponding managementv1.ClusterMembers object, and an error if there is any. +func (c *clusters) ListMembers(ctx context.Context, clusterName string, options metav1.GetOptions) (result *managementv1.ClusterMembers, err error) { + result = &managementv1.ClusterMembers{} err = c.GetClient().Get(). Resource("clusters"). Name(clusterName). @@ -84,22 +84,9 @@ func (c *clusters) ListMembers(ctx context.Context, clusterName string, options return } -// ListVirtualClusterDefaults takes name of the cluster, and returns the corresponding v1.ClusterVirtualClusterDefaults object, and an error if there is any. -func (c *clusters) ListVirtualClusterDefaults(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterVirtualClusterDefaults, err error) { - result = &v1.ClusterVirtualClusterDefaults{} - err = c.GetClient().Get(). - Resource("clusters"). - Name(clusterName). - SubResource("virtualclusterdefaults"). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// GetAgentConfig takes name of the cluster, and returns the corresponding v1.ClusterAgentConfig object, and an error if there is any. -func (c *clusters) GetAgentConfig(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterAgentConfig, err error) { - result = &v1.ClusterAgentConfig{} +// GetAgentConfig takes name of the cluster, and returns the corresponding managementv1.ClusterAgentConfig object, and an error if there is any. +func (c *clusters) GetAgentConfig(ctx context.Context, clusterName string, options metav1.GetOptions) (result *managementv1.ClusterAgentConfig, err error) { + result = &managementv1.ClusterAgentConfig{} err = c.GetClient().Get(). Resource("clusters"). Name(clusterName). @@ -110,9 +97,9 @@ func (c *clusters) GetAgentConfig(ctx context.Context, clusterName string, optio return } -// GetAccessKey takes name of the cluster, and returns the corresponding v1.ClusterAccessKey object, and an error if there is any. -func (c *clusters) GetAccessKey(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterAccessKey, err error) { - result = &v1.ClusterAccessKey{} +// GetAccessKey takes name of the cluster, and returns the corresponding managementv1.ClusterAccessKey object, and an error if there is any. +func (c *clusters) GetAccessKey(ctx context.Context, clusterName string, options metav1.GetOptions) (result *managementv1.ClusterAccessKey, err error) { + result = &managementv1.ClusterAccessKey{} err = c.GetClient().Get(). Resource("clusters"). Name(clusterName). diff --git a/pkg/clientset/versioned/typed/management/v1/clusteraccess.go b/pkg/clientset/versioned/typed/management/v1/clusteraccess.go index efebdf70..4162a9fc 100644 --- a/pkg/clientset/versioned/typed/management/v1/clusteraccess.go +++ b/pkg/clientset/versioned/typed/management/v1/clusteraccess.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type ClusterAccessesGetter interface { // ClusterAccessInterface has methods to work with ClusterAccess resources. type ClusterAccessInterface interface { - Create(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.CreateOptions) (*v1.ClusterAccess, error) - Update(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.UpdateOptions) (*v1.ClusterAccess, error) + Create(ctx context.Context, clusterAccess *managementv1.ClusterAccess, opts metav1.CreateOptions) (*managementv1.ClusterAccess, error) + Update(ctx context.Context, clusterAccess *managementv1.ClusterAccess, opts metav1.UpdateOptions) (*managementv1.ClusterAccess, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.UpdateOptions) (*v1.ClusterAccess, error) + UpdateStatus(ctx context.Context, clusterAccess *managementv1.ClusterAccess, opts metav1.UpdateOptions) (*managementv1.ClusterAccess, 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) (*v1.ClusterAccess, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterAccessList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.ClusterAccess, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.ClusterAccessList, 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 *v1.ClusterAccess, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.ClusterAccess, err error) ClusterAccessExpansion } // clusterAccesses implements ClusterAccessInterface type clusterAccesses struct { - *gentype.ClientWithList[*v1.ClusterAccess, *v1.ClusterAccessList] + *gentype.ClientWithList[*managementv1.ClusterAccess, *managementv1.ClusterAccessList] } // newClusterAccesses returns a ClusterAccesses func newClusterAccesses(c *ManagementV1Client) *clusterAccesses { return &clusterAccesses{ - gentype.NewClientWithList[*v1.ClusterAccess, *v1.ClusterAccessList]( + gentype.NewClientWithList[*managementv1.ClusterAccess, *managementv1.ClusterAccessList]( "clusteraccesses", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ClusterAccess { return &v1.ClusterAccess{} }, - func() *v1.ClusterAccessList { return &v1.ClusterAccessList{} }), + func() *managementv1.ClusterAccess { return &managementv1.ClusterAccess{} }, + func() *managementv1.ClusterAccessList { return &managementv1.ClusterAccessList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/clusterroletemplate.go b/pkg/clientset/versioned/typed/management/v1/clusterroletemplate.go index 20c60156..01719a01 100644 --- a/pkg/clientset/versioned/typed/management/v1/clusterroletemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/clusterroletemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type ClusterRoleTemplatesGetter interface { // ClusterRoleTemplateInterface has methods to work with ClusterRoleTemplate resources. type ClusterRoleTemplateInterface interface { - Create(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.CreateOptions) (*v1.ClusterRoleTemplate, error) - Update(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.UpdateOptions) (*v1.ClusterRoleTemplate, error) + Create(ctx context.Context, clusterRoleTemplate *managementv1.ClusterRoleTemplate, opts metav1.CreateOptions) (*managementv1.ClusterRoleTemplate, error) + Update(ctx context.Context, clusterRoleTemplate *managementv1.ClusterRoleTemplate, opts metav1.UpdateOptions) (*managementv1.ClusterRoleTemplate, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.UpdateOptions) (*v1.ClusterRoleTemplate, error) + UpdateStatus(ctx context.Context, clusterRoleTemplate *managementv1.ClusterRoleTemplate, opts metav1.UpdateOptions) (*managementv1.ClusterRoleTemplate, 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) (*v1.ClusterRoleTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterRoleTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.ClusterRoleTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.ClusterRoleTemplateList, 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 *v1.ClusterRoleTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.ClusterRoleTemplate, err error) ClusterRoleTemplateExpansion } // clusterRoleTemplates implements ClusterRoleTemplateInterface type clusterRoleTemplates struct { - *gentype.ClientWithList[*v1.ClusterRoleTemplate, *v1.ClusterRoleTemplateList] + *gentype.ClientWithList[*managementv1.ClusterRoleTemplate, *managementv1.ClusterRoleTemplateList] } // newClusterRoleTemplates returns a ClusterRoleTemplates func newClusterRoleTemplates(c *ManagementV1Client) *clusterRoleTemplates { return &clusterRoleTemplates{ - gentype.NewClientWithList[*v1.ClusterRoleTemplate, *v1.ClusterRoleTemplateList]( + gentype.NewClientWithList[*managementv1.ClusterRoleTemplate, *managementv1.ClusterRoleTemplateList]( "clusterroletemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ClusterRoleTemplate { return &v1.ClusterRoleTemplate{} }, - func() *v1.ClusterRoleTemplateList { return &v1.ClusterRoleTemplateList{} }), + func() *managementv1.ClusterRoleTemplate { return &managementv1.ClusterRoleTemplate{} }, + func() *managementv1.ClusterRoleTemplateList { return &managementv1.ClusterRoleTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/config.go b/pkg/clientset/versioned/typed/management/v1/config.go index de5d0ead..f5459d43 100644 --- a/pkg/clientset/versioned/typed/management/v1/config.go +++ b/pkg/clientset/versioned/typed/management/v1/config.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type ConfigsGetter interface { // ConfigInterface has methods to work with Config resources. type ConfigInterface interface { - Create(ctx context.Context, config *v1.Config, opts metav1.CreateOptions) (*v1.Config, error) - Update(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (*v1.Config, error) + Create(ctx context.Context, config *managementv1.Config, opts metav1.CreateOptions) (*managementv1.Config, error) + Update(ctx context.Context, config *managementv1.Config, opts metav1.UpdateOptions) (*managementv1.Config, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (*v1.Config, error) + UpdateStatus(ctx context.Context, config *managementv1.Config, opts metav1.UpdateOptions) (*managementv1.Config, 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) (*v1.Config, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ConfigList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Config, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.ConfigList, 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 *v1.Config, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Config, err error) ConfigExpansion } // configs implements ConfigInterface type configs struct { - *gentype.ClientWithList[*v1.Config, *v1.ConfigList] + *gentype.ClientWithList[*managementv1.Config, *managementv1.ConfigList] } // newConfigs returns a Configs func newConfigs(c *ManagementV1Client) *configs { return &configs{ - gentype.NewClientWithList[*v1.Config, *v1.ConfigList]( + gentype.NewClientWithList[*managementv1.Config, *managementv1.ConfigList]( "configs", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Config { return &v1.Config{} }, - func() *v1.ConfigList { return &v1.ConfigList{} }), + func() *managementv1.Config { return &managementv1.Config{} }, + func() *managementv1.ConfigList { return &managementv1.ConfigList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/convertvirtualclusterconfig.go b/pkg/clientset/versioned/typed/management/v1/convertvirtualclusterconfig.go index bf469246..08b2e2f0 100644 --- a/pkg/clientset/versioned/typed/management/v1/convertvirtualclusterconfig.go +++ b/pkg/clientset/versioned/typed/management/v1/convertvirtualclusterconfig.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,36 @@ type ConvertVirtualClusterConfigsGetter interface { // ConvertVirtualClusterConfigInterface has methods to work with ConvertVirtualClusterConfig resources. type ConvertVirtualClusterConfigInterface interface { - Create(ctx context.Context, convertVirtualClusterConfig *v1.ConvertVirtualClusterConfig, opts metav1.CreateOptions) (*v1.ConvertVirtualClusterConfig, error) - Update(ctx context.Context, convertVirtualClusterConfig *v1.ConvertVirtualClusterConfig, opts metav1.UpdateOptions) (*v1.ConvertVirtualClusterConfig, error) + Create(ctx context.Context, convertVirtualClusterConfig *managementv1.ConvertVirtualClusterConfig, opts metav1.CreateOptions) (*managementv1.ConvertVirtualClusterConfig, error) + Update(ctx context.Context, convertVirtualClusterConfig *managementv1.ConvertVirtualClusterConfig, opts metav1.UpdateOptions) (*managementv1.ConvertVirtualClusterConfig, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, convertVirtualClusterConfig *v1.ConvertVirtualClusterConfig, opts metav1.UpdateOptions) (*v1.ConvertVirtualClusterConfig, error) + UpdateStatus(ctx context.Context, convertVirtualClusterConfig *managementv1.ConvertVirtualClusterConfig, opts metav1.UpdateOptions) (*managementv1.ConvertVirtualClusterConfig, 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) (*v1.ConvertVirtualClusterConfig, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ConvertVirtualClusterConfigList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.ConvertVirtualClusterConfig, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.ConvertVirtualClusterConfigList, 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 *v1.ConvertVirtualClusterConfig, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.ConvertVirtualClusterConfig, err error) ConvertVirtualClusterConfigExpansion } // convertVirtualClusterConfigs implements ConvertVirtualClusterConfigInterface type convertVirtualClusterConfigs struct { - *gentype.ClientWithList[*v1.ConvertVirtualClusterConfig, *v1.ConvertVirtualClusterConfigList] + *gentype.ClientWithList[*managementv1.ConvertVirtualClusterConfig, *managementv1.ConvertVirtualClusterConfigList] } // newConvertVirtualClusterConfigs returns a ConvertVirtualClusterConfigs func newConvertVirtualClusterConfigs(c *ManagementV1Client) *convertVirtualClusterConfigs { return &convertVirtualClusterConfigs{ - gentype.NewClientWithList[*v1.ConvertVirtualClusterConfig, *v1.ConvertVirtualClusterConfigList]( + gentype.NewClientWithList[*managementv1.ConvertVirtualClusterConfig, *managementv1.ConvertVirtualClusterConfigList]( "convertvirtualclusterconfigs", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ConvertVirtualClusterConfig { return &v1.ConvertVirtualClusterConfig{} }, - func() *v1.ConvertVirtualClusterConfigList { return &v1.ConvertVirtualClusterConfigList{} }), + func() *managementv1.ConvertVirtualClusterConfig { return &managementv1.ConvertVirtualClusterConfig{} }, + func() *managementv1.ConvertVirtualClusterConfigList { + return &managementv1.ConvertVirtualClusterConfigList{} + }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/databaseconnector.go b/pkg/clientset/versioned/typed/management/v1/databaseconnector.go new file mode 100644 index 00000000..b2b12165 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/databaseconnector.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + scheme "github.com/loft-sh/api/v4/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" +) + +// DatabaseConnectorsGetter has a method to return a DatabaseConnectorInterface. +// A group's client should implement this interface. +type DatabaseConnectorsGetter interface { + DatabaseConnectors() DatabaseConnectorInterface +} + +// DatabaseConnectorInterface has methods to work with DatabaseConnector resources. +type DatabaseConnectorInterface interface { + Create(ctx context.Context, databaseConnector *managementv1.DatabaseConnector, opts metav1.CreateOptions) (*managementv1.DatabaseConnector, error) + Update(ctx context.Context, databaseConnector *managementv1.DatabaseConnector, opts metav1.UpdateOptions) (*managementv1.DatabaseConnector, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, databaseConnector *managementv1.DatabaseConnector, opts metav1.UpdateOptions) (*managementv1.DatabaseConnector, 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.DatabaseConnector, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DatabaseConnectorList, 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.DatabaseConnector, err error) + DatabaseConnectorExpansion +} + +// databaseConnectors implements DatabaseConnectorInterface +type databaseConnectors struct { + *gentype.ClientWithList[*managementv1.DatabaseConnector, *managementv1.DatabaseConnectorList] +} + +// newDatabaseConnectors returns a DatabaseConnectors +func newDatabaseConnectors(c *ManagementV1Client) *databaseConnectors { + return &databaseConnectors{ + gentype.NewClientWithList[*managementv1.DatabaseConnector, *managementv1.DatabaseConnectorList]( + "databaseconnectors", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *managementv1.DatabaseConnector { return &managementv1.DatabaseConnector{} }, + func() *managementv1.DatabaseConnectorList { return &managementv1.DatabaseConnectorList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go index 881e4fb6..b9bef5e9 100644 --- a/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,31 +21,34 @@ type DevPodEnvironmentTemplatesGetter interface { // DevPodEnvironmentTemplateInterface has methods to work with DevPodEnvironmentTemplate resources. type DevPodEnvironmentTemplateInterface interface { - Create(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (*v1.DevPodEnvironmentTemplate, error) - Update(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (*v1.DevPodEnvironmentTemplate, error) + 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) (*v1.DevPodEnvironmentTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodEnvironmentTemplateList, 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 *v1.DevPodEnvironmentTemplate, err 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[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] + *gentype.ClientWithList[*managementv1.DevPodEnvironmentTemplate, *managementv1.DevPodEnvironmentTemplateList] } // newDevPodEnvironmentTemplates returns a DevPodEnvironmentTemplates func newDevPodEnvironmentTemplates(c *ManagementV1Client) *devPodEnvironmentTemplates { return &devPodEnvironmentTemplates{ - gentype.NewClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList]( + gentype.NewClientWithList[*managementv1.DevPodEnvironmentTemplate, *managementv1.DevPodEnvironmentTemplateList]( "devpodenvironmenttemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.DevPodEnvironmentTemplate { return &v1.DevPodEnvironmentTemplate{} }, - func() *v1.DevPodEnvironmentTemplateList { return &v1.DevPodEnvironmentTemplateList{} }), + 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 index 4a1d6d9d..9014a035 100644 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,62 +21,95 @@ type DevPodWorkspaceInstancesGetter interface { // DevPodWorkspaceInstanceInterface has methods to work with DevPodWorkspaceInstance resources. type DevPodWorkspaceInstanceInterface interface { - Create(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (*v1.DevPodWorkspaceInstance, error) - Update(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (*v1.DevPodWorkspaceInstance, error) + 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) (*v1.DevPodWorkspaceInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodWorkspaceInstanceList, 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 *v1.DevPodWorkspaceInstance, err error) - GetState(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (*v1.DevPodWorkspaceInstanceState, error) - SetState(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceState *v1.DevPodWorkspaceInstanceState, opts metav1.CreateOptions) (*v1.DevPodWorkspaceInstanceState, 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[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] + *gentype.ClientWithList[*managementv1.DevPodWorkspaceInstance, *managementv1.DevPodWorkspaceInstanceList] } // newDevPodWorkspaceInstances returns a DevPodWorkspaceInstances func newDevPodWorkspaceInstances(c *ManagementV1Client, namespace string) *devPodWorkspaceInstances { return &devPodWorkspaceInstances{ - gentype.NewClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList]( + gentype.NewClientWithList[*managementv1.DevPodWorkspaceInstance, *managementv1.DevPodWorkspaceInstanceList]( "devpodworkspaceinstances", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.DevPodWorkspaceInstance { return &v1.DevPodWorkspaceInstance{} }, - func() *v1.DevPodWorkspaceInstanceList { return &v1.DevPodWorkspaceInstanceList{} }), + func() *managementv1.DevPodWorkspaceInstance { return &managementv1.DevPodWorkspaceInstance{} }, + func() *managementv1.DevPodWorkspaceInstanceList { return &managementv1.DevPodWorkspaceInstanceList{} }, + ), } } -// GetState takes name of the devPodWorkspaceInstance, and returns the corresponding v1.DevPodWorkspaceInstanceState object, and an error if there is any. -func (c *devPodWorkspaceInstances) GetState(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstanceState, err error) { - result = &v1.DevPodWorkspaceInstanceState{} +// 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("state"). + SubResource("troubleshoot"). VersionedParams(&options, scheme.ParameterCodec). Do(ctx). Into(result) return } -// SetState takes the representation of a devPodWorkspaceInstanceState and creates it. Returns the server's representation of the devPodWorkspaceInstanceState, and an error, if there is any. -func (c *devPodWorkspaceInstances) SetState(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceState *v1.DevPodWorkspaceInstanceState, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstanceState, err error) { - result = &v1.DevPodWorkspaceInstanceState{} +// 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("state"). + SubResource("cancel"). VersionedParams(&opts, scheme.ParameterCodec). - Body(devPodWorkspaceInstanceState). + 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 new file mode 100644 index 00000000..2b979314 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + scheme "github.com/loft-sh/api/v4/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 index 4f299022..cbb87123 100644 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type DevPodWorkspaceTemplatesGetter interface { // DevPodWorkspaceTemplateInterface has methods to work with DevPodWorkspaceTemplate resources. type DevPodWorkspaceTemplateInterface interface { - Create(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (*v1.DevPodWorkspaceTemplate, error) - Update(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*v1.DevPodWorkspaceTemplate, error) + 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 *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*v1.DevPodWorkspaceTemplate, error) + 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) (*v1.DevPodWorkspaceTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodWorkspaceTemplateList, 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 *v1.DevPodWorkspaceTemplate, err 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[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] + *gentype.ClientWithList[*managementv1.DevPodWorkspaceTemplate, *managementv1.DevPodWorkspaceTemplateList] } // newDevPodWorkspaceTemplates returns a DevPodWorkspaceTemplates func newDevPodWorkspaceTemplates(c *ManagementV1Client) *devPodWorkspaceTemplates { return &devPodWorkspaceTemplates{ - gentype.NewClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList]( + gentype.NewClientWithList[*managementv1.DevPodWorkspaceTemplate, *managementv1.DevPodWorkspaceTemplateList]( "devpodworkspacetemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.DevPodWorkspaceTemplate { return &v1.DevPodWorkspaceTemplate{} }, - func() *v1.DevPodWorkspaceTemplateList { return &v1.DevPodWorkspaceTemplateList{} }), + func() *managementv1.DevPodWorkspaceTemplate { return &managementv1.DevPodWorkspaceTemplate{} }, + func() *managementv1.DevPodWorkspaceTemplateList { return &managementv1.DevPodWorkspaceTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/directclusterendpointtoken.go b/pkg/clientset/versioned/typed/management/v1/directclusterendpointtoken.go index fbe2de99..5f427db4 100644 --- a/pkg/clientset/versioned/typed/management/v1/directclusterendpointtoken.go +++ b/pkg/clientset/versioned/typed/management/v1/directclusterendpointtoken.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,36 @@ type DirectClusterEndpointTokensGetter interface { // DirectClusterEndpointTokenInterface has methods to work with DirectClusterEndpointToken resources. type DirectClusterEndpointTokenInterface interface { - Create(ctx context.Context, directClusterEndpointToken *v1.DirectClusterEndpointToken, opts metav1.CreateOptions) (*v1.DirectClusterEndpointToken, error) - Update(ctx context.Context, directClusterEndpointToken *v1.DirectClusterEndpointToken, opts metav1.UpdateOptions) (*v1.DirectClusterEndpointToken, error) + Create(ctx context.Context, directClusterEndpointToken *managementv1.DirectClusterEndpointToken, opts metav1.CreateOptions) (*managementv1.DirectClusterEndpointToken, error) + Update(ctx context.Context, directClusterEndpointToken *managementv1.DirectClusterEndpointToken, opts metav1.UpdateOptions) (*managementv1.DirectClusterEndpointToken, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, directClusterEndpointToken *v1.DirectClusterEndpointToken, opts metav1.UpdateOptions) (*v1.DirectClusterEndpointToken, error) + UpdateStatus(ctx context.Context, directClusterEndpointToken *managementv1.DirectClusterEndpointToken, opts metav1.UpdateOptions) (*managementv1.DirectClusterEndpointToken, 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) (*v1.DirectClusterEndpointToken, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DirectClusterEndpointTokenList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DirectClusterEndpointToken, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DirectClusterEndpointTokenList, 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 *v1.DirectClusterEndpointToken, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DirectClusterEndpointToken, err error) DirectClusterEndpointTokenExpansion } // directClusterEndpointTokens implements DirectClusterEndpointTokenInterface type directClusterEndpointTokens struct { - *gentype.ClientWithList[*v1.DirectClusterEndpointToken, *v1.DirectClusterEndpointTokenList] + *gentype.ClientWithList[*managementv1.DirectClusterEndpointToken, *managementv1.DirectClusterEndpointTokenList] } // newDirectClusterEndpointTokens returns a DirectClusterEndpointTokens func newDirectClusterEndpointTokens(c *ManagementV1Client) *directClusterEndpointTokens { return &directClusterEndpointTokens{ - gentype.NewClientWithList[*v1.DirectClusterEndpointToken, *v1.DirectClusterEndpointTokenList]( + gentype.NewClientWithList[*managementv1.DirectClusterEndpointToken, *managementv1.DirectClusterEndpointTokenList]( "directclusterendpointtokens", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.DirectClusterEndpointToken { return &v1.DirectClusterEndpointToken{} }, - func() *v1.DirectClusterEndpointTokenList { return &v1.DirectClusterEndpointTokenList{} }), + func() *managementv1.DirectClusterEndpointToken { return &managementv1.DirectClusterEndpointToken{} }, + func() *managementv1.DirectClusterEndpointTokenList { + return &managementv1.DirectClusterEndpointTokenList{} + }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/event.go b/pkg/clientset/versioned/typed/management/v1/event.go index 0ae798af..e762df21 100644 --- a/pkg/clientset/versioned/typed/management/v1/event.go +++ b/pkg/clientset/versioned/typed/management/v1/event.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type EventsGetter interface { // EventInterface has methods to work with Event resources. type EventInterface interface { - Create(ctx context.Context, event *v1.Event, opts metav1.CreateOptions) (*v1.Event, error) - Update(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (*v1.Event, error) + Create(ctx context.Context, event *managementv1.Event, opts metav1.CreateOptions) (*managementv1.Event, error) + Update(ctx context.Context, event *managementv1.Event, opts metav1.UpdateOptions) (*managementv1.Event, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (*v1.Event, error) + UpdateStatus(ctx context.Context, event *managementv1.Event, opts metav1.UpdateOptions) (*managementv1.Event, 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) (*v1.Event, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.EventList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Event, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.EventList, 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 *v1.Event, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Event, err error) EventExpansion } // events implements EventInterface type events struct { - *gentype.ClientWithList[*v1.Event, *v1.EventList] + *gentype.ClientWithList[*managementv1.Event, *managementv1.EventList] } // newEvents returns a Events func newEvents(c *ManagementV1Client) *events { return &events{ - gentype.NewClientWithList[*v1.Event, *v1.EventList]( + gentype.NewClientWithList[*managementv1.Event, *managementv1.EventList]( "events", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Event { return &v1.Event{} }, - func() *v1.EventList { return &v1.EventList{} }), + func() *managementv1.Event { return &managementv1.Event{} }, + func() *managementv1.EventList { return &managementv1.EventList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_agentauditevent.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_agentauditevent.go index 01c6961c..99e6030f 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_agentauditevent.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_agentauditevent.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeAgentAuditEvents implements AgentAuditEventInterface -type FakeAgentAuditEvents struct { +// fakeAgentAuditEvents implements AgentAuditEventInterface +type fakeAgentAuditEvents struct { + *gentype.FakeClientWithList[*v1.AgentAuditEvent, *v1.AgentAuditEventList] Fake *FakeManagementV1 } -var agentauditeventsResource = v1.SchemeGroupVersion.WithResource("agentauditevents") - -var agentauditeventsKind = v1.SchemeGroupVersion.WithKind("AgentAuditEvent") - -// Get takes name of the agentAuditEvent, and returns the corresponding agentAuditEvent object, and an error if there is any. -func (c *FakeAgentAuditEvents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.AgentAuditEvent, err error) { - emptyResult := &v1.AgentAuditEvent{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(agentauditeventsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AgentAuditEvent), err -} - -// List takes label and field selectors, and returns the list of AgentAuditEvents that match those selectors. -func (c *FakeAgentAuditEvents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AgentAuditEventList, err error) { - emptyResult := &v1.AgentAuditEventList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(agentauditeventsResource, agentauditeventsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.AgentAuditEventList{ListMeta: obj.(*v1.AgentAuditEventList).ListMeta} - for _, item := range obj.(*v1.AgentAuditEventList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested agentAuditEvents. -func (c *FakeAgentAuditEvents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(agentauditeventsResource, opts)) -} - -// Create takes the representation of a agentAuditEvent and creates it. Returns the server's representation of the agentAuditEvent, and an error, if there is any. -func (c *FakeAgentAuditEvents) Create(ctx context.Context, agentAuditEvent *v1.AgentAuditEvent, opts metav1.CreateOptions) (result *v1.AgentAuditEvent, err error) { - emptyResult := &v1.AgentAuditEvent{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(agentauditeventsResource, agentAuditEvent, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AgentAuditEvent), err -} - -// Update takes the representation of a agentAuditEvent and updates it. Returns the server's representation of the agentAuditEvent, and an error, if there is any. -func (c *FakeAgentAuditEvents) Update(ctx context.Context, agentAuditEvent *v1.AgentAuditEvent, opts metav1.UpdateOptions) (result *v1.AgentAuditEvent, err error) { - emptyResult := &v1.AgentAuditEvent{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(agentauditeventsResource, agentAuditEvent, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AgentAuditEvent), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeAgentAuditEvents) UpdateStatus(ctx context.Context, agentAuditEvent *v1.AgentAuditEvent, opts metav1.UpdateOptions) (result *v1.AgentAuditEvent, err error) { - emptyResult := &v1.AgentAuditEvent{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(agentauditeventsResource, "status", agentAuditEvent, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AgentAuditEvent), err -} - -// Delete takes name of the agentAuditEvent and deletes it. Returns an error if one occurs. -func (c *FakeAgentAuditEvents) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(agentauditeventsResource, name, opts), &v1.AgentAuditEvent{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeAgentAuditEvents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(agentauditeventsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.AgentAuditEventList{}) - return err -} - -// Patch applies the patch and returns the patched agentAuditEvent. -func (c *FakeAgentAuditEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.AgentAuditEvent, err error) { - emptyResult := &v1.AgentAuditEvent{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(agentauditeventsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeAgentAuditEvents(fake *FakeManagementV1) managementv1.AgentAuditEventInterface { + return &fakeAgentAuditEvents{ + gentype.NewFakeClientWithList[*v1.AgentAuditEvent, *v1.AgentAuditEventList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("agentauditevents"), + v1.SchemeGroupVersion.WithKind("AgentAuditEvent"), + func() *v1.AgentAuditEvent { return &v1.AgentAuditEvent{} }, + func() *v1.AgentAuditEventList { return &v1.AgentAuditEventList{} }, + func(dst, src *v1.AgentAuditEventList) { dst.ListMeta = src.ListMeta }, + func(list *v1.AgentAuditEventList) []*v1.AgentAuditEvent { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.AgentAuditEventList, items []*v1.AgentAuditEvent) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.AgentAuditEvent), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_announcement.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_announcement.go index d11150fb..917dcbdb 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_announcement.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_announcement.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeAnnouncements implements AnnouncementInterface -type FakeAnnouncements struct { +// fakeAnnouncements implements AnnouncementInterface +type fakeAnnouncements struct { + *gentype.FakeClientWithList[*v1.Announcement, *v1.AnnouncementList] Fake *FakeManagementV1 } -var announcementsResource = v1.SchemeGroupVersion.WithResource("announcements") - -var announcementsKind = v1.SchemeGroupVersion.WithKind("Announcement") - -// Get takes name of the announcement, and returns the corresponding announcement object, and an error if there is any. -func (c *FakeAnnouncements) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Announcement, err error) { - emptyResult := &v1.Announcement{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(announcementsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Announcement), err -} - -// List takes label and field selectors, and returns the list of Announcements that match those selectors. -func (c *FakeAnnouncements) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AnnouncementList, err error) { - emptyResult := &v1.AnnouncementList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(announcementsResource, announcementsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.AnnouncementList{ListMeta: obj.(*v1.AnnouncementList).ListMeta} - for _, item := range obj.(*v1.AnnouncementList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested announcements. -func (c *FakeAnnouncements) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(announcementsResource, opts)) -} - -// Create takes the representation of a announcement and creates it. Returns the server's representation of the announcement, and an error, if there is any. -func (c *FakeAnnouncements) Create(ctx context.Context, announcement *v1.Announcement, opts metav1.CreateOptions) (result *v1.Announcement, err error) { - emptyResult := &v1.Announcement{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(announcementsResource, announcement, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Announcement), err -} - -// Update takes the representation of a announcement and updates it. Returns the server's representation of the announcement, and an error, if there is any. -func (c *FakeAnnouncements) Update(ctx context.Context, announcement *v1.Announcement, opts metav1.UpdateOptions) (result *v1.Announcement, err error) { - emptyResult := &v1.Announcement{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(announcementsResource, announcement, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Announcement), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeAnnouncements) UpdateStatus(ctx context.Context, announcement *v1.Announcement, opts metav1.UpdateOptions) (result *v1.Announcement, err error) { - emptyResult := &v1.Announcement{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(announcementsResource, "status", announcement, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Announcement), err -} - -// Delete takes name of the announcement and deletes it. Returns an error if one occurs. -func (c *FakeAnnouncements) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(announcementsResource, name, opts), &v1.Announcement{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeAnnouncements) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(announcementsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.AnnouncementList{}) - return err -} - -// Patch applies the patch and returns the patched announcement. -func (c *FakeAnnouncements) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Announcement, err error) { - emptyResult := &v1.Announcement{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(announcementsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeAnnouncements(fake *FakeManagementV1) managementv1.AnnouncementInterface { + return &fakeAnnouncements{ + gentype.NewFakeClientWithList[*v1.Announcement, *v1.AnnouncementList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("announcements"), + v1.SchemeGroupVersion.WithKind("Announcement"), + func() *v1.Announcement { return &v1.Announcement{} }, + func() *v1.AnnouncementList { return &v1.AnnouncementList{} }, + func(dst, src *v1.AnnouncementList) { dst.ListMeta = src.ListMeta }, + func(list *v1.AnnouncementList) []*v1.Announcement { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.AnnouncementList, items []*v1.Announcement) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.Announcement), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_app.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_app.go index 0a71d4a8..d92ed208 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_app.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_app.go @@ -3,129 +3,43 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeApps implements AppInterface -type FakeApps struct { +// fakeApps implements AppInterface +type fakeApps struct { + *gentype.FakeClientWithList[*v1.App, *v1.AppList] Fake *FakeManagementV1 } -var appsResource = v1.SchemeGroupVersion.WithResource("apps") - -var appsKind = v1.SchemeGroupVersion.WithKind("App") - -// Get takes name of the app, and returns the corresponding app object, and an error if there is any. -func (c *FakeApps) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(appsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// List takes label and field selectors, and returns the list of Apps that match those selectors. -func (c *FakeApps) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AppList, err error) { - emptyResult := &v1.AppList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(appsResource, appsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.AppList{ListMeta: obj.(*v1.AppList).ListMeta} - for _, item := range obj.(*v1.AppList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested apps. -func (c *FakeApps) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(appsResource, opts)) -} - -// Create takes the representation of a app and creates it. Returns the server's representation of the app, and an error, if there is any. -func (c *FakeApps) Create(ctx context.Context, app *v1.App, opts metav1.CreateOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(appsResource, app, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// Update takes the representation of a app and updates it. Returns the server's representation of the app, and an error, if there is any. -func (c *FakeApps) Update(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(appsResource, app, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeApps) UpdateStatus(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(appsResource, "status", app, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// Delete takes name of the app and deletes it. Returns an error if one occurs. -func (c *FakeApps) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(appsResource, name, opts), &v1.App{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeApps) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(appsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.AppList{}) - return err -} - -// Patch applies the patch and returns the patched app. -func (c *FakeApps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(appsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeApps(fake *FakeManagementV1) managementv1.AppInterface { + return &fakeApps{ + gentype.NewFakeClientWithList[*v1.App, *v1.AppList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("apps"), + v1.SchemeGroupVersion.WithKind("App"), + func() *v1.App { return &v1.App{} }, + func() *v1.AppList { return &v1.AppList{} }, + func(dst, src *v1.AppList) { dst.ListMeta = src.ListMeta }, + func(list *v1.AppList) []*v1.App { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.AppList, items []*v1.App) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.App), err } // GetCredentials takes name of the app, and returns the corresponding appCredentials object, and an error if there is any. -func (c *FakeApps) GetCredentials(ctx context.Context, appName string, options metav1.GetOptions) (result *v1.AppCredentials, err error) { +func (c *fakeApps) GetCredentials(ctx context.Context, appName string, options metav1.GetOptions) (result *v1.AppCredentials, err error) { emptyResult := &v1.AppCredentials{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(appsResource, "credentials", appName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "credentials", appName, options), emptyResult) if obj == nil { return emptyResult, err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_backup.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_backup.go index ae69f605..f42845ca 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_backup.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_backup.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeBackups implements BackupInterface -type FakeBackups struct { +// fakeBackups implements BackupInterface +type fakeBackups struct { + *gentype.FakeClientWithList[*v1.Backup, *v1.BackupList] Fake *FakeManagementV1 } -var backupsResource = v1.SchemeGroupVersion.WithResource("backups") - -var backupsKind = v1.SchemeGroupVersion.WithKind("Backup") - -// Get takes name of the backup, and returns the corresponding backup object, and an error if there is any. -func (c *FakeBackups) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Backup, err error) { - emptyResult := &v1.Backup{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(backupsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Backup), err -} - -// List takes label and field selectors, and returns the list of Backups that match those selectors. -func (c *FakeBackups) List(ctx context.Context, opts metav1.ListOptions) (result *v1.BackupList, err error) { - emptyResult := &v1.BackupList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(backupsResource, backupsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.BackupList{ListMeta: obj.(*v1.BackupList).ListMeta} - for _, item := range obj.(*v1.BackupList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested backups. -func (c *FakeBackups) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(backupsResource, opts)) -} - -// Create takes the representation of a backup and creates it. Returns the server's representation of the backup, and an error, if there is any. -func (c *FakeBackups) Create(ctx context.Context, backup *v1.Backup, opts metav1.CreateOptions) (result *v1.Backup, err error) { - emptyResult := &v1.Backup{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(backupsResource, backup, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Backup), err -} - -// Update takes the representation of a backup and updates it. Returns the server's representation of the backup, and an error, if there is any. -func (c *FakeBackups) Update(ctx context.Context, backup *v1.Backup, opts metav1.UpdateOptions) (result *v1.Backup, err error) { - emptyResult := &v1.Backup{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(backupsResource, backup, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Backup), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeBackups) UpdateStatus(ctx context.Context, backup *v1.Backup, opts metav1.UpdateOptions) (result *v1.Backup, err error) { - emptyResult := &v1.Backup{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(backupsResource, "status", backup, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Backup), err -} - -// Delete takes name of the backup and deletes it. Returns an error if one occurs. -func (c *FakeBackups) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(backupsResource, name, opts), &v1.Backup{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeBackups) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(backupsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.BackupList{}) - return err -} - -// Patch applies the patch and returns the patched backup. -func (c *FakeBackups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Backup, err error) { - emptyResult := &v1.Backup{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(backupsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeBackups(fake *FakeManagementV1) managementv1.BackupInterface { + return &fakeBackups{ + gentype.NewFakeClientWithList[*v1.Backup, *v1.BackupList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("backups"), + v1.SchemeGroupVersion.WithKind("Backup"), + func() *v1.Backup { return &v1.Backup{} }, + func() *v1.BackupList { return &v1.BackupList{} }, + func(dst, src *v1.BackupList) { dst.ListMeta = src.ListMeta }, + func(list *v1.BackupList) []*v1.Backup { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.BackupList, items []*v1.Backup) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Backup), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_cluster.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_cluster.go index a4784059..15c53e47 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_cluster.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_cluster.go @@ -3,129 +3,43 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeClusters implements ClusterInterface -type FakeClusters struct { +// fakeClusters implements ClusterInterface +type fakeClusters struct { + *gentype.FakeClientWithList[*v1.Cluster, *v1.ClusterList] Fake *FakeManagementV1 } -var clustersResource = v1.SchemeGroupVersion.WithResource("clusters") - -var clustersKind = v1.SchemeGroupVersion.WithKind("Cluster") - -// Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. -func (c *FakeClusters) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clustersResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err -} - -// List takes label and field selectors, and returns the list of Clusters that match those selectors. -func (c *FakeClusters) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterList, err error) { - emptyResult := &v1.ClusterList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clustersResource, clustersKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() +func newFakeClusters(fake *FakeManagementV1) managementv1.ClusterInterface { + return &fakeClusters{ + gentype.NewFakeClientWithList[*v1.Cluster, *v1.ClusterList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clusters"), + v1.SchemeGroupVersion.WithKind("Cluster"), + func() *v1.Cluster { return &v1.Cluster{} }, + func() *v1.ClusterList { return &v1.ClusterList{} }, + func(dst, src *v1.ClusterList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterList) []*v1.Cluster { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ClusterList, items []*v1.Cluster) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - list := &v1.ClusterList{ListMeta: obj.(*v1.ClusterList).ListMeta} - for _, item := range obj.(*v1.ClusterList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested clusters. -func (c *FakeClusters) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clustersResource, opts)) -} - -// Create takes the representation of a cluster and creates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *FakeClusters) Create(ctx context.Context, cluster *v1.Cluster, opts metav1.CreateOptions) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clustersResource, cluster, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err -} - -// Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *FakeClusters) Update(ctx context.Context, cluster *v1.Cluster, opts metav1.UpdateOptions) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clustersResource, cluster, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeClusters) UpdateStatus(ctx context.Context, cluster *v1.Cluster, opts metav1.UpdateOptions) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustersResource, "status", cluster, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err -} - -// Delete takes name of the cluster and deletes it. Returns an error if one occurs. -func (c *FakeClusters) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clustersResource, name, opts), &v1.Cluster{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusters) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clustersResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterList{}) - return err -} - -// Patch applies the patch and returns the patched cluster. -func (c *FakeClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustersResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err } // ListAccess takes name of the cluster, and returns the corresponding clusterMemberAccess object, and an error if there is any. -func (c *FakeClusters) ListAccess(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterMemberAccess, err error) { +func (c *fakeClusters) ListAccess(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterMemberAccess, err error) { emptyResult := &v1.ClusterMemberAccess{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(clustersResource, "memberaccess", clusterName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "memberaccess", clusterName, options), emptyResult) if obj == nil { return emptyResult, err } @@ -133,32 +47,21 @@ func (c *FakeClusters) ListAccess(ctx context.Context, clusterName string, optio } // ListMembers takes name of the cluster, and returns the corresponding clusterMembers object, and an error if there is any. -func (c *FakeClusters) ListMembers(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterMembers, err error) { +func (c *fakeClusters) ListMembers(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterMembers, err error) { emptyResult := &v1.ClusterMembers{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(clustersResource, "members", clusterName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "members", clusterName, options), emptyResult) if obj == nil { return emptyResult, err } return obj.(*v1.ClusterMembers), err } -// ListVirtualClusterDefaults takes name of the cluster, and returns the corresponding clusterVirtualClusterDefaults object, and an error if there is any. -func (c *FakeClusters) ListVirtualClusterDefaults(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterVirtualClusterDefaults, err error) { - emptyResult := &v1.ClusterVirtualClusterDefaults{} - obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(clustersResource, "virtualclusterdefaults", clusterName, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterVirtualClusterDefaults), err -} - // GetAgentConfig takes name of the cluster, and returns the corresponding clusterAgentConfig object, and an error if there is any. -func (c *FakeClusters) GetAgentConfig(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterAgentConfig, err error) { +func (c *fakeClusters) GetAgentConfig(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterAgentConfig, err error) { emptyResult := &v1.ClusterAgentConfig{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(clustersResource, "agentconfig", clusterName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "agentconfig", clusterName, options), emptyResult) if obj == nil { return emptyResult, err } @@ -166,10 +69,10 @@ func (c *FakeClusters) GetAgentConfig(ctx context.Context, clusterName string, o } // GetAccessKey takes name of the cluster, and returns the corresponding clusterAccessKey object, and an error if there is any. -func (c *FakeClusters) GetAccessKey(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterAccessKey, err error) { +func (c *fakeClusters) GetAccessKey(ctx context.Context, clusterName string, options metav1.GetOptions) (result *v1.ClusterAccessKey, err error) { emptyResult := &v1.ClusterAccessKey{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(clustersResource, "accesskey", clusterName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "accesskey", clusterName, options), emptyResult) if obj == nil { return emptyResult, err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_clusteraccess.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_clusteraccess.go index 3d725145..68908725 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_clusteraccess.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_clusteraccess.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeClusterAccesses implements ClusterAccessInterface -type FakeClusterAccesses struct { +// fakeClusterAccesses implements ClusterAccessInterface +type fakeClusterAccesses struct { + *gentype.FakeClientWithList[*v1.ClusterAccess, *v1.ClusterAccessList] Fake *FakeManagementV1 } -var clusteraccessesResource = v1.SchemeGroupVersion.WithResource("clusteraccesses") - -var clusteraccessesKind = v1.SchemeGroupVersion.WithKind("ClusterAccess") - -// Get takes name of the clusterAccess, and returns the corresponding clusterAccess object, and an error if there is any. -func (c *FakeClusterAccesses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clusteraccessesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterAccess), err -} - -// List takes label and field selectors, and returns the list of ClusterAccesses that match those selectors. -func (c *FakeClusterAccesses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterAccessList, err error) { - emptyResult := &v1.ClusterAccessList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clusteraccessesResource, clusteraccessesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterAccessList{ListMeta: obj.(*v1.ClusterAccessList).ListMeta} - for _, item := range obj.(*v1.ClusterAccessList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested clusterAccesses. -func (c *FakeClusterAccesses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clusteraccessesResource, opts)) -} - -// Create takes the representation of a clusterAccess and creates it. Returns the server's representation of the clusterAccess, and an error, if there is any. -func (c *FakeClusterAccesses) Create(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.CreateOptions) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clusteraccessesResource, clusterAccess, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterAccess), err -} - -// Update takes the representation of a clusterAccess and updates it. Returns the server's representation of the clusterAccess, and an error, if there is any. -func (c *FakeClusterAccesses) Update(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.UpdateOptions) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clusteraccessesResource, clusterAccess, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterAccess), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeClusterAccesses) UpdateStatus(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.UpdateOptions) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clusteraccessesResource, "status", clusterAccess, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterAccess), err -} - -// Delete takes name of the clusterAccess and deletes it. Returns an error if one occurs. -func (c *FakeClusterAccesses) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clusteraccessesResource, name, opts), &v1.ClusterAccess{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterAccesses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clusteraccessesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterAccessList{}) - return err -} - -// Patch applies the patch and returns the patched clusterAccess. -func (c *FakeClusterAccesses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusteraccessesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterAccesses(fake *FakeManagementV1) managementv1.ClusterAccessInterface { + return &fakeClusterAccesses{ + gentype.NewFakeClientWithList[*v1.ClusterAccess, *v1.ClusterAccessList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clusteraccesses"), + v1.SchemeGroupVersion.WithKind("ClusterAccess"), + func() *v1.ClusterAccess { return &v1.ClusterAccess{} }, + func() *v1.ClusterAccessList { return &v1.ClusterAccessList{} }, + func(dst, src *v1.ClusterAccessList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterAccessList) []*v1.ClusterAccess { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ClusterAccessList, items []*v1.ClusterAccess) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ClusterAccess), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_clusterroletemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_clusterroletemplate.go index b5969d8f..22f91163 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_clusterroletemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_clusterroletemplate.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeClusterRoleTemplates implements ClusterRoleTemplateInterface -type FakeClusterRoleTemplates struct { +// fakeClusterRoleTemplates implements ClusterRoleTemplateInterface +type fakeClusterRoleTemplates struct { + *gentype.FakeClientWithList[*v1.ClusterRoleTemplate, *v1.ClusterRoleTemplateList] Fake *FakeManagementV1 } -var clusterroletemplatesResource = v1.SchemeGroupVersion.WithResource("clusterroletemplates") - -var clusterroletemplatesKind = v1.SchemeGroupVersion.WithKind("ClusterRoleTemplate") - -// Get takes name of the clusterRoleTemplate, and returns the corresponding clusterRoleTemplate object, and an error if there is any. -func (c *FakeClusterRoleTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clusterroletemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterRoleTemplate), err -} - -// List takes label and field selectors, and returns the list of ClusterRoleTemplates that match those selectors. -func (c *FakeClusterRoleTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleTemplateList, err error) { - emptyResult := &v1.ClusterRoleTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clusterroletemplatesResource, clusterroletemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterRoleTemplateList{ListMeta: obj.(*v1.ClusterRoleTemplateList).ListMeta} - for _, item := range obj.(*v1.ClusterRoleTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested clusterRoleTemplates. -func (c *FakeClusterRoleTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clusterroletemplatesResource, opts)) -} - -// Create takes the representation of a clusterRoleTemplate and creates it. Returns the server's representation of the clusterRoleTemplate, and an error, if there is any. -func (c *FakeClusterRoleTemplates) Create(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.CreateOptions) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clusterroletemplatesResource, clusterRoleTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterRoleTemplate), err -} - -// Update takes the representation of a clusterRoleTemplate and updates it. Returns the server's representation of the clusterRoleTemplate, and an error, if there is any. -func (c *FakeClusterRoleTemplates) Update(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.UpdateOptions) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clusterroletemplatesResource, clusterRoleTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterRoleTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeClusterRoleTemplates) UpdateStatus(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.UpdateOptions) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clusterroletemplatesResource, "status", clusterRoleTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterRoleTemplate), err -} - -// Delete takes name of the clusterRoleTemplate and deletes it. Returns an error if one occurs. -func (c *FakeClusterRoleTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clusterroletemplatesResource, name, opts), &v1.ClusterRoleTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterRoleTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clusterroletemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterRoleTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched clusterRoleTemplate. -func (c *FakeClusterRoleTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterroletemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterRoleTemplates(fake *FakeManagementV1) managementv1.ClusterRoleTemplateInterface { + return &fakeClusterRoleTemplates{ + gentype.NewFakeClientWithList[*v1.ClusterRoleTemplate, *v1.ClusterRoleTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clusterroletemplates"), + v1.SchemeGroupVersion.WithKind("ClusterRoleTemplate"), + func() *v1.ClusterRoleTemplate { return &v1.ClusterRoleTemplate{} }, + func() *v1.ClusterRoleTemplateList { return &v1.ClusterRoleTemplateList{} }, + func(dst, src *v1.ClusterRoleTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterRoleTemplateList) []*v1.ClusterRoleTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.ClusterRoleTemplateList, items []*v1.ClusterRoleTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ClusterRoleTemplate), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_config.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_config.go index 0e242c13..7409ace8 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_config.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_config.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeConfigs implements ConfigInterface -type FakeConfigs struct { +// fakeConfigs implements ConfigInterface +type fakeConfigs struct { + *gentype.FakeClientWithList[*v1.Config, *v1.ConfigList] Fake *FakeManagementV1 } -var configsResource = v1.SchemeGroupVersion.WithResource("configs") - -var configsKind = v1.SchemeGroupVersion.WithKind("Config") - -// Get takes name of the config, and returns the corresponding config object, and an error if there is any. -func (c *FakeConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Config, err error) { - emptyResult := &v1.Config{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(configsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Config), err -} - -// List takes label and field selectors, and returns the list of Configs that match those selectors. -func (c *FakeConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConfigList, err error) { - emptyResult := &v1.ConfigList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(configsResource, configsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ConfigList{ListMeta: obj.(*v1.ConfigList).ListMeta} - for _, item := range obj.(*v1.ConfigList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested configs. -func (c *FakeConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(configsResource, opts)) -} - -// Create takes the representation of a config and creates it. Returns the server's representation of the config, and an error, if there is any. -func (c *FakeConfigs) Create(ctx context.Context, config *v1.Config, opts metav1.CreateOptions) (result *v1.Config, err error) { - emptyResult := &v1.Config{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(configsResource, config, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Config), err -} - -// Update takes the representation of a config and updates it. Returns the server's representation of the config, and an error, if there is any. -func (c *FakeConfigs) Update(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (result *v1.Config, err error) { - emptyResult := &v1.Config{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(configsResource, config, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Config), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeConfigs) UpdateStatus(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (result *v1.Config, err error) { - emptyResult := &v1.Config{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(configsResource, "status", config, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Config), err -} - -// Delete takes name of the config and deletes it. Returns an error if one occurs. -func (c *FakeConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(configsResource, name, opts), &v1.Config{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(configsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ConfigList{}) - return err -} - -// Patch applies the patch and returns the patched config. -func (c *FakeConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Config, err error) { - emptyResult := &v1.Config{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(configsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeConfigs(fake *FakeManagementV1) managementv1.ConfigInterface { + return &fakeConfigs{ + gentype.NewFakeClientWithList[*v1.Config, *v1.ConfigList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("configs"), + v1.SchemeGroupVersion.WithKind("Config"), + func() *v1.Config { return &v1.Config{} }, + func() *v1.ConfigList { return &v1.ConfigList{} }, + func(dst, src *v1.ConfigList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ConfigList) []*v1.Config { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ConfigList, items []*v1.Config) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Config), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_convertvirtualclusterconfig.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_convertvirtualclusterconfig.go index b51d9c82..6ab35314 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_convertvirtualclusterconfig.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_convertvirtualclusterconfig.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeConvertVirtualClusterConfigs implements ConvertVirtualClusterConfigInterface -type FakeConvertVirtualClusterConfigs struct { +// fakeConvertVirtualClusterConfigs implements ConvertVirtualClusterConfigInterface +type fakeConvertVirtualClusterConfigs struct { + *gentype.FakeClientWithList[*v1.ConvertVirtualClusterConfig, *v1.ConvertVirtualClusterConfigList] Fake *FakeManagementV1 } -var convertvirtualclusterconfigsResource = v1.SchemeGroupVersion.WithResource("convertvirtualclusterconfigs") - -var convertvirtualclusterconfigsKind = v1.SchemeGroupVersion.WithKind("ConvertVirtualClusterConfig") - -// Get takes name of the convertVirtualClusterConfig, and returns the corresponding convertVirtualClusterConfig object, and an error if there is any. -func (c *FakeConvertVirtualClusterConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConvertVirtualClusterConfig, err error) { - emptyResult := &v1.ConvertVirtualClusterConfig{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(convertvirtualclusterconfigsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ConvertVirtualClusterConfig), err -} - -// List takes label and field selectors, and returns the list of ConvertVirtualClusterConfigs that match those selectors. -func (c *FakeConvertVirtualClusterConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConvertVirtualClusterConfigList, err error) { - emptyResult := &v1.ConvertVirtualClusterConfigList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(convertvirtualclusterconfigsResource, convertvirtualclusterconfigsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ConvertVirtualClusterConfigList{ListMeta: obj.(*v1.ConvertVirtualClusterConfigList).ListMeta} - for _, item := range obj.(*v1.ConvertVirtualClusterConfigList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested convertVirtualClusterConfigs. -func (c *FakeConvertVirtualClusterConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(convertvirtualclusterconfigsResource, opts)) -} - -// Create takes the representation of a convertVirtualClusterConfig and creates it. Returns the server's representation of the convertVirtualClusterConfig, and an error, if there is any. -func (c *FakeConvertVirtualClusterConfigs) Create(ctx context.Context, convertVirtualClusterConfig *v1.ConvertVirtualClusterConfig, opts metav1.CreateOptions) (result *v1.ConvertVirtualClusterConfig, err error) { - emptyResult := &v1.ConvertVirtualClusterConfig{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(convertvirtualclusterconfigsResource, convertVirtualClusterConfig, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ConvertVirtualClusterConfig), err -} - -// Update takes the representation of a convertVirtualClusterConfig and updates it. Returns the server's representation of the convertVirtualClusterConfig, and an error, if there is any. -func (c *FakeConvertVirtualClusterConfigs) Update(ctx context.Context, convertVirtualClusterConfig *v1.ConvertVirtualClusterConfig, opts metav1.UpdateOptions) (result *v1.ConvertVirtualClusterConfig, err error) { - emptyResult := &v1.ConvertVirtualClusterConfig{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(convertvirtualclusterconfigsResource, convertVirtualClusterConfig, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ConvertVirtualClusterConfig), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeConvertVirtualClusterConfigs) UpdateStatus(ctx context.Context, convertVirtualClusterConfig *v1.ConvertVirtualClusterConfig, opts metav1.UpdateOptions) (result *v1.ConvertVirtualClusterConfig, err error) { - emptyResult := &v1.ConvertVirtualClusterConfig{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(convertvirtualclusterconfigsResource, "status", convertVirtualClusterConfig, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ConvertVirtualClusterConfig), err -} - -// Delete takes name of the convertVirtualClusterConfig and deletes it. Returns an error if one occurs. -func (c *FakeConvertVirtualClusterConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(convertvirtualclusterconfigsResource, name, opts), &v1.ConvertVirtualClusterConfig{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeConvertVirtualClusterConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(convertvirtualclusterconfigsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ConvertVirtualClusterConfigList{}) - return err -} - -// Patch applies the patch and returns the patched convertVirtualClusterConfig. -func (c *FakeConvertVirtualClusterConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConvertVirtualClusterConfig, err error) { - emptyResult := &v1.ConvertVirtualClusterConfig{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(convertvirtualclusterconfigsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeConvertVirtualClusterConfigs(fake *FakeManagementV1) managementv1.ConvertVirtualClusterConfigInterface { + return &fakeConvertVirtualClusterConfigs{ + gentype.NewFakeClientWithList[*v1.ConvertVirtualClusterConfig, *v1.ConvertVirtualClusterConfigList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("convertvirtualclusterconfigs"), + v1.SchemeGroupVersion.WithKind("ConvertVirtualClusterConfig"), + func() *v1.ConvertVirtualClusterConfig { return &v1.ConvertVirtualClusterConfig{} }, + func() *v1.ConvertVirtualClusterConfigList { return &v1.ConvertVirtualClusterConfigList{} }, + func(dst, src *v1.ConvertVirtualClusterConfigList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ConvertVirtualClusterConfigList) []*v1.ConvertVirtualClusterConfig { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.ConvertVirtualClusterConfigList, items []*v1.ConvertVirtualClusterConfig) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ConvertVirtualClusterConfig), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_databaseconnector.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_databaseconnector.go new file mode 100644 index 00000000..54e19f5f --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_databaseconnector.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeDatabaseConnectors implements DatabaseConnectorInterface +type fakeDatabaseConnectors struct { + *gentype.FakeClientWithList[*v1.DatabaseConnector, *v1.DatabaseConnectorList] + Fake *FakeManagementV1 +} + +func newFakeDatabaseConnectors(fake *FakeManagementV1) managementv1.DatabaseConnectorInterface { + return &fakeDatabaseConnectors{ + gentype.NewFakeClientWithList[*v1.DatabaseConnector, *v1.DatabaseConnectorList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("databaseconnectors"), + v1.SchemeGroupVersion.WithKind("DatabaseConnector"), + func() *v1.DatabaseConnector { return &v1.DatabaseConnector{} }, + func() *v1.DatabaseConnectorList { return &v1.DatabaseConnectorList{} }, + func(dst, src *v1.DatabaseConnectorList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DatabaseConnectorList) []*v1.DatabaseConnector { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DatabaseConnectorList, items []*v1.DatabaseConnector) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go index 6514ba85..e8f9020b 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go @@ -3,108 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type FakeDevPodEnvironmentTemplates struct { +// fakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface +type fakeDevPodEnvironmentTemplates struct { + *gentype.FakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] Fake *FakeManagementV1 } -var devpodenvironmenttemplatesResource = v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates") - -var devpodenvironmenttemplatesKind = v1.SchemeGroupVersion.WithKind("DevPodEnvironmentTemplate") - -// Get takes name of the devPodEnvironmentTemplate, and returns the corresponding devPodEnvironmentTemplate object, and an error if there is any. -func (c *FakeDevPodEnvironmentTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(devpodenvironmenttemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodEnvironmentTemplate), err -} - -// List takes label and field selectors, and returns the list of DevPodEnvironmentTemplates that match those selectors. -func (c *FakeDevPodEnvironmentTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodEnvironmentTemplateList, err error) { - emptyResult := &v1.DevPodEnvironmentTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(devpodenvironmenttemplatesResource, devpodenvironmenttemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodEnvironmentTemplateList{ListMeta: obj.(*v1.DevPodEnvironmentTemplateList).ListMeta} - for _, item := range obj.(*v1.DevPodEnvironmentTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested devPodEnvironmentTemplates. -func (c *FakeDevPodEnvironmentTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(devpodenvironmenttemplatesResource, opts)) -} - -// Create takes the representation of a devPodEnvironmentTemplate and creates it. Returns the server's representation of the devPodEnvironmentTemplate, and an error, if there is any. -func (c *FakeDevPodEnvironmentTemplates) Create(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(devpodenvironmenttemplatesResource, devPodEnvironmentTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodEnvironmentTemplate), err -} - -// Update takes the representation of a devPodEnvironmentTemplate and updates it. Returns the server's representation of the devPodEnvironmentTemplate, and an error, if there is any. -func (c *FakeDevPodEnvironmentTemplates) Update(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(devpodenvironmenttemplatesResource, devPodEnvironmentTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodEnvironmentTemplate), err -} - -// Delete takes name of the devPodEnvironmentTemplate and deletes it. Returns an error if one occurs. -func (c *FakeDevPodEnvironmentTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(devpodenvironmenttemplatesResource, name, opts), &v1.DevPodEnvironmentTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodEnvironmentTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(devpodenvironmenttemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodEnvironmentTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched devPodEnvironmentTemplate. -func (c *FakeDevPodEnvironmentTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(devpodenvironmenttemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +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, } - return obj.(*v1.DevPodEnvironmentTemplate), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go index 759bff6e..e483763e 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go @@ -3,140 +3,86 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type FakeDevPodWorkspaceInstances struct { +// fakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface +type fakeDevPodWorkspaceInstances struct { + *gentype.FakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] Fake *FakeManagementV1 - ns string } -var devpodworkspaceinstancesResource = v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances") - -var devpodworkspaceinstancesKind = v1.SchemeGroupVersion.WithKind("DevPodWorkspaceInstance") - -// Get takes name of the devPodWorkspaceInstance, and returns the corresponding devPodWorkspaceInstance object, and an error if there is any. -func (c *FakeDevPodWorkspaceInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(devpodworkspaceinstancesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstance), err -} - -// List takes label and field selectors, and returns the list of DevPodWorkspaceInstances that match those selectors. -func (c *FakeDevPodWorkspaceInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodWorkspaceInstanceList, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(devpodworkspaceinstancesResource, devpodworkspaceinstancesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodWorkspaceInstanceList{ListMeta: obj.(*v1.DevPodWorkspaceInstanceList).ListMeta} - for _, item := range obj.(*v1.DevPodWorkspaceInstanceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } +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, } - return list, err } -// Watch returns a watch.Interface that watches the requested devPodWorkspaceInstances. -func (c *FakeDevPodWorkspaceInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(devpodworkspaceinstancesResource, c.ns, opts)) - -} - -// Create takes the representation of a devPodWorkspaceInstance and creates it. Returns the server's representation of the devPodWorkspaceInstance, and an error, if there is any. -func (c *FakeDevPodWorkspaceInstances) Create(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(devpodworkspaceinstancesResource, c.ns, devPodWorkspaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstance), err -} - -// Update takes the representation of a devPodWorkspaceInstance and updates it. Returns the server's representation of the devPodWorkspaceInstance, and an error, if there is any. -func (c *FakeDevPodWorkspaceInstances) Update(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} +// 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.NewUpdateActionWithOptions(devpodworkspaceinstancesResource, c.ns, devPodWorkspaceInstance, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "up", c.Namespace(), devPodWorkspaceInstanceUp, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.DevPodWorkspaceInstance), err -} - -// Delete takes name of the devPodWorkspaceInstance and deletes it. Returns an error if one occurs. -func (c *FakeDevPodWorkspaceInstances) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(devpodworkspaceinstancesResource, c.ns, name, opts), &v1.DevPodWorkspaceInstance{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodWorkspaceInstances) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(devpodworkspaceinstancesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodWorkspaceInstanceList{}) - return err + return obj.(*v1.DevPodWorkspaceInstanceUp), err } -// Patch applies the patch and returns the patched devPodWorkspaceInstance. -func (c *FakeDevPodWorkspaceInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} +// 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.NewPatchSubresourceActionWithOptions(devpodworkspaceinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "stop", c.Namespace(), devPodWorkspaceInstanceStop, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.DevPodWorkspaceInstance), err + return obj.(*v1.DevPodWorkspaceInstanceStop), err } -// GetState takes name of the devPodWorkspaceInstance, and returns the corresponding devPodWorkspaceInstanceState object, and an error if there is any. -func (c *FakeDevPodWorkspaceInstances) GetState(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstanceState, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceState{} +// 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(devpodworkspaceinstancesResource, c.ns, "state", devPodWorkspaceInstanceName, options), emptyResult) + Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "troubleshoot", devPodWorkspaceInstanceName, options), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.DevPodWorkspaceInstanceState), err + return obj.(*v1.DevPodWorkspaceInstanceTroubleshoot), err } -// SetState takes the representation of a devPodWorkspaceInstanceState and creates it. Returns the server's representation of the devPodWorkspaceInstanceState, and an error, if there is any. -func (c *FakeDevPodWorkspaceInstances) SetState(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceState *v1.DevPodWorkspaceInstanceState, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstanceState, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceState{} +// 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(devpodworkspaceinstancesResource, devPodWorkspaceInstanceName, "state", c.ns, devPodWorkspaceInstanceState, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "cancel", c.Namespace(), devPodWorkspaceInstanceCancel, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.DevPodWorkspaceInstanceState), 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 new file mode 100644 index 00000000..88cfe9b3 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/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 index cb98add1..50ab12ce 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type FakeDevPodWorkspaceTemplates struct { +// fakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface +type fakeDevPodWorkspaceTemplates struct { + *gentype.FakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] Fake *FakeManagementV1 } -var devpodworkspacetemplatesResource = v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates") - -var devpodworkspacetemplatesKind = v1.SchemeGroupVersion.WithKind("DevPodWorkspaceTemplate") - -// Get takes name of the devPodWorkspaceTemplate, and returns the corresponding devPodWorkspaceTemplate object, and an error if there is any. -func (c *FakeDevPodWorkspaceTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(devpodworkspacetemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// List takes label and field selectors, and returns the list of DevPodWorkspaceTemplates that match those selectors. -func (c *FakeDevPodWorkspaceTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodWorkspaceTemplateList, err error) { - emptyResult := &v1.DevPodWorkspaceTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(devpodworkspacetemplatesResource, devpodworkspacetemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodWorkspaceTemplateList{ListMeta: obj.(*v1.DevPodWorkspaceTemplateList).ListMeta} - for _, item := range obj.(*v1.DevPodWorkspaceTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested devPodWorkspaceTemplates. -func (c *FakeDevPodWorkspaceTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(devpodworkspacetemplatesResource, opts)) -} - -// Create takes the representation of a devPodWorkspaceTemplate and creates it. Returns the server's representation of the devPodWorkspaceTemplate, and an error, if there is any. -func (c *FakeDevPodWorkspaceTemplates) Create(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(devpodworkspacetemplatesResource, devPodWorkspaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// Update takes the representation of a devPodWorkspaceTemplate and updates it. Returns the server's representation of the devPodWorkspaceTemplate, and an error, if there is any. -func (c *FakeDevPodWorkspaceTemplates) Update(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(devpodworkspacetemplatesResource, devPodWorkspaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeDevPodWorkspaceTemplates) UpdateStatus(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(devpodworkspacetemplatesResource, "status", devPodWorkspaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// Delete takes name of the devPodWorkspaceTemplate and deletes it. Returns an error if one occurs. -func (c *FakeDevPodWorkspaceTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(devpodworkspacetemplatesResource, name, opts), &v1.DevPodWorkspaceTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodWorkspaceTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(devpodworkspacetemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodWorkspaceTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched devPodWorkspaceTemplate. -func (c *FakeDevPodWorkspaceTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(devpodworkspacetemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +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, } - return obj.(*v1.DevPodWorkspaceTemplate), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_directclusterendpointtoken.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_directclusterendpointtoken.go index 1d24adc7..a074778b 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_directclusterendpointtoken.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_directclusterendpointtoken.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDirectClusterEndpointTokens implements DirectClusterEndpointTokenInterface -type FakeDirectClusterEndpointTokens struct { +// fakeDirectClusterEndpointTokens implements DirectClusterEndpointTokenInterface +type fakeDirectClusterEndpointTokens struct { + *gentype.FakeClientWithList[*v1.DirectClusterEndpointToken, *v1.DirectClusterEndpointTokenList] Fake *FakeManagementV1 } -var directclusterendpointtokensResource = v1.SchemeGroupVersion.WithResource("directclusterendpointtokens") - -var directclusterendpointtokensKind = v1.SchemeGroupVersion.WithKind("DirectClusterEndpointToken") - -// Get takes name of the directClusterEndpointToken, and returns the corresponding directClusterEndpointToken object, and an error if there is any. -func (c *FakeDirectClusterEndpointTokens) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DirectClusterEndpointToken, err error) { - emptyResult := &v1.DirectClusterEndpointToken{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(directclusterendpointtokensResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DirectClusterEndpointToken), err -} - -// List takes label and field selectors, and returns the list of DirectClusterEndpointTokens that match those selectors. -func (c *FakeDirectClusterEndpointTokens) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DirectClusterEndpointTokenList, err error) { - emptyResult := &v1.DirectClusterEndpointTokenList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(directclusterendpointtokensResource, directclusterendpointtokensKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DirectClusterEndpointTokenList{ListMeta: obj.(*v1.DirectClusterEndpointTokenList).ListMeta} - for _, item := range obj.(*v1.DirectClusterEndpointTokenList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested directClusterEndpointTokens. -func (c *FakeDirectClusterEndpointTokens) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(directclusterendpointtokensResource, opts)) -} - -// Create takes the representation of a directClusterEndpointToken and creates it. Returns the server's representation of the directClusterEndpointToken, and an error, if there is any. -func (c *FakeDirectClusterEndpointTokens) Create(ctx context.Context, directClusterEndpointToken *v1.DirectClusterEndpointToken, opts metav1.CreateOptions) (result *v1.DirectClusterEndpointToken, err error) { - emptyResult := &v1.DirectClusterEndpointToken{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(directclusterendpointtokensResource, directClusterEndpointToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DirectClusterEndpointToken), err -} - -// Update takes the representation of a directClusterEndpointToken and updates it. Returns the server's representation of the directClusterEndpointToken, and an error, if there is any. -func (c *FakeDirectClusterEndpointTokens) Update(ctx context.Context, directClusterEndpointToken *v1.DirectClusterEndpointToken, opts metav1.UpdateOptions) (result *v1.DirectClusterEndpointToken, err error) { - emptyResult := &v1.DirectClusterEndpointToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(directclusterendpointtokensResource, directClusterEndpointToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DirectClusterEndpointToken), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeDirectClusterEndpointTokens) UpdateStatus(ctx context.Context, directClusterEndpointToken *v1.DirectClusterEndpointToken, opts metav1.UpdateOptions) (result *v1.DirectClusterEndpointToken, err error) { - emptyResult := &v1.DirectClusterEndpointToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(directclusterendpointtokensResource, "status", directClusterEndpointToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DirectClusterEndpointToken), err -} - -// Delete takes name of the directClusterEndpointToken and deletes it. Returns an error if one occurs. -func (c *FakeDirectClusterEndpointTokens) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(directclusterendpointtokensResource, name, opts), &v1.DirectClusterEndpointToken{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDirectClusterEndpointTokens) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(directclusterendpointtokensResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DirectClusterEndpointTokenList{}) - return err -} - -// Patch applies the patch and returns the patched directClusterEndpointToken. -func (c *FakeDirectClusterEndpointTokens) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DirectClusterEndpointToken, err error) { - emptyResult := &v1.DirectClusterEndpointToken{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(directclusterendpointtokensResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeDirectClusterEndpointTokens(fake *FakeManagementV1) managementv1.DirectClusterEndpointTokenInterface { + return &fakeDirectClusterEndpointTokens{ + gentype.NewFakeClientWithList[*v1.DirectClusterEndpointToken, *v1.DirectClusterEndpointTokenList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("directclusterendpointtokens"), + v1.SchemeGroupVersion.WithKind("DirectClusterEndpointToken"), + func() *v1.DirectClusterEndpointToken { return &v1.DirectClusterEndpointToken{} }, + func() *v1.DirectClusterEndpointTokenList { return &v1.DirectClusterEndpointTokenList{} }, + func(dst, src *v1.DirectClusterEndpointTokenList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DirectClusterEndpointTokenList) []*v1.DirectClusterEndpointToken { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DirectClusterEndpointTokenList, items []*v1.DirectClusterEndpointToken) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.DirectClusterEndpointToken), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_event.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_event.go index 7527620f..fe7d182a 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_event.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_event.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeEvents implements EventInterface -type FakeEvents struct { +// fakeEvents implements EventInterface +type fakeEvents struct { + *gentype.FakeClientWithList[*v1.Event, *v1.EventList] Fake *FakeManagementV1 } -var eventsResource = v1.SchemeGroupVersion.WithResource("events") - -var eventsKind = v1.SchemeGroupVersion.WithKind("Event") - -// Get takes name of the event, and returns the corresponding event object, and an error if there is any. -func (c *FakeEvents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Event, err error) { - emptyResult := &v1.Event{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(eventsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Event), err -} - -// List takes label and field selectors, and returns the list of Events that match those selectors. -func (c *FakeEvents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error) { - emptyResult := &v1.EventList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(eventsResource, eventsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.EventList{ListMeta: obj.(*v1.EventList).ListMeta} - for _, item := range obj.(*v1.EventList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested events. -func (c *FakeEvents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(eventsResource, opts)) -} - -// Create takes the representation of a event and creates it. Returns the server's representation of the event, and an error, if there is any. -func (c *FakeEvents) Create(ctx context.Context, event *v1.Event, opts metav1.CreateOptions) (result *v1.Event, err error) { - emptyResult := &v1.Event{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(eventsResource, event, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Event), err -} - -// Update takes the representation of a event and updates it. Returns the server's representation of the event, and an error, if there is any. -func (c *FakeEvents) Update(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (result *v1.Event, err error) { - emptyResult := &v1.Event{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(eventsResource, event, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Event), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeEvents) UpdateStatus(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (result *v1.Event, err error) { - emptyResult := &v1.Event{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(eventsResource, "status", event, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Event), err -} - -// Delete takes name of the event and deletes it. Returns an error if one occurs. -func (c *FakeEvents) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(eventsResource, name, opts), &v1.Event{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeEvents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(eventsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.EventList{}) - return err -} - -// Patch applies the patch and returns the patched event. -func (c *FakeEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Event, err error) { - emptyResult := &v1.Event{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(eventsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeEvents(fake *FakeManagementV1) managementv1.EventInterface { + return &fakeEvents{ + gentype.NewFakeClientWithList[*v1.Event, *v1.EventList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("events"), + v1.SchemeGroupVersion.WithKind("Event"), + func() *v1.Event { return &v1.Event{} }, + func() *v1.EventList { return &v1.EventList{} }, + func(dst, src *v1.EventList) { dst.ListMeta = src.ListMeta }, + func(list *v1.EventList) []*v1.Event { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.EventList, items []*v1.Event) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Event), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_feature.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_feature.go index 4073d36e..875b0c35 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_feature.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_feature.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeFeatures implements FeatureInterface -type FakeFeatures struct { +// fakeFeatures implements FeatureInterface +type fakeFeatures struct { + *gentype.FakeClientWithList[*v1.Feature, *v1.FeatureList] Fake *FakeManagementV1 } -var featuresResource = v1.SchemeGroupVersion.WithResource("features") - -var featuresKind = v1.SchemeGroupVersion.WithKind("Feature") - -// Get takes name of the feature, and returns the corresponding feature object, and an error if there is any. -func (c *FakeFeatures) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Feature, err error) { - emptyResult := &v1.Feature{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(featuresResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Feature), err -} - -// List takes label and field selectors, and returns the list of Features that match those selectors. -func (c *FakeFeatures) List(ctx context.Context, opts metav1.ListOptions) (result *v1.FeatureList, err error) { - emptyResult := &v1.FeatureList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(featuresResource, featuresKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.FeatureList{ListMeta: obj.(*v1.FeatureList).ListMeta} - for _, item := range obj.(*v1.FeatureList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested features. -func (c *FakeFeatures) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(featuresResource, opts)) -} - -// Create takes the representation of a feature and creates it. Returns the server's representation of the feature, and an error, if there is any. -func (c *FakeFeatures) Create(ctx context.Context, feature *v1.Feature, opts metav1.CreateOptions) (result *v1.Feature, err error) { - emptyResult := &v1.Feature{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(featuresResource, feature, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Feature), err -} - -// Update takes the representation of a feature and updates it. Returns the server's representation of the feature, and an error, if there is any. -func (c *FakeFeatures) Update(ctx context.Context, feature *v1.Feature, opts metav1.UpdateOptions) (result *v1.Feature, err error) { - emptyResult := &v1.Feature{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(featuresResource, feature, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Feature), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeFeatures) UpdateStatus(ctx context.Context, feature *v1.Feature, opts metav1.UpdateOptions) (result *v1.Feature, err error) { - emptyResult := &v1.Feature{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(featuresResource, "status", feature, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Feature), err -} - -// Delete takes name of the feature and deletes it. Returns an error if one occurs. -func (c *FakeFeatures) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(featuresResource, name, opts), &v1.Feature{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeFeatures) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(featuresResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.FeatureList{}) - return err -} - -// Patch applies the patch and returns the patched feature. -func (c *FakeFeatures) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Feature, err error) { - emptyResult := &v1.Feature{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(featuresResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeFeatures(fake *FakeManagementV1) managementv1.FeatureInterface { + return &fakeFeatures{ + gentype.NewFakeClientWithList[*v1.Feature, *v1.FeatureList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("features"), + v1.SchemeGroupVersion.WithKind("Feature"), + func() *v1.Feature { return &v1.Feature{} }, + func() *v1.FeatureList { return &v1.FeatureList{} }, + func(dst, src *v1.FeatureList) { dst.ListMeta = src.ListMeta }, + func(list *v1.FeatureList) []*v1.Feature { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.FeatureList, items []*v1.Feature) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Feature), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_ingressauthtoken.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_ingressauthtoken.go index 2b3f70e3..27b54fb5 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_ingressauthtoken.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_ingressauthtoken.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeIngressAuthTokens implements IngressAuthTokenInterface -type FakeIngressAuthTokens struct { +// fakeIngressAuthTokens implements IngressAuthTokenInterface +type fakeIngressAuthTokens struct { + *gentype.FakeClientWithList[*v1.IngressAuthToken, *v1.IngressAuthTokenList] Fake *FakeManagementV1 } -var ingressauthtokensResource = v1.SchemeGroupVersion.WithResource("ingressauthtokens") - -var ingressauthtokensKind = v1.SchemeGroupVersion.WithKind("IngressAuthToken") - -// Get takes name of the ingressAuthToken, and returns the corresponding ingressAuthToken object, and an error if there is any. -func (c *FakeIngressAuthTokens) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.IngressAuthToken, err error) { - emptyResult := &v1.IngressAuthToken{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(ingressauthtokensResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.IngressAuthToken), err -} - -// List takes label and field selectors, and returns the list of IngressAuthTokens that match those selectors. -func (c *FakeIngressAuthTokens) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressAuthTokenList, err error) { - emptyResult := &v1.IngressAuthTokenList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(ingressauthtokensResource, ingressauthtokensKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.IngressAuthTokenList{ListMeta: obj.(*v1.IngressAuthTokenList).ListMeta} - for _, item := range obj.(*v1.IngressAuthTokenList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested ingressAuthTokens. -func (c *FakeIngressAuthTokens) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(ingressauthtokensResource, opts)) -} - -// Create takes the representation of a ingressAuthToken and creates it. Returns the server's representation of the ingressAuthToken, and an error, if there is any. -func (c *FakeIngressAuthTokens) Create(ctx context.Context, ingressAuthToken *v1.IngressAuthToken, opts metav1.CreateOptions) (result *v1.IngressAuthToken, err error) { - emptyResult := &v1.IngressAuthToken{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(ingressauthtokensResource, ingressAuthToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.IngressAuthToken), err -} - -// Update takes the representation of a ingressAuthToken and updates it. Returns the server's representation of the ingressAuthToken, and an error, if there is any. -func (c *FakeIngressAuthTokens) Update(ctx context.Context, ingressAuthToken *v1.IngressAuthToken, opts metav1.UpdateOptions) (result *v1.IngressAuthToken, err error) { - emptyResult := &v1.IngressAuthToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(ingressauthtokensResource, ingressAuthToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.IngressAuthToken), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeIngressAuthTokens) UpdateStatus(ctx context.Context, ingressAuthToken *v1.IngressAuthToken, opts metav1.UpdateOptions) (result *v1.IngressAuthToken, err error) { - emptyResult := &v1.IngressAuthToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(ingressauthtokensResource, "status", ingressAuthToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.IngressAuthToken), err -} - -// Delete takes name of the ingressAuthToken and deletes it. Returns an error if one occurs. -func (c *FakeIngressAuthTokens) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(ingressauthtokensResource, name, opts), &v1.IngressAuthToken{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeIngressAuthTokens) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(ingressauthtokensResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.IngressAuthTokenList{}) - return err -} - -// Patch applies the patch and returns the patched ingressAuthToken. -func (c *FakeIngressAuthTokens) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.IngressAuthToken, err error) { - emptyResult := &v1.IngressAuthToken{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(ingressauthtokensResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeIngressAuthTokens(fake *FakeManagementV1) managementv1.IngressAuthTokenInterface { + return &fakeIngressAuthTokens{ + gentype.NewFakeClientWithList[*v1.IngressAuthToken, *v1.IngressAuthTokenList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("ingressauthtokens"), + v1.SchemeGroupVersion.WithKind("IngressAuthToken"), + func() *v1.IngressAuthToken { return &v1.IngressAuthToken{} }, + func() *v1.IngressAuthTokenList { return &v1.IngressAuthTokenList{} }, + func(dst, src *v1.IngressAuthTokenList) { dst.ListMeta = src.ListMeta }, + func(list *v1.IngressAuthTokenList) []*v1.IngressAuthToken { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.IngressAuthTokenList, items []*v1.IngressAuthToken) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.IngressAuthToken), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_license.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_license.go index 8444f1cd..43f7767d 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_license.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_license.go @@ -3,129 +3,43 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeLicenses implements LicenseInterface -type FakeLicenses struct { +// fakeLicenses implements LicenseInterface +type fakeLicenses struct { + *gentype.FakeClientWithList[*v1.License, *v1.LicenseList] Fake *FakeManagementV1 } -var licensesResource = v1.SchemeGroupVersion.WithResource("licenses") - -var licensesKind = v1.SchemeGroupVersion.WithKind("License") - -// Get takes name of the license, and returns the corresponding license object, and an error if there is any. -func (c *FakeLicenses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.License, err error) { - emptyResult := &v1.License{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(licensesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.License), err -} - -// List takes label and field selectors, and returns the list of Licenses that match those selectors. -func (c *FakeLicenses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LicenseList, err error) { - emptyResult := &v1.LicenseList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(licensesResource, licensesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.LicenseList{ListMeta: obj.(*v1.LicenseList).ListMeta} - for _, item := range obj.(*v1.LicenseList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested licenses. -func (c *FakeLicenses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(licensesResource, opts)) -} - -// Create takes the representation of a license and creates it. Returns the server's representation of the license, and an error, if there is any. -func (c *FakeLicenses) Create(ctx context.Context, license *v1.License, opts metav1.CreateOptions) (result *v1.License, err error) { - emptyResult := &v1.License{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(licensesResource, license, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.License), err -} - -// Update takes the representation of a license and updates it. Returns the server's representation of the license, and an error, if there is any. -func (c *FakeLicenses) Update(ctx context.Context, license *v1.License, opts metav1.UpdateOptions) (result *v1.License, err error) { - emptyResult := &v1.License{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(licensesResource, license, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.License), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeLicenses) UpdateStatus(ctx context.Context, license *v1.License, opts metav1.UpdateOptions) (result *v1.License, err error) { - emptyResult := &v1.License{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(licensesResource, "status", license, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.License), err -} - -// Delete takes name of the license and deletes it. Returns an error if one occurs. -func (c *FakeLicenses) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(licensesResource, name, opts), &v1.License{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeLicenses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(licensesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.LicenseList{}) - return err -} - -// Patch applies the patch and returns the patched license. -func (c *FakeLicenses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.License, err error) { - emptyResult := &v1.License{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(licensesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeLicenses(fake *FakeManagementV1) managementv1.LicenseInterface { + return &fakeLicenses{ + gentype.NewFakeClientWithList[*v1.License, *v1.LicenseList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("licenses"), + v1.SchemeGroupVersion.WithKind("License"), + func() *v1.License { return &v1.License{} }, + func() *v1.LicenseList { return &v1.LicenseList{} }, + func(dst, src *v1.LicenseList) { dst.ListMeta = src.ListMeta }, + func(list *v1.LicenseList) []*v1.License { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.LicenseList, items []*v1.License) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.License), err } // LicenseRequest takes the representation of a licenseRequest and creates it. Returns the server's representation of the licenseRequest, and an error, if there is any. -func (c *FakeLicenses) LicenseRequest(ctx context.Context, licenseName string, licenseRequest *v1.LicenseRequest, opts metav1.CreateOptions) (result *v1.LicenseRequest, err error) { +func (c *fakeLicenses) LicenseRequest(ctx context.Context, licenseName string, licenseRequest *v1.LicenseRequest, opts metav1.CreateOptions) (result *v1.LicenseRequest, err error) { emptyResult := &v1.LicenseRequest{} obj, err := c.Fake. - Invokes(testing.NewRootCreateSubresourceActionWithOptions(licensesResource, licenseName, "request", licenseRequest, opts), emptyResult) + Invokes(testing.NewRootCreateSubresourceActionWithOptions(c.Resource(), licenseName, "request", licenseRequest, opts), emptyResult) if obj == nil { return emptyResult, err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_licensetoken.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_licensetoken.go index cfb13843..a1b6b772 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_licensetoken.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_licensetoken.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeLicenseTokens implements LicenseTokenInterface -type FakeLicenseTokens struct { +// fakeLicenseTokens implements LicenseTokenInterface +type fakeLicenseTokens struct { + *gentype.FakeClientWithList[*v1.LicenseToken, *v1.LicenseTokenList] Fake *FakeManagementV1 } -var licensetokensResource = v1.SchemeGroupVersion.WithResource("licensetokens") - -var licensetokensKind = v1.SchemeGroupVersion.WithKind("LicenseToken") - -// Get takes name of the licenseToken, and returns the corresponding licenseToken object, and an error if there is any. -func (c *FakeLicenseTokens) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.LicenseToken, err error) { - emptyResult := &v1.LicenseToken{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(licensetokensResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LicenseToken), err -} - -// List takes label and field selectors, and returns the list of LicenseTokens that match those selectors. -func (c *FakeLicenseTokens) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LicenseTokenList, err error) { - emptyResult := &v1.LicenseTokenList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(licensetokensResource, licensetokensKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.LicenseTokenList{ListMeta: obj.(*v1.LicenseTokenList).ListMeta} - for _, item := range obj.(*v1.LicenseTokenList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested licenseTokens. -func (c *FakeLicenseTokens) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(licensetokensResource, opts)) -} - -// Create takes the representation of a licenseToken and creates it. Returns the server's representation of the licenseToken, and an error, if there is any. -func (c *FakeLicenseTokens) Create(ctx context.Context, licenseToken *v1.LicenseToken, opts metav1.CreateOptions) (result *v1.LicenseToken, err error) { - emptyResult := &v1.LicenseToken{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(licensetokensResource, licenseToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LicenseToken), err -} - -// Update takes the representation of a licenseToken and updates it. Returns the server's representation of the licenseToken, and an error, if there is any. -func (c *FakeLicenseTokens) Update(ctx context.Context, licenseToken *v1.LicenseToken, opts metav1.UpdateOptions) (result *v1.LicenseToken, err error) { - emptyResult := &v1.LicenseToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(licensetokensResource, licenseToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LicenseToken), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeLicenseTokens) UpdateStatus(ctx context.Context, licenseToken *v1.LicenseToken, opts metav1.UpdateOptions) (result *v1.LicenseToken, err error) { - emptyResult := &v1.LicenseToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(licensetokensResource, "status", licenseToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LicenseToken), err -} - -// Delete takes name of the licenseToken and deletes it. Returns an error if one occurs. -func (c *FakeLicenseTokens) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(licensetokensResource, name, opts), &v1.LicenseToken{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeLicenseTokens) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(licensetokensResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.LicenseTokenList{}) - return err -} - -// Patch applies the patch and returns the patched licenseToken. -func (c *FakeLicenseTokens) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.LicenseToken, err error) { - emptyResult := &v1.LicenseToken{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(licensetokensResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeLicenseTokens(fake *FakeManagementV1) managementv1.LicenseTokenInterface { + return &fakeLicenseTokens{ + gentype.NewFakeClientWithList[*v1.LicenseToken, *v1.LicenseTokenList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("licensetokens"), + v1.SchemeGroupVersion.WithKind("LicenseToken"), + func() *v1.LicenseToken { return &v1.LicenseToken{} }, + func() *v1.LicenseTokenList { return &v1.LicenseTokenList{} }, + func(dst, src *v1.LicenseTokenList) { dst.ListMeta = src.ListMeta }, + func(list *v1.LicenseTokenList) []*v1.LicenseToken { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.LicenseTokenList, items []*v1.LicenseToken) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.LicenseToken), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_loftupgrade.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_loftupgrade.go index d24e2c15..1c70a1ca 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_loftupgrade.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_loftupgrade.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeLoftUpgrades implements LoftUpgradeInterface -type FakeLoftUpgrades struct { +// fakeLoftUpgrades implements LoftUpgradeInterface +type fakeLoftUpgrades struct { + *gentype.FakeClientWithList[*v1.LoftUpgrade, *v1.LoftUpgradeList] Fake *FakeManagementV1 } -var loftupgradesResource = v1.SchemeGroupVersion.WithResource("loftupgrades") - -var loftupgradesKind = v1.SchemeGroupVersion.WithKind("LoftUpgrade") - -// Get takes name of the loftUpgrade, and returns the corresponding loftUpgrade object, and an error if there is any. -func (c *FakeLoftUpgrades) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.LoftUpgrade, err error) { - emptyResult := &v1.LoftUpgrade{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(loftupgradesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LoftUpgrade), err -} - -// List takes label and field selectors, and returns the list of LoftUpgrades that match those selectors. -func (c *FakeLoftUpgrades) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LoftUpgradeList, err error) { - emptyResult := &v1.LoftUpgradeList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(loftupgradesResource, loftupgradesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.LoftUpgradeList{ListMeta: obj.(*v1.LoftUpgradeList).ListMeta} - for _, item := range obj.(*v1.LoftUpgradeList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested loftUpgrades. -func (c *FakeLoftUpgrades) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(loftupgradesResource, opts)) -} - -// Create takes the representation of a loftUpgrade and creates it. Returns the server's representation of the loftUpgrade, and an error, if there is any. -func (c *FakeLoftUpgrades) Create(ctx context.Context, loftUpgrade *v1.LoftUpgrade, opts metav1.CreateOptions) (result *v1.LoftUpgrade, err error) { - emptyResult := &v1.LoftUpgrade{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(loftupgradesResource, loftUpgrade, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LoftUpgrade), err -} - -// Update takes the representation of a loftUpgrade and updates it. Returns the server's representation of the loftUpgrade, and an error, if there is any. -func (c *FakeLoftUpgrades) Update(ctx context.Context, loftUpgrade *v1.LoftUpgrade, opts metav1.UpdateOptions) (result *v1.LoftUpgrade, err error) { - emptyResult := &v1.LoftUpgrade{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(loftupgradesResource, loftUpgrade, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LoftUpgrade), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeLoftUpgrades) UpdateStatus(ctx context.Context, loftUpgrade *v1.LoftUpgrade, opts metav1.UpdateOptions) (result *v1.LoftUpgrade, err error) { - emptyResult := &v1.LoftUpgrade{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(loftupgradesResource, "status", loftUpgrade, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LoftUpgrade), err -} - -// Delete takes name of the loftUpgrade and deletes it. Returns an error if one occurs. -func (c *FakeLoftUpgrades) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(loftupgradesResource, name, opts), &v1.LoftUpgrade{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeLoftUpgrades) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(loftupgradesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.LoftUpgradeList{}) - return err -} - -// Patch applies the patch and returns the patched loftUpgrade. -func (c *FakeLoftUpgrades) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.LoftUpgrade, err error) { - emptyResult := &v1.LoftUpgrade{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(loftupgradesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeLoftUpgrades(fake *FakeManagementV1) managementv1.LoftUpgradeInterface { + return &fakeLoftUpgrades{ + gentype.NewFakeClientWithList[*v1.LoftUpgrade, *v1.LoftUpgradeList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("loftupgrades"), + v1.SchemeGroupVersion.WithKind("LoftUpgrade"), + func() *v1.LoftUpgrade { return &v1.LoftUpgrade{} }, + func() *v1.LoftUpgradeList { return &v1.LoftUpgradeList{} }, + func(dst, src *v1.LoftUpgradeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.LoftUpgradeList) []*v1.LoftUpgrade { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.LoftUpgradeList, items []*v1.LoftUpgrade) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.LoftUpgrade), err } 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 6cccf41c..5eb70229 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 @@ -13,159 +13,179 @@ type FakeManagementV1 struct { } func (c *FakeManagementV1) AgentAuditEvents() v1.AgentAuditEventInterface { - return &FakeAgentAuditEvents{c} + return newFakeAgentAuditEvents(c) } func (c *FakeManagementV1) Announcements() v1.AnnouncementInterface { - return &FakeAnnouncements{c} + return newFakeAnnouncements(c) } func (c *FakeManagementV1) Apps() v1.AppInterface { - return &FakeApps{c} + return newFakeApps(c) } func (c *FakeManagementV1) Backups() v1.BackupInterface { - return &FakeBackups{c} + return newFakeBackups(c) } func (c *FakeManagementV1) Clusters() v1.ClusterInterface { - return &FakeClusters{c} + return newFakeClusters(c) } func (c *FakeManagementV1) ClusterAccesses() v1.ClusterAccessInterface { - return &FakeClusterAccesses{c} + return newFakeClusterAccesses(c) } func (c *FakeManagementV1) ClusterRoleTemplates() v1.ClusterRoleTemplateInterface { - return &FakeClusterRoleTemplates{c} + return newFakeClusterRoleTemplates(c) } func (c *FakeManagementV1) Configs() v1.ConfigInterface { - return &FakeConfigs{c} + return newFakeConfigs(c) } func (c *FakeManagementV1) ConvertVirtualClusterConfigs() v1.ConvertVirtualClusterConfigInterface { - return &FakeConvertVirtualClusterConfigs{c} + return newFakeConvertVirtualClusterConfigs(c) +} + +func (c *FakeManagementV1) DatabaseConnectors() v1.DatabaseConnectorInterface { + return newFakeDatabaseConnectors(c) } func (c *FakeManagementV1) DevPodEnvironmentTemplates() v1.DevPodEnvironmentTemplateInterface { - return &FakeDevPodEnvironmentTemplates{c} + return newFakeDevPodEnvironmentTemplates(c) } func (c *FakeManagementV1) DevPodWorkspaceInstances(namespace string) v1.DevPodWorkspaceInstanceInterface { - return &FakeDevPodWorkspaceInstances{c, namespace} + return newFakeDevPodWorkspaceInstances(c, namespace) +} + +func (c *FakeManagementV1) DevPodWorkspacePresets() v1.DevPodWorkspacePresetInterface { + return newFakeDevPodWorkspacePresets(c) } func (c *FakeManagementV1) DevPodWorkspaceTemplates() v1.DevPodWorkspaceTemplateInterface { - return &FakeDevPodWorkspaceTemplates{c} + return newFakeDevPodWorkspaceTemplates(c) } func (c *FakeManagementV1) DirectClusterEndpointTokens() v1.DirectClusterEndpointTokenInterface { - return &FakeDirectClusterEndpointTokens{c} + return newFakeDirectClusterEndpointTokens(c) } func (c *FakeManagementV1) Events() v1.EventInterface { - return &FakeEvents{c} + return newFakeEvents(c) } func (c *FakeManagementV1) Features() v1.FeatureInterface { - return &FakeFeatures{c} + return newFakeFeatures(c) } func (c *FakeManagementV1) IngressAuthTokens() v1.IngressAuthTokenInterface { - return &FakeIngressAuthTokens{c} + return newFakeIngressAuthTokens(c) } func (c *FakeManagementV1) Licenses() v1.LicenseInterface { - return &FakeLicenses{c} + return newFakeLicenses(c) } func (c *FakeManagementV1) LicenseTokens() v1.LicenseTokenInterface { - return &FakeLicenseTokens{c} + return newFakeLicenseTokens(c) } func (c *FakeManagementV1) LoftUpgrades() v1.LoftUpgradeInterface { - return &FakeLoftUpgrades{c} + return newFakeLoftUpgrades(c) +} + +func (c *FakeManagementV1) NodeClaims(namespace string) v1.NodeClaimInterface { + return newFakeNodeClaims(c, namespace) +} + +func (c *FakeManagementV1) NodeProviders() v1.NodeProviderInterface { + return newFakeNodeProviders(c) +} + +func (c *FakeManagementV1) NodeTypes() v1.NodeTypeInterface { + return newFakeNodeTypes(c) } func (c *FakeManagementV1) OIDCClients() v1.OIDCClientInterface { - return &FakeOIDCClients{c} + return newFakeOIDCClients(c) } func (c *FakeManagementV1) OwnedAccessKeys() v1.OwnedAccessKeyInterface { - return &FakeOwnedAccessKeys{c} + return newFakeOwnedAccessKeys(c) } func (c *FakeManagementV1) Projects() v1.ProjectInterface { - return &FakeProjects{c} + return newFakeProjects(c) } func (c *FakeManagementV1) ProjectSecrets(namespace string) v1.ProjectSecretInterface { - return &FakeProjectSecrets{c, namespace} + return newFakeProjectSecrets(c, namespace) } func (c *FakeManagementV1) RedirectTokens() v1.RedirectTokenInterface { - return &FakeRedirectTokens{c} + return newFakeRedirectTokens(c) } func (c *FakeManagementV1) RegisterVirtualClusters() v1.RegisterVirtualClusterInterface { - return &FakeRegisterVirtualClusters{c} + return newFakeRegisterVirtualClusters(c) } func (c *FakeManagementV1) ResetAccessKeys() v1.ResetAccessKeyInterface { - return &FakeResetAccessKeys{c} -} - -func (c *FakeManagementV1) Runners() v1.RunnerInterface { - return &FakeRunners{c} + return newFakeResetAccessKeys(c) } func (c *FakeManagementV1) Selves() v1.SelfInterface { - return &FakeSelves{c} + return newFakeSelves(c) } func (c *FakeManagementV1) SelfSubjectAccessReviews() v1.SelfSubjectAccessReviewInterface { - return &FakeSelfSubjectAccessReviews{c} + return newFakeSelfSubjectAccessReviews(c) } func (c *FakeManagementV1) SharedSecrets(namespace string) v1.SharedSecretInterface { - return &FakeSharedSecrets{c, namespace} + return newFakeSharedSecrets(c, namespace) } func (c *FakeManagementV1) SpaceInstances(namespace string) v1.SpaceInstanceInterface { - return &FakeSpaceInstances{c, namespace} + return newFakeSpaceInstances(c, namespace) } func (c *FakeManagementV1) SpaceTemplates() v1.SpaceTemplateInterface { - return &FakeSpaceTemplates{c} + return newFakeSpaceTemplates(c) } func (c *FakeManagementV1) SubjectAccessReviews() v1.SubjectAccessReviewInterface { - return &FakeSubjectAccessReviews{c} + return newFakeSubjectAccessReviews(c) } func (c *FakeManagementV1) Tasks() v1.TaskInterface { - return &FakeTasks{c} + return newFakeTasks(c) } func (c *FakeManagementV1) Teams() v1.TeamInterface { - return &FakeTeams{c} + return newFakeTeams(c) } func (c *FakeManagementV1) TranslateVClusterResourceNames() v1.TranslateVClusterResourceNameInterface { - return &FakeTranslateVClusterResourceNames{c} + return newFakeTranslateVClusterResourceNames(c) } func (c *FakeManagementV1) Users() v1.UserInterface { - return &FakeUsers{c} + return newFakeUsers(c) } func (c *FakeManagementV1) VirtualClusterInstances(namespace string) v1.VirtualClusterInstanceInterface { - return &FakeVirtualClusterInstances{c, namespace} + return newFakeVirtualClusterInstances(c, namespace) +} + +func (c *FakeManagementV1) VirtualClusterSchemas() v1.VirtualClusterSchemaInterface { + return newFakeVirtualClusterSchemas(c) } func (c *FakeManagementV1) VirtualClusterTemplates() v1.VirtualClusterTemplateInterface { - return &FakeVirtualClusterTemplates{c} + return newFakeVirtualClusterTemplates(c) } // RESTClient returns a RESTClient that is used to communicate diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeclaim.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeclaim.go new file mode 100644 index 00000000..ac6fa3cd --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeclaim.go @@ -0,0 +1,32 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeNodeClaims implements NodeClaimInterface +type fakeNodeClaims struct { + *gentype.FakeClientWithList[*v1.NodeClaim, *v1.NodeClaimList] + Fake *FakeManagementV1 +} + +func newFakeNodeClaims(fake *FakeManagementV1, namespace string) managementv1.NodeClaimInterface { + return &fakeNodeClaims{ + gentype.NewFakeClientWithList[*v1.NodeClaim, *v1.NodeClaimList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("nodeclaims"), + v1.SchemeGroupVersion.WithKind("NodeClaim"), + func() *v1.NodeClaim { return &v1.NodeClaim{} }, + func() *v1.NodeClaimList { return &v1.NodeClaimList{} }, + func(dst, src *v1.NodeClaimList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeClaimList) []*v1.NodeClaim { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeClaimList, items []*v1.NodeClaim) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeprovider.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeprovider.go new file mode 100644 index 00000000..f30f98ce --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeprovider.go @@ -0,0 +1,34 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeNodeProviders implements NodeProviderInterface +type fakeNodeProviders struct { + *gentype.FakeClientWithList[*v1.NodeProvider, *v1.NodeProviderList] + Fake *FakeManagementV1 +} + +func newFakeNodeProviders(fake *FakeManagementV1) managementv1.NodeProviderInterface { + return &fakeNodeProviders{ + gentype.NewFakeClientWithList[*v1.NodeProvider, *v1.NodeProviderList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("nodeproviders"), + v1.SchemeGroupVersion.WithKind("NodeProvider"), + func() *v1.NodeProvider { return &v1.NodeProvider{} }, + func() *v1.NodeProviderList { return &v1.NodeProviderList{} }, + func(dst, src *v1.NodeProviderList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeProviderList) []*v1.NodeProvider { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeProviderList, items []*v1.NodeProvider) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_nodetype.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodetype.go new file mode 100644 index 00000000..563e7ebf --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodetype.go @@ -0,0 +1,32 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeNodeTypes implements NodeTypeInterface +type fakeNodeTypes struct { + *gentype.FakeClientWithList[*v1.NodeType, *v1.NodeTypeList] + Fake *FakeManagementV1 +} + +func newFakeNodeTypes(fake *FakeManagementV1) managementv1.NodeTypeInterface { + return &fakeNodeTypes{ + gentype.NewFakeClientWithList[*v1.NodeType, *v1.NodeTypeList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("nodetypes"), + v1.SchemeGroupVersion.WithKind("NodeType"), + func() *v1.NodeType { return &v1.NodeType{} }, + func() *v1.NodeTypeList { return &v1.NodeTypeList{} }, + func(dst, src *v1.NodeTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeTypeList) []*v1.NodeType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeTypeList, items []*v1.NodeType) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_oidcclient.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_oidcclient.go index c06f12b5..0fc9e926 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_oidcclient.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_oidcclient.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeOIDCClients implements OIDCClientInterface -type FakeOIDCClients struct { +// fakeOIDCClients implements OIDCClientInterface +type fakeOIDCClients struct { + *gentype.FakeClientWithList[*v1.OIDCClient, *v1.OIDCClientList] Fake *FakeManagementV1 } -var oidcclientsResource = v1.SchemeGroupVersion.WithResource("oidcclients") - -var oidcclientsKind = v1.SchemeGroupVersion.WithKind("OIDCClient") - -// Get takes name of the oIDCClient, and returns the corresponding oIDCClient object, and an error if there is any. -func (c *FakeOIDCClients) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OIDCClient, err error) { - emptyResult := &v1.OIDCClient{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(oidcclientsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OIDCClient), err -} - -// List takes label and field selectors, and returns the list of OIDCClients that match those selectors. -func (c *FakeOIDCClients) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OIDCClientList, err error) { - emptyResult := &v1.OIDCClientList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(oidcclientsResource, oidcclientsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.OIDCClientList{ListMeta: obj.(*v1.OIDCClientList).ListMeta} - for _, item := range obj.(*v1.OIDCClientList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested oIDCClients. -func (c *FakeOIDCClients) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(oidcclientsResource, opts)) -} - -// Create takes the representation of a oIDCClient and creates it. Returns the server's representation of the oIDCClient, and an error, if there is any. -func (c *FakeOIDCClients) Create(ctx context.Context, oIDCClient *v1.OIDCClient, opts metav1.CreateOptions) (result *v1.OIDCClient, err error) { - emptyResult := &v1.OIDCClient{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(oidcclientsResource, oIDCClient, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OIDCClient), err -} - -// Update takes the representation of a oIDCClient and updates it. Returns the server's representation of the oIDCClient, and an error, if there is any. -func (c *FakeOIDCClients) Update(ctx context.Context, oIDCClient *v1.OIDCClient, opts metav1.UpdateOptions) (result *v1.OIDCClient, err error) { - emptyResult := &v1.OIDCClient{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(oidcclientsResource, oIDCClient, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OIDCClient), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeOIDCClients) UpdateStatus(ctx context.Context, oIDCClient *v1.OIDCClient, opts metav1.UpdateOptions) (result *v1.OIDCClient, err error) { - emptyResult := &v1.OIDCClient{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(oidcclientsResource, "status", oIDCClient, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OIDCClient), err -} - -// Delete takes name of the oIDCClient and deletes it. Returns an error if one occurs. -func (c *FakeOIDCClients) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(oidcclientsResource, name, opts), &v1.OIDCClient{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeOIDCClients) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(oidcclientsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.OIDCClientList{}) - return err -} - -// Patch applies the patch and returns the patched oIDCClient. -func (c *FakeOIDCClients) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OIDCClient, err error) { - emptyResult := &v1.OIDCClient{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(oidcclientsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeOIDCClients(fake *FakeManagementV1) managementv1.OIDCClientInterface { + return &fakeOIDCClients{ + gentype.NewFakeClientWithList[*v1.OIDCClient, *v1.OIDCClientList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("oidcclients"), + v1.SchemeGroupVersion.WithKind("OIDCClient"), + func() *v1.OIDCClient { return &v1.OIDCClient{} }, + func() *v1.OIDCClientList { return &v1.OIDCClientList{} }, + func(dst, src *v1.OIDCClientList) { dst.ListMeta = src.ListMeta }, + func(list *v1.OIDCClientList) []*v1.OIDCClient { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.OIDCClientList, items []*v1.OIDCClient) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.OIDCClient), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_ownedaccesskey.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_ownedaccesskey.go index 629e3dde..8dcd3c7e 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_ownedaccesskey.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_ownedaccesskey.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeOwnedAccessKeys implements OwnedAccessKeyInterface -type FakeOwnedAccessKeys struct { +// fakeOwnedAccessKeys implements OwnedAccessKeyInterface +type fakeOwnedAccessKeys struct { + *gentype.FakeClientWithList[*v1.OwnedAccessKey, *v1.OwnedAccessKeyList] Fake *FakeManagementV1 } -var ownedaccesskeysResource = v1.SchemeGroupVersion.WithResource("ownedaccesskeys") - -var ownedaccesskeysKind = v1.SchemeGroupVersion.WithKind("OwnedAccessKey") - -// Get takes name of the ownedAccessKey, and returns the corresponding ownedAccessKey object, and an error if there is any. -func (c *FakeOwnedAccessKeys) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OwnedAccessKey, err error) { - emptyResult := &v1.OwnedAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(ownedaccesskeysResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OwnedAccessKey), err -} - -// List takes label and field selectors, and returns the list of OwnedAccessKeys that match those selectors. -func (c *FakeOwnedAccessKeys) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OwnedAccessKeyList, err error) { - emptyResult := &v1.OwnedAccessKeyList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(ownedaccesskeysResource, ownedaccesskeysKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.OwnedAccessKeyList{ListMeta: obj.(*v1.OwnedAccessKeyList).ListMeta} - for _, item := range obj.(*v1.OwnedAccessKeyList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested ownedAccessKeys. -func (c *FakeOwnedAccessKeys) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(ownedaccesskeysResource, opts)) -} - -// Create takes the representation of a ownedAccessKey and creates it. Returns the server's representation of the ownedAccessKey, and an error, if there is any. -func (c *FakeOwnedAccessKeys) Create(ctx context.Context, ownedAccessKey *v1.OwnedAccessKey, opts metav1.CreateOptions) (result *v1.OwnedAccessKey, err error) { - emptyResult := &v1.OwnedAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(ownedaccesskeysResource, ownedAccessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OwnedAccessKey), err -} - -// Update takes the representation of a ownedAccessKey and updates it. Returns the server's representation of the ownedAccessKey, and an error, if there is any. -func (c *FakeOwnedAccessKeys) Update(ctx context.Context, ownedAccessKey *v1.OwnedAccessKey, opts metav1.UpdateOptions) (result *v1.OwnedAccessKey, err error) { - emptyResult := &v1.OwnedAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(ownedaccesskeysResource, ownedAccessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OwnedAccessKey), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeOwnedAccessKeys) UpdateStatus(ctx context.Context, ownedAccessKey *v1.OwnedAccessKey, opts metav1.UpdateOptions) (result *v1.OwnedAccessKey, err error) { - emptyResult := &v1.OwnedAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(ownedaccesskeysResource, "status", ownedAccessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OwnedAccessKey), err -} - -// Delete takes name of the ownedAccessKey and deletes it. Returns an error if one occurs. -func (c *FakeOwnedAccessKeys) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(ownedaccesskeysResource, name, opts), &v1.OwnedAccessKey{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeOwnedAccessKeys) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(ownedaccesskeysResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.OwnedAccessKeyList{}) - return err -} - -// Patch applies the patch and returns the patched ownedAccessKey. -func (c *FakeOwnedAccessKeys) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OwnedAccessKey, err error) { - emptyResult := &v1.OwnedAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(ownedaccesskeysResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeOwnedAccessKeys(fake *FakeManagementV1) managementv1.OwnedAccessKeyInterface { + return &fakeOwnedAccessKeys{ + gentype.NewFakeClientWithList[*v1.OwnedAccessKey, *v1.OwnedAccessKeyList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("ownedaccesskeys"), + v1.SchemeGroupVersion.WithKind("OwnedAccessKey"), + func() *v1.OwnedAccessKey { return &v1.OwnedAccessKey{} }, + func() *v1.OwnedAccessKeyList { return &v1.OwnedAccessKeyList{} }, + func(dst, src *v1.OwnedAccessKeyList) { dst.ListMeta = src.ListMeta }, + func(list *v1.OwnedAccessKeyList) []*v1.OwnedAccessKey { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.OwnedAccessKeyList, items []*v1.OwnedAccessKey) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.OwnedAccessKey), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_project.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_project.go index cc068bbd..639cdde1 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_project.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_project.go @@ -3,129 +3,43 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeProjects implements ProjectInterface -type FakeProjects struct { +// fakeProjects implements ProjectInterface +type fakeProjects struct { + *gentype.FakeClientWithList[*v1.Project, *v1.ProjectList] Fake *FakeManagementV1 } -var projectsResource = v1.SchemeGroupVersion.WithResource("projects") - -var projectsKind = v1.SchemeGroupVersion.WithKind("Project") - -// Get takes name of the project, and returns the corresponding project object, and an error if there is any. -func (c *FakeProjects) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Project, err error) { - emptyResult := &v1.Project{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(projectsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Project), err -} - -// List takes label and field selectors, and returns the list of Projects that match those selectors. -func (c *FakeProjects) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ProjectList, err error) { - emptyResult := &v1.ProjectList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(projectsResource, projectsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() +func newFakeProjects(fake *FakeManagementV1) managementv1.ProjectInterface { + return &fakeProjects{ + gentype.NewFakeClientWithList[*v1.Project, *v1.ProjectList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("projects"), + v1.SchemeGroupVersion.WithKind("Project"), + func() *v1.Project { return &v1.Project{} }, + func() *v1.ProjectList { return &v1.ProjectList{} }, + func(dst, src *v1.ProjectList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ProjectList) []*v1.Project { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ProjectList, items []*v1.Project) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - list := &v1.ProjectList{ListMeta: obj.(*v1.ProjectList).ListMeta} - for _, item := range obj.(*v1.ProjectList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested projects. -func (c *FakeProjects) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(projectsResource, opts)) -} - -// Create takes the representation of a project and creates it. Returns the server's representation of the project, and an error, if there is any. -func (c *FakeProjects) Create(ctx context.Context, project *v1.Project, opts metav1.CreateOptions) (result *v1.Project, err error) { - emptyResult := &v1.Project{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(projectsResource, project, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Project), err -} - -// Update takes the representation of a project and updates it. Returns the server's representation of the project, and an error, if there is any. -func (c *FakeProjects) Update(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (result *v1.Project, err error) { - emptyResult := &v1.Project{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(projectsResource, project, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Project), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeProjects) UpdateStatus(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (result *v1.Project, err error) { - emptyResult := &v1.Project{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(projectsResource, "status", project, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Project), err -} - -// Delete takes name of the project and deletes it. Returns an error if one occurs. -func (c *FakeProjects) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(projectsResource, name, opts), &v1.Project{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeProjects) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(projectsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ProjectList{}) - return err -} - -// Patch applies the patch and returns the patched project. -func (c *FakeProjects) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Project, err error) { - emptyResult := &v1.Project{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(projectsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Project), err } // ListMembers takes name of the project, and returns the corresponding projectMembers object, and an error if there is any. -func (c *FakeProjects) ListMembers(ctx context.Context, projectName string, options metav1.GetOptions) (result *v1.ProjectMembers, err error) { +func (c *fakeProjects) ListMembers(ctx context.Context, projectName string, options metav1.GetOptions) (result *v1.ProjectMembers, err error) { emptyResult := &v1.ProjectMembers{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(projectsResource, "members", projectName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "members", projectName, options), emptyResult) if obj == nil { return emptyResult, err } @@ -133,32 +47,21 @@ func (c *FakeProjects) ListMembers(ctx context.Context, projectName string, opti } // ListTemplates takes name of the project, and returns the corresponding projectTemplates object, and an error if there is any. -func (c *FakeProjects) ListTemplates(ctx context.Context, projectName string, options metav1.GetOptions) (result *v1.ProjectTemplates, err error) { +func (c *fakeProjects) ListTemplates(ctx context.Context, projectName string, options metav1.GetOptions) (result *v1.ProjectTemplates, err error) { emptyResult := &v1.ProjectTemplates{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(projectsResource, "templates", projectName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "templates", projectName, options), emptyResult) if obj == nil { return emptyResult, err } return obj.(*v1.ProjectTemplates), err } -// ListRunners takes name of the project, and returns the corresponding projectRunners object, and an error if there is any. -func (c *FakeProjects) ListRunners(ctx context.Context, projectName string, options metav1.GetOptions) (result *v1.ProjectRunners, err error) { - emptyResult := &v1.ProjectRunners{} - obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(projectsResource, "runners", projectName, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ProjectRunners), err -} - // ListClusters takes name of the project, and returns the corresponding projectClusters object, and an error if there is any. -func (c *FakeProjects) ListClusters(ctx context.Context, projectName string, options metav1.GetOptions) (result *v1.ProjectClusters, err error) { +func (c *fakeProjects) ListClusters(ctx context.Context, projectName string, options metav1.GetOptions) (result *v1.ProjectClusters, err error) { emptyResult := &v1.ProjectClusters{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(projectsResource, "clusters", projectName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "clusters", projectName, options), emptyResult) if obj == nil { return emptyResult, err } @@ -166,10 +69,10 @@ func (c *FakeProjects) ListClusters(ctx context.Context, projectName string, opt } // MigrateVirtualClusterInstance takes the representation of a projectMigrateVirtualClusterInstance and creates it. Returns the server's representation of the projectMigrateVirtualClusterInstance, and an error, if there is any. -func (c *FakeProjects) MigrateVirtualClusterInstance(ctx context.Context, projectName string, projectMigrateVirtualClusterInstance *v1.ProjectMigrateVirtualClusterInstance, opts metav1.CreateOptions) (result *v1.ProjectMigrateVirtualClusterInstance, err error) { +func (c *fakeProjects) MigrateVirtualClusterInstance(ctx context.Context, projectName string, projectMigrateVirtualClusterInstance *v1.ProjectMigrateVirtualClusterInstance, opts metav1.CreateOptions) (result *v1.ProjectMigrateVirtualClusterInstance, err error) { emptyResult := &v1.ProjectMigrateVirtualClusterInstance{} obj, err := c.Fake. - Invokes(testing.NewRootCreateSubresourceActionWithOptions(projectsResource, projectName, "migratevirtualclusterinstance", projectMigrateVirtualClusterInstance, opts), emptyResult) + Invokes(testing.NewRootCreateSubresourceActionWithOptions(c.Resource(), projectName, "migratevirtualclusterinstance", projectMigrateVirtualClusterInstance, opts), emptyResult) if obj == nil { return emptyResult, err } @@ -177,10 +80,10 @@ func (c *FakeProjects) MigrateVirtualClusterInstance(ctx context.Context, projec } // ImportSpace takes the representation of a projectImportSpace and creates it. Returns the server's representation of the projectImportSpace, and an error, if there is any. -func (c *FakeProjects) ImportSpace(ctx context.Context, projectName string, projectImportSpace *v1.ProjectImportSpace, opts metav1.CreateOptions) (result *v1.ProjectImportSpace, err error) { +func (c *fakeProjects) ImportSpace(ctx context.Context, projectName string, projectImportSpace *v1.ProjectImportSpace, opts metav1.CreateOptions) (result *v1.ProjectImportSpace, err error) { emptyResult := &v1.ProjectImportSpace{} obj, err := c.Fake. - Invokes(testing.NewRootCreateSubresourceActionWithOptions(projectsResource, projectName, "importspace", projectImportSpace, opts), emptyResult) + Invokes(testing.NewRootCreateSubresourceActionWithOptions(c.Resource(), projectName, "importspace", projectImportSpace, opts), emptyResult) if obj == nil { return emptyResult, err } @@ -188,10 +91,10 @@ func (c *FakeProjects) ImportSpace(ctx context.Context, projectName string, proj } // MigrateSpaceInstance takes the representation of a projectMigrateSpaceInstance and creates it. Returns the server's representation of the projectMigrateSpaceInstance, and an error, if there is any. -func (c *FakeProjects) MigrateSpaceInstance(ctx context.Context, projectName string, projectMigrateSpaceInstance *v1.ProjectMigrateSpaceInstance, opts metav1.CreateOptions) (result *v1.ProjectMigrateSpaceInstance, err error) { +func (c *fakeProjects) MigrateSpaceInstance(ctx context.Context, projectName string, projectMigrateSpaceInstance *v1.ProjectMigrateSpaceInstance, opts metav1.CreateOptions) (result *v1.ProjectMigrateSpaceInstance, err error) { emptyResult := &v1.ProjectMigrateSpaceInstance{} obj, err := c.Fake. - Invokes(testing.NewRootCreateSubresourceActionWithOptions(projectsResource, projectName, "migratespaceinstance", projectMigrateSpaceInstance, opts), emptyResult) + Invokes(testing.NewRootCreateSubresourceActionWithOptions(c.Resource(), projectName, "migratespaceinstance", projectMigrateSpaceInstance, opts), emptyResult) if obj == nil { return emptyResult, err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_projectsecret.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_projectsecret.go index 7fd8847b..911c4de2 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_projectsecret.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_projectsecret.go @@ -3,116 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeProjectSecrets implements ProjectSecretInterface -type FakeProjectSecrets struct { +// fakeProjectSecrets implements ProjectSecretInterface +type fakeProjectSecrets struct { + *gentype.FakeClientWithList[*v1.ProjectSecret, *v1.ProjectSecretList] Fake *FakeManagementV1 - ns string -} - -var projectsecretsResource = v1.SchemeGroupVersion.WithResource("projectsecrets") - -var projectsecretsKind = v1.SchemeGroupVersion.WithKind("ProjectSecret") - -// Get takes name of the projectSecret, and returns the corresponding projectSecret object, and an error if there is any. -func (c *FakeProjectSecrets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ProjectSecret, err error) { - emptyResult := &v1.ProjectSecret{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(projectsecretsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ProjectSecret), err -} - -// List takes label and field selectors, and returns the list of ProjectSecrets that match those selectors. -func (c *FakeProjectSecrets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ProjectSecretList, err error) { - emptyResult := &v1.ProjectSecretList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(projectsecretsResource, projectsecretsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ProjectSecretList{ListMeta: obj.(*v1.ProjectSecretList).ListMeta} - for _, item := range obj.(*v1.ProjectSecretList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested projectSecrets. -func (c *FakeProjectSecrets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(projectsecretsResource, c.ns, opts)) - -} - -// Create takes the representation of a projectSecret and creates it. Returns the server's representation of the projectSecret, and an error, if there is any. -func (c *FakeProjectSecrets) Create(ctx context.Context, projectSecret *v1.ProjectSecret, opts metav1.CreateOptions) (result *v1.ProjectSecret, err error) { - emptyResult := &v1.ProjectSecret{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(projectsecretsResource, c.ns, projectSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ProjectSecret), err -} - -// Update takes the representation of a projectSecret and updates it. Returns the server's representation of the projectSecret, and an error, if there is any. -func (c *FakeProjectSecrets) Update(ctx context.Context, projectSecret *v1.ProjectSecret, opts metav1.UpdateOptions) (result *v1.ProjectSecret, err error) { - emptyResult := &v1.ProjectSecret{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(projectsecretsResource, c.ns, projectSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ProjectSecret), err -} - -// Delete takes name of the projectSecret and deletes it. Returns an error if one occurs. -func (c *FakeProjectSecrets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(projectsecretsResource, c.ns, name, opts), &v1.ProjectSecret{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeProjectSecrets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(projectsecretsResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ProjectSecretList{}) - return err -} - -// Patch applies the patch and returns the patched projectSecret. -func (c *FakeProjectSecrets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ProjectSecret, err error) { - emptyResult := &v1.ProjectSecret{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(projectsecretsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeProjectSecrets(fake *FakeManagementV1, namespace string) managementv1.ProjectSecretInterface { + return &fakeProjectSecrets{ + gentype.NewFakeClientWithList[*v1.ProjectSecret, *v1.ProjectSecretList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("projectsecrets"), + v1.SchemeGroupVersion.WithKind("ProjectSecret"), + func() *v1.ProjectSecret { return &v1.ProjectSecret{} }, + func() *v1.ProjectSecretList { return &v1.ProjectSecretList{} }, + func(dst, src *v1.ProjectSecretList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ProjectSecretList) []*v1.ProjectSecret { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ProjectSecretList, items []*v1.ProjectSecret) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ProjectSecret), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_redirecttoken.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_redirecttoken.go index ca422b96..fcdd4983 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_redirecttoken.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_redirecttoken.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeRedirectTokens implements RedirectTokenInterface -type FakeRedirectTokens struct { +// fakeRedirectTokens implements RedirectTokenInterface +type fakeRedirectTokens struct { + *gentype.FakeClientWithList[*v1.RedirectToken, *v1.RedirectTokenList] Fake *FakeManagementV1 } -var redirecttokensResource = v1.SchemeGroupVersion.WithResource("redirecttokens") - -var redirecttokensKind = v1.SchemeGroupVersion.WithKind("RedirectToken") - -// Get takes name of the redirectToken, and returns the corresponding redirectToken object, and an error if there is any. -func (c *FakeRedirectTokens) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RedirectToken, err error) { - emptyResult := &v1.RedirectToken{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(redirecttokensResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.RedirectToken), err -} - -// List takes label and field selectors, and returns the list of RedirectTokens that match those selectors. -func (c *FakeRedirectTokens) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RedirectTokenList, err error) { - emptyResult := &v1.RedirectTokenList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(redirecttokensResource, redirecttokensKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.RedirectTokenList{ListMeta: obj.(*v1.RedirectTokenList).ListMeta} - for _, item := range obj.(*v1.RedirectTokenList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested redirectTokens. -func (c *FakeRedirectTokens) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(redirecttokensResource, opts)) -} - -// Create takes the representation of a redirectToken and creates it. Returns the server's representation of the redirectToken, and an error, if there is any. -func (c *FakeRedirectTokens) Create(ctx context.Context, redirectToken *v1.RedirectToken, opts metav1.CreateOptions) (result *v1.RedirectToken, err error) { - emptyResult := &v1.RedirectToken{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(redirecttokensResource, redirectToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.RedirectToken), err -} - -// Update takes the representation of a redirectToken and updates it. Returns the server's representation of the redirectToken, and an error, if there is any. -func (c *FakeRedirectTokens) Update(ctx context.Context, redirectToken *v1.RedirectToken, opts metav1.UpdateOptions) (result *v1.RedirectToken, err error) { - emptyResult := &v1.RedirectToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(redirecttokensResource, redirectToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.RedirectToken), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRedirectTokens) UpdateStatus(ctx context.Context, redirectToken *v1.RedirectToken, opts metav1.UpdateOptions) (result *v1.RedirectToken, err error) { - emptyResult := &v1.RedirectToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(redirecttokensResource, "status", redirectToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.RedirectToken), err -} - -// Delete takes name of the redirectToken and deletes it. Returns an error if one occurs. -func (c *FakeRedirectTokens) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(redirecttokensResource, name, opts), &v1.RedirectToken{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRedirectTokens) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(redirecttokensResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.RedirectTokenList{}) - return err -} - -// Patch applies the patch and returns the patched redirectToken. -func (c *FakeRedirectTokens) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RedirectToken, err error) { - emptyResult := &v1.RedirectToken{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(redirecttokensResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeRedirectTokens(fake *FakeManagementV1) managementv1.RedirectTokenInterface { + return &fakeRedirectTokens{ + gentype.NewFakeClientWithList[*v1.RedirectToken, *v1.RedirectTokenList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("redirecttokens"), + v1.SchemeGroupVersion.WithKind("RedirectToken"), + func() *v1.RedirectToken { return &v1.RedirectToken{} }, + func() *v1.RedirectTokenList { return &v1.RedirectTokenList{} }, + func(dst, src *v1.RedirectTokenList) { dst.ListMeta = src.ListMeta }, + func(list *v1.RedirectTokenList) []*v1.RedirectToken { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.RedirectTokenList, items []*v1.RedirectToken) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.RedirectToken), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_registervirtualcluster.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_registervirtualcluster.go index e3dfd565..edc4b583 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_registervirtualcluster.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_registervirtualcluster.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeRegisterVirtualClusters implements RegisterVirtualClusterInterface -type FakeRegisterVirtualClusters struct { +// fakeRegisterVirtualClusters implements RegisterVirtualClusterInterface +type fakeRegisterVirtualClusters struct { + *gentype.FakeClientWithList[*v1.RegisterVirtualCluster, *v1.RegisterVirtualClusterList] Fake *FakeManagementV1 } -var registervirtualclustersResource = v1.SchemeGroupVersion.WithResource("registervirtualclusters") - -var registervirtualclustersKind = v1.SchemeGroupVersion.WithKind("RegisterVirtualCluster") - -// Get takes name of the registerVirtualCluster, and returns the corresponding registerVirtualCluster object, and an error if there is any. -func (c *FakeRegisterVirtualClusters) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RegisterVirtualCluster, err error) { - emptyResult := &v1.RegisterVirtualCluster{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(registervirtualclustersResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.RegisterVirtualCluster), err -} - -// List takes label and field selectors, and returns the list of RegisterVirtualClusters that match those selectors. -func (c *FakeRegisterVirtualClusters) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RegisterVirtualClusterList, err error) { - emptyResult := &v1.RegisterVirtualClusterList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(registervirtualclustersResource, registervirtualclustersKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.RegisterVirtualClusterList{ListMeta: obj.(*v1.RegisterVirtualClusterList).ListMeta} - for _, item := range obj.(*v1.RegisterVirtualClusterList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested registerVirtualClusters. -func (c *FakeRegisterVirtualClusters) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(registervirtualclustersResource, opts)) -} - -// Create takes the representation of a registerVirtualCluster and creates it. Returns the server's representation of the registerVirtualCluster, and an error, if there is any. -func (c *FakeRegisterVirtualClusters) Create(ctx context.Context, registerVirtualCluster *v1.RegisterVirtualCluster, opts metav1.CreateOptions) (result *v1.RegisterVirtualCluster, err error) { - emptyResult := &v1.RegisterVirtualCluster{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(registervirtualclustersResource, registerVirtualCluster, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.RegisterVirtualCluster), err -} - -// Update takes the representation of a registerVirtualCluster and updates it. Returns the server's representation of the registerVirtualCluster, and an error, if there is any. -func (c *FakeRegisterVirtualClusters) Update(ctx context.Context, registerVirtualCluster *v1.RegisterVirtualCluster, opts metav1.UpdateOptions) (result *v1.RegisterVirtualCluster, err error) { - emptyResult := &v1.RegisterVirtualCluster{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(registervirtualclustersResource, registerVirtualCluster, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.RegisterVirtualCluster), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRegisterVirtualClusters) UpdateStatus(ctx context.Context, registerVirtualCluster *v1.RegisterVirtualCluster, opts metav1.UpdateOptions) (result *v1.RegisterVirtualCluster, err error) { - emptyResult := &v1.RegisterVirtualCluster{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(registervirtualclustersResource, "status", registerVirtualCluster, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.RegisterVirtualCluster), err -} - -// Delete takes name of the registerVirtualCluster and deletes it. Returns an error if one occurs. -func (c *FakeRegisterVirtualClusters) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(registervirtualclustersResource, name, opts), &v1.RegisterVirtualCluster{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRegisterVirtualClusters) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(registervirtualclustersResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.RegisterVirtualClusterList{}) - return err -} - -// Patch applies the patch and returns the patched registerVirtualCluster. -func (c *FakeRegisterVirtualClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RegisterVirtualCluster, err error) { - emptyResult := &v1.RegisterVirtualCluster{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(registervirtualclustersResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeRegisterVirtualClusters(fake *FakeManagementV1) managementv1.RegisterVirtualClusterInterface { + return &fakeRegisterVirtualClusters{ + gentype.NewFakeClientWithList[*v1.RegisterVirtualCluster, *v1.RegisterVirtualClusterList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("registervirtualclusters"), + v1.SchemeGroupVersion.WithKind("RegisterVirtualCluster"), + func() *v1.RegisterVirtualCluster { return &v1.RegisterVirtualCluster{} }, + func() *v1.RegisterVirtualClusterList { return &v1.RegisterVirtualClusterList{} }, + func(dst, src *v1.RegisterVirtualClusterList) { dst.ListMeta = src.ListMeta }, + func(list *v1.RegisterVirtualClusterList) []*v1.RegisterVirtualCluster { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.RegisterVirtualClusterList, items []*v1.RegisterVirtualCluster) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.RegisterVirtualCluster), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_resetaccesskey.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_resetaccesskey.go index bd9b9d3d..69f27f16 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_resetaccesskey.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_resetaccesskey.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeResetAccessKeys implements ResetAccessKeyInterface -type FakeResetAccessKeys struct { +// fakeResetAccessKeys implements ResetAccessKeyInterface +type fakeResetAccessKeys struct { + *gentype.FakeClientWithList[*v1.ResetAccessKey, *v1.ResetAccessKeyList] Fake *FakeManagementV1 } -var resetaccesskeysResource = v1.SchemeGroupVersion.WithResource("resetaccesskeys") - -var resetaccesskeysKind = v1.SchemeGroupVersion.WithKind("ResetAccessKey") - -// Get takes name of the resetAccessKey, and returns the corresponding resetAccessKey object, and an error if there is any. -func (c *FakeResetAccessKeys) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ResetAccessKey, err error) { - emptyResult := &v1.ResetAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(resetaccesskeysResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ResetAccessKey), err -} - -// List takes label and field selectors, and returns the list of ResetAccessKeys that match those selectors. -func (c *FakeResetAccessKeys) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ResetAccessKeyList, err error) { - emptyResult := &v1.ResetAccessKeyList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(resetaccesskeysResource, resetaccesskeysKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ResetAccessKeyList{ListMeta: obj.(*v1.ResetAccessKeyList).ListMeta} - for _, item := range obj.(*v1.ResetAccessKeyList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested resetAccessKeys. -func (c *FakeResetAccessKeys) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(resetaccesskeysResource, opts)) -} - -// Create takes the representation of a resetAccessKey and creates it. Returns the server's representation of the resetAccessKey, and an error, if there is any. -func (c *FakeResetAccessKeys) Create(ctx context.Context, resetAccessKey *v1.ResetAccessKey, opts metav1.CreateOptions) (result *v1.ResetAccessKey, err error) { - emptyResult := &v1.ResetAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(resetaccesskeysResource, resetAccessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ResetAccessKey), err -} - -// Update takes the representation of a resetAccessKey and updates it. Returns the server's representation of the resetAccessKey, and an error, if there is any. -func (c *FakeResetAccessKeys) Update(ctx context.Context, resetAccessKey *v1.ResetAccessKey, opts metav1.UpdateOptions) (result *v1.ResetAccessKey, err error) { - emptyResult := &v1.ResetAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(resetaccesskeysResource, resetAccessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ResetAccessKey), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeResetAccessKeys) UpdateStatus(ctx context.Context, resetAccessKey *v1.ResetAccessKey, opts metav1.UpdateOptions) (result *v1.ResetAccessKey, err error) { - emptyResult := &v1.ResetAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(resetaccesskeysResource, "status", resetAccessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ResetAccessKey), err -} - -// Delete takes name of the resetAccessKey and deletes it. Returns an error if one occurs. -func (c *FakeResetAccessKeys) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(resetaccesskeysResource, name, opts), &v1.ResetAccessKey{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeResetAccessKeys) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(resetaccesskeysResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ResetAccessKeyList{}) - return err -} - -// Patch applies the patch and returns the patched resetAccessKey. -func (c *FakeResetAccessKeys) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ResetAccessKey, err error) { - emptyResult := &v1.ResetAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(resetaccesskeysResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeResetAccessKeys(fake *FakeManagementV1) managementv1.ResetAccessKeyInterface { + return &fakeResetAccessKeys{ + gentype.NewFakeClientWithList[*v1.ResetAccessKey, *v1.ResetAccessKeyList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("resetaccesskeys"), + v1.SchemeGroupVersion.WithKind("ResetAccessKey"), + func() *v1.ResetAccessKey { return &v1.ResetAccessKey{} }, + func() *v1.ResetAccessKeyList { return &v1.ResetAccessKeyList{} }, + func(dst, src *v1.ResetAccessKeyList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ResetAccessKeyList) []*v1.ResetAccessKey { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ResetAccessKeyList, items []*v1.ResetAccessKey) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ResetAccessKey), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_runner.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_runner.go deleted file mode 100644 index 04d0a6b4..00000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_runner.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeRunners implements RunnerInterface -type FakeRunners struct { - Fake *FakeManagementV1 -} - -var runnersResource = v1.SchemeGroupVersion.WithResource("runners") - -var runnersKind = v1.SchemeGroupVersion.WithKind("Runner") - -// Get takes name of the runner, and returns the corresponding runner object, and an error if there is any. -func (c *FakeRunners) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Runner, err error) { - emptyResult := &v1.Runner{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(runnersResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Runner), err -} - -// List takes label and field selectors, and returns the list of Runners that match those selectors. -func (c *FakeRunners) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RunnerList, err error) { - emptyResult := &v1.RunnerList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(runnersResource, runnersKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.RunnerList{ListMeta: obj.(*v1.RunnerList).ListMeta} - for _, item := range obj.(*v1.RunnerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested runners. -func (c *FakeRunners) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(runnersResource, opts)) -} - -// Create takes the representation of a runner and creates it. Returns the server's representation of the runner, and an error, if there is any. -func (c *FakeRunners) Create(ctx context.Context, runner *v1.Runner, opts metav1.CreateOptions) (result *v1.Runner, err error) { - emptyResult := &v1.Runner{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(runnersResource, runner, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Runner), err -} - -// Update takes the representation of a runner and updates it. Returns the server's representation of the runner, and an error, if there is any. -func (c *FakeRunners) Update(ctx context.Context, runner *v1.Runner, opts metav1.UpdateOptions) (result *v1.Runner, err error) { - emptyResult := &v1.Runner{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(runnersResource, runner, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Runner), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRunners) UpdateStatus(ctx context.Context, runner *v1.Runner, opts metav1.UpdateOptions) (result *v1.Runner, err error) { - emptyResult := &v1.Runner{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(runnersResource, "status", runner, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Runner), err -} - -// Delete takes name of the runner and deletes it. Returns an error if one occurs. -func (c *FakeRunners) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(runnersResource, name, opts), &v1.Runner{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRunners) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(runnersResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.RunnerList{}) - return err -} - -// Patch applies the patch and returns the patched runner. -func (c *FakeRunners) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Runner, err error) { - emptyResult := &v1.Runner{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(runnersResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Runner), err -} - -// GetConfig takes name of the runner, and returns the corresponding runnerConfig object, and an error if there is any. -func (c *FakeRunners) GetConfig(ctx context.Context, runnerName string, options metav1.GetOptions) (result *v1.RunnerConfig, err error) { - emptyResult := &v1.RunnerConfig{} - obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(runnersResource, "config", runnerName, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.RunnerConfig), err -} - -// GetAccessKey takes name of the runner, and returns the corresponding runnerAccessKey object, and an error if there is any. -func (c *FakeRunners) GetAccessKey(ctx context.Context, runnerName string, options metav1.GetOptions) (result *v1.RunnerAccessKey, err error) { - emptyResult := &v1.RunnerAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(runnersResource, "accesskey", runnerName, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.RunnerAccessKey), err -} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_self.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_self.go index 4e3f66bf..3bf47cc0 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_self.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_self.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSelves implements SelfInterface -type FakeSelves struct { +// fakeSelves implements SelfInterface +type fakeSelves struct { + *gentype.FakeClientWithList[*v1.Self, *v1.SelfList] Fake *FakeManagementV1 } -var selvesResource = v1.SchemeGroupVersion.WithResource("selves") - -var selvesKind = v1.SchemeGroupVersion.WithKind("Self") - -// Get takes name of the self, and returns the corresponding self object, and an error if there is any. -func (c *FakeSelves) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Self, err error) { - emptyResult := &v1.Self{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(selvesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Self), err -} - -// List takes label and field selectors, and returns the list of Selves that match those selectors. -func (c *FakeSelves) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SelfList, err error) { - emptyResult := &v1.SelfList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(selvesResource, selvesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SelfList{ListMeta: obj.(*v1.SelfList).ListMeta} - for _, item := range obj.(*v1.SelfList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested selves. -func (c *FakeSelves) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(selvesResource, opts)) -} - -// Create takes the representation of a self and creates it. Returns the server's representation of the self, and an error, if there is any. -func (c *FakeSelves) Create(ctx context.Context, self *v1.Self, opts metav1.CreateOptions) (result *v1.Self, err error) { - emptyResult := &v1.Self{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(selvesResource, self, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Self), err -} - -// Update takes the representation of a self and updates it. Returns the server's representation of the self, and an error, if there is any. -func (c *FakeSelves) Update(ctx context.Context, self *v1.Self, opts metav1.UpdateOptions) (result *v1.Self, err error) { - emptyResult := &v1.Self{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(selvesResource, self, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Self), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSelves) UpdateStatus(ctx context.Context, self *v1.Self, opts metav1.UpdateOptions) (result *v1.Self, err error) { - emptyResult := &v1.Self{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(selvesResource, "status", self, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Self), err -} - -// Delete takes name of the self and deletes it. Returns an error if one occurs. -func (c *FakeSelves) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(selvesResource, name, opts), &v1.Self{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSelves) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(selvesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SelfList{}) - return err -} - -// Patch applies the patch and returns the patched self. -func (c *FakeSelves) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Self, err error) { - emptyResult := &v1.Self{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(selvesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeSelves(fake *FakeManagementV1) managementv1.SelfInterface { + return &fakeSelves{ + gentype.NewFakeClientWithList[*v1.Self, *v1.SelfList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("selves"), + v1.SchemeGroupVersion.WithKind("Self"), + func() *v1.Self { return &v1.Self{} }, + func() *v1.SelfList { return &v1.SelfList{} }, + func(dst, src *v1.SelfList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SelfList) []*v1.Self { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SelfList, items []*v1.Self) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Self), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_selfsubjectaccessreview.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_selfsubjectaccessreview.go index 3f8b7d96..9e8691d3 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_selfsubjectaccessreview.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_selfsubjectaccessreview.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSelfSubjectAccessReviews implements SelfSubjectAccessReviewInterface -type FakeSelfSubjectAccessReviews struct { +// fakeSelfSubjectAccessReviews implements SelfSubjectAccessReviewInterface +type fakeSelfSubjectAccessReviews struct { + *gentype.FakeClientWithList[*v1.SelfSubjectAccessReview, *v1.SelfSubjectAccessReviewList] Fake *FakeManagementV1 } -var selfsubjectaccessreviewsResource = v1.SchemeGroupVersion.WithResource("selfsubjectaccessreviews") - -var selfsubjectaccessreviewsKind = v1.SchemeGroupVersion.WithKind("SelfSubjectAccessReview") - -// Get takes name of the selfSubjectAccessReview, and returns the corresponding selfSubjectAccessReview object, and an error if there is any. -func (c *FakeSelfSubjectAccessReviews) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SelfSubjectAccessReview, err error) { - emptyResult := &v1.SelfSubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(selfsubjectaccessreviewsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SelfSubjectAccessReview), err -} - -// List takes label and field selectors, and returns the list of SelfSubjectAccessReviews that match those selectors. -func (c *FakeSelfSubjectAccessReviews) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SelfSubjectAccessReviewList, err error) { - emptyResult := &v1.SelfSubjectAccessReviewList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(selfsubjectaccessreviewsResource, selfsubjectaccessreviewsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SelfSubjectAccessReviewList{ListMeta: obj.(*v1.SelfSubjectAccessReviewList).ListMeta} - for _, item := range obj.(*v1.SelfSubjectAccessReviewList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested selfSubjectAccessReviews. -func (c *FakeSelfSubjectAccessReviews) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(selfsubjectaccessreviewsResource, opts)) -} - -// Create takes the representation of a selfSubjectAccessReview and creates it. Returns the server's representation of the selfSubjectAccessReview, and an error, if there is any. -func (c *FakeSelfSubjectAccessReviews) Create(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.CreateOptions) (result *v1.SelfSubjectAccessReview, err error) { - emptyResult := &v1.SelfSubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(selfsubjectaccessreviewsResource, selfSubjectAccessReview, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SelfSubjectAccessReview), err -} - -// Update takes the representation of a selfSubjectAccessReview and updates it. Returns the server's representation of the selfSubjectAccessReview, and an error, if there is any. -func (c *FakeSelfSubjectAccessReviews) Update(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.UpdateOptions) (result *v1.SelfSubjectAccessReview, err error) { - emptyResult := &v1.SelfSubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(selfsubjectaccessreviewsResource, selfSubjectAccessReview, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SelfSubjectAccessReview), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSelfSubjectAccessReviews) UpdateStatus(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.UpdateOptions) (result *v1.SelfSubjectAccessReview, err error) { - emptyResult := &v1.SelfSubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(selfsubjectaccessreviewsResource, "status", selfSubjectAccessReview, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SelfSubjectAccessReview), err -} - -// Delete takes name of the selfSubjectAccessReview and deletes it. Returns an error if one occurs. -func (c *FakeSelfSubjectAccessReviews) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(selfsubjectaccessreviewsResource, name, opts), &v1.SelfSubjectAccessReview{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSelfSubjectAccessReviews) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(selfsubjectaccessreviewsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SelfSubjectAccessReviewList{}) - return err -} - -// Patch applies the patch and returns the patched selfSubjectAccessReview. -func (c *FakeSelfSubjectAccessReviews) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SelfSubjectAccessReview, err error) { - emptyResult := &v1.SelfSubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(selfsubjectaccessreviewsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeSelfSubjectAccessReviews(fake *FakeManagementV1) managementv1.SelfSubjectAccessReviewInterface { + return &fakeSelfSubjectAccessReviews{ + gentype.NewFakeClientWithList[*v1.SelfSubjectAccessReview, *v1.SelfSubjectAccessReviewList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("selfsubjectaccessreviews"), + v1.SchemeGroupVersion.WithKind("SelfSubjectAccessReview"), + func() *v1.SelfSubjectAccessReview { return &v1.SelfSubjectAccessReview{} }, + func() *v1.SelfSubjectAccessReviewList { return &v1.SelfSubjectAccessReviewList{} }, + func(dst, src *v1.SelfSubjectAccessReviewList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SelfSubjectAccessReviewList) []*v1.SelfSubjectAccessReview { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.SelfSubjectAccessReviewList, items []*v1.SelfSubjectAccessReview) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SelfSubjectAccessReview), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_sharedsecret.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_sharedsecret.go index 7f93614d..86f67d2a 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_sharedsecret.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_sharedsecret.go @@ -3,129 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSharedSecrets implements SharedSecretInterface -type FakeSharedSecrets struct { +// fakeSharedSecrets implements SharedSecretInterface +type fakeSharedSecrets struct { + *gentype.FakeClientWithList[*v1.SharedSecret, *v1.SharedSecretList] Fake *FakeManagementV1 - ns string -} - -var sharedsecretsResource = v1.SchemeGroupVersion.WithResource("sharedsecrets") - -var sharedsecretsKind = v1.SchemeGroupVersion.WithKind("SharedSecret") - -// Get takes name of the sharedSecret, and returns the corresponding sharedSecret object, and an error if there is any. -func (c *FakeSharedSecrets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(sharedsecretsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// List takes label and field selectors, and returns the list of SharedSecrets that match those selectors. -func (c *FakeSharedSecrets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SharedSecretList, err error) { - emptyResult := &v1.SharedSecretList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(sharedsecretsResource, sharedsecretsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SharedSecretList{ListMeta: obj.(*v1.SharedSecretList).ListMeta} - for _, item := range obj.(*v1.SharedSecretList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested sharedSecrets. -func (c *FakeSharedSecrets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(sharedsecretsResource, c.ns, opts)) - -} - -// Create takes the representation of a sharedSecret and creates it. Returns the server's representation of the sharedSecret, and an error, if there is any. -func (c *FakeSharedSecrets) Create(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.CreateOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(sharedsecretsResource, c.ns, sharedSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// Update takes the representation of a sharedSecret and updates it. Returns the server's representation of the sharedSecret, and an error, if there is any. -func (c *FakeSharedSecrets) Update(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(sharedsecretsResource, c.ns, sharedSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSharedSecrets) UpdateStatus(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(sharedsecretsResource, "status", c.ns, sharedSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// Delete takes name of the sharedSecret and deletes it. Returns an error if one occurs. -func (c *FakeSharedSecrets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(sharedsecretsResource, c.ns, name, opts), &v1.SharedSecret{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeSharedSecrets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(sharedsecretsResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SharedSecretList{}) - return err -} - -// Patch applies the patch and returns the patched sharedSecret. -func (c *FakeSharedSecrets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(sharedsecretsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeSharedSecrets(fake *FakeManagementV1, namespace string) managementv1.SharedSecretInterface { + return &fakeSharedSecrets{ + gentype.NewFakeClientWithList[*v1.SharedSecret, *v1.SharedSecretList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("sharedsecrets"), + v1.SchemeGroupVersion.WithKind("SharedSecret"), + func() *v1.SharedSecret { return &v1.SharedSecret{} }, + func() *v1.SharedSecretList { return &v1.SharedSecretList{} }, + func(dst, src *v1.SharedSecretList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SharedSecretList) []*v1.SharedSecret { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SharedSecretList, items []*v1.SharedSecret) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SharedSecret), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_spaceinstance.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_spaceinstance.go index a225f7b2..41ab60de 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_spaceinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_spaceinstance.go @@ -3,116 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSpaceInstances implements SpaceInstanceInterface -type FakeSpaceInstances struct { +// fakeSpaceInstances implements SpaceInstanceInterface +type fakeSpaceInstances struct { + *gentype.FakeClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList] Fake *FakeManagementV1 - ns string -} - -var spaceinstancesResource = v1.SchemeGroupVersion.WithResource("spaceinstances") - -var spaceinstancesKind = v1.SchemeGroupVersion.WithKind("SpaceInstance") - -// Get takes name of the spaceInstance, and returns the corresponding spaceInstance object, and an error if there is any. -func (c *FakeSpaceInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(spaceinstancesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// List takes label and field selectors, and returns the list of SpaceInstances that match those selectors. -func (c *FakeSpaceInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SpaceInstanceList, err error) { - emptyResult := &v1.SpaceInstanceList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(spaceinstancesResource, spaceinstancesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SpaceInstanceList{ListMeta: obj.(*v1.SpaceInstanceList).ListMeta} - for _, item := range obj.(*v1.SpaceInstanceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested spaceInstances. -func (c *FakeSpaceInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(spaceinstancesResource, c.ns, opts)) - -} - -// Create takes the representation of a spaceInstance and creates it. Returns the server's representation of the spaceInstance, and an error, if there is any. -func (c *FakeSpaceInstances) Create(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.CreateOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(spaceinstancesResource, c.ns, spaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// Update takes the representation of a spaceInstance and updates it. Returns the server's representation of the spaceInstance, and an error, if there is any. -func (c *FakeSpaceInstances) Update(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.UpdateOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(spaceinstancesResource, c.ns, spaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// Delete takes name of the spaceInstance and deletes it. Returns an error if one occurs. -func (c *FakeSpaceInstances) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(spaceinstancesResource, c.ns, name, opts), &v1.SpaceInstance{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeSpaceInstances) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(spaceinstancesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SpaceInstanceList{}) - return err -} - -// Patch applies the patch and returns the patched spaceInstance. -func (c *FakeSpaceInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(spaceinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeSpaceInstances(fake *FakeManagementV1, namespace string) managementv1.SpaceInstanceInterface { + return &fakeSpaceInstances{ + gentype.NewFakeClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("spaceinstances"), + v1.SchemeGroupVersion.WithKind("SpaceInstance"), + func() *v1.SpaceInstance { return &v1.SpaceInstance{} }, + func() *v1.SpaceInstanceList { return &v1.SpaceInstanceList{} }, + func(dst, src *v1.SpaceInstanceList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SpaceInstanceList) []*v1.SpaceInstance { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SpaceInstanceList, items []*v1.SpaceInstance) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SpaceInstance), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_spacetemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_spacetemplate.go index f47f5864..258d63aa 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_spacetemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_spacetemplate.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSpaceTemplates implements SpaceTemplateInterface -type FakeSpaceTemplates struct { +// fakeSpaceTemplates implements SpaceTemplateInterface +type fakeSpaceTemplates struct { + *gentype.FakeClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList] Fake *FakeManagementV1 } -var spacetemplatesResource = v1.SchemeGroupVersion.WithResource("spacetemplates") - -var spacetemplatesKind = v1.SchemeGroupVersion.WithKind("SpaceTemplate") - -// Get takes name of the spaceTemplate, and returns the corresponding spaceTemplate object, and an error if there is any. -func (c *FakeSpaceTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(spacetemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// List takes label and field selectors, and returns the list of SpaceTemplates that match those selectors. -func (c *FakeSpaceTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SpaceTemplateList, err error) { - emptyResult := &v1.SpaceTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(spacetemplatesResource, spacetemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SpaceTemplateList{ListMeta: obj.(*v1.SpaceTemplateList).ListMeta} - for _, item := range obj.(*v1.SpaceTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested spaceTemplates. -func (c *FakeSpaceTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(spacetemplatesResource, opts)) -} - -// Create takes the representation of a spaceTemplate and creates it. Returns the server's representation of the spaceTemplate, and an error, if there is any. -func (c *FakeSpaceTemplates) Create(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.CreateOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(spacetemplatesResource, spaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// Update takes the representation of a spaceTemplate and updates it. Returns the server's representation of the spaceTemplate, and an error, if there is any. -func (c *FakeSpaceTemplates) Update(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(spacetemplatesResource, spaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSpaceTemplates) UpdateStatus(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(spacetemplatesResource, "status", spaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// Delete takes name of the spaceTemplate and deletes it. Returns an error if one occurs. -func (c *FakeSpaceTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(spacetemplatesResource, name, opts), &v1.SpaceTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSpaceTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(spacetemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SpaceTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched spaceTemplate. -func (c *FakeSpaceTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(spacetemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeSpaceTemplates(fake *FakeManagementV1) managementv1.SpaceTemplateInterface { + return &fakeSpaceTemplates{ + gentype.NewFakeClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("spacetemplates"), + v1.SchemeGroupVersion.WithKind("SpaceTemplate"), + func() *v1.SpaceTemplate { return &v1.SpaceTemplate{} }, + func() *v1.SpaceTemplateList { return &v1.SpaceTemplateList{} }, + func(dst, src *v1.SpaceTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SpaceTemplateList) []*v1.SpaceTemplate { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SpaceTemplateList, items []*v1.SpaceTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SpaceTemplate), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_subjectaccessreview.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_subjectaccessreview.go index d60682bd..691e71c9 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_subjectaccessreview.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_subjectaccessreview.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSubjectAccessReviews implements SubjectAccessReviewInterface -type FakeSubjectAccessReviews struct { +// fakeSubjectAccessReviews implements SubjectAccessReviewInterface +type fakeSubjectAccessReviews struct { + *gentype.FakeClientWithList[*v1.SubjectAccessReview, *v1.SubjectAccessReviewList] Fake *FakeManagementV1 } -var subjectaccessreviewsResource = v1.SchemeGroupVersion.WithResource("subjectaccessreviews") - -var subjectaccessreviewsKind = v1.SchemeGroupVersion.WithKind("SubjectAccessReview") - -// Get takes name of the subjectAccessReview, and returns the corresponding subjectAccessReview object, and an error if there is any. -func (c *FakeSubjectAccessReviews) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SubjectAccessReview, err error) { - emptyResult := &v1.SubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(subjectaccessreviewsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SubjectAccessReview), err -} - -// List takes label and field selectors, and returns the list of SubjectAccessReviews that match those selectors. -func (c *FakeSubjectAccessReviews) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SubjectAccessReviewList, err error) { - emptyResult := &v1.SubjectAccessReviewList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(subjectaccessreviewsResource, subjectaccessreviewsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SubjectAccessReviewList{ListMeta: obj.(*v1.SubjectAccessReviewList).ListMeta} - for _, item := range obj.(*v1.SubjectAccessReviewList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested subjectAccessReviews. -func (c *FakeSubjectAccessReviews) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(subjectaccessreviewsResource, opts)) -} - -// Create takes the representation of a subjectAccessReview and creates it. Returns the server's representation of the subjectAccessReview, and an error, if there is any. -func (c *FakeSubjectAccessReviews) Create(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.CreateOptions) (result *v1.SubjectAccessReview, err error) { - emptyResult := &v1.SubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(subjectaccessreviewsResource, subjectAccessReview, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SubjectAccessReview), err -} - -// Update takes the representation of a subjectAccessReview and updates it. Returns the server's representation of the subjectAccessReview, and an error, if there is any. -func (c *FakeSubjectAccessReviews) Update(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.UpdateOptions) (result *v1.SubjectAccessReview, err error) { - emptyResult := &v1.SubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(subjectaccessreviewsResource, subjectAccessReview, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SubjectAccessReview), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSubjectAccessReviews) UpdateStatus(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.UpdateOptions) (result *v1.SubjectAccessReview, err error) { - emptyResult := &v1.SubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(subjectaccessreviewsResource, "status", subjectAccessReview, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SubjectAccessReview), err -} - -// Delete takes name of the subjectAccessReview and deletes it. Returns an error if one occurs. -func (c *FakeSubjectAccessReviews) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(subjectaccessreviewsResource, name, opts), &v1.SubjectAccessReview{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSubjectAccessReviews) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(subjectaccessreviewsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SubjectAccessReviewList{}) - return err -} - -// Patch applies the patch and returns the patched subjectAccessReview. -func (c *FakeSubjectAccessReviews) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SubjectAccessReview, err error) { - emptyResult := &v1.SubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(subjectaccessreviewsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeSubjectAccessReviews(fake *FakeManagementV1) managementv1.SubjectAccessReviewInterface { + return &fakeSubjectAccessReviews{ + gentype.NewFakeClientWithList[*v1.SubjectAccessReview, *v1.SubjectAccessReviewList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("subjectaccessreviews"), + v1.SchemeGroupVersion.WithKind("SubjectAccessReview"), + func() *v1.SubjectAccessReview { return &v1.SubjectAccessReview{} }, + func() *v1.SubjectAccessReviewList { return &v1.SubjectAccessReviewList{} }, + func(dst, src *v1.SubjectAccessReviewList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SubjectAccessReviewList) []*v1.SubjectAccessReview { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.SubjectAccessReviewList, items []*v1.SubjectAccessReview) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SubjectAccessReview), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_task.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_task.go index 2be15b28..954117b5 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_task.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_task.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeTasks implements TaskInterface -type FakeTasks struct { +// fakeTasks implements TaskInterface +type fakeTasks struct { + *gentype.FakeClientWithList[*v1.Task, *v1.TaskList] Fake *FakeManagementV1 } -var tasksResource = v1.SchemeGroupVersion.WithResource("tasks") - -var tasksKind = v1.SchemeGroupVersion.WithKind("Task") - -// Get takes name of the task, and returns the corresponding task object, and an error if there is any. -func (c *FakeTasks) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(tasksResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Task), err -} - -// List takes label and field selectors, and returns the list of Tasks that match those selectors. -func (c *FakeTasks) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TaskList, err error) { - emptyResult := &v1.TaskList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(tasksResource, tasksKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TaskList{ListMeta: obj.(*v1.TaskList).ListMeta} - for _, item := range obj.(*v1.TaskList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested tasks. -func (c *FakeTasks) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(tasksResource, opts)) -} - -// Create takes the representation of a task and creates it. Returns the server's representation of the task, and an error, if there is any. -func (c *FakeTasks) Create(ctx context.Context, task *v1.Task, opts metav1.CreateOptions) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(tasksResource, task, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Task), err -} - -// Update takes the representation of a task and updates it. Returns the server's representation of the task, and an error, if there is any. -func (c *FakeTasks) Update(ctx context.Context, task *v1.Task, opts metav1.UpdateOptions) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(tasksResource, task, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Task), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeTasks) UpdateStatus(ctx context.Context, task *v1.Task, opts metav1.UpdateOptions) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(tasksResource, "status", task, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Task), err -} - -// Delete takes name of the task and deletes it. Returns an error if one occurs. -func (c *FakeTasks) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(tasksResource, name, opts), &v1.Task{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeTasks) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(tasksResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TaskList{}) - return err -} - -// Patch applies the patch and returns the patched task. -func (c *FakeTasks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(tasksResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeTasks(fake *FakeManagementV1) managementv1.TaskInterface { + return &fakeTasks{ + gentype.NewFakeClientWithList[*v1.Task, *v1.TaskList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("tasks"), + v1.SchemeGroupVersion.WithKind("Task"), + func() *v1.Task { return &v1.Task{} }, + func() *v1.TaskList { return &v1.TaskList{} }, + func(dst, src *v1.TaskList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TaskList) []*v1.Task { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.TaskList, items []*v1.Task) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Task), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_team.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_team.go index bd14d854..2731d946 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_team.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_team.go @@ -3,129 +3,43 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeTeams implements TeamInterface -type FakeTeams struct { +// fakeTeams implements TeamInterface +type fakeTeams struct { + *gentype.FakeClientWithList[*v1.Team, *v1.TeamList] Fake *FakeManagementV1 } -var teamsResource = v1.SchemeGroupVersion.WithResource("teams") - -var teamsKind = v1.SchemeGroupVersion.WithKind("Team") - -// Get takes name of the team, and returns the corresponding team object, and an error if there is any. -func (c *FakeTeams) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(teamsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Team), err -} - -// List takes label and field selectors, and returns the list of Teams that match those selectors. -func (c *FakeTeams) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TeamList, err error) { - emptyResult := &v1.TeamList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(teamsResource, teamsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TeamList{ListMeta: obj.(*v1.TeamList).ListMeta} - for _, item := range obj.(*v1.TeamList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested teams. -func (c *FakeTeams) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(teamsResource, opts)) -} - -// Create takes the representation of a team and creates it. Returns the server's representation of the team, and an error, if there is any. -func (c *FakeTeams) Create(ctx context.Context, team *v1.Team, opts metav1.CreateOptions) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(teamsResource, team, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Team), err -} - -// Update takes the representation of a team and updates it. Returns the server's representation of the team, and an error, if there is any. -func (c *FakeTeams) Update(ctx context.Context, team *v1.Team, opts metav1.UpdateOptions) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(teamsResource, team, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Team), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeTeams) UpdateStatus(ctx context.Context, team *v1.Team, opts metav1.UpdateOptions) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(teamsResource, "status", team, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Team), err -} - -// Delete takes name of the team and deletes it. Returns an error if one occurs. -func (c *FakeTeams) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(teamsResource, name, opts), &v1.Team{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeTeams) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(teamsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TeamList{}) - return err -} - -// Patch applies the patch and returns the patched team. -func (c *FakeTeams) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(teamsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeTeams(fake *FakeManagementV1) managementv1.TeamInterface { + return &fakeTeams{ + gentype.NewFakeClientWithList[*v1.Team, *v1.TeamList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("teams"), + v1.SchemeGroupVersion.WithKind("Team"), + func() *v1.Team { return &v1.Team{} }, + func() *v1.TeamList { return &v1.TeamList{} }, + func(dst, src *v1.TeamList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TeamList) []*v1.Team { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.TeamList, items []*v1.Team) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Team), err } // ListClusters takes name of the team, and returns the corresponding teamClusters object, and an error if there is any. -func (c *FakeTeams) ListClusters(ctx context.Context, teamName string, options metav1.GetOptions) (result *v1.TeamClusters, err error) { +func (c *fakeTeams) ListClusters(ctx context.Context, teamName string, options metav1.GetOptions) (result *v1.TeamClusters, err error) { emptyResult := &v1.TeamClusters{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(teamsResource, "clusters", teamName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "clusters", teamName, options), emptyResult) if obj == nil { return emptyResult, err } @@ -133,10 +47,10 @@ func (c *FakeTeams) ListClusters(ctx context.Context, teamName string, options m } // ListAccessKeys takes name of the team, and returns the corresponding teamAccessKeys object, and an error if there is any. -func (c *FakeTeams) ListAccessKeys(ctx context.Context, teamName string, options metav1.GetOptions) (result *v1.TeamAccessKeys, err error) { +func (c *fakeTeams) ListAccessKeys(ctx context.Context, teamName string, options metav1.GetOptions) (result *v1.TeamAccessKeys, err error) { emptyResult := &v1.TeamAccessKeys{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(teamsResource, "accesskeys", teamName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "accesskeys", teamName, options), emptyResult) if obj == nil { return emptyResult, err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_translatevclusterresourcename.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_translatevclusterresourcename.go index 57f1c965..e32c4183 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_translatevclusterresourcename.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_translatevclusterresourcename.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeTranslateVClusterResourceNames implements TranslateVClusterResourceNameInterface -type FakeTranslateVClusterResourceNames struct { +// fakeTranslateVClusterResourceNames implements TranslateVClusterResourceNameInterface +type fakeTranslateVClusterResourceNames struct { + *gentype.FakeClientWithList[*v1.TranslateVClusterResourceName, *v1.TranslateVClusterResourceNameList] Fake *FakeManagementV1 } -var translatevclusterresourcenamesResource = v1.SchemeGroupVersion.WithResource("translatevclusterresourcenames") - -var translatevclusterresourcenamesKind = v1.SchemeGroupVersion.WithKind("TranslateVClusterResourceName") - -// Get takes name of the translateVClusterResourceName, and returns the corresponding translateVClusterResourceName object, and an error if there is any. -func (c *FakeTranslateVClusterResourceNames) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TranslateVClusterResourceName, err error) { - emptyResult := &v1.TranslateVClusterResourceName{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(translatevclusterresourcenamesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TranslateVClusterResourceName), err -} - -// List takes label and field selectors, and returns the list of TranslateVClusterResourceNames that match those selectors. -func (c *FakeTranslateVClusterResourceNames) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TranslateVClusterResourceNameList, err error) { - emptyResult := &v1.TranslateVClusterResourceNameList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(translatevclusterresourcenamesResource, translatevclusterresourcenamesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TranslateVClusterResourceNameList{ListMeta: obj.(*v1.TranslateVClusterResourceNameList).ListMeta} - for _, item := range obj.(*v1.TranslateVClusterResourceNameList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested translateVClusterResourceNames. -func (c *FakeTranslateVClusterResourceNames) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(translatevclusterresourcenamesResource, opts)) -} - -// Create takes the representation of a translateVClusterResourceName and creates it. Returns the server's representation of the translateVClusterResourceName, and an error, if there is any. -func (c *FakeTranslateVClusterResourceNames) Create(ctx context.Context, translateVClusterResourceName *v1.TranslateVClusterResourceName, opts metav1.CreateOptions) (result *v1.TranslateVClusterResourceName, err error) { - emptyResult := &v1.TranslateVClusterResourceName{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(translatevclusterresourcenamesResource, translateVClusterResourceName, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TranslateVClusterResourceName), err -} - -// Update takes the representation of a translateVClusterResourceName and updates it. Returns the server's representation of the translateVClusterResourceName, and an error, if there is any. -func (c *FakeTranslateVClusterResourceNames) Update(ctx context.Context, translateVClusterResourceName *v1.TranslateVClusterResourceName, opts metav1.UpdateOptions) (result *v1.TranslateVClusterResourceName, err error) { - emptyResult := &v1.TranslateVClusterResourceName{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(translatevclusterresourcenamesResource, translateVClusterResourceName, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TranslateVClusterResourceName), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeTranslateVClusterResourceNames) UpdateStatus(ctx context.Context, translateVClusterResourceName *v1.TranslateVClusterResourceName, opts metav1.UpdateOptions) (result *v1.TranslateVClusterResourceName, err error) { - emptyResult := &v1.TranslateVClusterResourceName{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(translatevclusterresourcenamesResource, "status", translateVClusterResourceName, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TranslateVClusterResourceName), err -} - -// Delete takes name of the translateVClusterResourceName and deletes it. Returns an error if one occurs. -func (c *FakeTranslateVClusterResourceNames) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(translatevclusterresourcenamesResource, name, opts), &v1.TranslateVClusterResourceName{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeTranslateVClusterResourceNames) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(translatevclusterresourcenamesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TranslateVClusterResourceNameList{}) - return err -} - -// Patch applies the patch and returns the patched translateVClusterResourceName. -func (c *FakeTranslateVClusterResourceNames) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TranslateVClusterResourceName, err error) { - emptyResult := &v1.TranslateVClusterResourceName{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(translatevclusterresourcenamesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeTranslateVClusterResourceNames(fake *FakeManagementV1) managementv1.TranslateVClusterResourceNameInterface { + return &fakeTranslateVClusterResourceNames{ + gentype.NewFakeClientWithList[*v1.TranslateVClusterResourceName, *v1.TranslateVClusterResourceNameList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("translatevclusterresourcenames"), + v1.SchemeGroupVersion.WithKind("TranslateVClusterResourceName"), + func() *v1.TranslateVClusterResourceName { return &v1.TranslateVClusterResourceName{} }, + func() *v1.TranslateVClusterResourceNameList { return &v1.TranslateVClusterResourceNameList{} }, + func(dst, src *v1.TranslateVClusterResourceNameList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TranslateVClusterResourceNameList) []*v1.TranslateVClusterResourceName { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.TranslateVClusterResourceNameList, items []*v1.TranslateVClusterResourceName) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.TranslateVClusterResourceName), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_user.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_user.go index 97003eee..c39e16ab 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_user.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_user.go @@ -3,129 +3,54 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeUsers implements UserInterface -type FakeUsers struct { +// fakeUsers implements UserInterface +type fakeUsers struct { + *gentype.FakeClientWithList[*v1.User, *v1.UserList] Fake *FakeManagementV1 } -var usersResource = v1.SchemeGroupVersion.WithResource("users") - -var usersKind = v1.SchemeGroupVersion.WithKind("User") - -// Get takes name of the user, and returns the corresponding user object, and an error if there is any. -func (c *FakeUsers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.User, err error) { - emptyResult := &v1.User{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(usersResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.User), err -} - -// List takes label and field selectors, and returns the list of Users that match those selectors. -func (c *FakeUsers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.UserList, err error) { - emptyResult := &v1.UserList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(usersResource, usersKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.UserList{ListMeta: obj.(*v1.UserList).ListMeta} - for _, item := range obj.(*v1.UserList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested users. -func (c *FakeUsers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(usersResource, opts)) -} - -// Create takes the representation of a user and creates it. Returns the server's representation of the user, and an error, if there is any. -func (c *FakeUsers) Create(ctx context.Context, user *v1.User, opts metav1.CreateOptions) (result *v1.User, err error) { - emptyResult := &v1.User{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(usersResource, user, opts), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeUsers(fake *FakeManagementV1) managementv1.UserInterface { + return &fakeUsers{ + gentype.NewFakeClientWithList[*v1.User, *v1.UserList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("users"), + v1.SchemeGroupVersion.WithKind("User"), + func() *v1.User { return &v1.User{} }, + func() *v1.UserList { return &v1.UserList{} }, + func(dst, src *v1.UserList) { dst.ListMeta = src.ListMeta }, + func(list *v1.UserList) []*v1.User { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.UserList, items []*v1.User) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.User), err } -// Update takes the representation of a user and updates it. Returns the server's representation of the user, and an error, if there is any. -func (c *FakeUsers) Update(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) (result *v1.User, err error) { - emptyResult := &v1.User{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(usersResource, user, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.User), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeUsers) UpdateStatus(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) (result *v1.User, err error) { - emptyResult := &v1.User{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(usersResource, "status", user, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.User), err -} - -// Delete takes name of the user and deletes it. Returns an error if one occurs. -func (c *FakeUsers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(usersResource, name, opts), &v1.User{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeUsers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(usersResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.UserList{}) - return err -} - -// Patch applies the patch and returns the patched user. -func (c *FakeUsers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.User, err error) { - emptyResult := &v1.User{} +// GetProfile takes name of the user, and returns the corresponding userProfile object, and an error if there is any. +func (c *fakeUsers) GetProfile(ctx context.Context, userName string, options metav1.GetOptions) (result *v1.UserProfile, err error) { + emptyResult := &v1.UserProfile{} obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(usersResource, name, pt, data, opts, subresources...), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "profile", userName, options), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.User), err + return obj.(*v1.UserProfile), err } -// GetProfile takes name of the user, and returns the corresponding userProfile object, and an error if there is any. -func (c *FakeUsers) GetProfile(ctx context.Context, userName string, options metav1.GetOptions) (result *v1.UserProfile, err error) { +// UpdateProfile takes the representation of a userProfile and creates it. Returns the server's representation of the userProfile, and an error, if there is any. +func (c *fakeUsers) UpdateProfile(ctx context.Context, userName string, userProfile *v1.UserProfile, opts metav1.CreateOptions) (result *v1.UserProfile, err error) { emptyResult := &v1.UserProfile{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(usersResource, "profile", userName, options), emptyResult) + Invokes(testing.NewRootCreateSubresourceActionWithOptions(c.Resource(), userName, "profile", userProfile, opts), emptyResult) if obj == nil { return emptyResult, err } @@ -133,10 +58,10 @@ func (c *FakeUsers) GetProfile(ctx context.Context, userName string, options met } // ListClusters takes name of the user, and returns the corresponding userClusters object, and an error if there is any. -func (c *FakeUsers) ListClusters(ctx context.Context, userName string, options metav1.GetOptions) (result *v1.UserClusters, err error) { +func (c *fakeUsers) ListClusters(ctx context.Context, userName string, options metav1.GetOptions) (result *v1.UserClusters, err error) { emptyResult := &v1.UserClusters{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(usersResource, "clusters", userName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "clusters", userName, options), emptyResult) if obj == nil { return emptyResult, err } @@ -144,10 +69,10 @@ func (c *FakeUsers) ListClusters(ctx context.Context, userName string, options m } // ListAccessKeys takes name of the user, and returns the corresponding userAccessKeys object, and an error if there is any. -func (c *FakeUsers) ListAccessKeys(ctx context.Context, userName string, options metav1.GetOptions) (result *v1.UserAccessKeys, err error) { +func (c *fakeUsers) ListAccessKeys(ctx context.Context, userName string, options metav1.GetOptions) (result *v1.UserAccessKeys, err error) { emptyResult := &v1.UserAccessKeys{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(usersResource, "accesskeys", userName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "accesskeys", userName, options), emptyResult) if obj == nil { return emptyResult, err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go index 56239ae8..430fd2f5 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go @@ -3,140 +3,74 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeVirtualClusterInstances implements VirtualClusterInstanceInterface -type FakeVirtualClusterInstances struct { +// fakeVirtualClusterInstances implements VirtualClusterInstanceInterface +type fakeVirtualClusterInstances struct { + *gentype.FakeClientWithList[*v1.VirtualClusterInstance, *v1.VirtualClusterInstanceList] Fake *FakeManagementV1 - ns string } -var virtualclusterinstancesResource = v1.SchemeGroupVersion.WithResource("virtualclusterinstances") - -var virtualclusterinstancesKind = v1.SchemeGroupVersion.WithKind("VirtualClusterInstance") - -// Get takes name of the virtualClusterInstance, and returns the corresponding virtualClusterInstance object, and an error if there is any. -func (c *FakeVirtualClusterInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VirtualClusterInstance, err error) { - emptyResult := &v1.VirtualClusterInstance{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(virtualclusterinstancesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterInstance), err -} - -// List takes label and field selectors, and returns the list of VirtualClusterInstances that match those selectors. -func (c *FakeVirtualClusterInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VirtualClusterInstanceList, err error) { - emptyResult := &v1.VirtualClusterInstanceList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(virtualclusterinstancesResource, virtualclusterinstancesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.VirtualClusterInstanceList{ListMeta: obj.(*v1.VirtualClusterInstanceList).ListMeta} - for _, item := range obj.(*v1.VirtualClusterInstanceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested virtualClusterInstances. -func (c *FakeVirtualClusterInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(virtualclusterinstancesResource, c.ns, opts)) - -} - -// Create takes the representation of a virtualClusterInstance and creates it. Returns the server's representation of the virtualClusterInstance, and an error, if there is any. -func (c *FakeVirtualClusterInstances) Create(ctx context.Context, virtualClusterInstance *v1.VirtualClusterInstance, opts metav1.CreateOptions) (result *v1.VirtualClusterInstance, err error) { - emptyResult := &v1.VirtualClusterInstance{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(virtualclusterinstancesResource, c.ns, virtualClusterInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeVirtualClusterInstances(fake *FakeManagementV1, namespace string) managementv1.VirtualClusterInstanceInterface { + return &fakeVirtualClusterInstances{ + gentype.NewFakeClientWithList[*v1.VirtualClusterInstance, *v1.VirtualClusterInstanceList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("virtualclusterinstances"), + v1.SchemeGroupVersion.WithKind("VirtualClusterInstance"), + func() *v1.VirtualClusterInstance { return &v1.VirtualClusterInstance{} }, + func() *v1.VirtualClusterInstanceList { return &v1.VirtualClusterInstanceList{} }, + func(dst, src *v1.VirtualClusterInstanceList) { dst.ListMeta = src.ListMeta }, + func(list *v1.VirtualClusterInstanceList) []*v1.VirtualClusterInstance { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.VirtualClusterInstanceList, items []*v1.VirtualClusterInstance) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.VirtualClusterInstance), err } -// Update takes the representation of a virtualClusterInstance and updates it. Returns the server's representation of the virtualClusterInstance, and an error, if there is any. -func (c *FakeVirtualClusterInstances) Update(ctx context.Context, virtualClusterInstance *v1.VirtualClusterInstance, opts metav1.UpdateOptions) (result *v1.VirtualClusterInstance, err error) { - emptyResult := &v1.VirtualClusterInstance{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(virtualclusterinstancesResource, c.ns, virtualClusterInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterInstance), err -} - -// Delete takes name of the virtualClusterInstance and deletes it. Returns an error if one occurs. -func (c *FakeVirtualClusterInstances) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(virtualclusterinstancesResource, c.ns, name, opts), &v1.VirtualClusterInstance{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeVirtualClusterInstances) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(virtualclusterinstancesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.VirtualClusterInstanceList{}) - return err -} - -// Patch applies the patch and returns the patched virtualClusterInstance. -func (c *FakeVirtualClusterInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VirtualClusterInstance, err error) { - emptyResult := &v1.VirtualClusterInstance{} +// GetKubeConfig takes the representation of a virtualClusterInstanceKubeConfig and creates it. Returns the server's representation of the virtualClusterInstanceKubeConfig, and an error, if there is any. +func (c *fakeVirtualClusterInstances) GetKubeConfig(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceKubeConfig *v1.VirtualClusterInstanceKubeConfig, opts metav1.CreateOptions) (result *v1.VirtualClusterInstanceKubeConfig, err error) { + emptyResult := &v1.VirtualClusterInstanceKubeConfig{} obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(virtualclusterinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "kubeconfig", c.Namespace(), virtualClusterInstanceKubeConfig, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.VirtualClusterInstance), err + return obj.(*v1.VirtualClusterInstanceKubeConfig), err } -// GetKubeConfig takes the representation of a virtualClusterInstanceKubeConfig and creates it. Returns the server's representation of the virtualClusterInstanceKubeConfig, and an error, if there is any. -func (c *FakeVirtualClusterInstances) GetKubeConfig(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceKubeConfig *v1.VirtualClusterInstanceKubeConfig, opts metav1.CreateOptions) (result *v1.VirtualClusterInstanceKubeConfig, err error) { - emptyResult := &v1.VirtualClusterInstanceKubeConfig{} +// GetAccessKey takes name of the virtualClusterInstance, and returns the corresponding virtualClusterAccessKey object, and an error if there is any. +func (c *fakeVirtualClusterInstances) GetAccessKey(ctx context.Context, virtualClusterInstanceName string, options metav1.GetOptions) (result *v1.VirtualClusterAccessKey, err error) { + emptyResult := &v1.VirtualClusterAccessKey{} obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(virtualclusterinstancesResource, virtualClusterInstanceName, "kubeconfig", c.ns, virtualClusterInstanceKubeConfig, opts), emptyResult) + Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "accesskey", virtualClusterInstanceName, options), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.VirtualClusterInstanceKubeConfig), err + return obj.(*v1.VirtualClusterAccessKey), err } -// GetAccessKey takes name of the virtualClusterInstance, and returns the corresponding virtualClusterAccessKey object, and an error if there is any. -func (c *FakeVirtualClusterInstances) GetAccessKey(ctx context.Context, virtualClusterInstanceName string, options metav1.GetOptions) (result *v1.VirtualClusterAccessKey, err error) { - emptyResult := &v1.VirtualClusterAccessKey{} +// GetExternalDatabase takes the representation of a virtualClusterExternalDatabase and creates it. Returns the server's representation of the virtualClusterExternalDatabase, and an error, if there is any. +func (c *fakeVirtualClusterInstances) GetExternalDatabase(ctx context.Context, virtualClusterInstanceName string, virtualClusterExternalDatabase *v1.VirtualClusterExternalDatabase, opts metav1.CreateOptions) (result *v1.VirtualClusterExternalDatabase, err error) { + emptyResult := &v1.VirtualClusterExternalDatabase{} obj, err := c.Fake. - Invokes(testing.NewGetSubresourceActionWithOptions(virtualclusterinstancesResource, c.ns, "accesskey", virtualClusterInstanceName, options), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "externaldatabase", c.Namespace(), virtualClusterExternalDatabase, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.VirtualClusterAccessKey), err + return obj.(*v1.VirtualClusterExternalDatabase), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterschema.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterschema.go new file mode 100644 index 00000000..e2962dd3 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterschema.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeVirtualClusterSchemas implements VirtualClusterSchemaInterface +type fakeVirtualClusterSchemas struct { + *gentype.FakeClientWithList[*v1.VirtualClusterSchema, *v1.VirtualClusterSchemaList] + Fake *FakeManagementV1 +} + +func newFakeVirtualClusterSchemas(fake *FakeManagementV1) managementv1.VirtualClusterSchemaInterface { + return &fakeVirtualClusterSchemas{ + gentype.NewFakeClientWithList[*v1.VirtualClusterSchema, *v1.VirtualClusterSchemaList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("virtualclusterschemas"), + v1.SchemeGroupVersion.WithKind("VirtualClusterSchema"), + func() *v1.VirtualClusterSchema { return &v1.VirtualClusterSchema{} }, + func() *v1.VirtualClusterSchemaList { return &v1.VirtualClusterSchemaList{} }, + func(dst, src *v1.VirtualClusterSchemaList) { dst.ListMeta = src.ListMeta }, + func(list *v1.VirtualClusterSchemaList) []*v1.VirtualClusterSchema { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.VirtualClusterSchemaList, items []*v1.VirtualClusterSchema) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclustertemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclustertemplate.go index 81c37ebe..681889e1 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclustertemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclustertemplate.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeVirtualClusterTemplates implements VirtualClusterTemplateInterface -type FakeVirtualClusterTemplates struct { +// fakeVirtualClusterTemplates implements VirtualClusterTemplateInterface +type fakeVirtualClusterTemplates struct { + *gentype.FakeClientWithList[*v1.VirtualClusterTemplate, *v1.VirtualClusterTemplateList] Fake *FakeManagementV1 } -var virtualclustertemplatesResource = v1.SchemeGroupVersion.WithResource("virtualclustertemplates") - -var virtualclustertemplatesKind = v1.SchemeGroupVersion.WithKind("VirtualClusterTemplate") - -// Get takes name of the virtualClusterTemplate, and returns the corresponding virtualClusterTemplate object, and an error if there is any. -func (c *FakeVirtualClusterTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VirtualClusterTemplate, err error) { - emptyResult := &v1.VirtualClusterTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(virtualclustertemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterTemplate), err -} - -// List takes label and field selectors, and returns the list of VirtualClusterTemplates that match those selectors. -func (c *FakeVirtualClusterTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VirtualClusterTemplateList, err error) { - emptyResult := &v1.VirtualClusterTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(virtualclustertemplatesResource, virtualclustertemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.VirtualClusterTemplateList{ListMeta: obj.(*v1.VirtualClusterTemplateList).ListMeta} - for _, item := range obj.(*v1.VirtualClusterTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested virtualClusterTemplates. -func (c *FakeVirtualClusterTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(virtualclustertemplatesResource, opts)) -} - -// Create takes the representation of a virtualClusterTemplate and creates it. Returns the server's representation of the virtualClusterTemplate, and an error, if there is any. -func (c *FakeVirtualClusterTemplates) Create(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.CreateOptions) (result *v1.VirtualClusterTemplate, err error) { - emptyResult := &v1.VirtualClusterTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(virtualclustertemplatesResource, virtualClusterTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterTemplate), err -} - -// Update takes the representation of a virtualClusterTemplate and updates it. Returns the server's representation of the virtualClusterTemplate, and an error, if there is any. -func (c *FakeVirtualClusterTemplates) Update(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.UpdateOptions) (result *v1.VirtualClusterTemplate, err error) { - emptyResult := &v1.VirtualClusterTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(virtualclustertemplatesResource, virtualClusterTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeVirtualClusterTemplates) UpdateStatus(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.UpdateOptions) (result *v1.VirtualClusterTemplate, err error) { - emptyResult := &v1.VirtualClusterTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(virtualclustertemplatesResource, "status", virtualClusterTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterTemplate), err -} - -// Delete takes name of the virtualClusterTemplate and deletes it. Returns an error if one occurs. -func (c *FakeVirtualClusterTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(virtualclustertemplatesResource, name, opts), &v1.VirtualClusterTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeVirtualClusterTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(virtualclustertemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.VirtualClusterTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched virtualClusterTemplate. -func (c *FakeVirtualClusterTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VirtualClusterTemplate, err error) { - emptyResult := &v1.VirtualClusterTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(virtualclustertemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeVirtualClusterTemplates(fake *FakeManagementV1) managementv1.VirtualClusterTemplateInterface { + return &fakeVirtualClusterTemplates{ + gentype.NewFakeClientWithList[*v1.VirtualClusterTemplate, *v1.VirtualClusterTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("virtualclustertemplates"), + v1.SchemeGroupVersion.WithKind("VirtualClusterTemplate"), + func() *v1.VirtualClusterTemplate { return &v1.VirtualClusterTemplate{} }, + func() *v1.VirtualClusterTemplateList { return &v1.VirtualClusterTemplateList{} }, + func(dst, src *v1.VirtualClusterTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.VirtualClusterTemplateList) []*v1.VirtualClusterTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.VirtualClusterTemplateList, items []*v1.VirtualClusterTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.VirtualClusterTemplate), err } diff --git a/pkg/clientset/versioned/typed/management/v1/feature.go b/pkg/clientset/versioned/typed/management/v1/feature.go index feaf4a8d..01edbc03 100644 --- a/pkg/clientset/versioned/typed/management/v1/feature.go +++ b/pkg/clientset/versioned/typed/management/v1/feature.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type FeaturesGetter interface { // FeatureInterface has methods to work with Feature resources. type FeatureInterface interface { - Create(ctx context.Context, feature *v1.Feature, opts metav1.CreateOptions) (*v1.Feature, error) - Update(ctx context.Context, feature *v1.Feature, opts metav1.UpdateOptions) (*v1.Feature, error) + Create(ctx context.Context, feature *managementv1.Feature, opts metav1.CreateOptions) (*managementv1.Feature, error) + Update(ctx context.Context, feature *managementv1.Feature, opts metav1.UpdateOptions) (*managementv1.Feature, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, feature *v1.Feature, opts metav1.UpdateOptions) (*v1.Feature, error) + UpdateStatus(ctx context.Context, feature *managementv1.Feature, opts metav1.UpdateOptions) (*managementv1.Feature, 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) (*v1.Feature, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.FeatureList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Feature, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.FeatureList, 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 *v1.Feature, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Feature, err error) FeatureExpansion } // features implements FeatureInterface type features struct { - *gentype.ClientWithList[*v1.Feature, *v1.FeatureList] + *gentype.ClientWithList[*managementv1.Feature, *managementv1.FeatureList] } // newFeatures returns a Features func newFeatures(c *ManagementV1Client) *features { return &features{ - gentype.NewClientWithList[*v1.Feature, *v1.FeatureList]( + gentype.NewClientWithList[*managementv1.Feature, *managementv1.FeatureList]( "features", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Feature { return &v1.Feature{} }, - func() *v1.FeatureList { return &v1.FeatureList{} }), + func() *managementv1.Feature { return &managementv1.Feature{} }, + func() *managementv1.FeatureList { return &managementv1.FeatureList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go index f8255641..2d309e34 100644 --- a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go @@ -20,10 +20,14 @@ type ConfigExpansion interface{} type ConvertVirtualClusterConfigExpansion interface{} +type DatabaseConnectorExpansion interface{} + type DevPodEnvironmentTemplateExpansion interface{} type DevPodWorkspaceInstanceExpansion interface{} +type DevPodWorkspacePresetExpansion interface{} + type DevPodWorkspaceTemplateExpansion interface{} type DirectClusterEndpointTokenExpansion interface{} @@ -40,6 +44,12 @@ type LicenseTokenExpansion interface{} type LoftUpgradeExpansion interface{} +type NodeClaimExpansion interface{} + +type NodeProviderExpansion interface{} + +type NodeTypeExpansion interface{} + type OIDCClientExpansion interface{} type OwnedAccessKeyExpansion interface{} @@ -54,8 +64,6 @@ type RegisterVirtualClusterExpansion interface{} type ResetAccessKeyExpansion interface{} -type RunnerExpansion interface{} - type SelfExpansion interface{} type SelfSubjectAccessReviewExpansion interface{} @@ -78,4 +86,6 @@ type UserExpansion interface{} type VirtualClusterInstanceExpansion interface{} +type VirtualClusterSchemaExpansion interface{} + type VirtualClusterTemplateExpansion interface{} diff --git a/pkg/clientset/versioned/typed/management/v1/ingressauthtoken.go b/pkg/clientset/versioned/typed/management/v1/ingressauthtoken.go index 44ed84ab..903fe8d3 100644 --- a/pkg/clientset/versioned/typed/management/v1/ingressauthtoken.go +++ b/pkg/clientset/versioned/typed/management/v1/ingressauthtoken.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type IngressAuthTokensGetter interface { // IngressAuthTokenInterface has methods to work with IngressAuthToken resources. type IngressAuthTokenInterface interface { - Create(ctx context.Context, ingressAuthToken *v1.IngressAuthToken, opts metav1.CreateOptions) (*v1.IngressAuthToken, error) - Update(ctx context.Context, ingressAuthToken *v1.IngressAuthToken, opts metav1.UpdateOptions) (*v1.IngressAuthToken, error) + Create(ctx context.Context, ingressAuthToken *managementv1.IngressAuthToken, opts metav1.CreateOptions) (*managementv1.IngressAuthToken, error) + Update(ctx context.Context, ingressAuthToken *managementv1.IngressAuthToken, opts metav1.UpdateOptions) (*managementv1.IngressAuthToken, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, ingressAuthToken *v1.IngressAuthToken, opts metav1.UpdateOptions) (*v1.IngressAuthToken, error) + UpdateStatus(ctx context.Context, ingressAuthToken *managementv1.IngressAuthToken, opts metav1.UpdateOptions) (*managementv1.IngressAuthToken, 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) (*v1.IngressAuthToken, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.IngressAuthTokenList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.IngressAuthToken, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.IngressAuthTokenList, 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 *v1.IngressAuthToken, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.IngressAuthToken, err error) IngressAuthTokenExpansion } // ingressAuthTokens implements IngressAuthTokenInterface type ingressAuthTokens struct { - *gentype.ClientWithList[*v1.IngressAuthToken, *v1.IngressAuthTokenList] + *gentype.ClientWithList[*managementv1.IngressAuthToken, *managementv1.IngressAuthTokenList] } // newIngressAuthTokens returns a IngressAuthTokens func newIngressAuthTokens(c *ManagementV1Client) *ingressAuthTokens { return &ingressAuthTokens{ - gentype.NewClientWithList[*v1.IngressAuthToken, *v1.IngressAuthTokenList]( + gentype.NewClientWithList[*managementv1.IngressAuthToken, *managementv1.IngressAuthTokenList]( "ingressauthtokens", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.IngressAuthToken { return &v1.IngressAuthToken{} }, - func() *v1.IngressAuthTokenList { return &v1.IngressAuthTokenList{} }), + func() *managementv1.IngressAuthToken { return &managementv1.IngressAuthToken{} }, + func() *managementv1.IngressAuthTokenList { return &managementv1.IngressAuthTokenList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/license.go b/pkg/clientset/versioned/typed/management/v1/license.go index b4268ed4..075ed8b7 100644 --- a/pkg/clientset/versioned/typed/management/v1/license.go +++ b/pkg/clientset/versioned/typed/management/v1/license.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,42 +21,43 @@ type LicensesGetter interface { // LicenseInterface has methods to work with License resources. type LicenseInterface interface { - Create(ctx context.Context, license *v1.License, opts metav1.CreateOptions) (*v1.License, error) - Update(ctx context.Context, license *v1.License, opts metav1.UpdateOptions) (*v1.License, error) + Create(ctx context.Context, license *managementv1.License, opts metav1.CreateOptions) (*managementv1.License, error) + Update(ctx context.Context, license *managementv1.License, opts metav1.UpdateOptions) (*managementv1.License, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, license *v1.License, opts metav1.UpdateOptions) (*v1.License, error) + UpdateStatus(ctx context.Context, license *managementv1.License, opts metav1.UpdateOptions) (*managementv1.License, 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) (*v1.License, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.LicenseList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.License, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.LicenseList, 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 *v1.License, err error) - LicenseRequest(ctx context.Context, licenseName string, licenseRequest *v1.LicenseRequest, opts metav1.CreateOptions) (*v1.LicenseRequest, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.License, err error) + LicenseRequest(ctx context.Context, licenseName string, licenseRequest *managementv1.LicenseRequest, opts metav1.CreateOptions) (*managementv1.LicenseRequest, error) LicenseExpansion } // licenses implements LicenseInterface type licenses struct { - *gentype.ClientWithList[*v1.License, *v1.LicenseList] + *gentype.ClientWithList[*managementv1.License, *managementv1.LicenseList] } // newLicenses returns a Licenses func newLicenses(c *ManagementV1Client) *licenses { return &licenses{ - gentype.NewClientWithList[*v1.License, *v1.LicenseList]( + gentype.NewClientWithList[*managementv1.License, *managementv1.LicenseList]( "licenses", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.License { return &v1.License{} }, - func() *v1.LicenseList { return &v1.LicenseList{} }), + func() *managementv1.License { return &managementv1.License{} }, + func() *managementv1.LicenseList { return &managementv1.LicenseList{} }, + ), } } // LicenseRequest takes the representation of a licenseRequest and creates it. Returns the server's representation of the licenseRequest, and an error, if there is any. -func (c *licenses) LicenseRequest(ctx context.Context, licenseName string, licenseRequest *v1.LicenseRequest, opts metav1.CreateOptions) (result *v1.LicenseRequest, err error) { - result = &v1.LicenseRequest{} +func (c *licenses) LicenseRequest(ctx context.Context, licenseName string, licenseRequest *managementv1.LicenseRequest, opts metav1.CreateOptions) (result *managementv1.LicenseRequest, err error) { + result = &managementv1.LicenseRequest{} err = c.GetClient().Post(). Resource("licenses"). Name(licenseName). diff --git a/pkg/clientset/versioned/typed/management/v1/licensetoken.go b/pkg/clientset/versioned/typed/management/v1/licensetoken.go index 1c5a5723..8fe31fcd 100644 --- a/pkg/clientset/versioned/typed/management/v1/licensetoken.go +++ b/pkg/clientset/versioned/typed/management/v1/licensetoken.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type LicenseTokensGetter interface { // LicenseTokenInterface has methods to work with LicenseToken resources. type LicenseTokenInterface interface { - Create(ctx context.Context, licenseToken *v1.LicenseToken, opts metav1.CreateOptions) (*v1.LicenseToken, error) - Update(ctx context.Context, licenseToken *v1.LicenseToken, opts metav1.UpdateOptions) (*v1.LicenseToken, error) + Create(ctx context.Context, licenseToken *managementv1.LicenseToken, opts metav1.CreateOptions) (*managementv1.LicenseToken, error) + Update(ctx context.Context, licenseToken *managementv1.LicenseToken, opts metav1.UpdateOptions) (*managementv1.LicenseToken, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, licenseToken *v1.LicenseToken, opts metav1.UpdateOptions) (*v1.LicenseToken, error) + UpdateStatus(ctx context.Context, licenseToken *managementv1.LicenseToken, opts metav1.UpdateOptions) (*managementv1.LicenseToken, 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) (*v1.LicenseToken, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.LicenseTokenList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.LicenseToken, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.LicenseTokenList, 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 *v1.LicenseToken, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.LicenseToken, err error) LicenseTokenExpansion } // licenseTokens implements LicenseTokenInterface type licenseTokens struct { - *gentype.ClientWithList[*v1.LicenseToken, *v1.LicenseTokenList] + *gentype.ClientWithList[*managementv1.LicenseToken, *managementv1.LicenseTokenList] } // newLicenseTokens returns a LicenseTokens func newLicenseTokens(c *ManagementV1Client) *licenseTokens { return &licenseTokens{ - gentype.NewClientWithList[*v1.LicenseToken, *v1.LicenseTokenList]( + gentype.NewClientWithList[*managementv1.LicenseToken, *managementv1.LicenseTokenList]( "licensetokens", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.LicenseToken { return &v1.LicenseToken{} }, - func() *v1.LicenseTokenList { return &v1.LicenseTokenList{} }), + func() *managementv1.LicenseToken { return &managementv1.LicenseToken{} }, + func() *managementv1.LicenseTokenList { return &managementv1.LicenseTokenList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/loftupgrade.go b/pkg/clientset/versioned/typed/management/v1/loftupgrade.go index 3f54314a..267117b2 100644 --- a/pkg/clientset/versioned/typed/management/v1/loftupgrade.go +++ b/pkg/clientset/versioned/typed/management/v1/loftupgrade.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type LoftUpgradesGetter interface { // LoftUpgradeInterface has methods to work with LoftUpgrade resources. type LoftUpgradeInterface interface { - Create(ctx context.Context, loftUpgrade *v1.LoftUpgrade, opts metav1.CreateOptions) (*v1.LoftUpgrade, error) - Update(ctx context.Context, loftUpgrade *v1.LoftUpgrade, opts metav1.UpdateOptions) (*v1.LoftUpgrade, error) + Create(ctx context.Context, loftUpgrade *managementv1.LoftUpgrade, opts metav1.CreateOptions) (*managementv1.LoftUpgrade, error) + Update(ctx context.Context, loftUpgrade *managementv1.LoftUpgrade, opts metav1.UpdateOptions) (*managementv1.LoftUpgrade, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, loftUpgrade *v1.LoftUpgrade, opts metav1.UpdateOptions) (*v1.LoftUpgrade, error) + UpdateStatus(ctx context.Context, loftUpgrade *managementv1.LoftUpgrade, opts metav1.UpdateOptions) (*managementv1.LoftUpgrade, 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) (*v1.LoftUpgrade, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.LoftUpgradeList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.LoftUpgrade, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.LoftUpgradeList, 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 *v1.LoftUpgrade, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.LoftUpgrade, err error) LoftUpgradeExpansion } // loftUpgrades implements LoftUpgradeInterface type loftUpgrades struct { - *gentype.ClientWithList[*v1.LoftUpgrade, *v1.LoftUpgradeList] + *gentype.ClientWithList[*managementv1.LoftUpgrade, *managementv1.LoftUpgradeList] } // newLoftUpgrades returns a LoftUpgrades func newLoftUpgrades(c *ManagementV1Client) *loftUpgrades { return &loftUpgrades{ - gentype.NewClientWithList[*v1.LoftUpgrade, *v1.LoftUpgradeList]( + gentype.NewClientWithList[*managementv1.LoftUpgrade, *managementv1.LoftUpgradeList]( "loftupgrades", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.LoftUpgrade { return &v1.LoftUpgrade{} }, - func() *v1.LoftUpgradeList { return &v1.LoftUpgradeList{} }), + func() *managementv1.LoftUpgrade { return &managementv1.LoftUpgrade{} }, + func() *managementv1.LoftUpgradeList { return &managementv1.LoftUpgradeList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/management_client.go b/pkg/clientset/versioned/typed/management/v1/management_client.go index be891c7a..8e89aa01 100644 --- a/pkg/clientset/versioned/typed/management/v1/management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/management_client.go @@ -3,10 +3,10 @@ package v1 import ( - "net/http" + http "net/http" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) @@ -21,8 +21,10 @@ type ManagementV1Interface interface { ClusterRoleTemplatesGetter ConfigsGetter ConvertVirtualClusterConfigsGetter + DatabaseConnectorsGetter DevPodEnvironmentTemplatesGetter DevPodWorkspaceInstancesGetter + DevPodWorkspacePresetsGetter DevPodWorkspaceTemplatesGetter DirectClusterEndpointTokensGetter EventsGetter @@ -31,6 +33,9 @@ type ManagementV1Interface interface { LicensesGetter LicenseTokensGetter LoftUpgradesGetter + NodeClaimsGetter + NodeProvidersGetter + NodeTypesGetter OIDCClientsGetter OwnedAccessKeysGetter ProjectsGetter @@ -38,7 +43,6 @@ type ManagementV1Interface interface { RedirectTokensGetter RegisterVirtualClustersGetter ResetAccessKeysGetter - RunnersGetter SelvesGetter SelfSubjectAccessReviewsGetter SharedSecretsGetter @@ -50,6 +54,7 @@ type ManagementV1Interface interface { TranslateVClusterResourceNamesGetter UsersGetter VirtualClusterInstancesGetter + VirtualClusterSchemasGetter VirtualClusterTemplatesGetter } @@ -94,6 +99,10 @@ func (c *ManagementV1Client) ConvertVirtualClusterConfigs() ConvertVirtualCluste return newConvertVirtualClusterConfigs(c) } +func (c *ManagementV1Client) DatabaseConnectors() DatabaseConnectorInterface { + return newDatabaseConnectors(c) +} + func (c *ManagementV1Client) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInterface { return newDevPodEnvironmentTemplates(c) } @@ -102,6 +111,10 @@ func (c *ManagementV1Client) DevPodWorkspaceInstances(namespace string) DevPodWo return newDevPodWorkspaceInstances(c, namespace) } +func (c *ManagementV1Client) DevPodWorkspacePresets() DevPodWorkspacePresetInterface { + return newDevPodWorkspacePresets(c) +} + func (c *ManagementV1Client) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface { return newDevPodWorkspaceTemplates(c) } @@ -134,6 +147,18 @@ func (c *ManagementV1Client) LoftUpgrades() LoftUpgradeInterface { return newLoftUpgrades(c) } +func (c *ManagementV1Client) NodeClaims(namespace string) NodeClaimInterface { + return newNodeClaims(c, namespace) +} + +func (c *ManagementV1Client) NodeProviders() NodeProviderInterface { + return newNodeProviders(c) +} + +func (c *ManagementV1Client) NodeTypes() NodeTypeInterface { + return newNodeTypes(c) +} + func (c *ManagementV1Client) OIDCClients() OIDCClientInterface { return newOIDCClients(c) } @@ -162,10 +187,6 @@ func (c *ManagementV1Client) ResetAccessKeys() ResetAccessKeyInterface { return newResetAccessKeys(c) } -func (c *ManagementV1Client) Runners() RunnerInterface { - return newRunners(c) -} - func (c *ManagementV1Client) Selves() SelfInterface { return newSelves(c) } @@ -210,6 +231,10 @@ func (c *ManagementV1Client) VirtualClusterInstances(namespace string) VirtualCl return newVirtualClusterInstances(c, namespace) } +func (c *ManagementV1Client) VirtualClusterSchemas() VirtualClusterSchemaInterface { + return newVirtualClusterSchemas(c) +} + func (c *ManagementV1Client) VirtualClusterTemplates() VirtualClusterTemplateInterface { return newVirtualClusterTemplates(c) } @@ -219,9 +244,7 @@ func (c *ManagementV1Client) VirtualClusterTemplates() VirtualClusterTemplateInt // where httpClient was generated with rest.HTTPClientFor(c). func NewForConfig(c *rest.Config) (*ManagementV1Client, error) { config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } + setConfigDefaults(&config) httpClient, err := rest.HTTPClientFor(&config) if err != nil { return nil, err @@ -233,9 +256,7 @@ func NewForConfig(c *rest.Config) (*ManagementV1Client, error) { // Note the http client provided takes precedence over the configured transport values. func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ManagementV1Client, error) { config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } + setConfigDefaults(&config) client, err := rest.RESTClientForConfigAndClient(&config, h) if err != nil { return nil, err @@ -258,17 +279,15 @@ func New(c rest.Interface) *ManagementV1Client { return &ManagementV1Client{c} } -func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion +func setConfigDefaults(config *rest.Config) { + gv := managementv1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion() if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent() } - - return nil } // RESTClient returns a RESTClient that is used to communicate diff --git a/pkg/clientset/versioned/typed/management/v1/nodeclaim.go b/pkg/clientset/versioned/typed/management/v1/nodeclaim.go new file mode 100644 index 00000000..4810e862 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/nodeclaim.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + scheme "github.com/loft-sh/api/v4/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" +) + +// NodeClaimsGetter has a method to return a NodeClaimInterface. +// A group's client should implement this interface. +type NodeClaimsGetter interface { + NodeClaims(namespace string) NodeClaimInterface +} + +// NodeClaimInterface has methods to work with NodeClaim resources. +type NodeClaimInterface interface { + Create(ctx context.Context, nodeClaim *managementv1.NodeClaim, opts metav1.CreateOptions) (*managementv1.NodeClaim, error) + Update(ctx context.Context, nodeClaim *managementv1.NodeClaim, opts metav1.UpdateOptions) (*managementv1.NodeClaim, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeClaim *managementv1.NodeClaim, opts metav1.UpdateOptions) (*managementv1.NodeClaim, 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.NodeClaim, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.NodeClaimList, 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.NodeClaim, err error) + NodeClaimExpansion +} + +// nodeClaims implements NodeClaimInterface +type nodeClaims struct { + *gentype.ClientWithList[*managementv1.NodeClaim, *managementv1.NodeClaimList] +} + +// newNodeClaims returns a NodeClaims +func newNodeClaims(c *ManagementV1Client, namespace string) *nodeClaims { + return &nodeClaims{ + gentype.NewClientWithList[*managementv1.NodeClaim, *managementv1.NodeClaimList]( + "nodeclaims", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *managementv1.NodeClaim { return &managementv1.NodeClaim{} }, + func() *managementv1.NodeClaimList { return &managementv1.NodeClaimList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/nodeprovider.go b/pkg/clientset/versioned/typed/management/v1/nodeprovider.go new file mode 100644 index 00000000..0805fa32 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/nodeprovider.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + scheme "github.com/loft-sh/api/v4/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" +) + +// NodeProvidersGetter has a method to return a NodeProviderInterface. +// A group's client should implement this interface. +type NodeProvidersGetter interface { + NodeProviders() NodeProviderInterface +} + +// NodeProviderInterface has methods to work with NodeProvider resources. +type NodeProviderInterface interface { + Create(ctx context.Context, nodeProvider *managementv1.NodeProvider, opts metav1.CreateOptions) (*managementv1.NodeProvider, error) + Update(ctx context.Context, nodeProvider *managementv1.NodeProvider, opts metav1.UpdateOptions) (*managementv1.NodeProvider, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeProvider *managementv1.NodeProvider, opts metav1.UpdateOptions) (*managementv1.NodeProvider, 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.NodeProvider, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.NodeProviderList, 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.NodeProvider, err error) + NodeProviderExpansion +} + +// nodeProviders implements NodeProviderInterface +type nodeProviders struct { + *gentype.ClientWithList[*managementv1.NodeProvider, *managementv1.NodeProviderList] +} + +// newNodeProviders returns a NodeProviders +func newNodeProviders(c *ManagementV1Client) *nodeProviders { + return &nodeProviders{ + gentype.NewClientWithList[*managementv1.NodeProvider, *managementv1.NodeProviderList]( + "nodeproviders", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *managementv1.NodeProvider { return &managementv1.NodeProvider{} }, + func() *managementv1.NodeProviderList { return &managementv1.NodeProviderList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/nodetype.go b/pkg/clientset/versioned/typed/management/v1/nodetype.go new file mode 100644 index 00000000..927ce499 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/nodetype.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + scheme "github.com/loft-sh/api/v4/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" +) + +// NodeTypesGetter has a method to return a NodeTypeInterface. +// A group's client should implement this interface. +type NodeTypesGetter interface { + NodeTypes() NodeTypeInterface +} + +// NodeTypeInterface has methods to work with NodeType resources. +type NodeTypeInterface interface { + Create(ctx context.Context, nodeType *managementv1.NodeType, opts metav1.CreateOptions) (*managementv1.NodeType, error) + Update(ctx context.Context, nodeType *managementv1.NodeType, opts metav1.UpdateOptions) (*managementv1.NodeType, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeType *managementv1.NodeType, opts metav1.UpdateOptions) (*managementv1.NodeType, 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.NodeType, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.NodeTypeList, 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.NodeType, err error) + NodeTypeExpansion +} + +// nodeTypes implements NodeTypeInterface +type nodeTypes struct { + *gentype.ClientWithList[*managementv1.NodeType, *managementv1.NodeTypeList] +} + +// newNodeTypes returns a NodeTypes +func newNodeTypes(c *ManagementV1Client) *nodeTypes { + return &nodeTypes{ + gentype.NewClientWithList[*managementv1.NodeType, *managementv1.NodeTypeList]( + "nodetypes", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *managementv1.NodeType { return &managementv1.NodeType{} }, + func() *managementv1.NodeTypeList { return &managementv1.NodeTypeList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/oidcclient.go b/pkg/clientset/versioned/typed/management/v1/oidcclient.go index 5cf91511..3da8240c 100644 --- a/pkg/clientset/versioned/typed/management/v1/oidcclient.go +++ b/pkg/clientset/versioned/typed/management/v1/oidcclient.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type OIDCClientsGetter interface { // OIDCClientInterface has methods to work with OIDCClient resources. type OIDCClientInterface interface { - Create(ctx context.Context, oIDCClient *v1.OIDCClient, opts metav1.CreateOptions) (*v1.OIDCClient, error) - Update(ctx context.Context, oIDCClient *v1.OIDCClient, opts metav1.UpdateOptions) (*v1.OIDCClient, error) + Create(ctx context.Context, oIDCClient *managementv1.OIDCClient, opts metav1.CreateOptions) (*managementv1.OIDCClient, error) + Update(ctx context.Context, oIDCClient *managementv1.OIDCClient, opts metav1.UpdateOptions) (*managementv1.OIDCClient, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, oIDCClient *v1.OIDCClient, opts metav1.UpdateOptions) (*v1.OIDCClient, error) + UpdateStatus(ctx context.Context, oIDCClient *managementv1.OIDCClient, opts metav1.UpdateOptions) (*managementv1.OIDCClient, 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) (*v1.OIDCClient, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.OIDCClientList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.OIDCClient, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.OIDCClientList, 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 *v1.OIDCClient, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.OIDCClient, err error) OIDCClientExpansion } // oIDCClients implements OIDCClientInterface type oIDCClients struct { - *gentype.ClientWithList[*v1.OIDCClient, *v1.OIDCClientList] + *gentype.ClientWithList[*managementv1.OIDCClient, *managementv1.OIDCClientList] } // newOIDCClients returns a OIDCClients func newOIDCClients(c *ManagementV1Client) *oIDCClients { return &oIDCClients{ - gentype.NewClientWithList[*v1.OIDCClient, *v1.OIDCClientList]( + gentype.NewClientWithList[*managementv1.OIDCClient, *managementv1.OIDCClientList]( "oidcclients", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.OIDCClient { return &v1.OIDCClient{} }, - func() *v1.OIDCClientList { return &v1.OIDCClientList{} }), + func() *managementv1.OIDCClient { return &managementv1.OIDCClient{} }, + func() *managementv1.OIDCClientList { return &managementv1.OIDCClientList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/ownedaccesskey.go b/pkg/clientset/versioned/typed/management/v1/ownedaccesskey.go index 9544c3c5..bec285dd 100644 --- a/pkg/clientset/versioned/typed/management/v1/ownedaccesskey.go +++ b/pkg/clientset/versioned/typed/management/v1/ownedaccesskey.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type OwnedAccessKeysGetter interface { // OwnedAccessKeyInterface has methods to work with OwnedAccessKey resources. type OwnedAccessKeyInterface interface { - Create(ctx context.Context, ownedAccessKey *v1.OwnedAccessKey, opts metav1.CreateOptions) (*v1.OwnedAccessKey, error) - Update(ctx context.Context, ownedAccessKey *v1.OwnedAccessKey, opts metav1.UpdateOptions) (*v1.OwnedAccessKey, error) + Create(ctx context.Context, ownedAccessKey *managementv1.OwnedAccessKey, opts metav1.CreateOptions) (*managementv1.OwnedAccessKey, error) + Update(ctx context.Context, ownedAccessKey *managementv1.OwnedAccessKey, opts metav1.UpdateOptions) (*managementv1.OwnedAccessKey, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, ownedAccessKey *v1.OwnedAccessKey, opts metav1.UpdateOptions) (*v1.OwnedAccessKey, error) + UpdateStatus(ctx context.Context, ownedAccessKey *managementv1.OwnedAccessKey, opts metav1.UpdateOptions) (*managementv1.OwnedAccessKey, 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) (*v1.OwnedAccessKey, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.OwnedAccessKeyList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.OwnedAccessKey, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.OwnedAccessKeyList, 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 *v1.OwnedAccessKey, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.OwnedAccessKey, err error) OwnedAccessKeyExpansion } // ownedAccessKeys implements OwnedAccessKeyInterface type ownedAccessKeys struct { - *gentype.ClientWithList[*v1.OwnedAccessKey, *v1.OwnedAccessKeyList] + *gentype.ClientWithList[*managementv1.OwnedAccessKey, *managementv1.OwnedAccessKeyList] } // newOwnedAccessKeys returns a OwnedAccessKeys func newOwnedAccessKeys(c *ManagementV1Client) *ownedAccessKeys { return &ownedAccessKeys{ - gentype.NewClientWithList[*v1.OwnedAccessKey, *v1.OwnedAccessKeyList]( + gentype.NewClientWithList[*managementv1.OwnedAccessKey, *managementv1.OwnedAccessKeyList]( "ownedaccesskeys", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.OwnedAccessKey { return &v1.OwnedAccessKey{} }, - func() *v1.OwnedAccessKeyList { return &v1.OwnedAccessKeyList{} }), + func() *managementv1.OwnedAccessKey { return &managementv1.OwnedAccessKey{} }, + func() *managementv1.OwnedAccessKeyList { return &managementv1.OwnedAccessKeyList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/project.go b/pkg/clientset/versioned/typed/management/v1/project.go index 1c0e65ea..95a80660 100644 --- a/pkg/clientset/versioned/typed/management/v1/project.go +++ b/pkg/clientset/versioned/typed/management/v1/project.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,48 +21,48 @@ type ProjectsGetter interface { // ProjectInterface has methods to work with Project resources. type ProjectInterface interface { - Create(ctx context.Context, project *v1.Project, opts metav1.CreateOptions) (*v1.Project, error) - Update(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (*v1.Project, error) + Create(ctx context.Context, project *managementv1.Project, opts metav1.CreateOptions) (*managementv1.Project, error) + Update(ctx context.Context, project *managementv1.Project, opts metav1.UpdateOptions) (*managementv1.Project, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (*v1.Project, error) + UpdateStatus(ctx context.Context, project *managementv1.Project, opts metav1.UpdateOptions) (*managementv1.Project, 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) (*v1.Project, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ProjectList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Project, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.ProjectList, 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 *v1.Project, err error) - ListMembers(ctx context.Context, projectName string, options metav1.GetOptions) (*v1.ProjectMembers, error) - ListTemplates(ctx context.Context, projectName string, options metav1.GetOptions) (*v1.ProjectTemplates, error) - ListRunners(ctx context.Context, projectName string, options metav1.GetOptions) (*v1.ProjectRunners, error) - ListClusters(ctx context.Context, projectName string, options metav1.GetOptions) (*v1.ProjectClusters, error) - MigrateVirtualClusterInstance(ctx context.Context, projectName string, projectMigrateVirtualClusterInstance *v1.ProjectMigrateVirtualClusterInstance, opts metav1.CreateOptions) (*v1.ProjectMigrateVirtualClusterInstance, error) - ImportSpace(ctx context.Context, projectName string, projectImportSpace *v1.ProjectImportSpace, opts metav1.CreateOptions) (*v1.ProjectImportSpace, error) - MigrateSpaceInstance(ctx context.Context, projectName string, projectMigrateSpaceInstance *v1.ProjectMigrateSpaceInstance, opts metav1.CreateOptions) (*v1.ProjectMigrateSpaceInstance, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Project, err error) + ListMembers(ctx context.Context, projectName string, options metav1.GetOptions) (*managementv1.ProjectMembers, error) + ListTemplates(ctx context.Context, projectName string, options metav1.GetOptions) (*managementv1.ProjectTemplates, error) + ListClusters(ctx context.Context, projectName string, options metav1.GetOptions) (*managementv1.ProjectClusters, error) + MigrateVirtualClusterInstance(ctx context.Context, projectName string, projectMigrateVirtualClusterInstance *managementv1.ProjectMigrateVirtualClusterInstance, opts metav1.CreateOptions) (*managementv1.ProjectMigrateVirtualClusterInstance, error) + ImportSpace(ctx context.Context, projectName string, projectImportSpace *managementv1.ProjectImportSpace, opts metav1.CreateOptions) (*managementv1.ProjectImportSpace, error) + MigrateSpaceInstance(ctx context.Context, projectName string, projectMigrateSpaceInstance *managementv1.ProjectMigrateSpaceInstance, opts metav1.CreateOptions) (*managementv1.ProjectMigrateSpaceInstance, error) ProjectExpansion } // projects implements ProjectInterface type projects struct { - *gentype.ClientWithList[*v1.Project, *v1.ProjectList] + *gentype.ClientWithList[*managementv1.Project, *managementv1.ProjectList] } // newProjects returns a Projects func newProjects(c *ManagementV1Client) *projects { return &projects{ - gentype.NewClientWithList[*v1.Project, *v1.ProjectList]( + gentype.NewClientWithList[*managementv1.Project, *managementv1.ProjectList]( "projects", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Project { return &v1.Project{} }, - func() *v1.ProjectList { return &v1.ProjectList{} }), + func() *managementv1.Project { return &managementv1.Project{} }, + func() *managementv1.ProjectList { return &managementv1.ProjectList{} }, + ), } } -// ListMembers takes name of the project, and returns the corresponding v1.ProjectMembers object, and an error if there is any. -func (c *projects) ListMembers(ctx context.Context, projectName string, options metav1.GetOptions) (result *v1.ProjectMembers, err error) { - result = &v1.ProjectMembers{} +// ListMembers takes name of the project, and returns the corresponding managementv1.ProjectMembers object, and an error if there is any. +func (c *projects) ListMembers(ctx context.Context, projectName string, options metav1.GetOptions) (result *managementv1.ProjectMembers, err error) { + result = &managementv1.ProjectMembers{} err = c.GetClient().Get(). Resource("projects"). Name(projectName). @@ -73,9 +73,9 @@ func (c *projects) ListMembers(ctx context.Context, projectName string, options return } -// ListTemplates takes name of the project, and returns the corresponding v1.ProjectTemplates object, and an error if there is any. -func (c *projects) ListTemplates(ctx context.Context, projectName string, options metav1.GetOptions) (result *v1.ProjectTemplates, err error) { - result = &v1.ProjectTemplates{} +// ListTemplates takes name of the project, and returns the corresponding managementv1.ProjectTemplates object, and an error if there is any. +func (c *projects) ListTemplates(ctx context.Context, projectName string, options metav1.GetOptions) (result *managementv1.ProjectTemplates, err error) { + result = &managementv1.ProjectTemplates{} err = c.GetClient().Get(). Resource("projects"). Name(projectName). @@ -86,22 +86,9 @@ func (c *projects) ListTemplates(ctx context.Context, projectName string, option return } -// ListRunners takes name of the project, and returns the corresponding v1.ProjectRunners object, and an error if there is any. -func (c *projects) ListRunners(ctx context.Context, projectName string, options metav1.GetOptions) (result *v1.ProjectRunners, err error) { - result = &v1.ProjectRunners{} - err = c.GetClient().Get(). - Resource("projects"). - Name(projectName). - SubResource("runners"). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// ListClusters takes name of the project, and returns the corresponding v1.ProjectClusters object, and an error if there is any. -func (c *projects) ListClusters(ctx context.Context, projectName string, options metav1.GetOptions) (result *v1.ProjectClusters, err error) { - result = &v1.ProjectClusters{} +// ListClusters takes name of the project, and returns the corresponding managementv1.ProjectClusters object, and an error if there is any. +func (c *projects) ListClusters(ctx context.Context, projectName string, options metav1.GetOptions) (result *managementv1.ProjectClusters, err error) { + result = &managementv1.ProjectClusters{} err = c.GetClient().Get(). Resource("projects"). Name(projectName). @@ -113,8 +100,8 @@ func (c *projects) ListClusters(ctx context.Context, projectName string, options } // MigrateVirtualClusterInstance takes the representation of a projectMigrateVirtualClusterInstance and creates it. Returns the server's representation of the projectMigrateVirtualClusterInstance, and an error, if there is any. -func (c *projects) MigrateVirtualClusterInstance(ctx context.Context, projectName string, projectMigrateVirtualClusterInstance *v1.ProjectMigrateVirtualClusterInstance, opts metav1.CreateOptions) (result *v1.ProjectMigrateVirtualClusterInstance, err error) { - result = &v1.ProjectMigrateVirtualClusterInstance{} +func (c *projects) MigrateVirtualClusterInstance(ctx context.Context, projectName string, projectMigrateVirtualClusterInstance *managementv1.ProjectMigrateVirtualClusterInstance, opts metav1.CreateOptions) (result *managementv1.ProjectMigrateVirtualClusterInstance, err error) { + result = &managementv1.ProjectMigrateVirtualClusterInstance{} err = c.GetClient().Post(). Resource("projects"). Name(projectName). @@ -127,8 +114,8 @@ func (c *projects) MigrateVirtualClusterInstance(ctx context.Context, projectNam } // ImportSpace takes the representation of a projectImportSpace and creates it. Returns the server's representation of the projectImportSpace, and an error, if there is any. -func (c *projects) ImportSpace(ctx context.Context, projectName string, projectImportSpace *v1.ProjectImportSpace, opts metav1.CreateOptions) (result *v1.ProjectImportSpace, err error) { - result = &v1.ProjectImportSpace{} +func (c *projects) ImportSpace(ctx context.Context, projectName string, projectImportSpace *managementv1.ProjectImportSpace, opts metav1.CreateOptions) (result *managementv1.ProjectImportSpace, err error) { + result = &managementv1.ProjectImportSpace{} err = c.GetClient().Post(). Resource("projects"). Name(projectName). @@ -141,8 +128,8 @@ func (c *projects) ImportSpace(ctx context.Context, projectName string, projectI } // MigrateSpaceInstance takes the representation of a projectMigrateSpaceInstance and creates it. Returns the server's representation of the projectMigrateSpaceInstance, and an error, if there is any. -func (c *projects) MigrateSpaceInstance(ctx context.Context, projectName string, projectMigrateSpaceInstance *v1.ProjectMigrateSpaceInstance, opts metav1.CreateOptions) (result *v1.ProjectMigrateSpaceInstance, err error) { - result = &v1.ProjectMigrateSpaceInstance{} +func (c *projects) MigrateSpaceInstance(ctx context.Context, projectName string, projectMigrateSpaceInstance *managementv1.ProjectMigrateSpaceInstance, opts metav1.CreateOptions) (result *managementv1.ProjectMigrateSpaceInstance, err error) { + result = &managementv1.ProjectMigrateSpaceInstance{} err = c.GetClient().Post(). Resource("projects"). Name(projectName). diff --git a/pkg/clientset/versioned/typed/management/v1/projectsecret.go b/pkg/clientset/versioned/typed/management/v1/projectsecret.go index 6033e7ff..2bbfce60 100644 --- a/pkg/clientset/versioned/typed/management/v1/projectsecret.go +++ b/pkg/clientset/versioned/typed/management/v1/projectsecret.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,31 +21,32 @@ type ProjectSecretsGetter interface { // ProjectSecretInterface has methods to work with ProjectSecret resources. type ProjectSecretInterface interface { - Create(ctx context.Context, projectSecret *v1.ProjectSecret, opts metav1.CreateOptions) (*v1.ProjectSecret, error) - Update(ctx context.Context, projectSecret *v1.ProjectSecret, opts metav1.UpdateOptions) (*v1.ProjectSecret, error) + Create(ctx context.Context, projectSecret *managementv1.ProjectSecret, opts metav1.CreateOptions) (*managementv1.ProjectSecret, error) + Update(ctx context.Context, projectSecret *managementv1.ProjectSecret, opts metav1.UpdateOptions) (*managementv1.ProjectSecret, 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) (*v1.ProjectSecret, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ProjectSecretList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.ProjectSecret, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.ProjectSecretList, 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 *v1.ProjectSecret, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.ProjectSecret, err error) ProjectSecretExpansion } // projectSecrets implements ProjectSecretInterface type projectSecrets struct { - *gentype.ClientWithList[*v1.ProjectSecret, *v1.ProjectSecretList] + *gentype.ClientWithList[*managementv1.ProjectSecret, *managementv1.ProjectSecretList] } // newProjectSecrets returns a ProjectSecrets func newProjectSecrets(c *ManagementV1Client, namespace string) *projectSecrets { return &projectSecrets{ - gentype.NewClientWithList[*v1.ProjectSecret, *v1.ProjectSecretList]( + gentype.NewClientWithList[*managementv1.ProjectSecret, *managementv1.ProjectSecretList]( "projectsecrets", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.ProjectSecret { return &v1.ProjectSecret{} }, - func() *v1.ProjectSecretList { return &v1.ProjectSecretList{} }), + func() *managementv1.ProjectSecret { return &managementv1.ProjectSecret{} }, + func() *managementv1.ProjectSecretList { return &managementv1.ProjectSecretList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/redirecttoken.go b/pkg/clientset/versioned/typed/management/v1/redirecttoken.go index 7b583086..c24903aa 100644 --- a/pkg/clientset/versioned/typed/management/v1/redirecttoken.go +++ b/pkg/clientset/versioned/typed/management/v1/redirecttoken.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type RedirectTokensGetter interface { // RedirectTokenInterface has methods to work with RedirectToken resources. type RedirectTokenInterface interface { - Create(ctx context.Context, redirectToken *v1.RedirectToken, opts metav1.CreateOptions) (*v1.RedirectToken, error) - Update(ctx context.Context, redirectToken *v1.RedirectToken, opts metav1.UpdateOptions) (*v1.RedirectToken, error) + Create(ctx context.Context, redirectToken *managementv1.RedirectToken, opts metav1.CreateOptions) (*managementv1.RedirectToken, error) + Update(ctx context.Context, redirectToken *managementv1.RedirectToken, opts metav1.UpdateOptions) (*managementv1.RedirectToken, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, redirectToken *v1.RedirectToken, opts metav1.UpdateOptions) (*v1.RedirectToken, error) + UpdateStatus(ctx context.Context, redirectToken *managementv1.RedirectToken, opts metav1.UpdateOptions) (*managementv1.RedirectToken, 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) (*v1.RedirectToken, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.RedirectTokenList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.RedirectToken, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.RedirectTokenList, 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 *v1.RedirectToken, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.RedirectToken, err error) RedirectTokenExpansion } // redirectTokens implements RedirectTokenInterface type redirectTokens struct { - *gentype.ClientWithList[*v1.RedirectToken, *v1.RedirectTokenList] + *gentype.ClientWithList[*managementv1.RedirectToken, *managementv1.RedirectTokenList] } // newRedirectTokens returns a RedirectTokens func newRedirectTokens(c *ManagementV1Client) *redirectTokens { return &redirectTokens{ - gentype.NewClientWithList[*v1.RedirectToken, *v1.RedirectTokenList]( + gentype.NewClientWithList[*managementv1.RedirectToken, *managementv1.RedirectTokenList]( "redirecttokens", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.RedirectToken { return &v1.RedirectToken{} }, - func() *v1.RedirectTokenList { return &v1.RedirectTokenList{} }), + func() *managementv1.RedirectToken { return &managementv1.RedirectToken{} }, + func() *managementv1.RedirectTokenList { return &managementv1.RedirectTokenList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/registervirtualcluster.go b/pkg/clientset/versioned/typed/management/v1/registervirtualcluster.go index 437b0dca..f71ea519 100644 --- a/pkg/clientset/versioned/typed/management/v1/registervirtualcluster.go +++ b/pkg/clientset/versioned/typed/management/v1/registervirtualcluster.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type RegisterVirtualClustersGetter interface { // RegisterVirtualClusterInterface has methods to work with RegisterVirtualCluster resources. type RegisterVirtualClusterInterface interface { - Create(ctx context.Context, registerVirtualCluster *v1.RegisterVirtualCluster, opts metav1.CreateOptions) (*v1.RegisterVirtualCluster, error) - Update(ctx context.Context, registerVirtualCluster *v1.RegisterVirtualCluster, opts metav1.UpdateOptions) (*v1.RegisterVirtualCluster, error) + Create(ctx context.Context, registerVirtualCluster *managementv1.RegisterVirtualCluster, opts metav1.CreateOptions) (*managementv1.RegisterVirtualCluster, error) + Update(ctx context.Context, registerVirtualCluster *managementv1.RegisterVirtualCluster, opts metav1.UpdateOptions) (*managementv1.RegisterVirtualCluster, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, registerVirtualCluster *v1.RegisterVirtualCluster, opts metav1.UpdateOptions) (*v1.RegisterVirtualCluster, error) + UpdateStatus(ctx context.Context, registerVirtualCluster *managementv1.RegisterVirtualCluster, opts metav1.UpdateOptions) (*managementv1.RegisterVirtualCluster, 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) (*v1.RegisterVirtualCluster, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.RegisterVirtualClusterList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.RegisterVirtualCluster, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.RegisterVirtualClusterList, 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 *v1.RegisterVirtualCluster, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.RegisterVirtualCluster, err error) RegisterVirtualClusterExpansion } // registerVirtualClusters implements RegisterVirtualClusterInterface type registerVirtualClusters struct { - *gentype.ClientWithList[*v1.RegisterVirtualCluster, *v1.RegisterVirtualClusterList] + *gentype.ClientWithList[*managementv1.RegisterVirtualCluster, *managementv1.RegisterVirtualClusterList] } // newRegisterVirtualClusters returns a RegisterVirtualClusters func newRegisterVirtualClusters(c *ManagementV1Client) *registerVirtualClusters { return ®isterVirtualClusters{ - gentype.NewClientWithList[*v1.RegisterVirtualCluster, *v1.RegisterVirtualClusterList]( + gentype.NewClientWithList[*managementv1.RegisterVirtualCluster, *managementv1.RegisterVirtualClusterList]( "registervirtualclusters", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.RegisterVirtualCluster { return &v1.RegisterVirtualCluster{} }, - func() *v1.RegisterVirtualClusterList { return &v1.RegisterVirtualClusterList{} }), + func() *managementv1.RegisterVirtualCluster { return &managementv1.RegisterVirtualCluster{} }, + func() *managementv1.RegisterVirtualClusterList { return &managementv1.RegisterVirtualClusterList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/resetaccesskey.go b/pkg/clientset/versioned/typed/management/v1/resetaccesskey.go index 2179352e..33dcb373 100644 --- a/pkg/clientset/versioned/typed/management/v1/resetaccesskey.go +++ b/pkg/clientset/versioned/typed/management/v1/resetaccesskey.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type ResetAccessKeysGetter interface { // ResetAccessKeyInterface has methods to work with ResetAccessKey resources. type ResetAccessKeyInterface interface { - Create(ctx context.Context, resetAccessKey *v1.ResetAccessKey, opts metav1.CreateOptions) (*v1.ResetAccessKey, error) - Update(ctx context.Context, resetAccessKey *v1.ResetAccessKey, opts metav1.UpdateOptions) (*v1.ResetAccessKey, error) + Create(ctx context.Context, resetAccessKey *managementv1.ResetAccessKey, opts metav1.CreateOptions) (*managementv1.ResetAccessKey, error) + Update(ctx context.Context, resetAccessKey *managementv1.ResetAccessKey, opts metav1.UpdateOptions) (*managementv1.ResetAccessKey, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, resetAccessKey *v1.ResetAccessKey, opts metav1.UpdateOptions) (*v1.ResetAccessKey, error) + UpdateStatus(ctx context.Context, resetAccessKey *managementv1.ResetAccessKey, opts metav1.UpdateOptions) (*managementv1.ResetAccessKey, 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) (*v1.ResetAccessKey, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ResetAccessKeyList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.ResetAccessKey, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.ResetAccessKeyList, 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 *v1.ResetAccessKey, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.ResetAccessKey, err error) ResetAccessKeyExpansion } // resetAccessKeys implements ResetAccessKeyInterface type resetAccessKeys struct { - *gentype.ClientWithList[*v1.ResetAccessKey, *v1.ResetAccessKeyList] + *gentype.ClientWithList[*managementv1.ResetAccessKey, *managementv1.ResetAccessKeyList] } // newResetAccessKeys returns a ResetAccessKeys func newResetAccessKeys(c *ManagementV1Client) *resetAccessKeys { return &resetAccessKeys{ - gentype.NewClientWithList[*v1.ResetAccessKey, *v1.ResetAccessKeyList]( + gentype.NewClientWithList[*managementv1.ResetAccessKey, *managementv1.ResetAccessKeyList]( "resetaccesskeys", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ResetAccessKey { return &v1.ResetAccessKey{} }, - func() *v1.ResetAccessKeyList { return &v1.ResetAccessKeyList{} }), + func() *managementv1.ResetAccessKey { return &managementv1.ResetAccessKey{} }, + func() *managementv1.ResetAccessKeyList { return &managementv1.ResetAccessKeyList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/runner.go b/pkg/clientset/versioned/typed/management/v1/runner.go deleted file mode 100644 index 92ccf936..00000000 --- a/pkg/clientset/versioned/typed/management/v1/runner.go +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - "context" - - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - scheme "github.com/loft-sh/api/v4/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" -) - -// RunnersGetter has a method to return a RunnerInterface. -// A group's client should implement this interface. -type RunnersGetter interface { - Runners() RunnerInterface -} - -// RunnerInterface has methods to work with Runner resources. -type RunnerInterface interface { - Create(ctx context.Context, runner *v1.Runner, opts metav1.CreateOptions) (*v1.Runner, error) - Update(ctx context.Context, runner *v1.Runner, opts metav1.UpdateOptions) (*v1.Runner, error) - // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, runner *v1.Runner, opts metav1.UpdateOptions) (*v1.Runner, 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) (*v1.Runner, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.RunnerList, 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 *v1.Runner, err error) - GetConfig(ctx context.Context, runnerName string, options metav1.GetOptions) (*v1.RunnerConfig, error) - GetAccessKey(ctx context.Context, runnerName string, options metav1.GetOptions) (*v1.RunnerAccessKey, error) - - RunnerExpansion -} - -// runners implements RunnerInterface -type runners struct { - *gentype.ClientWithList[*v1.Runner, *v1.RunnerList] -} - -// newRunners returns a Runners -func newRunners(c *ManagementV1Client) *runners { - return &runners{ - gentype.NewClientWithList[*v1.Runner, *v1.RunnerList]( - "runners", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *v1.Runner { return &v1.Runner{} }, - func() *v1.RunnerList { return &v1.RunnerList{} }), - } -} - -// GetConfig takes name of the runner, and returns the corresponding v1.RunnerConfig object, and an error if there is any. -func (c *runners) GetConfig(ctx context.Context, runnerName string, options metav1.GetOptions) (result *v1.RunnerConfig, err error) { - result = &v1.RunnerConfig{} - err = c.GetClient().Get(). - Resource("runners"). - Name(runnerName). - SubResource("config"). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// GetAccessKey takes name of the runner, and returns the corresponding v1.RunnerAccessKey object, and an error if there is any. -func (c *runners) GetAccessKey(ctx context.Context, runnerName string, options metav1.GetOptions) (result *v1.RunnerAccessKey, err error) { - result = &v1.RunnerAccessKey{} - err = c.GetClient().Get(). - Resource("runners"). - Name(runnerName). - SubResource("accesskey"). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} diff --git a/pkg/clientset/versioned/typed/management/v1/self.go b/pkg/clientset/versioned/typed/management/v1/self.go index 7c865013..e12385f3 100644 --- a/pkg/clientset/versioned/typed/management/v1/self.go +++ b/pkg/clientset/versioned/typed/management/v1/self.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SelvesGetter interface { // SelfInterface has methods to work with Self resources. type SelfInterface interface { - Create(ctx context.Context, self *v1.Self, opts metav1.CreateOptions) (*v1.Self, error) - Update(ctx context.Context, self *v1.Self, opts metav1.UpdateOptions) (*v1.Self, error) + Create(ctx context.Context, self *managementv1.Self, opts metav1.CreateOptions) (*managementv1.Self, error) + Update(ctx context.Context, self *managementv1.Self, opts metav1.UpdateOptions) (*managementv1.Self, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, self *v1.Self, opts metav1.UpdateOptions) (*v1.Self, error) + UpdateStatus(ctx context.Context, self *managementv1.Self, opts metav1.UpdateOptions) (*managementv1.Self, 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) (*v1.Self, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SelfList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Self, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SelfList, 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 *v1.Self, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Self, err error) SelfExpansion } // selves implements SelfInterface type selves struct { - *gentype.ClientWithList[*v1.Self, *v1.SelfList] + *gentype.ClientWithList[*managementv1.Self, *managementv1.SelfList] } // newSelves returns a Selves func newSelves(c *ManagementV1Client) *selves { return &selves{ - gentype.NewClientWithList[*v1.Self, *v1.SelfList]( + gentype.NewClientWithList[*managementv1.Self, *managementv1.SelfList]( "selves", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Self { return &v1.Self{} }, - func() *v1.SelfList { return &v1.SelfList{} }), + func() *managementv1.Self { return &managementv1.Self{} }, + func() *managementv1.SelfList { return &managementv1.SelfList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/selfsubjectaccessreview.go b/pkg/clientset/versioned/typed/management/v1/selfsubjectaccessreview.go index 73da8603..f64d2bf8 100644 --- a/pkg/clientset/versioned/typed/management/v1/selfsubjectaccessreview.go +++ b/pkg/clientset/versioned/typed/management/v1/selfsubjectaccessreview.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SelfSubjectAccessReviewsGetter interface { // SelfSubjectAccessReviewInterface has methods to work with SelfSubjectAccessReview resources. type SelfSubjectAccessReviewInterface interface { - Create(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.CreateOptions) (*v1.SelfSubjectAccessReview, error) - Update(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.UpdateOptions) (*v1.SelfSubjectAccessReview, error) + Create(ctx context.Context, selfSubjectAccessReview *managementv1.SelfSubjectAccessReview, opts metav1.CreateOptions) (*managementv1.SelfSubjectAccessReview, error) + Update(ctx context.Context, selfSubjectAccessReview *managementv1.SelfSubjectAccessReview, opts metav1.UpdateOptions) (*managementv1.SelfSubjectAccessReview, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.UpdateOptions) (*v1.SelfSubjectAccessReview, error) + UpdateStatus(ctx context.Context, selfSubjectAccessReview *managementv1.SelfSubjectAccessReview, opts metav1.UpdateOptions) (*managementv1.SelfSubjectAccessReview, 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) (*v1.SelfSubjectAccessReview, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SelfSubjectAccessReviewList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.SelfSubjectAccessReview, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SelfSubjectAccessReviewList, 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 *v1.SelfSubjectAccessReview, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.SelfSubjectAccessReview, err error) SelfSubjectAccessReviewExpansion } // selfSubjectAccessReviews implements SelfSubjectAccessReviewInterface type selfSubjectAccessReviews struct { - *gentype.ClientWithList[*v1.SelfSubjectAccessReview, *v1.SelfSubjectAccessReviewList] + *gentype.ClientWithList[*managementv1.SelfSubjectAccessReview, *managementv1.SelfSubjectAccessReviewList] } // newSelfSubjectAccessReviews returns a SelfSubjectAccessReviews func newSelfSubjectAccessReviews(c *ManagementV1Client) *selfSubjectAccessReviews { return &selfSubjectAccessReviews{ - gentype.NewClientWithList[*v1.SelfSubjectAccessReview, *v1.SelfSubjectAccessReviewList]( + gentype.NewClientWithList[*managementv1.SelfSubjectAccessReview, *managementv1.SelfSubjectAccessReviewList]( "selfsubjectaccessreviews", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.SelfSubjectAccessReview { return &v1.SelfSubjectAccessReview{} }, - func() *v1.SelfSubjectAccessReviewList { return &v1.SelfSubjectAccessReviewList{} }), + func() *managementv1.SelfSubjectAccessReview { return &managementv1.SelfSubjectAccessReview{} }, + func() *managementv1.SelfSubjectAccessReviewList { return &managementv1.SelfSubjectAccessReviewList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/sharedsecret.go b/pkg/clientset/versioned/typed/management/v1/sharedsecret.go index e8e45747..4ff9e41e 100644 --- a/pkg/clientset/versioned/typed/management/v1/sharedsecret.go +++ b/pkg/clientset/versioned/typed/management/v1/sharedsecret.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SharedSecretsGetter interface { // SharedSecretInterface has methods to work with SharedSecret resources. type SharedSecretInterface interface { - Create(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.CreateOptions) (*v1.SharedSecret, error) - Update(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (*v1.SharedSecret, error) + Create(ctx context.Context, sharedSecret *managementv1.SharedSecret, opts metav1.CreateOptions) (*managementv1.SharedSecret, error) + Update(ctx context.Context, sharedSecret *managementv1.SharedSecret, opts metav1.UpdateOptions) (*managementv1.SharedSecret, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (*v1.SharedSecret, error) + UpdateStatus(ctx context.Context, sharedSecret *managementv1.SharedSecret, opts metav1.UpdateOptions) (*managementv1.SharedSecret, 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) (*v1.SharedSecret, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SharedSecretList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.SharedSecret, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SharedSecretList, 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 *v1.SharedSecret, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.SharedSecret, err error) SharedSecretExpansion } // sharedSecrets implements SharedSecretInterface type sharedSecrets struct { - *gentype.ClientWithList[*v1.SharedSecret, *v1.SharedSecretList] + *gentype.ClientWithList[*managementv1.SharedSecret, *managementv1.SharedSecretList] } // newSharedSecrets returns a SharedSecrets func newSharedSecrets(c *ManagementV1Client, namespace string) *sharedSecrets { return &sharedSecrets{ - gentype.NewClientWithList[*v1.SharedSecret, *v1.SharedSecretList]( + gentype.NewClientWithList[*managementv1.SharedSecret, *managementv1.SharedSecretList]( "sharedsecrets", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.SharedSecret { return &v1.SharedSecret{} }, - func() *v1.SharedSecretList { return &v1.SharedSecretList{} }), + func() *managementv1.SharedSecret { return &managementv1.SharedSecret{} }, + func() *managementv1.SharedSecretList { return &managementv1.SharedSecretList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/spaceinstance.go b/pkg/clientset/versioned/typed/management/v1/spaceinstance.go index 35a92f33..d50ede9a 100644 --- a/pkg/clientset/versioned/typed/management/v1/spaceinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/spaceinstance.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,31 +21,32 @@ type SpaceInstancesGetter interface { // SpaceInstanceInterface has methods to work with SpaceInstance resources. type SpaceInstanceInterface interface { - Create(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.CreateOptions) (*v1.SpaceInstance, error) - Update(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.UpdateOptions) (*v1.SpaceInstance, error) + Create(ctx context.Context, spaceInstance *managementv1.SpaceInstance, opts metav1.CreateOptions) (*managementv1.SpaceInstance, error) + Update(ctx context.Context, spaceInstance *managementv1.SpaceInstance, opts metav1.UpdateOptions) (*managementv1.SpaceInstance, 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) (*v1.SpaceInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SpaceInstanceList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.SpaceInstance, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SpaceInstanceList, 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 *v1.SpaceInstance, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.SpaceInstance, err error) SpaceInstanceExpansion } // spaceInstances implements SpaceInstanceInterface type spaceInstances struct { - *gentype.ClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList] + *gentype.ClientWithList[*managementv1.SpaceInstance, *managementv1.SpaceInstanceList] } // newSpaceInstances returns a SpaceInstances func newSpaceInstances(c *ManagementV1Client, namespace string) *spaceInstances { return &spaceInstances{ - gentype.NewClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList]( + gentype.NewClientWithList[*managementv1.SpaceInstance, *managementv1.SpaceInstanceList]( "spaceinstances", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.SpaceInstance { return &v1.SpaceInstance{} }, - func() *v1.SpaceInstanceList { return &v1.SpaceInstanceList{} }), + func() *managementv1.SpaceInstance { return &managementv1.SpaceInstance{} }, + func() *managementv1.SpaceInstanceList { return &managementv1.SpaceInstanceList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/spacetemplate.go b/pkg/clientset/versioned/typed/management/v1/spacetemplate.go index caa05f60..53de9639 100644 --- a/pkg/clientset/versioned/typed/management/v1/spacetemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/spacetemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SpaceTemplatesGetter interface { // SpaceTemplateInterface has methods to work with SpaceTemplate resources. type SpaceTemplateInterface interface { - Create(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.CreateOptions) (*v1.SpaceTemplate, error) - Update(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (*v1.SpaceTemplate, error) + Create(ctx context.Context, spaceTemplate *managementv1.SpaceTemplate, opts metav1.CreateOptions) (*managementv1.SpaceTemplate, error) + Update(ctx context.Context, spaceTemplate *managementv1.SpaceTemplate, opts metav1.UpdateOptions) (*managementv1.SpaceTemplate, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (*v1.SpaceTemplate, error) + UpdateStatus(ctx context.Context, spaceTemplate *managementv1.SpaceTemplate, opts metav1.UpdateOptions) (*managementv1.SpaceTemplate, 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) (*v1.SpaceTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SpaceTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.SpaceTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SpaceTemplateList, 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 *v1.SpaceTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.SpaceTemplate, err error) SpaceTemplateExpansion } // spaceTemplates implements SpaceTemplateInterface type spaceTemplates struct { - *gentype.ClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList] + *gentype.ClientWithList[*managementv1.SpaceTemplate, *managementv1.SpaceTemplateList] } // newSpaceTemplates returns a SpaceTemplates func newSpaceTemplates(c *ManagementV1Client) *spaceTemplates { return &spaceTemplates{ - gentype.NewClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList]( + gentype.NewClientWithList[*managementv1.SpaceTemplate, *managementv1.SpaceTemplateList]( "spacetemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.SpaceTemplate { return &v1.SpaceTemplate{} }, - func() *v1.SpaceTemplateList { return &v1.SpaceTemplateList{} }), + func() *managementv1.SpaceTemplate { return &managementv1.SpaceTemplate{} }, + func() *managementv1.SpaceTemplateList { return &managementv1.SpaceTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/subjectaccessreview.go b/pkg/clientset/versioned/typed/management/v1/subjectaccessreview.go index f2581c6c..0e9c41a4 100644 --- a/pkg/clientset/versioned/typed/management/v1/subjectaccessreview.go +++ b/pkg/clientset/versioned/typed/management/v1/subjectaccessreview.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SubjectAccessReviewsGetter interface { // SubjectAccessReviewInterface has methods to work with SubjectAccessReview resources. type SubjectAccessReviewInterface interface { - Create(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.CreateOptions) (*v1.SubjectAccessReview, error) - Update(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.UpdateOptions) (*v1.SubjectAccessReview, error) + Create(ctx context.Context, subjectAccessReview *managementv1.SubjectAccessReview, opts metav1.CreateOptions) (*managementv1.SubjectAccessReview, error) + Update(ctx context.Context, subjectAccessReview *managementv1.SubjectAccessReview, opts metav1.UpdateOptions) (*managementv1.SubjectAccessReview, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.UpdateOptions) (*v1.SubjectAccessReview, error) + UpdateStatus(ctx context.Context, subjectAccessReview *managementv1.SubjectAccessReview, opts metav1.UpdateOptions) (*managementv1.SubjectAccessReview, 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) (*v1.SubjectAccessReview, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SubjectAccessReviewList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.SubjectAccessReview, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SubjectAccessReviewList, 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 *v1.SubjectAccessReview, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.SubjectAccessReview, err error) SubjectAccessReviewExpansion } // subjectAccessReviews implements SubjectAccessReviewInterface type subjectAccessReviews struct { - *gentype.ClientWithList[*v1.SubjectAccessReview, *v1.SubjectAccessReviewList] + *gentype.ClientWithList[*managementv1.SubjectAccessReview, *managementv1.SubjectAccessReviewList] } // newSubjectAccessReviews returns a SubjectAccessReviews func newSubjectAccessReviews(c *ManagementV1Client) *subjectAccessReviews { return &subjectAccessReviews{ - gentype.NewClientWithList[*v1.SubjectAccessReview, *v1.SubjectAccessReviewList]( + gentype.NewClientWithList[*managementv1.SubjectAccessReview, *managementv1.SubjectAccessReviewList]( "subjectaccessreviews", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.SubjectAccessReview { return &v1.SubjectAccessReview{} }, - func() *v1.SubjectAccessReviewList { return &v1.SubjectAccessReviewList{} }), + func() *managementv1.SubjectAccessReview { return &managementv1.SubjectAccessReview{} }, + func() *managementv1.SubjectAccessReviewList { return &managementv1.SubjectAccessReviewList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/task.go b/pkg/clientset/versioned/typed/management/v1/task.go index 183fa6d5..7aaa9d08 100644 --- a/pkg/clientset/versioned/typed/management/v1/task.go +++ b/pkg/clientset/versioned/typed/management/v1/task.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type TasksGetter interface { // TaskInterface has methods to work with Task resources. type TaskInterface interface { - Create(ctx context.Context, task *v1.Task, opts metav1.CreateOptions) (*v1.Task, error) - Update(ctx context.Context, task *v1.Task, opts metav1.UpdateOptions) (*v1.Task, error) + Create(ctx context.Context, task *managementv1.Task, opts metav1.CreateOptions) (*managementv1.Task, error) + Update(ctx context.Context, task *managementv1.Task, opts metav1.UpdateOptions) (*managementv1.Task, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, task *v1.Task, opts metav1.UpdateOptions) (*v1.Task, error) + UpdateStatus(ctx context.Context, task *managementv1.Task, opts metav1.UpdateOptions) (*managementv1.Task, 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) (*v1.Task, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TaskList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Task, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.TaskList, 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 *v1.Task, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Task, err error) TaskExpansion } // tasks implements TaskInterface type tasks struct { - *gentype.ClientWithList[*v1.Task, *v1.TaskList] + *gentype.ClientWithList[*managementv1.Task, *managementv1.TaskList] } // newTasks returns a Tasks func newTasks(c *ManagementV1Client) *tasks { return &tasks{ - gentype.NewClientWithList[*v1.Task, *v1.TaskList]( + gentype.NewClientWithList[*managementv1.Task, *managementv1.TaskList]( "tasks", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Task { return &v1.Task{} }, - func() *v1.TaskList { return &v1.TaskList{} }), + func() *managementv1.Task { return &managementv1.Task{} }, + func() *managementv1.TaskList { return &managementv1.TaskList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/team.go b/pkg/clientset/versioned/typed/management/v1/team.go index f3a2c6e9..2947fffe 100644 --- a/pkg/clientset/versioned/typed/management/v1/team.go +++ b/pkg/clientset/versioned/typed/management/v1/team.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,43 +21,44 @@ type TeamsGetter interface { // TeamInterface has methods to work with Team resources. type TeamInterface interface { - Create(ctx context.Context, team *v1.Team, opts metav1.CreateOptions) (*v1.Team, error) - Update(ctx context.Context, team *v1.Team, opts metav1.UpdateOptions) (*v1.Team, error) + Create(ctx context.Context, team *managementv1.Team, opts metav1.CreateOptions) (*managementv1.Team, error) + Update(ctx context.Context, team *managementv1.Team, opts metav1.UpdateOptions) (*managementv1.Team, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, team *v1.Team, opts metav1.UpdateOptions) (*v1.Team, error) + UpdateStatus(ctx context.Context, team *managementv1.Team, opts metav1.UpdateOptions) (*managementv1.Team, 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) (*v1.Team, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TeamList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Team, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.TeamList, 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 *v1.Team, err error) - ListClusters(ctx context.Context, teamName string, options metav1.GetOptions) (*v1.TeamClusters, error) - ListAccessKeys(ctx context.Context, teamName string, options metav1.GetOptions) (*v1.TeamAccessKeys, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Team, err error) + ListClusters(ctx context.Context, teamName string, options metav1.GetOptions) (*managementv1.TeamClusters, error) + ListAccessKeys(ctx context.Context, teamName string, options metav1.GetOptions) (*managementv1.TeamAccessKeys, error) TeamExpansion } // teams implements TeamInterface type teams struct { - *gentype.ClientWithList[*v1.Team, *v1.TeamList] + *gentype.ClientWithList[*managementv1.Team, *managementv1.TeamList] } // newTeams returns a Teams func newTeams(c *ManagementV1Client) *teams { return &teams{ - gentype.NewClientWithList[*v1.Team, *v1.TeamList]( + gentype.NewClientWithList[*managementv1.Team, *managementv1.TeamList]( "teams", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Team { return &v1.Team{} }, - func() *v1.TeamList { return &v1.TeamList{} }), + func() *managementv1.Team { return &managementv1.Team{} }, + func() *managementv1.TeamList { return &managementv1.TeamList{} }, + ), } } -// ListClusters takes name of the team, and returns the corresponding v1.TeamClusters object, and an error if there is any. -func (c *teams) ListClusters(ctx context.Context, teamName string, options metav1.GetOptions) (result *v1.TeamClusters, err error) { - result = &v1.TeamClusters{} +// ListClusters takes name of the team, and returns the corresponding managementv1.TeamClusters object, and an error if there is any. +func (c *teams) ListClusters(ctx context.Context, teamName string, options metav1.GetOptions) (result *managementv1.TeamClusters, err error) { + result = &managementv1.TeamClusters{} err = c.GetClient().Get(). Resource("teams"). Name(teamName). @@ -68,9 +69,9 @@ func (c *teams) ListClusters(ctx context.Context, teamName string, options metav return } -// ListAccessKeys takes name of the team, and returns the corresponding v1.TeamAccessKeys object, and an error if there is any. -func (c *teams) ListAccessKeys(ctx context.Context, teamName string, options metav1.GetOptions) (result *v1.TeamAccessKeys, err error) { - result = &v1.TeamAccessKeys{} +// ListAccessKeys takes name of the team, and returns the corresponding managementv1.TeamAccessKeys object, and an error if there is any. +func (c *teams) ListAccessKeys(ctx context.Context, teamName string, options metav1.GetOptions) (result *managementv1.TeamAccessKeys, err error) { + result = &managementv1.TeamAccessKeys{} err = c.GetClient().Get(). Resource("teams"). Name(teamName). diff --git a/pkg/clientset/versioned/typed/management/v1/translatevclusterresourcename.go b/pkg/clientset/versioned/typed/management/v1/translatevclusterresourcename.go index 1c2d89be..32f1d1c6 100644 --- a/pkg/clientset/versioned/typed/management/v1/translatevclusterresourcename.go +++ b/pkg/clientset/versioned/typed/management/v1/translatevclusterresourcename.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,38 @@ type TranslateVClusterResourceNamesGetter interface { // TranslateVClusterResourceNameInterface has methods to work with TranslateVClusterResourceName resources. type TranslateVClusterResourceNameInterface interface { - Create(ctx context.Context, translateVClusterResourceName *v1.TranslateVClusterResourceName, opts metav1.CreateOptions) (*v1.TranslateVClusterResourceName, error) - Update(ctx context.Context, translateVClusterResourceName *v1.TranslateVClusterResourceName, opts metav1.UpdateOptions) (*v1.TranslateVClusterResourceName, error) + Create(ctx context.Context, translateVClusterResourceName *managementv1.TranslateVClusterResourceName, opts metav1.CreateOptions) (*managementv1.TranslateVClusterResourceName, error) + Update(ctx context.Context, translateVClusterResourceName *managementv1.TranslateVClusterResourceName, opts metav1.UpdateOptions) (*managementv1.TranslateVClusterResourceName, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, translateVClusterResourceName *v1.TranslateVClusterResourceName, opts metav1.UpdateOptions) (*v1.TranslateVClusterResourceName, error) + UpdateStatus(ctx context.Context, translateVClusterResourceName *managementv1.TranslateVClusterResourceName, opts metav1.UpdateOptions) (*managementv1.TranslateVClusterResourceName, 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) (*v1.TranslateVClusterResourceName, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TranslateVClusterResourceNameList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.TranslateVClusterResourceName, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.TranslateVClusterResourceNameList, 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 *v1.TranslateVClusterResourceName, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.TranslateVClusterResourceName, err error) TranslateVClusterResourceNameExpansion } // translateVClusterResourceNames implements TranslateVClusterResourceNameInterface type translateVClusterResourceNames struct { - *gentype.ClientWithList[*v1.TranslateVClusterResourceName, *v1.TranslateVClusterResourceNameList] + *gentype.ClientWithList[*managementv1.TranslateVClusterResourceName, *managementv1.TranslateVClusterResourceNameList] } // newTranslateVClusterResourceNames returns a TranslateVClusterResourceNames func newTranslateVClusterResourceNames(c *ManagementV1Client) *translateVClusterResourceNames { return &translateVClusterResourceNames{ - gentype.NewClientWithList[*v1.TranslateVClusterResourceName, *v1.TranslateVClusterResourceNameList]( + gentype.NewClientWithList[*managementv1.TranslateVClusterResourceName, *managementv1.TranslateVClusterResourceNameList]( "translatevclusterresourcenames", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.TranslateVClusterResourceName { return &v1.TranslateVClusterResourceName{} }, - func() *v1.TranslateVClusterResourceNameList { return &v1.TranslateVClusterResourceNameList{} }), + func() *managementv1.TranslateVClusterResourceName { + return &managementv1.TranslateVClusterResourceName{} + }, + func() *managementv1.TranslateVClusterResourceNameList { + return &managementv1.TranslateVClusterResourceNameList{} + }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/user.go b/pkg/clientset/versioned/typed/management/v1/user.go index b381fa90..e3ef1727 100644 --- a/pkg/clientset/versioned/typed/management/v1/user.go +++ b/pkg/clientset/versioned/typed/management/v1/user.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,44 +21,46 @@ type UsersGetter interface { // UserInterface has methods to work with User resources. type UserInterface interface { - Create(ctx context.Context, user *v1.User, opts metav1.CreateOptions) (*v1.User, error) - Update(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) (*v1.User, error) + Create(ctx context.Context, user *managementv1.User, opts metav1.CreateOptions) (*managementv1.User, error) + Update(ctx context.Context, user *managementv1.User, opts metav1.UpdateOptions) (*managementv1.User, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) (*v1.User, error) + UpdateStatus(ctx context.Context, user *managementv1.User, opts metav1.UpdateOptions) (*managementv1.User, 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) (*v1.User, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.UserList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.User, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.UserList, 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 *v1.User, err error) - GetProfile(ctx context.Context, userName string, options metav1.GetOptions) (*v1.UserProfile, error) - ListClusters(ctx context.Context, userName string, options metav1.GetOptions) (*v1.UserClusters, error) - ListAccessKeys(ctx context.Context, userName string, options metav1.GetOptions) (*v1.UserAccessKeys, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.User, err error) + GetProfile(ctx context.Context, userName string, options metav1.GetOptions) (*managementv1.UserProfile, error) + UpdateProfile(ctx context.Context, userName string, userProfile *managementv1.UserProfile, opts metav1.CreateOptions) (*managementv1.UserProfile, error) + ListClusters(ctx context.Context, userName string, options metav1.GetOptions) (*managementv1.UserClusters, error) + ListAccessKeys(ctx context.Context, userName string, options metav1.GetOptions) (*managementv1.UserAccessKeys, error) UserExpansion } // users implements UserInterface type users struct { - *gentype.ClientWithList[*v1.User, *v1.UserList] + *gentype.ClientWithList[*managementv1.User, *managementv1.UserList] } // newUsers returns a Users func newUsers(c *ManagementV1Client) *users { return &users{ - gentype.NewClientWithList[*v1.User, *v1.UserList]( + gentype.NewClientWithList[*managementv1.User, *managementv1.UserList]( "users", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.User { return &v1.User{} }, - func() *v1.UserList { return &v1.UserList{} }), + func() *managementv1.User { return &managementv1.User{} }, + func() *managementv1.UserList { return &managementv1.UserList{} }, + ), } } -// GetProfile takes name of the user, and returns the corresponding v1.UserProfile object, and an error if there is any. -func (c *users) GetProfile(ctx context.Context, userName string, options metav1.GetOptions) (result *v1.UserProfile, err error) { - result = &v1.UserProfile{} +// GetProfile takes name of the user, and returns the corresponding managementv1.UserProfile object, and an error if there is any. +func (c *users) GetProfile(ctx context.Context, userName string, options metav1.GetOptions) (result *managementv1.UserProfile, err error) { + result = &managementv1.UserProfile{} err = c.GetClient().Get(). Resource("users"). Name(userName). @@ -69,9 +71,23 @@ func (c *users) GetProfile(ctx context.Context, userName string, options metav1. return } -// ListClusters takes name of the user, and returns the corresponding v1.UserClusters object, and an error if there is any. -func (c *users) ListClusters(ctx context.Context, userName string, options metav1.GetOptions) (result *v1.UserClusters, err error) { - result = &v1.UserClusters{} +// UpdateProfile takes the representation of a userProfile and creates it. Returns the server's representation of the userProfile, and an error, if there is any. +func (c *users) UpdateProfile(ctx context.Context, userName string, userProfile *managementv1.UserProfile, opts metav1.CreateOptions) (result *managementv1.UserProfile, err error) { + result = &managementv1.UserProfile{} + err = c.GetClient().Post(). + Resource("users"). + Name(userName). + SubResource("profile"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(userProfile). + Do(ctx). + Into(result) + return +} + +// ListClusters takes name of the user, and returns the corresponding managementv1.UserClusters object, and an error if there is any. +func (c *users) ListClusters(ctx context.Context, userName string, options metav1.GetOptions) (result *managementv1.UserClusters, err error) { + result = &managementv1.UserClusters{} err = c.GetClient().Get(). Resource("users"). Name(userName). @@ -82,9 +98,9 @@ func (c *users) ListClusters(ctx context.Context, userName string, options metav return } -// ListAccessKeys takes name of the user, and returns the corresponding v1.UserAccessKeys object, and an error if there is any. -func (c *users) ListAccessKeys(ctx context.Context, userName string, options metav1.GetOptions) (result *v1.UserAccessKeys, err error) { - result = &v1.UserAccessKeys{} +// ListAccessKeys takes name of the user, and returns the corresponding managementv1.UserAccessKeys object, and an error if there is any. +func (c *users) ListAccessKeys(ctx context.Context, userName string, options metav1.GetOptions) (result *managementv1.UserAccessKeys, err error) { + result = &managementv1.UserAccessKeys{} err = c.GetClient().Get(). Resource("users"). Name(userName). diff --git a/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go b/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go index e8fef8a2..d35dce3c 100644 --- a/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,41 +21,43 @@ type VirtualClusterInstancesGetter interface { // VirtualClusterInstanceInterface has methods to work with VirtualClusterInstance resources. type VirtualClusterInstanceInterface interface { - Create(ctx context.Context, virtualClusterInstance *v1.VirtualClusterInstance, opts metav1.CreateOptions) (*v1.VirtualClusterInstance, error) - Update(ctx context.Context, virtualClusterInstance *v1.VirtualClusterInstance, opts metav1.UpdateOptions) (*v1.VirtualClusterInstance, error) + Create(ctx context.Context, virtualClusterInstance *managementv1.VirtualClusterInstance, opts metav1.CreateOptions) (*managementv1.VirtualClusterInstance, error) + Update(ctx context.Context, virtualClusterInstance *managementv1.VirtualClusterInstance, opts metav1.UpdateOptions) (*managementv1.VirtualClusterInstance, 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) (*v1.VirtualClusterInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.VirtualClusterInstanceList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.VirtualClusterInstance, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.VirtualClusterInstanceList, 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 *v1.VirtualClusterInstance, err error) - GetKubeConfig(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceKubeConfig *v1.VirtualClusterInstanceKubeConfig, opts metav1.CreateOptions) (*v1.VirtualClusterInstanceKubeConfig, error) - GetAccessKey(ctx context.Context, virtualClusterInstanceName string, options metav1.GetOptions) (*v1.VirtualClusterAccessKey, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.VirtualClusterInstance, err error) + GetKubeConfig(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceKubeConfig *managementv1.VirtualClusterInstanceKubeConfig, opts metav1.CreateOptions) (*managementv1.VirtualClusterInstanceKubeConfig, error) + GetAccessKey(ctx context.Context, virtualClusterInstanceName string, options metav1.GetOptions) (*managementv1.VirtualClusterAccessKey, error) + GetExternalDatabase(ctx context.Context, virtualClusterInstanceName string, virtualClusterExternalDatabase *managementv1.VirtualClusterExternalDatabase, opts metav1.CreateOptions) (*managementv1.VirtualClusterExternalDatabase, error) VirtualClusterInstanceExpansion } // virtualClusterInstances implements VirtualClusterInstanceInterface type virtualClusterInstances struct { - *gentype.ClientWithList[*v1.VirtualClusterInstance, *v1.VirtualClusterInstanceList] + *gentype.ClientWithList[*managementv1.VirtualClusterInstance, *managementv1.VirtualClusterInstanceList] } // newVirtualClusterInstances returns a VirtualClusterInstances func newVirtualClusterInstances(c *ManagementV1Client, namespace string) *virtualClusterInstances { return &virtualClusterInstances{ - gentype.NewClientWithList[*v1.VirtualClusterInstance, *v1.VirtualClusterInstanceList]( + gentype.NewClientWithList[*managementv1.VirtualClusterInstance, *managementv1.VirtualClusterInstanceList]( "virtualclusterinstances", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.VirtualClusterInstance { return &v1.VirtualClusterInstance{} }, - func() *v1.VirtualClusterInstanceList { return &v1.VirtualClusterInstanceList{} }), + func() *managementv1.VirtualClusterInstance { return &managementv1.VirtualClusterInstance{} }, + func() *managementv1.VirtualClusterInstanceList { return &managementv1.VirtualClusterInstanceList{} }, + ), } } // GetKubeConfig takes the representation of a virtualClusterInstanceKubeConfig and creates it. Returns the server's representation of the virtualClusterInstanceKubeConfig, and an error, if there is any. -func (c *virtualClusterInstances) GetKubeConfig(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceKubeConfig *v1.VirtualClusterInstanceKubeConfig, opts metav1.CreateOptions) (result *v1.VirtualClusterInstanceKubeConfig, err error) { - result = &v1.VirtualClusterInstanceKubeConfig{} +func (c *virtualClusterInstances) GetKubeConfig(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceKubeConfig *managementv1.VirtualClusterInstanceKubeConfig, opts metav1.CreateOptions) (result *managementv1.VirtualClusterInstanceKubeConfig, err error) { + result = &managementv1.VirtualClusterInstanceKubeConfig{} err = c.GetClient().Post(). Namespace(c.GetNamespace()). Resource("virtualclusterinstances"). @@ -68,9 +70,9 @@ func (c *virtualClusterInstances) GetKubeConfig(ctx context.Context, virtualClus return } -// GetAccessKey takes name of the virtualClusterInstance, and returns the corresponding v1.VirtualClusterAccessKey object, and an error if there is any. -func (c *virtualClusterInstances) GetAccessKey(ctx context.Context, virtualClusterInstanceName string, options metav1.GetOptions) (result *v1.VirtualClusterAccessKey, err error) { - result = &v1.VirtualClusterAccessKey{} +// GetAccessKey takes name of the virtualClusterInstance, and returns the corresponding managementv1.VirtualClusterAccessKey object, and an error if there is any. +func (c *virtualClusterInstances) GetAccessKey(ctx context.Context, virtualClusterInstanceName string, options metav1.GetOptions) (result *managementv1.VirtualClusterAccessKey, err error) { + result = &managementv1.VirtualClusterAccessKey{} err = c.GetClient().Get(). Namespace(c.GetNamespace()). Resource("virtualclusterinstances"). @@ -81,3 +83,18 @@ func (c *virtualClusterInstances) GetAccessKey(ctx context.Context, virtualClust Into(result) return } + +// GetExternalDatabase takes the representation of a virtualClusterExternalDatabase and creates it. Returns the server's representation of the virtualClusterExternalDatabase, and an error, if there is any. +func (c *virtualClusterInstances) GetExternalDatabase(ctx context.Context, virtualClusterInstanceName string, virtualClusterExternalDatabase *managementv1.VirtualClusterExternalDatabase, opts metav1.CreateOptions) (result *managementv1.VirtualClusterExternalDatabase, err error) { + result = &managementv1.VirtualClusterExternalDatabase{} + err = c.GetClient().Post(). + Namespace(c.GetNamespace()). + Resource("virtualclusterinstances"). + Name(virtualClusterInstanceName). + SubResource("externaldatabase"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(virtualClusterExternalDatabase). + Do(ctx). + Into(result) + return +} diff --git a/pkg/clientset/versioned/typed/management/v1/virtualclusterschema.go b/pkg/clientset/versioned/typed/management/v1/virtualclusterschema.go new file mode 100644 index 00000000..c8aef708 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/virtualclusterschema.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + scheme "github.com/loft-sh/api/v4/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" +) + +// VirtualClusterSchemasGetter has a method to return a VirtualClusterSchemaInterface. +// A group's client should implement this interface. +type VirtualClusterSchemasGetter interface { + VirtualClusterSchemas() VirtualClusterSchemaInterface +} + +// VirtualClusterSchemaInterface has methods to work with VirtualClusterSchema resources. +type VirtualClusterSchemaInterface interface { + Create(ctx context.Context, virtualClusterSchema *managementv1.VirtualClusterSchema, opts metav1.CreateOptions) (*managementv1.VirtualClusterSchema, error) + Update(ctx context.Context, virtualClusterSchema *managementv1.VirtualClusterSchema, opts metav1.UpdateOptions) (*managementv1.VirtualClusterSchema, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, virtualClusterSchema *managementv1.VirtualClusterSchema, opts metav1.UpdateOptions) (*managementv1.VirtualClusterSchema, 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.VirtualClusterSchema, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.VirtualClusterSchemaList, 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.VirtualClusterSchema, err error) + VirtualClusterSchemaExpansion +} + +// virtualClusterSchemas implements VirtualClusterSchemaInterface +type virtualClusterSchemas struct { + *gentype.ClientWithList[*managementv1.VirtualClusterSchema, *managementv1.VirtualClusterSchemaList] +} + +// newVirtualClusterSchemas returns a VirtualClusterSchemas +func newVirtualClusterSchemas(c *ManagementV1Client) *virtualClusterSchemas { + return &virtualClusterSchemas{ + gentype.NewClientWithList[*managementv1.VirtualClusterSchema, *managementv1.VirtualClusterSchemaList]( + "virtualclusterschemas", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *managementv1.VirtualClusterSchema { return &managementv1.VirtualClusterSchema{} }, + func() *managementv1.VirtualClusterSchemaList { return &managementv1.VirtualClusterSchemaList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/virtualclustertemplate.go b/pkg/clientset/versioned/typed/management/v1/virtualclustertemplate.go index 6f861cc7..a86b5883 100644 --- a/pkg/clientset/versioned/typed/management/v1/virtualclustertemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/virtualclustertemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type VirtualClusterTemplatesGetter interface { // VirtualClusterTemplateInterface has methods to work with VirtualClusterTemplate resources. type VirtualClusterTemplateInterface interface { - Create(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.CreateOptions) (*v1.VirtualClusterTemplate, error) - Update(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.UpdateOptions) (*v1.VirtualClusterTemplate, error) + Create(ctx context.Context, virtualClusterTemplate *managementv1.VirtualClusterTemplate, opts metav1.CreateOptions) (*managementv1.VirtualClusterTemplate, error) + Update(ctx context.Context, virtualClusterTemplate *managementv1.VirtualClusterTemplate, opts metav1.UpdateOptions) (*managementv1.VirtualClusterTemplate, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.UpdateOptions) (*v1.VirtualClusterTemplate, error) + UpdateStatus(ctx context.Context, virtualClusterTemplate *managementv1.VirtualClusterTemplate, opts metav1.UpdateOptions) (*managementv1.VirtualClusterTemplate, 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) (*v1.VirtualClusterTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.VirtualClusterTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.VirtualClusterTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.VirtualClusterTemplateList, 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 *v1.VirtualClusterTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.VirtualClusterTemplate, err error) VirtualClusterTemplateExpansion } // virtualClusterTemplates implements VirtualClusterTemplateInterface type virtualClusterTemplates struct { - *gentype.ClientWithList[*v1.VirtualClusterTemplate, *v1.VirtualClusterTemplateList] + *gentype.ClientWithList[*managementv1.VirtualClusterTemplate, *managementv1.VirtualClusterTemplateList] } // newVirtualClusterTemplates returns a VirtualClusterTemplates func newVirtualClusterTemplates(c *ManagementV1Client) *virtualClusterTemplates { return &virtualClusterTemplates{ - gentype.NewClientWithList[*v1.VirtualClusterTemplate, *v1.VirtualClusterTemplateList]( + gentype.NewClientWithList[*managementv1.VirtualClusterTemplate, *managementv1.VirtualClusterTemplateList]( "virtualclustertemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.VirtualClusterTemplate { return &v1.VirtualClusterTemplate{} }, - func() *v1.VirtualClusterTemplateList { return &v1.VirtualClusterTemplateList{} }), + func() *managementv1.VirtualClusterTemplate { return &managementv1.VirtualClusterTemplate{} }, + func() *managementv1.VirtualClusterTemplateList { return &managementv1.VirtualClusterTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/accesskey.go b/pkg/clientset/versioned/typed/storage/v1/accesskey.go index 1a5fb0a9..7a130c71 100644 --- a/pkg/clientset/versioned/typed/storage/v1/accesskey.go +++ b/pkg/clientset/versioned/typed/storage/v1/accesskey.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type AccessKeysGetter interface { // AccessKeyInterface has methods to work with AccessKey resources. type AccessKeyInterface interface { - Create(ctx context.Context, accessKey *v1.AccessKey, opts metav1.CreateOptions) (*v1.AccessKey, error) - Update(ctx context.Context, accessKey *v1.AccessKey, opts metav1.UpdateOptions) (*v1.AccessKey, error) + Create(ctx context.Context, accessKey *storagev1.AccessKey, opts metav1.CreateOptions) (*storagev1.AccessKey, error) + Update(ctx context.Context, accessKey *storagev1.AccessKey, opts metav1.UpdateOptions) (*storagev1.AccessKey, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, accessKey *v1.AccessKey, opts metav1.UpdateOptions) (*v1.AccessKey, error) + UpdateStatus(ctx context.Context, accessKey *storagev1.AccessKey, opts metav1.UpdateOptions) (*storagev1.AccessKey, 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) (*v1.AccessKey, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.AccessKeyList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.AccessKey, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.AccessKeyList, 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 *v1.AccessKey, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.AccessKey, err error) AccessKeyExpansion } // accessKeys implements AccessKeyInterface type accessKeys struct { - *gentype.ClientWithList[*v1.AccessKey, *v1.AccessKeyList] + *gentype.ClientWithList[*storagev1.AccessKey, *storagev1.AccessKeyList] } // newAccessKeys returns a AccessKeys func newAccessKeys(c *StorageV1Client) *accessKeys { return &accessKeys{ - gentype.NewClientWithList[*v1.AccessKey, *v1.AccessKeyList]( + gentype.NewClientWithList[*storagev1.AccessKey, *storagev1.AccessKeyList]( "accesskeys", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.AccessKey { return &v1.AccessKey{} }, - func() *v1.AccessKeyList { return &v1.AccessKeyList{} }), + func() *storagev1.AccessKey { return &storagev1.AccessKey{} }, + func() *storagev1.AccessKeyList { return &storagev1.AccessKeyList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/app.go b/pkg/clientset/versioned/typed/storage/v1/app.go index 0552673a..983430f0 100644 --- a/pkg/clientset/versioned/typed/storage/v1/app.go +++ b/pkg/clientset/versioned/typed/storage/v1/app.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type AppsGetter interface { // AppInterface has methods to work with App resources. type AppInterface interface { - Create(ctx context.Context, app *v1.App, opts metav1.CreateOptions) (*v1.App, error) - Update(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (*v1.App, error) + Create(ctx context.Context, app *storagev1.App, opts metav1.CreateOptions) (*storagev1.App, error) + Update(ctx context.Context, app *storagev1.App, opts metav1.UpdateOptions) (*storagev1.App, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (*v1.App, error) + UpdateStatus(ctx context.Context, app *storagev1.App, opts metav1.UpdateOptions) (*storagev1.App, 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) (*v1.App, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.AppList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.App, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.AppList, 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 *v1.App, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.App, err error) AppExpansion } // apps implements AppInterface type apps struct { - *gentype.ClientWithList[*v1.App, *v1.AppList] + *gentype.ClientWithList[*storagev1.App, *storagev1.AppList] } // newApps returns a Apps func newApps(c *StorageV1Client) *apps { return &apps{ - gentype.NewClientWithList[*v1.App, *v1.AppList]( + gentype.NewClientWithList[*storagev1.App, *storagev1.AppList]( "apps", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.App { return &v1.App{} }, - func() *v1.AppList { return &v1.AppList{} }), + func() *storagev1.App { return &storagev1.App{} }, + func() *storagev1.AppList { return &storagev1.AppList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/cluster.go b/pkg/clientset/versioned/typed/storage/v1/cluster.go index 337d1059..b0bfd4ba 100644 --- a/pkg/clientset/versioned/typed/storage/v1/cluster.go +++ b/pkg/clientset/versioned/typed/storage/v1/cluster.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type ClustersGetter interface { // ClusterInterface has methods to work with Cluster resources. type ClusterInterface interface { - Create(ctx context.Context, cluster *v1.Cluster, opts metav1.CreateOptions) (*v1.Cluster, error) - Update(ctx context.Context, cluster *v1.Cluster, opts metav1.UpdateOptions) (*v1.Cluster, error) + Create(ctx context.Context, cluster *storagev1.Cluster, opts metav1.CreateOptions) (*storagev1.Cluster, error) + Update(ctx context.Context, cluster *storagev1.Cluster, opts metav1.UpdateOptions) (*storagev1.Cluster, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, cluster *v1.Cluster, opts metav1.UpdateOptions) (*v1.Cluster, error) + UpdateStatus(ctx context.Context, cluster *storagev1.Cluster, opts metav1.UpdateOptions) (*storagev1.Cluster, 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) (*v1.Cluster, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.Cluster, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.ClusterList, 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 *v1.Cluster, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.Cluster, err error) ClusterExpansion } // clusters implements ClusterInterface type clusters struct { - *gentype.ClientWithList[*v1.Cluster, *v1.ClusterList] + *gentype.ClientWithList[*storagev1.Cluster, *storagev1.ClusterList] } // newClusters returns a Clusters func newClusters(c *StorageV1Client) *clusters { return &clusters{ - gentype.NewClientWithList[*v1.Cluster, *v1.ClusterList]( + gentype.NewClientWithList[*storagev1.Cluster, *storagev1.ClusterList]( "clusters", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Cluster { return &v1.Cluster{} }, - func() *v1.ClusterList { return &v1.ClusterList{} }), + func() *storagev1.Cluster { return &storagev1.Cluster{} }, + func() *storagev1.ClusterList { return &storagev1.ClusterList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/clusteraccess.go b/pkg/clientset/versioned/typed/storage/v1/clusteraccess.go index f12601cd..ca6553c3 100644 --- a/pkg/clientset/versioned/typed/storage/v1/clusteraccess.go +++ b/pkg/clientset/versioned/typed/storage/v1/clusteraccess.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type ClusterAccessesGetter interface { // ClusterAccessInterface has methods to work with ClusterAccess resources. type ClusterAccessInterface interface { - Create(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.CreateOptions) (*v1.ClusterAccess, error) - Update(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.UpdateOptions) (*v1.ClusterAccess, error) + Create(ctx context.Context, clusterAccess *storagev1.ClusterAccess, opts metav1.CreateOptions) (*storagev1.ClusterAccess, error) + Update(ctx context.Context, clusterAccess *storagev1.ClusterAccess, opts metav1.UpdateOptions) (*storagev1.ClusterAccess, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.UpdateOptions) (*v1.ClusterAccess, error) + UpdateStatus(ctx context.Context, clusterAccess *storagev1.ClusterAccess, opts metav1.UpdateOptions) (*storagev1.ClusterAccess, 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) (*v1.ClusterAccess, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterAccessList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.ClusterAccess, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.ClusterAccessList, 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 *v1.ClusterAccess, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.ClusterAccess, err error) ClusterAccessExpansion } // clusterAccesses implements ClusterAccessInterface type clusterAccesses struct { - *gentype.ClientWithList[*v1.ClusterAccess, *v1.ClusterAccessList] + *gentype.ClientWithList[*storagev1.ClusterAccess, *storagev1.ClusterAccessList] } // newClusterAccesses returns a ClusterAccesses func newClusterAccesses(c *StorageV1Client) *clusterAccesses { return &clusterAccesses{ - gentype.NewClientWithList[*v1.ClusterAccess, *v1.ClusterAccessList]( + gentype.NewClientWithList[*storagev1.ClusterAccess, *storagev1.ClusterAccessList]( "clusteraccesses", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ClusterAccess { return &v1.ClusterAccess{} }, - func() *v1.ClusterAccessList { return &v1.ClusterAccessList{} }), + func() *storagev1.ClusterAccess { return &storagev1.ClusterAccess{} }, + func() *storagev1.ClusterAccessList { return &storagev1.ClusterAccessList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/clusterroletemplate.go b/pkg/clientset/versioned/typed/storage/v1/clusterroletemplate.go index 584ed113..57b27ecd 100644 --- a/pkg/clientset/versioned/typed/storage/v1/clusterroletemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/clusterroletemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type ClusterRoleTemplatesGetter interface { // ClusterRoleTemplateInterface has methods to work with ClusterRoleTemplate resources. type ClusterRoleTemplateInterface interface { - Create(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.CreateOptions) (*v1.ClusterRoleTemplate, error) - Update(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.UpdateOptions) (*v1.ClusterRoleTemplate, error) + Create(ctx context.Context, clusterRoleTemplate *storagev1.ClusterRoleTemplate, opts metav1.CreateOptions) (*storagev1.ClusterRoleTemplate, error) + Update(ctx context.Context, clusterRoleTemplate *storagev1.ClusterRoleTemplate, opts metav1.UpdateOptions) (*storagev1.ClusterRoleTemplate, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.UpdateOptions) (*v1.ClusterRoleTemplate, error) + UpdateStatus(ctx context.Context, clusterRoleTemplate *storagev1.ClusterRoleTemplate, opts metav1.UpdateOptions) (*storagev1.ClusterRoleTemplate, 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) (*v1.ClusterRoleTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterRoleTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.ClusterRoleTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.ClusterRoleTemplateList, 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 *v1.ClusterRoleTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.ClusterRoleTemplate, err error) ClusterRoleTemplateExpansion } // clusterRoleTemplates implements ClusterRoleTemplateInterface type clusterRoleTemplates struct { - *gentype.ClientWithList[*v1.ClusterRoleTemplate, *v1.ClusterRoleTemplateList] + *gentype.ClientWithList[*storagev1.ClusterRoleTemplate, *storagev1.ClusterRoleTemplateList] } // newClusterRoleTemplates returns a ClusterRoleTemplates func newClusterRoleTemplates(c *StorageV1Client) *clusterRoleTemplates { return &clusterRoleTemplates{ - gentype.NewClientWithList[*v1.ClusterRoleTemplate, *v1.ClusterRoleTemplateList]( + gentype.NewClientWithList[*storagev1.ClusterRoleTemplate, *storagev1.ClusterRoleTemplateList]( "clusterroletemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ClusterRoleTemplate { return &v1.ClusterRoleTemplate{} }, - func() *v1.ClusterRoleTemplateList { return &v1.ClusterRoleTemplateList{} }), + func() *storagev1.ClusterRoleTemplate { return &storagev1.ClusterRoleTemplate{} }, + func() *storagev1.ClusterRoleTemplateList { return &storagev1.ClusterRoleTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go index 4b73b5d0..82e3344a 100644 --- a/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,31 +21,32 @@ type DevPodEnvironmentTemplatesGetter interface { // DevPodEnvironmentTemplateInterface has methods to work with DevPodEnvironmentTemplate resources. type DevPodEnvironmentTemplateInterface interface { - Create(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (*v1.DevPodEnvironmentTemplate, error) - Update(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (*v1.DevPodEnvironmentTemplate, error) + 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) (*v1.DevPodEnvironmentTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodEnvironmentTemplateList, 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 *v1.DevPodEnvironmentTemplate, err 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[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] + *gentype.ClientWithList[*storagev1.DevPodEnvironmentTemplate, *storagev1.DevPodEnvironmentTemplateList] } // newDevPodEnvironmentTemplates returns a DevPodEnvironmentTemplates func newDevPodEnvironmentTemplates(c *StorageV1Client) *devPodEnvironmentTemplates { return &devPodEnvironmentTemplates{ - gentype.NewClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList]( + gentype.NewClientWithList[*storagev1.DevPodEnvironmentTemplate, *storagev1.DevPodEnvironmentTemplateList]( "devpodenvironmenttemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.DevPodEnvironmentTemplate { return &v1.DevPodEnvironmentTemplate{} }, - func() *v1.DevPodEnvironmentTemplateList { return &v1.DevPodEnvironmentTemplateList{} }), + 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 index 61aef3a4..84451677 100644 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go +++ b/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,31 +21,32 @@ type DevPodWorkspaceInstancesGetter interface { // DevPodWorkspaceInstanceInterface has methods to work with DevPodWorkspaceInstance resources. type DevPodWorkspaceInstanceInterface interface { - Create(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (*v1.DevPodWorkspaceInstance, error) - Update(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (*v1.DevPodWorkspaceInstance, error) + 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) (*v1.DevPodWorkspaceInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodWorkspaceInstanceList, 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 *v1.DevPodWorkspaceInstance, err 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[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] + *gentype.ClientWithList[*storagev1.DevPodWorkspaceInstance, *storagev1.DevPodWorkspaceInstanceList] } // newDevPodWorkspaceInstances returns a DevPodWorkspaceInstances func newDevPodWorkspaceInstances(c *StorageV1Client, namespace string) *devPodWorkspaceInstances { return &devPodWorkspaceInstances{ - gentype.NewClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList]( + gentype.NewClientWithList[*storagev1.DevPodWorkspaceInstance, *storagev1.DevPodWorkspaceInstanceList]( "devpodworkspaceinstances", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.DevPodWorkspaceInstance { return &v1.DevPodWorkspaceInstance{} }, - func() *v1.DevPodWorkspaceInstanceList { return &v1.DevPodWorkspaceInstanceList{} }), + 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 new file mode 100644 index 00000000..377faf0f --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go @@ -0,0 +1,52 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + scheme "github.com/loft-sh/api/v4/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 index 2cc63af1..a8e0836a 100644 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type DevPodWorkspaceTemplatesGetter interface { // DevPodWorkspaceTemplateInterface has methods to work with DevPodWorkspaceTemplate resources. type DevPodWorkspaceTemplateInterface interface { - Create(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (*v1.DevPodWorkspaceTemplate, error) - Update(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*v1.DevPodWorkspaceTemplate, error) + 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 *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*v1.DevPodWorkspaceTemplate, error) + 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) (*v1.DevPodWorkspaceTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodWorkspaceTemplateList, 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 *v1.DevPodWorkspaceTemplate, err 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[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] + *gentype.ClientWithList[*storagev1.DevPodWorkspaceTemplate, *storagev1.DevPodWorkspaceTemplateList] } // newDevPodWorkspaceTemplates returns a DevPodWorkspaceTemplates func newDevPodWorkspaceTemplates(c *StorageV1Client) *devPodWorkspaceTemplates { return &devPodWorkspaceTemplates{ - gentype.NewClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList]( + gentype.NewClientWithList[*storagev1.DevPodWorkspaceTemplate, *storagev1.DevPodWorkspaceTemplateList]( "devpodworkspacetemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.DevPodWorkspaceTemplate { return &v1.DevPodWorkspaceTemplate{} }, - func() *v1.DevPodWorkspaceTemplateList { return &v1.DevPodWorkspaceTemplateList{} }), + func() *storagev1.DevPodWorkspaceTemplate { return &storagev1.DevPodWorkspaceTemplate{} }, + func() *storagev1.DevPodWorkspaceTemplateList { return &storagev1.DevPodWorkspaceTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_accesskey.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_accesskey.go index cb5a5d5e..dc044e74 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_accesskey.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_accesskey.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeAccessKeys implements AccessKeyInterface -type FakeAccessKeys struct { +// fakeAccessKeys implements AccessKeyInterface +type fakeAccessKeys struct { + *gentype.FakeClientWithList[*v1.AccessKey, *v1.AccessKeyList] Fake *FakeStorageV1 } -var accesskeysResource = v1.SchemeGroupVersion.WithResource("accesskeys") - -var accesskeysKind = v1.SchemeGroupVersion.WithKind("AccessKey") - -// Get takes name of the accessKey, and returns the corresponding accessKey object, and an error if there is any. -func (c *FakeAccessKeys) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.AccessKey, err error) { - emptyResult := &v1.AccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(accesskeysResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AccessKey), err -} - -// List takes label and field selectors, and returns the list of AccessKeys that match those selectors. -func (c *FakeAccessKeys) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AccessKeyList, err error) { - emptyResult := &v1.AccessKeyList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(accesskeysResource, accesskeysKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.AccessKeyList{ListMeta: obj.(*v1.AccessKeyList).ListMeta} - for _, item := range obj.(*v1.AccessKeyList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested accessKeys. -func (c *FakeAccessKeys) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(accesskeysResource, opts)) -} - -// Create takes the representation of a accessKey and creates it. Returns the server's representation of the accessKey, and an error, if there is any. -func (c *FakeAccessKeys) Create(ctx context.Context, accessKey *v1.AccessKey, opts metav1.CreateOptions) (result *v1.AccessKey, err error) { - emptyResult := &v1.AccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(accesskeysResource, accessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AccessKey), err -} - -// Update takes the representation of a accessKey and updates it. Returns the server's representation of the accessKey, and an error, if there is any. -func (c *FakeAccessKeys) Update(ctx context.Context, accessKey *v1.AccessKey, opts metav1.UpdateOptions) (result *v1.AccessKey, err error) { - emptyResult := &v1.AccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(accesskeysResource, accessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AccessKey), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeAccessKeys) UpdateStatus(ctx context.Context, accessKey *v1.AccessKey, opts metav1.UpdateOptions) (result *v1.AccessKey, err error) { - emptyResult := &v1.AccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(accesskeysResource, "status", accessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AccessKey), err -} - -// Delete takes name of the accessKey and deletes it. Returns an error if one occurs. -func (c *FakeAccessKeys) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(accesskeysResource, name, opts), &v1.AccessKey{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeAccessKeys) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(accesskeysResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.AccessKeyList{}) - return err -} - -// Patch applies the patch and returns the patched accessKey. -func (c *FakeAccessKeys) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.AccessKey, err error) { - emptyResult := &v1.AccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(accesskeysResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeAccessKeys(fake *FakeStorageV1) storagev1.AccessKeyInterface { + return &fakeAccessKeys{ + gentype.NewFakeClientWithList[*v1.AccessKey, *v1.AccessKeyList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("accesskeys"), + v1.SchemeGroupVersion.WithKind("AccessKey"), + func() *v1.AccessKey { return &v1.AccessKey{} }, + func() *v1.AccessKeyList { return &v1.AccessKeyList{} }, + func(dst, src *v1.AccessKeyList) { dst.ListMeta = src.ListMeta }, + func(list *v1.AccessKeyList) []*v1.AccessKey { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.AccessKeyList, items []*v1.AccessKey) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.AccessKey), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_app.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_app.go index b7fe58fd..c09c2f88 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_app.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_app.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeApps implements AppInterface -type FakeApps struct { +// fakeApps implements AppInterface +type fakeApps struct { + *gentype.FakeClientWithList[*v1.App, *v1.AppList] Fake *FakeStorageV1 } -var appsResource = v1.SchemeGroupVersion.WithResource("apps") - -var appsKind = v1.SchemeGroupVersion.WithKind("App") - -// Get takes name of the app, and returns the corresponding app object, and an error if there is any. -func (c *FakeApps) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(appsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// List takes label and field selectors, and returns the list of Apps that match those selectors. -func (c *FakeApps) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AppList, err error) { - emptyResult := &v1.AppList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(appsResource, appsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.AppList{ListMeta: obj.(*v1.AppList).ListMeta} - for _, item := range obj.(*v1.AppList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested apps. -func (c *FakeApps) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(appsResource, opts)) -} - -// Create takes the representation of a app and creates it. Returns the server's representation of the app, and an error, if there is any. -func (c *FakeApps) Create(ctx context.Context, app *v1.App, opts metav1.CreateOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(appsResource, app, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// Update takes the representation of a app and updates it. Returns the server's representation of the app, and an error, if there is any. -func (c *FakeApps) Update(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(appsResource, app, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeApps) UpdateStatus(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(appsResource, "status", app, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// Delete takes name of the app and deletes it. Returns an error if one occurs. -func (c *FakeApps) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(appsResource, name, opts), &v1.App{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeApps) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(appsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.AppList{}) - return err -} - -// Patch applies the patch and returns the patched app. -func (c *FakeApps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(appsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeApps(fake *FakeStorageV1) storagev1.AppInterface { + return &fakeApps{ + gentype.NewFakeClientWithList[*v1.App, *v1.AppList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("apps"), + v1.SchemeGroupVersion.WithKind("App"), + func() *v1.App { return &v1.App{} }, + func() *v1.AppList { return &v1.AppList{} }, + func(dst, src *v1.AppList) { dst.ListMeta = src.ListMeta }, + func(list *v1.AppList) []*v1.App { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.AppList, items []*v1.App) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.App), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_cluster.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_cluster.go index db367f66..ef97f699 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_cluster.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_cluster.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeClusters implements ClusterInterface -type FakeClusters struct { +// fakeClusters implements ClusterInterface +type fakeClusters struct { + *gentype.FakeClientWithList[*v1.Cluster, *v1.ClusterList] Fake *FakeStorageV1 } -var clustersResource = v1.SchemeGroupVersion.WithResource("clusters") - -var clustersKind = v1.SchemeGroupVersion.WithKind("Cluster") - -// Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. -func (c *FakeClusters) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clustersResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err -} - -// List takes label and field selectors, and returns the list of Clusters that match those selectors. -func (c *FakeClusters) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterList, err error) { - emptyResult := &v1.ClusterList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clustersResource, clustersKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterList{ListMeta: obj.(*v1.ClusterList).ListMeta} - for _, item := range obj.(*v1.ClusterList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested clusters. -func (c *FakeClusters) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clustersResource, opts)) -} - -// Create takes the representation of a cluster and creates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *FakeClusters) Create(ctx context.Context, cluster *v1.Cluster, opts metav1.CreateOptions) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clustersResource, cluster, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err -} - -// Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *FakeClusters) Update(ctx context.Context, cluster *v1.Cluster, opts metav1.UpdateOptions) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clustersResource, cluster, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeClusters) UpdateStatus(ctx context.Context, cluster *v1.Cluster, opts metav1.UpdateOptions) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustersResource, "status", cluster, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err -} - -// Delete takes name of the cluster and deletes it. Returns an error if one occurs. -func (c *FakeClusters) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clustersResource, name, opts), &v1.Cluster{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusters) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clustersResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterList{}) - return err -} - -// Patch applies the patch and returns the patched cluster. -func (c *FakeClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustersResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusters(fake *FakeStorageV1) storagev1.ClusterInterface { + return &fakeClusters{ + gentype.NewFakeClientWithList[*v1.Cluster, *v1.ClusterList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clusters"), + v1.SchemeGroupVersion.WithKind("Cluster"), + func() *v1.Cluster { return &v1.Cluster{} }, + func() *v1.ClusterList { return &v1.ClusterList{} }, + func(dst, src *v1.ClusterList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterList) []*v1.Cluster { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ClusterList, items []*v1.Cluster) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Cluster), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusteraccess.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusteraccess.go index e2ab2605..66063e69 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusteraccess.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusteraccess.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeClusterAccesses implements ClusterAccessInterface -type FakeClusterAccesses struct { +// fakeClusterAccesses implements ClusterAccessInterface +type fakeClusterAccesses struct { + *gentype.FakeClientWithList[*v1.ClusterAccess, *v1.ClusterAccessList] Fake *FakeStorageV1 } -var clusteraccessesResource = v1.SchemeGroupVersion.WithResource("clusteraccesses") - -var clusteraccessesKind = v1.SchemeGroupVersion.WithKind("ClusterAccess") - -// Get takes name of the clusterAccess, and returns the corresponding clusterAccess object, and an error if there is any. -func (c *FakeClusterAccesses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clusteraccessesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterAccess), err -} - -// List takes label and field selectors, and returns the list of ClusterAccesses that match those selectors. -func (c *FakeClusterAccesses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterAccessList, err error) { - emptyResult := &v1.ClusterAccessList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clusteraccessesResource, clusteraccessesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterAccessList{ListMeta: obj.(*v1.ClusterAccessList).ListMeta} - for _, item := range obj.(*v1.ClusterAccessList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested clusterAccesses. -func (c *FakeClusterAccesses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clusteraccessesResource, opts)) -} - -// Create takes the representation of a clusterAccess and creates it. Returns the server's representation of the clusterAccess, and an error, if there is any. -func (c *FakeClusterAccesses) Create(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.CreateOptions) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clusteraccessesResource, clusterAccess, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterAccess), err -} - -// Update takes the representation of a clusterAccess and updates it. Returns the server's representation of the clusterAccess, and an error, if there is any. -func (c *FakeClusterAccesses) Update(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.UpdateOptions) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clusteraccessesResource, clusterAccess, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterAccess), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeClusterAccesses) UpdateStatus(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.UpdateOptions) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clusteraccessesResource, "status", clusterAccess, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterAccess), err -} - -// Delete takes name of the clusterAccess and deletes it. Returns an error if one occurs. -func (c *FakeClusterAccesses) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clusteraccessesResource, name, opts), &v1.ClusterAccess{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterAccesses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clusteraccessesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterAccessList{}) - return err -} - -// Patch applies the patch and returns the patched clusterAccess. -func (c *FakeClusterAccesses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusteraccessesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterAccesses(fake *FakeStorageV1) storagev1.ClusterAccessInterface { + return &fakeClusterAccesses{ + gentype.NewFakeClientWithList[*v1.ClusterAccess, *v1.ClusterAccessList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clusteraccesses"), + v1.SchemeGroupVersion.WithKind("ClusterAccess"), + func() *v1.ClusterAccess { return &v1.ClusterAccess{} }, + func() *v1.ClusterAccessList { return &v1.ClusterAccessList{} }, + func(dst, src *v1.ClusterAccessList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterAccessList) []*v1.ClusterAccess { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ClusterAccessList, items []*v1.ClusterAccess) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ClusterAccess), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusterroletemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusterroletemplate.go index 3c20596b..c0558d54 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusterroletemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusterroletemplate.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeClusterRoleTemplates implements ClusterRoleTemplateInterface -type FakeClusterRoleTemplates struct { +// fakeClusterRoleTemplates implements ClusterRoleTemplateInterface +type fakeClusterRoleTemplates struct { + *gentype.FakeClientWithList[*v1.ClusterRoleTemplate, *v1.ClusterRoleTemplateList] Fake *FakeStorageV1 } -var clusterroletemplatesResource = v1.SchemeGroupVersion.WithResource("clusterroletemplates") - -var clusterroletemplatesKind = v1.SchemeGroupVersion.WithKind("ClusterRoleTemplate") - -// Get takes name of the clusterRoleTemplate, and returns the corresponding clusterRoleTemplate object, and an error if there is any. -func (c *FakeClusterRoleTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clusterroletemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterRoleTemplate), err -} - -// List takes label and field selectors, and returns the list of ClusterRoleTemplates that match those selectors. -func (c *FakeClusterRoleTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleTemplateList, err error) { - emptyResult := &v1.ClusterRoleTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clusterroletemplatesResource, clusterroletemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterRoleTemplateList{ListMeta: obj.(*v1.ClusterRoleTemplateList).ListMeta} - for _, item := range obj.(*v1.ClusterRoleTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested clusterRoleTemplates. -func (c *FakeClusterRoleTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clusterroletemplatesResource, opts)) -} - -// Create takes the representation of a clusterRoleTemplate and creates it. Returns the server's representation of the clusterRoleTemplate, and an error, if there is any. -func (c *FakeClusterRoleTemplates) Create(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.CreateOptions) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clusterroletemplatesResource, clusterRoleTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterRoleTemplate), err -} - -// Update takes the representation of a clusterRoleTemplate and updates it. Returns the server's representation of the clusterRoleTemplate, and an error, if there is any. -func (c *FakeClusterRoleTemplates) Update(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.UpdateOptions) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clusterroletemplatesResource, clusterRoleTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterRoleTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeClusterRoleTemplates) UpdateStatus(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.UpdateOptions) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clusterroletemplatesResource, "status", clusterRoleTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterRoleTemplate), err -} - -// Delete takes name of the clusterRoleTemplate and deletes it. Returns an error if one occurs. -func (c *FakeClusterRoleTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clusterroletemplatesResource, name, opts), &v1.ClusterRoleTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterRoleTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clusterroletemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterRoleTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched clusterRoleTemplate. -func (c *FakeClusterRoleTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterroletemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterRoleTemplates(fake *FakeStorageV1) storagev1.ClusterRoleTemplateInterface { + return &fakeClusterRoleTemplates{ + gentype.NewFakeClientWithList[*v1.ClusterRoleTemplate, *v1.ClusterRoleTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clusterroletemplates"), + v1.SchemeGroupVersion.WithKind("ClusterRoleTemplate"), + func() *v1.ClusterRoleTemplate { return &v1.ClusterRoleTemplate{} }, + func() *v1.ClusterRoleTemplateList { return &v1.ClusterRoleTemplateList{} }, + func(dst, src *v1.ClusterRoleTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterRoleTemplateList) []*v1.ClusterRoleTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.ClusterRoleTemplateList, items []*v1.ClusterRoleTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ClusterRoleTemplate), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go index 544701ea..41728901 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go @@ -3,108 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type FakeDevPodEnvironmentTemplates struct { +// fakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface +type fakeDevPodEnvironmentTemplates struct { + *gentype.FakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] Fake *FakeStorageV1 } -var devpodenvironmenttemplatesResource = v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates") - -var devpodenvironmenttemplatesKind = v1.SchemeGroupVersion.WithKind("DevPodEnvironmentTemplate") - -// Get takes name of the devPodEnvironmentTemplate, and returns the corresponding devPodEnvironmentTemplate object, and an error if there is any. -func (c *FakeDevPodEnvironmentTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(devpodenvironmenttemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodEnvironmentTemplate), err -} - -// List takes label and field selectors, and returns the list of DevPodEnvironmentTemplates that match those selectors. -func (c *FakeDevPodEnvironmentTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodEnvironmentTemplateList, err error) { - emptyResult := &v1.DevPodEnvironmentTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(devpodenvironmenttemplatesResource, devpodenvironmenttemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodEnvironmentTemplateList{ListMeta: obj.(*v1.DevPodEnvironmentTemplateList).ListMeta} - for _, item := range obj.(*v1.DevPodEnvironmentTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested devPodEnvironmentTemplates. -func (c *FakeDevPodEnvironmentTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(devpodenvironmenttemplatesResource, opts)) -} - -// Create takes the representation of a devPodEnvironmentTemplate and creates it. Returns the server's representation of the devPodEnvironmentTemplate, and an error, if there is any. -func (c *FakeDevPodEnvironmentTemplates) Create(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(devpodenvironmenttemplatesResource, devPodEnvironmentTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodEnvironmentTemplate), err -} - -// Update takes the representation of a devPodEnvironmentTemplate and updates it. Returns the server's representation of the devPodEnvironmentTemplate, and an error, if there is any. -func (c *FakeDevPodEnvironmentTemplates) Update(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(devpodenvironmenttemplatesResource, devPodEnvironmentTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodEnvironmentTemplate), err -} - -// Delete takes name of the devPodEnvironmentTemplate and deletes it. Returns an error if one occurs. -func (c *FakeDevPodEnvironmentTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(devpodenvironmenttemplatesResource, name, opts), &v1.DevPodEnvironmentTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodEnvironmentTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(devpodenvironmenttemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodEnvironmentTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched devPodEnvironmentTemplate. -func (c *FakeDevPodEnvironmentTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(devpodenvironmenttemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +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, } - return obj.(*v1.DevPodEnvironmentTemplate), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go index b840f2cf..cd6bc8c9 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go @@ -3,116 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type FakeDevPodWorkspaceInstances struct { +// fakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface +type fakeDevPodWorkspaceInstances struct { + *gentype.FakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] Fake *FakeStorageV1 - ns string -} - -var devpodworkspaceinstancesResource = v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances") - -var devpodworkspaceinstancesKind = v1.SchemeGroupVersion.WithKind("DevPodWorkspaceInstance") - -// Get takes name of the devPodWorkspaceInstance, and returns the corresponding devPodWorkspaceInstance object, and an error if there is any. -func (c *FakeDevPodWorkspaceInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(devpodworkspaceinstancesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstance), err -} - -// List takes label and field selectors, and returns the list of DevPodWorkspaceInstances that match those selectors. -func (c *FakeDevPodWorkspaceInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodWorkspaceInstanceList, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(devpodworkspaceinstancesResource, devpodworkspaceinstancesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodWorkspaceInstanceList{ListMeta: obj.(*v1.DevPodWorkspaceInstanceList).ListMeta} - for _, item := range obj.(*v1.DevPodWorkspaceInstanceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested devPodWorkspaceInstances. -func (c *FakeDevPodWorkspaceInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(devpodworkspaceinstancesResource, c.ns, opts)) - -} - -// Create takes the representation of a devPodWorkspaceInstance and creates it. Returns the server's representation of the devPodWorkspaceInstance, and an error, if there is any. -func (c *FakeDevPodWorkspaceInstances) Create(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(devpodworkspaceinstancesResource, c.ns, devPodWorkspaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstance), err -} - -// Update takes the representation of a devPodWorkspaceInstance and updates it. Returns the server's representation of the devPodWorkspaceInstance, and an error, if there is any. -func (c *FakeDevPodWorkspaceInstances) Update(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(devpodworkspaceinstancesResource, c.ns, devPodWorkspaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstance), err -} - -// Delete takes name of the devPodWorkspaceInstance and deletes it. Returns an error if one occurs. -func (c *FakeDevPodWorkspaceInstances) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(devpodworkspaceinstancesResource, c.ns, name, opts), &v1.DevPodWorkspaceInstance{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodWorkspaceInstances) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(devpodworkspaceinstancesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodWorkspaceInstanceList{}) - return err -} - -// Patch applies the patch and returns the patched devPodWorkspaceInstance. -func (c *FakeDevPodWorkspaceInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(devpodworkspaceinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +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, } - return obj.(*v1.DevPodWorkspaceInstance), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go new file mode 100644 index 00000000..4b58da69 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/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 index 206574ce..2d81aab0 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type FakeDevPodWorkspaceTemplates struct { +// fakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface +type fakeDevPodWorkspaceTemplates struct { + *gentype.FakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] Fake *FakeStorageV1 } -var devpodworkspacetemplatesResource = v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates") - -var devpodworkspacetemplatesKind = v1.SchemeGroupVersion.WithKind("DevPodWorkspaceTemplate") - -// Get takes name of the devPodWorkspaceTemplate, and returns the corresponding devPodWorkspaceTemplate object, and an error if there is any. -func (c *FakeDevPodWorkspaceTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(devpodworkspacetemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// List takes label and field selectors, and returns the list of DevPodWorkspaceTemplates that match those selectors. -func (c *FakeDevPodWorkspaceTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodWorkspaceTemplateList, err error) { - emptyResult := &v1.DevPodWorkspaceTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(devpodworkspacetemplatesResource, devpodworkspacetemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodWorkspaceTemplateList{ListMeta: obj.(*v1.DevPodWorkspaceTemplateList).ListMeta} - for _, item := range obj.(*v1.DevPodWorkspaceTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested devPodWorkspaceTemplates. -func (c *FakeDevPodWorkspaceTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(devpodworkspacetemplatesResource, opts)) -} - -// Create takes the representation of a devPodWorkspaceTemplate and creates it. Returns the server's representation of the devPodWorkspaceTemplate, and an error, if there is any. -func (c *FakeDevPodWorkspaceTemplates) Create(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(devpodworkspacetemplatesResource, devPodWorkspaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// Update takes the representation of a devPodWorkspaceTemplate and updates it. Returns the server's representation of the devPodWorkspaceTemplate, and an error, if there is any. -func (c *FakeDevPodWorkspaceTemplates) Update(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(devpodworkspacetemplatesResource, devPodWorkspaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeDevPodWorkspaceTemplates) UpdateStatus(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(devpodworkspacetemplatesResource, "status", devPodWorkspaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// Delete takes name of the devPodWorkspaceTemplate and deletes it. Returns an error if one occurs. -func (c *FakeDevPodWorkspaceTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(devpodworkspacetemplatesResource, name, opts), &v1.DevPodWorkspaceTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodWorkspaceTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(devpodworkspacetemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodWorkspaceTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched devPodWorkspaceTemplate. -func (c *FakeDevPodWorkspaceTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(devpodworkspacetemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +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, } - return obj.(*v1.DevPodWorkspaceTemplate), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_networkpeer.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_networkpeer.go index 87737e36..418051c0 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_networkpeer.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_networkpeer.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeNetworkPeers implements NetworkPeerInterface -type FakeNetworkPeers struct { +// fakeNetworkPeers implements NetworkPeerInterface +type fakeNetworkPeers struct { + *gentype.FakeClientWithList[*v1.NetworkPeer, *v1.NetworkPeerList] Fake *FakeStorageV1 } -var networkpeersResource = v1.SchemeGroupVersion.WithResource("networkpeers") - -var networkpeersKind = v1.SchemeGroupVersion.WithKind("NetworkPeer") - -// Get takes name of the networkPeer, and returns the corresponding networkPeer object, and an error if there is any. -func (c *FakeNetworkPeers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.NetworkPeer, err error) { - emptyResult := &v1.NetworkPeer{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(networkpeersResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.NetworkPeer), err -} - -// List takes label and field selectors, and returns the list of NetworkPeers that match those selectors. -func (c *FakeNetworkPeers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NetworkPeerList, err error) { - emptyResult := &v1.NetworkPeerList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(networkpeersResource, networkpeersKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.NetworkPeerList{ListMeta: obj.(*v1.NetworkPeerList).ListMeta} - for _, item := range obj.(*v1.NetworkPeerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested networkPeers. -func (c *FakeNetworkPeers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(networkpeersResource, opts)) -} - -// Create takes the representation of a networkPeer and creates it. Returns the server's representation of the networkPeer, and an error, if there is any. -func (c *FakeNetworkPeers) Create(ctx context.Context, networkPeer *v1.NetworkPeer, opts metav1.CreateOptions) (result *v1.NetworkPeer, err error) { - emptyResult := &v1.NetworkPeer{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(networkpeersResource, networkPeer, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.NetworkPeer), err -} - -// Update takes the representation of a networkPeer and updates it. Returns the server's representation of the networkPeer, and an error, if there is any. -func (c *FakeNetworkPeers) Update(ctx context.Context, networkPeer *v1.NetworkPeer, opts metav1.UpdateOptions) (result *v1.NetworkPeer, err error) { - emptyResult := &v1.NetworkPeer{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(networkpeersResource, networkPeer, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.NetworkPeer), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeNetworkPeers) UpdateStatus(ctx context.Context, networkPeer *v1.NetworkPeer, opts metav1.UpdateOptions) (result *v1.NetworkPeer, err error) { - emptyResult := &v1.NetworkPeer{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(networkpeersResource, "status", networkPeer, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.NetworkPeer), err -} - -// Delete takes name of the networkPeer and deletes it. Returns an error if one occurs. -func (c *FakeNetworkPeers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(networkpeersResource, name, opts), &v1.NetworkPeer{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeNetworkPeers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(networkpeersResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.NetworkPeerList{}) - return err -} - -// Patch applies the patch and returns the patched networkPeer. -func (c *FakeNetworkPeers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.NetworkPeer, err error) { - emptyResult := &v1.NetworkPeer{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(networkpeersResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeNetworkPeers(fake *FakeStorageV1) storagev1.NetworkPeerInterface { + return &fakeNetworkPeers{ + gentype.NewFakeClientWithList[*v1.NetworkPeer, *v1.NetworkPeerList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("networkpeers"), + v1.SchemeGroupVersion.WithKind("NetworkPeer"), + func() *v1.NetworkPeer { return &v1.NetworkPeer{} }, + func() *v1.NetworkPeerList { return &v1.NetworkPeerList{} }, + func(dst, src *v1.NetworkPeerList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NetworkPeerList) []*v1.NetworkPeer { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NetworkPeerList, items []*v1.NetworkPeer) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.NetworkPeer), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeclaim.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeclaim.go new file mode 100644 index 00000000..0a616de8 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeclaim.go @@ -0,0 +1,32 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeNodeClaims implements NodeClaimInterface +type fakeNodeClaims struct { + *gentype.FakeClientWithList[*v1.NodeClaim, *v1.NodeClaimList] + Fake *FakeStorageV1 +} + +func newFakeNodeClaims(fake *FakeStorageV1, namespace string) storagev1.NodeClaimInterface { + return &fakeNodeClaims{ + gentype.NewFakeClientWithList[*v1.NodeClaim, *v1.NodeClaimList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("nodeclaims"), + v1.SchemeGroupVersion.WithKind("NodeClaim"), + func() *v1.NodeClaim { return &v1.NodeClaim{} }, + func() *v1.NodeClaimList { return &v1.NodeClaimList{} }, + func(dst, src *v1.NodeClaimList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeClaimList) []*v1.NodeClaim { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeClaimList, items []*v1.NodeClaim) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeprovider.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeprovider.go new file mode 100644 index 00000000..a9b95616 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeprovider.go @@ -0,0 +1,34 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeNodeProviders implements NodeProviderInterface +type fakeNodeProviders struct { + *gentype.FakeClientWithList[*v1.NodeProvider, *v1.NodeProviderList] + Fake *FakeStorageV1 +} + +func newFakeNodeProviders(fake *FakeStorageV1) storagev1.NodeProviderInterface { + return &fakeNodeProviders{ + gentype.NewFakeClientWithList[*v1.NodeProvider, *v1.NodeProviderList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("nodeproviders"), + v1.SchemeGroupVersion.WithKind("NodeProvider"), + func() *v1.NodeProvider { return &v1.NodeProvider{} }, + func() *v1.NodeProviderList { return &v1.NodeProviderList{} }, + func(dst, src *v1.NodeProviderList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeProviderList) []*v1.NodeProvider { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeProviderList, items []*v1.NodeProvider) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodetype.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodetype.go new file mode 100644 index 00000000..981d9d58 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodetype.go @@ -0,0 +1,32 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeNodeTypes implements NodeTypeInterface +type fakeNodeTypes struct { + *gentype.FakeClientWithList[*v1.NodeType, *v1.NodeTypeList] + Fake *FakeStorageV1 +} + +func newFakeNodeTypes(fake *FakeStorageV1) storagev1.NodeTypeInterface { + return &fakeNodeTypes{ + gentype.NewFakeClientWithList[*v1.NodeType, *v1.NodeTypeList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("nodetypes"), + v1.SchemeGroupVersion.WithKind("NodeType"), + func() *v1.NodeType { return &v1.NodeType{} }, + func() *v1.NodeTypeList { return &v1.NodeTypeList{} }, + func(dst, src *v1.NodeTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeTypeList) []*v1.NodeType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeTypeList, items []*v1.NodeType) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_project.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_project.go index 252c5614..c3bd053a 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_project.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_project.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeProjects implements ProjectInterface -type FakeProjects struct { +// fakeProjects implements ProjectInterface +type fakeProjects struct { + *gentype.FakeClientWithList[*v1.Project, *v1.ProjectList] Fake *FakeStorageV1 } -var projectsResource = v1.SchemeGroupVersion.WithResource("projects") - -var projectsKind = v1.SchemeGroupVersion.WithKind("Project") - -// Get takes name of the project, and returns the corresponding project object, and an error if there is any. -func (c *FakeProjects) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Project, err error) { - emptyResult := &v1.Project{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(projectsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Project), err -} - -// List takes label and field selectors, and returns the list of Projects that match those selectors. -func (c *FakeProjects) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ProjectList, err error) { - emptyResult := &v1.ProjectList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(projectsResource, projectsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ProjectList{ListMeta: obj.(*v1.ProjectList).ListMeta} - for _, item := range obj.(*v1.ProjectList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested projects. -func (c *FakeProjects) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(projectsResource, opts)) -} - -// Create takes the representation of a project and creates it. Returns the server's representation of the project, and an error, if there is any. -func (c *FakeProjects) Create(ctx context.Context, project *v1.Project, opts metav1.CreateOptions) (result *v1.Project, err error) { - emptyResult := &v1.Project{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(projectsResource, project, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Project), err -} - -// Update takes the representation of a project and updates it. Returns the server's representation of the project, and an error, if there is any. -func (c *FakeProjects) Update(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (result *v1.Project, err error) { - emptyResult := &v1.Project{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(projectsResource, project, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Project), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeProjects) UpdateStatus(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (result *v1.Project, err error) { - emptyResult := &v1.Project{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(projectsResource, "status", project, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Project), err -} - -// Delete takes name of the project and deletes it. Returns an error if one occurs. -func (c *FakeProjects) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(projectsResource, name, opts), &v1.Project{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeProjects) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(projectsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ProjectList{}) - return err -} - -// Patch applies the patch and returns the patched project. -func (c *FakeProjects) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Project, err error) { - emptyResult := &v1.Project{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(projectsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeProjects(fake *FakeStorageV1) storagev1.ProjectInterface { + return &fakeProjects{ + gentype.NewFakeClientWithList[*v1.Project, *v1.ProjectList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("projects"), + v1.SchemeGroupVersion.WithKind("Project"), + func() *v1.Project { return &v1.Project{} }, + func() *v1.ProjectList { return &v1.ProjectList{} }, + func(dst, src *v1.ProjectList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ProjectList) []*v1.Project { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ProjectList, items []*v1.Project) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Project), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_runner.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_runner.go deleted file mode 100644 index 3e1fe5e9..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_runner.go +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeRunners implements RunnerInterface -type FakeRunners struct { - Fake *FakeStorageV1 -} - -var runnersResource = v1.SchemeGroupVersion.WithResource("runners") - -var runnersKind = v1.SchemeGroupVersion.WithKind("Runner") - -// Get takes name of the runner, and returns the corresponding runner object, and an error if there is any. -func (c *FakeRunners) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Runner, err error) { - emptyResult := &v1.Runner{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(runnersResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Runner), err -} - -// List takes label and field selectors, and returns the list of Runners that match those selectors. -func (c *FakeRunners) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RunnerList, err error) { - emptyResult := &v1.RunnerList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(runnersResource, runnersKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.RunnerList{ListMeta: obj.(*v1.RunnerList).ListMeta} - for _, item := range obj.(*v1.RunnerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested runners. -func (c *FakeRunners) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(runnersResource, opts)) -} - -// Create takes the representation of a runner and creates it. Returns the server's representation of the runner, and an error, if there is any. -func (c *FakeRunners) Create(ctx context.Context, runner *v1.Runner, opts metav1.CreateOptions) (result *v1.Runner, err error) { - emptyResult := &v1.Runner{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(runnersResource, runner, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Runner), err -} - -// Update takes the representation of a runner and updates it. Returns the server's representation of the runner, and an error, if there is any. -func (c *FakeRunners) Update(ctx context.Context, runner *v1.Runner, opts metav1.UpdateOptions) (result *v1.Runner, err error) { - emptyResult := &v1.Runner{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(runnersResource, runner, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Runner), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRunners) UpdateStatus(ctx context.Context, runner *v1.Runner, opts metav1.UpdateOptions) (result *v1.Runner, err error) { - emptyResult := &v1.Runner{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(runnersResource, "status", runner, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Runner), err -} - -// Delete takes name of the runner and deletes it. Returns an error if one occurs. -func (c *FakeRunners) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(runnersResource, name, opts), &v1.Runner{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRunners) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(runnersResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.RunnerList{}) - return err -} - -// Patch applies the patch and returns the patched runner. -func (c *FakeRunners) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Runner, err error) { - emptyResult := &v1.Runner{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(runnersResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Runner), err -} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_sharedsecret.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_sharedsecret.go index 33211d66..1f73b97b 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_sharedsecret.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_sharedsecret.go @@ -3,129 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSharedSecrets implements SharedSecretInterface -type FakeSharedSecrets struct { +// fakeSharedSecrets implements SharedSecretInterface +type fakeSharedSecrets struct { + *gentype.FakeClientWithList[*v1.SharedSecret, *v1.SharedSecretList] Fake *FakeStorageV1 - ns string -} - -var sharedsecretsResource = v1.SchemeGroupVersion.WithResource("sharedsecrets") - -var sharedsecretsKind = v1.SchemeGroupVersion.WithKind("SharedSecret") - -// Get takes name of the sharedSecret, and returns the corresponding sharedSecret object, and an error if there is any. -func (c *FakeSharedSecrets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(sharedsecretsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// List takes label and field selectors, and returns the list of SharedSecrets that match those selectors. -func (c *FakeSharedSecrets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SharedSecretList, err error) { - emptyResult := &v1.SharedSecretList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(sharedsecretsResource, sharedsecretsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SharedSecretList{ListMeta: obj.(*v1.SharedSecretList).ListMeta} - for _, item := range obj.(*v1.SharedSecretList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested sharedSecrets. -func (c *FakeSharedSecrets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(sharedsecretsResource, c.ns, opts)) - -} - -// Create takes the representation of a sharedSecret and creates it. Returns the server's representation of the sharedSecret, and an error, if there is any. -func (c *FakeSharedSecrets) Create(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.CreateOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(sharedsecretsResource, c.ns, sharedSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// Update takes the representation of a sharedSecret and updates it. Returns the server's representation of the sharedSecret, and an error, if there is any. -func (c *FakeSharedSecrets) Update(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(sharedsecretsResource, c.ns, sharedSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSharedSecrets) UpdateStatus(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(sharedsecretsResource, "status", c.ns, sharedSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// Delete takes name of the sharedSecret and deletes it. Returns an error if one occurs. -func (c *FakeSharedSecrets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(sharedsecretsResource, c.ns, name, opts), &v1.SharedSecret{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeSharedSecrets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(sharedsecretsResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SharedSecretList{}) - return err -} - -// Patch applies the patch and returns the patched sharedSecret. -func (c *FakeSharedSecrets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(sharedsecretsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeSharedSecrets(fake *FakeStorageV1, namespace string) storagev1.SharedSecretInterface { + return &fakeSharedSecrets{ + gentype.NewFakeClientWithList[*v1.SharedSecret, *v1.SharedSecretList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("sharedsecrets"), + v1.SchemeGroupVersion.WithKind("SharedSecret"), + func() *v1.SharedSecret { return &v1.SharedSecret{} }, + func() *v1.SharedSecretList { return &v1.SharedSecretList{} }, + func(dst, src *v1.SharedSecretList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SharedSecretList) []*v1.SharedSecret { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SharedSecretList, items []*v1.SharedSecret) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SharedSecret), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_spaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_spaceinstance.go index 8cca32f2..b07345d1 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_spaceinstance.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_spaceinstance.go @@ -3,129 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSpaceInstances implements SpaceInstanceInterface -type FakeSpaceInstances struct { +// fakeSpaceInstances implements SpaceInstanceInterface +type fakeSpaceInstances struct { + *gentype.FakeClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList] Fake *FakeStorageV1 - ns string -} - -var spaceinstancesResource = v1.SchemeGroupVersion.WithResource("spaceinstances") - -var spaceinstancesKind = v1.SchemeGroupVersion.WithKind("SpaceInstance") - -// Get takes name of the spaceInstance, and returns the corresponding spaceInstance object, and an error if there is any. -func (c *FakeSpaceInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(spaceinstancesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// List takes label and field selectors, and returns the list of SpaceInstances that match those selectors. -func (c *FakeSpaceInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SpaceInstanceList, err error) { - emptyResult := &v1.SpaceInstanceList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(spaceinstancesResource, spaceinstancesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SpaceInstanceList{ListMeta: obj.(*v1.SpaceInstanceList).ListMeta} - for _, item := range obj.(*v1.SpaceInstanceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested spaceInstances. -func (c *FakeSpaceInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(spaceinstancesResource, c.ns, opts)) - -} - -// Create takes the representation of a spaceInstance and creates it. Returns the server's representation of the spaceInstance, and an error, if there is any. -func (c *FakeSpaceInstances) Create(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.CreateOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(spaceinstancesResource, c.ns, spaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// Update takes the representation of a spaceInstance and updates it. Returns the server's representation of the spaceInstance, and an error, if there is any. -func (c *FakeSpaceInstances) Update(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.UpdateOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(spaceinstancesResource, c.ns, spaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSpaceInstances) UpdateStatus(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.UpdateOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(spaceinstancesResource, "status", c.ns, spaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// Delete takes name of the spaceInstance and deletes it. Returns an error if one occurs. -func (c *FakeSpaceInstances) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(spaceinstancesResource, c.ns, name, opts), &v1.SpaceInstance{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeSpaceInstances) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(spaceinstancesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SpaceInstanceList{}) - return err -} - -// Patch applies the patch and returns the patched spaceInstance. -func (c *FakeSpaceInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(spaceinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeSpaceInstances(fake *FakeStorageV1, namespace string) storagev1.SpaceInstanceInterface { + return &fakeSpaceInstances{ + gentype.NewFakeClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("spaceinstances"), + v1.SchemeGroupVersion.WithKind("SpaceInstance"), + func() *v1.SpaceInstance { return &v1.SpaceInstance{} }, + func() *v1.SpaceInstanceList { return &v1.SpaceInstanceList{} }, + func(dst, src *v1.SpaceInstanceList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SpaceInstanceList) []*v1.SpaceInstance { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SpaceInstanceList, items []*v1.SpaceInstance) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SpaceInstance), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_spacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_spacetemplate.go index fc6e7b27..c194078a 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_spacetemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_spacetemplate.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSpaceTemplates implements SpaceTemplateInterface -type FakeSpaceTemplates struct { +// fakeSpaceTemplates implements SpaceTemplateInterface +type fakeSpaceTemplates struct { + *gentype.FakeClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList] Fake *FakeStorageV1 } -var spacetemplatesResource = v1.SchemeGroupVersion.WithResource("spacetemplates") - -var spacetemplatesKind = v1.SchemeGroupVersion.WithKind("SpaceTemplate") - -// Get takes name of the spaceTemplate, and returns the corresponding spaceTemplate object, and an error if there is any. -func (c *FakeSpaceTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(spacetemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// List takes label and field selectors, and returns the list of SpaceTemplates that match those selectors. -func (c *FakeSpaceTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SpaceTemplateList, err error) { - emptyResult := &v1.SpaceTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(spacetemplatesResource, spacetemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SpaceTemplateList{ListMeta: obj.(*v1.SpaceTemplateList).ListMeta} - for _, item := range obj.(*v1.SpaceTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested spaceTemplates. -func (c *FakeSpaceTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(spacetemplatesResource, opts)) -} - -// Create takes the representation of a spaceTemplate and creates it. Returns the server's representation of the spaceTemplate, and an error, if there is any. -func (c *FakeSpaceTemplates) Create(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.CreateOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(spacetemplatesResource, spaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// Update takes the representation of a spaceTemplate and updates it. Returns the server's representation of the spaceTemplate, and an error, if there is any. -func (c *FakeSpaceTemplates) Update(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(spacetemplatesResource, spaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSpaceTemplates) UpdateStatus(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(spacetemplatesResource, "status", spaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// Delete takes name of the spaceTemplate and deletes it. Returns an error if one occurs. -func (c *FakeSpaceTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(spacetemplatesResource, name, opts), &v1.SpaceTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSpaceTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(spacetemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SpaceTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched spaceTemplate. -func (c *FakeSpaceTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(spacetemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeSpaceTemplates(fake *FakeStorageV1) storagev1.SpaceTemplateInterface { + return &fakeSpaceTemplates{ + gentype.NewFakeClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("spacetemplates"), + v1.SchemeGroupVersion.WithKind("SpaceTemplate"), + func() *v1.SpaceTemplate { return &v1.SpaceTemplate{} }, + func() *v1.SpaceTemplateList { return &v1.SpaceTemplateList{} }, + func(dst, src *v1.SpaceTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SpaceTemplateList) []*v1.SpaceTemplate { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SpaceTemplateList, items []*v1.SpaceTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SpaceTemplate), err } 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 81d78c2f..adfa7c98 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 @@ -13,79 +13,91 @@ type FakeStorageV1 struct { } func (c *FakeStorageV1) AccessKeys() v1.AccessKeyInterface { - return &FakeAccessKeys{c} + return newFakeAccessKeys(c) } func (c *FakeStorageV1) Apps() v1.AppInterface { - return &FakeApps{c} + return newFakeApps(c) } func (c *FakeStorageV1) Clusters() v1.ClusterInterface { - return &FakeClusters{c} + return newFakeClusters(c) } func (c *FakeStorageV1) ClusterAccesses() v1.ClusterAccessInterface { - return &FakeClusterAccesses{c} + return newFakeClusterAccesses(c) } func (c *FakeStorageV1) ClusterRoleTemplates() v1.ClusterRoleTemplateInterface { - return &FakeClusterRoleTemplates{c} + return newFakeClusterRoleTemplates(c) } func (c *FakeStorageV1) DevPodEnvironmentTemplates() v1.DevPodEnvironmentTemplateInterface { - return &FakeDevPodEnvironmentTemplates{c} + return newFakeDevPodEnvironmentTemplates(c) } func (c *FakeStorageV1) DevPodWorkspaceInstances(namespace string) v1.DevPodWorkspaceInstanceInterface { - return &FakeDevPodWorkspaceInstances{c, namespace} + return newFakeDevPodWorkspaceInstances(c, namespace) +} + +func (c *FakeStorageV1) DevPodWorkspacePresets() v1.DevPodWorkspacePresetInterface { + return newFakeDevPodWorkspacePresets(c) } func (c *FakeStorageV1) DevPodWorkspaceTemplates() v1.DevPodWorkspaceTemplateInterface { - return &FakeDevPodWorkspaceTemplates{c} + return newFakeDevPodWorkspaceTemplates(c) } func (c *FakeStorageV1) NetworkPeers() v1.NetworkPeerInterface { - return &FakeNetworkPeers{c} + return newFakeNetworkPeers(c) } -func (c *FakeStorageV1) Projects() v1.ProjectInterface { - return &FakeProjects{c} +func (c *FakeStorageV1) NodeClaims(namespace string) v1.NodeClaimInterface { + return newFakeNodeClaims(c, namespace) +} + +func (c *FakeStorageV1) NodeProviders() v1.NodeProviderInterface { + return newFakeNodeProviders(c) +} + +func (c *FakeStorageV1) NodeTypes() v1.NodeTypeInterface { + return newFakeNodeTypes(c) } -func (c *FakeStorageV1) Runners() v1.RunnerInterface { - return &FakeRunners{c} +func (c *FakeStorageV1) Projects() v1.ProjectInterface { + return newFakeProjects(c) } func (c *FakeStorageV1) SharedSecrets(namespace string) v1.SharedSecretInterface { - return &FakeSharedSecrets{c, namespace} + return newFakeSharedSecrets(c, namespace) } func (c *FakeStorageV1) SpaceInstances(namespace string) v1.SpaceInstanceInterface { - return &FakeSpaceInstances{c, namespace} + return newFakeSpaceInstances(c, namespace) } func (c *FakeStorageV1) SpaceTemplates() v1.SpaceTemplateInterface { - return &FakeSpaceTemplates{c} + return newFakeSpaceTemplates(c) } func (c *FakeStorageV1) Tasks() v1.TaskInterface { - return &FakeTasks{c} + return newFakeTasks(c) } func (c *FakeStorageV1) Teams() v1.TeamInterface { - return &FakeTeams{c} + return newFakeTeams(c) } func (c *FakeStorageV1) Users() v1.UserInterface { - return &FakeUsers{c} + return newFakeUsers(c) } func (c *FakeStorageV1) VirtualClusterInstances(namespace string) v1.VirtualClusterInstanceInterface { - return &FakeVirtualClusterInstances{c, namespace} + return newFakeVirtualClusterInstances(c, namespace) } func (c *FakeStorageV1) VirtualClusterTemplates() v1.VirtualClusterTemplateInterface { - return &FakeVirtualClusterTemplates{c} + return newFakeVirtualClusterTemplates(c) } // RESTClient returns a RESTClient that is used to communicate diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_task.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_task.go index 7ece4843..da83086a 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_task.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_task.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeTasks implements TaskInterface -type FakeTasks struct { +// fakeTasks implements TaskInterface +type fakeTasks struct { + *gentype.FakeClientWithList[*v1.Task, *v1.TaskList] Fake *FakeStorageV1 } -var tasksResource = v1.SchemeGroupVersion.WithResource("tasks") - -var tasksKind = v1.SchemeGroupVersion.WithKind("Task") - -// Get takes name of the task, and returns the corresponding task object, and an error if there is any. -func (c *FakeTasks) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(tasksResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Task), err -} - -// List takes label and field selectors, and returns the list of Tasks that match those selectors. -func (c *FakeTasks) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TaskList, err error) { - emptyResult := &v1.TaskList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(tasksResource, tasksKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TaskList{ListMeta: obj.(*v1.TaskList).ListMeta} - for _, item := range obj.(*v1.TaskList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested tasks. -func (c *FakeTasks) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(tasksResource, opts)) -} - -// Create takes the representation of a task and creates it. Returns the server's representation of the task, and an error, if there is any. -func (c *FakeTasks) Create(ctx context.Context, task *v1.Task, opts metav1.CreateOptions) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(tasksResource, task, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Task), err -} - -// Update takes the representation of a task and updates it. Returns the server's representation of the task, and an error, if there is any. -func (c *FakeTasks) Update(ctx context.Context, task *v1.Task, opts metav1.UpdateOptions) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(tasksResource, task, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Task), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeTasks) UpdateStatus(ctx context.Context, task *v1.Task, opts metav1.UpdateOptions) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(tasksResource, "status", task, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Task), err -} - -// Delete takes name of the task and deletes it. Returns an error if one occurs. -func (c *FakeTasks) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(tasksResource, name, opts), &v1.Task{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeTasks) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(tasksResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TaskList{}) - return err -} - -// Patch applies the patch and returns the patched task. -func (c *FakeTasks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(tasksResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeTasks(fake *FakeStorageV1) storagev1.TaskInterface { + return &fakeTasks{ + gentype.NewFakeClientWithList[*v1.Task, *v1.TaskList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("tasks"), + v1.SchemeGroupVersion.WithKind("Task"), + func() *v1.Task { return &v1.Task{} }, + func() *v1.TaskList { return &v1.TaskList{} }, + func(dst, src *v1.TaskList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TaskList) []*v1.Task { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.TaskList, items []*v1.Task) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Task), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_team.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_team.go index 9f100a8a..1f586e53 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_team.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_team.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeTeams implements TeamInterface -type FakeTeams struct { +// fakeTeams implements TeamInterface +type fakeTeams struct { + *gentype.FakeClientWithList[*v1.Team, *v1.TeamList] Fake *FakeStorageV1 } -var teamsResource = v1.SchemeGroupVersion.WithResource("teams") - -var teamsKind = v1.SchemeGroupVersion.WithKind("Team") - -// Get takes name of the team, and returns the corresponding team object, and an error if there is any. -func (c *FakeTeams) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(teamsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Team), err -} - -// List takes label and field selectors, and returns the list of Teams that match those selectors. -func (c *FakeTeams) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TeamList, err error) { - emptyResult := &v1.TeamList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(teamsResource, teamsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TeamList{ListMeta: obj.(*v1.TeamList).ListMeta} - for _, item := range obj.(*v1.TeamList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested teams. -func (c *FakeTeams) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(teamsResource, opts)) -} - -// Create takes the representation of a team and creates it. Returns the server's representation of the team, and an error, if there is any. -func (c *FakeTeams) Create(ctx context.Context, team *v1.Team, opts metav1.CreateOptions) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(teamsResource, team, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Team), err -} - -// Update takes the representation of a team and updates it. Returns the server's representation of the team, and an error, if there is any. -func (c *FakeTeams) Update(ctx context.Context, team *v1.Team, opts metav1.UpdateOptions) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(teamsResource, team, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Team), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeTeams) UpdateStatus(ctx context.Context, team *v1.Team, opts metav1.UpdateOptions) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(teamsResource, "status", team, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Team), err -} - -// Delete takes name of the team and deletes it. Returns an error if one occurs. -func (c *FakeTeams) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(teamsResource, name, opts), &v1.Team{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeTeams) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(teamsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TeamList{}) - return err -} - -// Patch applies the patch and returns the patched team. -func (c *FakeTeams) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(teamsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeTeams(fake *FakeStorageV1) storagev1.TeamInterface { + return &fakeTeams{ + gentype.NewFakeClientWithList[*v1.Team, *v1.TeamList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("teams"), + v1.SchemeGroupVersion.WithKind("Team"), + func() *v1.Team { return &v1.Team{} }, + func() *v1.TeamList { return &v1.TeamList{} }, + func(dst, src *v1.TeamList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TeamList) []*v1.Team { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.TeamList, items []*v1.Team) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Team), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_user.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_user.go index d783f35d..7c6dbd54 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_user.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_user.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeUsers implements UserInterface -type FakeUsers struct { +// fakeUsers implements UserInterface +type fakeUsers struct { + *gentype.FakeClientWithList[*v1.User, *v1.UserList] Fake *FakeStorageV1 } -var usersResource = v1.SchemeGroupVersion.WithResource("users") - -var usersKind = v1.SchemeGroupVersion.WithKind("User") - -// Get takes name of the user, and returns the corresponding user object, and an error if there is any. -func (c *FakeUsers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.User, err error) { - emptyResult := &v1.User{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(usersResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.User), err -} - -// List takes label and field selectors, and returns the list of Users that match those selectors. -func (c *FakeUsers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.UserList, err error) { - emptyResult := &v1.UserList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(usersResource, usersKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.UserList{ListMeta: obj.(*v1.UserList).ListMeta} - for _, item := range obj.(*v1.UserList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested users. -func (c *FakeUsers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(usersResource, opts)) -} - -// Create takes the representation of a user and creates it. Returns the server's representation of the user, and an error, if there is any. -func (c *FakeUsers) Create(ctx context.Context, user *v1.User, opts metav1.CreateOptions) (result *v1.User, err error) { - emptyResult := &v1.User{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(usersResource, user, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.User), err -} - -// Update takes the representation of a user and updates it. Returns the server's representation of the user, and an error, if there is any. -func (c *FakeUsers) Update(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) (result *v1.User, err error) { - emptyResult := &v1.User{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(usersResource, user, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.User), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeUsers) UpdateStatus(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) (result *v1.User, err error) { - emptyResult := &v1.User{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(usersResource, "status", user, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.User), err -} - -// Delete takes name of the user and deletes it. Returns an error if one occurs. -func (c *FakeUsers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(usersResource, name, opts), &v1.User{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeUsers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(usersResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.UserList{}) - return err -} - -// Patch applies the patch and returns the patched user. -func (c *FakeUsers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.User, err error) { - emptyResult := &v1.User{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(usersResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeUsers(fake *FakeStorageV1) storagev1.UserInterface { + return &fakeUsers{ + gentype.NewFakeClientWithList[*v1.User, *v1.UserList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("users"), + v1.SchemeGroupVersion.WithKind("User"), + func() *v1.User { return &v1.User{} }, + func() *v1.UserList { return &v1.UserList{} }, + func(dst, src *v1.UserList) { dst.ListMeta = src.ListMeta }, + func(list *v1.UserList) []*v1.User { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.UserList, items []*v1.User) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.User), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_virtualclusterinstance.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_virtualclusterinstance.go index 65e53668..8108f108 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_virtualclusterinstance.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_virtualclusterinstance.go @@ -3,116 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeVirtualClusterInstances implements VirtualClusterInstanceInterface -type FakeVirtualClusterInstances struct { +// fakeVirtualClusterInstances implements VirtualClusterInstanceInterface +type fakeVirtualClusterInstances struct { + *gentype.FakeClientWithList[*v1.VirtualClusterInstance, *v1.VirtualClusterInstanceList] Fake *FakeStorageV1 - ns string -} - -var virtualclusterinstancesResource = v1.SchemeGroupVersion.WithResource("virtualclusterinstances") - -var virtualclusterinstancesKind = v1.SchemeGroupVersion.WithKind("VirtualClusterInstance") - -// Get takes name of the virtualClusterInstance, and returns the corresponding virtualClusterInstance object, and an error if there is any. -func (c *FakeVirtualClusterInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VirtualClusterInstance, err error) { - emptyResult := &v1.VirtualClusterInstance{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(virtualclusterinstancesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterInstance), err -} - -// List takes label and field selectors, and returns the list of VirtualClusterInstances that match those selectors. -func (c *FakeVirtualClusterInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VirtualClusterInstanceList, err error) { - emptyResult := &v1.VirtualClusterInstanceList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(virtualclusterinstancesResource, virtualclusterinstancesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.VirtualClusterInstanceList{ListMeta: obj.(*v1.VirtualClusterInstanceList).ListMeta} - for _, item := range obj.(*v1.VirtualClusterInstanceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested virtualClusterInstances. -func (c *FakeVirtualClusterInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(virtualclusterinstancesResource, c.ns, opts)) - -} - -// Create takes the representation of a virtualClusterInstance and creates it. Returns the server's representation of the virtualClusterInstance, and an error, if there is any. -func (c *FakeVirtualClusterInstances) Create(ctx context.Context, virtualClusterInstance *v1.VirtualClusterInstance, opts metav1.CreateOptions) (result *v1.VirtualClusterInstance, err error) { - emptyResult := &v1.VirtualClusterInstance{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(virtualclusterinstancesResource, c.ns, virtualClusterInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterInstance), err -} - -// Update takes the representation of a virtualClusterInstance and updates it. Returns the server's representation of the virtualClusterInstance, and an error, if there is any. -func (c *FakeVirtualClusterInstances) Update(ctx context.Context, virtualClusterInstance *v1.VirtualClusterInstance, opts metav1.UpdateOptions) (result *v1.VirtualClusterInstance, err error) { - emptyResult := &v1.VirtualClusterInstance{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(virtualclusterinstancesResource, c.ns, virtualClusterInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterInstance), err -} - -// Delete takes name of the virtualClusterInstance and deletes it. Returns an error if one occurs. -func (c *FakeVirtualClusterInstances) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(virtualclusterinstancesResource, c.ns, name, opts), &v1.VirtualClusterInstance{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeVirtualClusterInstances) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(virtualclusterinstancesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.VirtualClusterInstanceList{}) - return err -} - -// Patch applies the patch and returns the patched virtualClusterInstance. -func (c *FakeVirtualClusterInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VirtualClusterInstance, err error) { - emptyResult := &v1.VirtualClusterInstance{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(virtualclusterinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeVirtualClusterInstances(fake *FakeStorageV1, namespace string) storagev1.VirtualClusterInstanceInterface { + return &fakeVirtualClusterInstances{ + gentype.NewFakeClientWithList[*v1.VirtualClusterInstance, *v1.VirtualClusterInstanceList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("virtualclusterinstances"), + v1.SchemeGroupVersion.WithKind("VirtualClusterInstance"), + func() *v1.VirtualClusterInstance { return &v1.VirtualClusterInstance{} }, + func() *v1.VirtualClusterInstanceList { return &v1.VirtualClusterInstanceList{} }, + func(dst, src *v1.VirtualClusterInstanceList) { dst.ListMeta = src.ListMeta }, + func(list *v1.VirtualClusterInstanceList) []*v1.VirtualClusterInstance { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.VirtualClusterInstanceList, items []*v1.VirtualClusterInstance) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.VirtualClusterInstance), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_virtualclustertemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_virtualclustertemplate.go index 6a21d118..806ce5b7 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_virtualclustertemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_virtualclustertemplate.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeVirtualClusterTemplates implements VirtualClusterTemplateInterface -type FakeVirtualClusterTemplates struct { +// fakeVirtualClusterTemplates implements VirtualClusterTemplateInterface +type fakeVirtualClusterTemplates struct { + *gentype.FakeClientWithList[*v1.VirtualClusterTemplate, *v1.VirtualClusterTemplateList] Fake *FakeStorageV1 } -var virtualclustertemplatesResource = v1.SchemeGroupVersion.WithResource("virtualclustertemplates") - -var virtualclustertemplatesKind = v1.SchemeGroupVersion.WithKind("VirtualClusterTemplate") - -// Get takes name of the virtualClusterTemplate, and returns the corresponding virtualClusterTemplate object, and an error if there is any. -func (c *FakeVirtualClusterTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VirtualClusterTemplate, err error) { - emptyResult := &v1.VirtualClusterTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(virtualclustertemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterTemplate), err -} - -// List takes label and field selectors, and returns the list of VirtualClusterTemplates that match those selectors. -func (c *FakeVirtualClusterTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VirtualClusterTemplateList, err error) { - emptyResult := &v1.VirtualClusterTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(virtualclustertemplatesResource, virtualclustertemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.VirtualClusterTemplateList{ListMeta: obj.(*v1.VirtualClusterTemplateList).ListMeta} - for _, item := range obj.(*v1.VirtualClusterTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested virtualClusterTemplates. -func (c *FakeVirtualClusterTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(virtualclustertemplatesResource, opts)) -} - -// Create takes the representation of a virtualClusterTemplate and creates it. Returns the server's representation of the virtualClusterTemplate, and an error, if there is any. -func (c *FakeVirtualClusterTemplates) Create(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.CreateOptions) (result *v1.VirtualClusterTemplate, err error) { - emptyResult := &v1.VirtualClusterTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(virtualclustertemplatesResource, virtualClusterTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterTemplate), err -} - -// Update takes the representation of a virtualClusterTemplate and updates it. Returns the server's representation of the virtualClusterTemplate, and an error, if there is any. -func (c *FakeVirtualClusterTemplates) Update(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.UpdateOptions) (result *v1.VirtualClusterTemplate, err error) { - emptyResult := &v1.VirtualClusterTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(virtualclustertemplatesResource, virtualClusterTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeVirtualClusterTemplates) UpdateStatus(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.UpdateOptions) (result *v1.VirtualClusterTemplate, err error) { - emptyResult := &v1.VirtualClusterTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(virtualclustertemplatesResource, "status", virtualClusterTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterTemplate), err -} - -// Delete takes name of the virtualClusterTemplate and deletes it. Returns an error if one occurs. -func (c *FakeVirtualClusterTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(virtualclustertemplatesResource, name, opts), &v1.VirtualClusterTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeVirtualClusterTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(virtualclustertemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.VirtualClusterTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched virtualClusterTemplate. -func (c *FakeVirtualClusterTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VirtualClusterTemplate, err error) { - emptyResult := &v1.VirtualClusterTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(virtualclustertemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeVirtualClusterTemplates(fake *FakeStorageV1) storagev1.VirtualClusterTemplateInterface { + return &fakeVirtualClusterTemplates{ + gentype.NewFakeClientWithList[*v1.VirtualClusterTemplate, *v1.VirtualClusterTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("virtualclustertemplates"), + v1.SchemeGroupVersion.WithKind("VirtualClusterTemplate"), + func() *v1.VirtualClusterTemplate { return &v1.VirtualClusterTemplate{} }, + func() *v1.VirtualClusterTemplateList { return &v1.VirtualClusterTemplateList{} }, + func(dst, src *v1.VirtualClusterTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.VirtualClusterTemplateList) []*v1.VirtualClusterTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.VirtualClusterTemplateList, items []*v1.VirtualClusterTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.VirtualClusterTemplate), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go index 6faed075..17b6bd7c 100644 --- a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go @@ -16,13 +16,19 @@ type DevPodEnvironmentTemplateExpansion interface{} type DevPodWorkspaceInstanceExpansion interface{} +type DevPodWorkspacePresetExpansion interface{} + type DevPodWorkspaceTemplateExpansion interface{} type NetworkPeerExpansion interface{} -type ProjectExpansion interface{} +type NodeClaimExpansion interface{} + +type NodeProviderExpansion interface{} -type RunnerExpansion interface{} +type NodeTypeExpansion interface{} + +type ProjectExpansion interface{} type SharedSecretExpansion interface{} diff --git a/pkg/clientset/versioned/typed/storage/v1/networkpeer.go b/pkg/clientset/versioned/typed/storage/v1/networkpeer.go index 8554a41f..d0400463 100644 --- a/pkg/clientset/versioned/typed/storage/v1/networkpeer.go +++ b/pkg/clientset/versioned/typed/storage/v1/networkpeer.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type NetworkPeersGetter interface { // NetworkPeerInterface has methods to work with NetworkPeer resources. type NetworkPeerInterface interface { - Create(ctx context.Context, networkPeer *v1.NetworkPeer, opts metav1.CreateOptions) (*v1.NetworkPeer, error) - Update(ctx context.Context, networkPeer *v1.NetworkPeer, opts metav1.UpdateOptions) (*v1.NetworkPeer, error) + Create(ctx context.Context, networkPeer *storagev1.NetworkPeer, opts metav1.CreateOptions) (*storagev1.NetworkPeer, error) + Update(ctx context.Context, networkPeer *storagev1.NetworkPeer, opts metav1.UpdateOptions) (*storagev1.NetworkPeer, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, networkPeer *v1.NetworkPeer, opts metav1.UpdateOptions) (*v1.NetworkPeer, error) + UpdateStatus(ctx context.Context, networkPeer *storagev1.NetworkPeer, opts metav1.UpdateOptions) (*storagev1.NetworkPeer, 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) (*v1.NetworkPeer, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.NetworkPeerList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.NetworkPeer, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.NetworkPeerList, 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 *v1.NetworkPeer, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.NetworkPeer, err error) NetworkPeerExpansion } // networkPeers implements NetworkPeerInterface type networkPeers struct { - *gentype.ClientWithList[*v1.NetworkPeer, *v1.NetworkPeerList] + *gentype.ClientWithList[*storagev1.NetworkPeer, *storagev1.NetworkPeerList] } // newNetworkPeers returns a NetworkPeers func newNetworkPeers(c *StorageV1Client) *networkPeers { return &networkPeers{ - gentype.NewClientWithList[*v1.NetworkPeer, *v1.NetworkPeerList]( + gentype.NewClientWithList[*storagev1.NetworkPeer, *storagev1.NetworkPeerList]( "networkpeers", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.NetworkPeer { return &v1.NetworkPeer{} }, - func() *v1.NetworkPeerList { return &v1.NetworkPeerList{} }), + func() *storagev1.NetworkPeer { return &storagev1.NetworkPeer{} }, + func() *storagev1.NetworkPeerList { return &storagev1.NetworkPeerList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/nodeclaim.go b/pkg/clientset/versioned/typed/storage/v1/nodeclaim.go new file mode 100644 index 00000000..afe5c41d --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/nodeclaim.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + scheme "github.com/loft-sh/api/v4/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" +) + +// NodeClaimsGetter has a method to return a NodeClaimInterface. +// A group's client should implement this interface. +type NodeClaimsGetter interface { + NodeClaims(namespace string) NodeClaimInterface +} + +// NodeClaimInterface has methods to work with NodeClaim resources. +type NodeClaimInterface interface { + Create(ctx context.Context, nodeClaim *storagev1.NodeClaim, opts metav1.CreateOptions) (*storagev1.NodeClaim, error) + Update(ctx context.Context, nodeClaim *storagev1.NodeClaim, opts metav1.UpdateOptions) (*storagev1.NodeClaim, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeClaim *storagev1.NodeClaim, opts metav1.UpdateOptions) (*storagev1.NodeClaim, 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.NodeClaim, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.NodeClaimList, 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.NodeClaim, err error) + NodeClaimExpansion +} + +// nodeClaims implements NodeClaimInterface +type nodeClaims struct { + *gentype.ClientWithList[*storagev1.NodeClaim, *storagev1.NodeClaimList] +} + +// newNodeClaims returns a NodeClaims +func newNodeClaims(c *StorageV1Client, namespace string) *nodeClaims { + return &nodeClaims{ + gentype.NewClientWithList[*storagev1.NodeClaim, *storagev1.NodeClaimList]( + "nodeclaims", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *storagev1.NodeClaim { return &storagev1.NodeClaim{} }, + func() *storagev1.NodeClaimList { return &storagev1.NodeClaimList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/nodeprovider.go b/pkg/clientset/versioned/typed/storage/v1/nodeprovider.go new file mode 100644 index 00000000..626673ce --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/nodeprovider.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + scheme "github.com/loft-sh/api/v4/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" +) + +// NodeProvidersGetter has a method to return a NodeProviderInterface. +// A group's client should implement this interface. +type NodeProvidersGetter interface { + NodeProviders() NodeProviderInterface +} + +// NodeProviderInterface has methods to work with NodeProvider resources. +type NodeProviderInterface interface { + Create(ctx context.Context, nodeProvider *storagev1.NodeProvider, opts metav1.CreateOptions) (*storagev1.NodeProvider, error) + Update(ctx context.Context, nodeProvider *storagev1.NodeProvider, opts metav1.UpdateOptions) (*storagev1.NodeProvider, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeProvider *storagev1.NodeProvider, opts metav1.UpdateOptions) (*storagev1.NodeProvider, 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.NodeProvider, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.NodeProviderList, 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.NodeProvider, err error) + NodeProviderExpansion +} + +// nodeProviders implements NodeProviderInterface +type nodeProviders struct { + *gentype.ClientWithList[*storagev1.NodeProvider, *storagev1.NodeProviderList] +} + +// newNodeProviders returns a NodeProviders +func newNodeProviders(c *StorageV1Client) *nodeProviders { + return &nodeProviders{ + gentype.NewClientWithList[*storagev1.NodeProvider, *storagev1.NodeProviderList]( + "nodeproviders", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *storagev1.NodeProvider { return &storagev1.NodeProvider{} }, + func() *storagev1.NodeProviderList { return &storagev1.NodeProviderList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/nodetype.go b/pkg/clientset/versioned/typed/storage/v1/nodetype.go new file mode 100644 index 00000000..82376efe --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/nodetype.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + scheme "github.com/loft-sh/api/v4/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" +) + +// NodeTypesGetter has a method to return a NodeTypeInterface. +// A group's client should implement this interface. +type NodeTypesGetter interface { + NodeTypes() NodeTypeInterface +} + +// NodeTypeInterface has methods to work with NodeType resources. +type NodeTypeInterface interface { + Create(ctx context.Context, nodeType *storagev1.NodeType, opts metav1.CreateOptions) (*storagev1.NodeType, error) + Update(ctx context.Context, nodeType *storagev1.NodeType, opts metav1.UpdateOptions) (*storagev1.NodeType, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeType *storagev1.NodeType, opts metav1.UpdateOptions) (*storagev1.NodeType, 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.NodeType, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.NodeTypeList, 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.NodeType, err error) + NodeTypeExpansion +} + +// nodeTypes implements NodeTypeInterface +type nodeTypes struct { + *gentype.ClientWithList[*storagev1.NodeType, *storagev1.NodeTypeList] +} + +// newNodeTypes returns a NodeTypes +func newNodeTypes(c *StorageV1Client) *nodeTypes { + return &nodeTypes{ + gentype.NewClientWithList[*storagev1.NodeType, *storagev1.NodeTypeList]( + "nodetypes", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *storagev1.NodeType { return &storagev1.NodeType{} }, + func() *storagev1.NodeTypeList { return &storagev1.NodeTypeList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/project.go b/pkg/clientset/versioned/typed/storage/v1/project.go index 5280f628..1d529c35 100644 --- a/pkg/clientset/versioned/typed/storage/v1/project.go +++ b/pkg/clientset/versioned/typed/storage/v1/project.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type ProjectsGetter interface { // ProjectInterface has methods to work with Project resources. type ProjectInterface interface { - Create(ctx context.Context, project *v1.Project, opts metav1.CreateOptions) (*v1.Project, error) - Update(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (*v1.Project, error) + Create(ctx context.Context, project *storagev1.Project, opts metav1.CreateOptions) (*storagev1.Project, error) + Update(ctx context.Context, project *storagev1.Project, opts metav1.UpdateOptions) (*storagev1.Project, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (*v1.Project, error) + UpdateStatus(ctx context.Context, project *storagev1.Project, opts metav1.UpdateOptions) (*storagev1.Project, 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) (*v1.Project, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ProjectList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.Project, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.ProjectList, 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 *v1.Project, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.Project, err error) ProjectExpansion } // projects implements ProjectInterface type projects struct { - *gentype.ClientWithList[*v1.Project, *v1.ProjectList] + *gentype.ClientWithList[*storagev1.Project, *storagev1.ProjectList] } // newProjects returns a Projects func newProjects(c *StorageV1Client) *projects { return &projects{ - gentype.NewClientWithList[*v1.Project, *v1.ProjectList]( + gentype.NewClientWithList[*storagev1.Project, *storagev1.ProjectList]( "projects", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Project { return &v1.Project{} }, - func() *v1.ProjectList { return &v1.ProjectList{} }), + func() *storagev1.Project { return &storagev1.Project{} }, + func() *storagev1.ProjectList { return &storagev1.ProjectList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/runner.go b/pkg/clientset/versioned/typed/storage/v1/runner.go deleted file mode 100644 index 7b8dd485..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/runner.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - "context" - - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - scheme "github.com/loft-sh/api/v4/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" -) - -// RunnersGetter has a method to return a RunnerInterface. -// A group's client should implement this interface. -type RunnersGetter interface { - Runners() RunnerInterface -} - -// RunnerInterface has methods to work with Runner resources. -type RunnerInterface interface { - Create(ctx context.Context, runner *v1.Runner, opts metav1.CreateOptions) (*v1.Runner, error) - Update(ctx context.Context, runner *v1.Runner, opts metav1.UpdateOptions) (*v1.Runner, error) - // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, runner *v1.Runner, opts metav1.UpdateOptions) (*v1.Runner, 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) (*v1.Runner, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.RunnerList, 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 *v1.Runner, err error) - RunnerExpansion -} - -// runners implements RunnerInterface -type runners struct { - *gentype.ClientWithList[*v1.Runner, *v1.RunnerList] -} - -// newRunners returns a Runners -func newRunners(c *StorageV1Client) *runners { - return &runners{ - gentype.NewClientWithList[*v1.Runner, *v1.RunnerList]( - "runners", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *v1.Runner { return &v1.Runner{} }, - func() *v1.RunnerList { return &v1.RunnerList{} }), - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/sharedsecret.go b/pkg/clientset/versioned/typed/storage/v1/sharedsecret.go index 6e4dbd30..75727b5f 100644 --- a/pkg/clientset/versioned/typed/storage/v1/sharedsecret.go +++ b/pkg/clientset/versioned/typed/storage/v1/sharedsecret.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SharedSecretsGetter interface { // SharedSecretInterface has methods to work with SharedSecret resources. type SharedSecretInterface interface { - Create(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.CreateOptions) (*v1.SharedSecret, error) - Update(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (*v1.SharedSecret, error) + Create(ctx context.Context, sharedSecret *storagev1.SharedSecret, opts metav1.CreateOptions) (*storagev1.SharedSecret, error) + Update(ctx context.Context, sharedSecret *storagev1.SharedSecret, opts metav1.UpdateOptions) (*storagev1.SharedSecret, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (*v1.SharedSecret, error) + UpdateStatus(ctx context.Context, sharedSecret *storagev1.SharedSecret, opts metav1.UpdateOptions) (*storagev1.SharedSecret, 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) (*v1.SharedSecret, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SharedSecretList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.SharedSecret, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.SharedSecretList, 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 *v1.SharedSecret, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.SharedSecret, err error) SharedSecretExpansion } // sharedSecrets implements SharedSecretInterface type sharedSecrets struct { - *gentype.ClientWithList[*v1.SharedSecret, *v1.SharedSecretList] + *gentype.ClientWithList[*storagev1.SharedSecret, *storagev1.SharedSecretList] } // newSharedSecrets returns a SharedSecrets func newSharedSecrets(c *StorageV1Client, namespace string) *sharedSecrets { return &sharedSecrets{ - gentype.NewClientWithList[*v1.SharedSecret, *v1.SharedSecretList]( + gentype.NewClientWithList[*storagev1.SharedSecret, *storagev1.SharedSecretList]( "sharedsecrets", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.SharedSecret { return &v1.SharedSecret{} }, - func() *v1.SharedSecretList { return &v1.SharedSecretList{} }), + func() *storagev1.SharedSecret { return &storagev1.SharedSecret{} }, + func() *storagev1.SharedSecretList { return &storagev1.SharedSecretList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/spaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/spaceinstance.go index 5a9d9947..b53139cc 100644 --- a/pkg/clientset/versioned/typed/storage/v1/spaceinstance.go +++ b/pkg/clientset/versioned/typed/storage/v1/spaceinstance.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SpaceInstancesGetter interface { // SpaceInstanceInterface has methods to work with SpaceInstance resources. type SpaceInstanceInterface interface { - Create(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.CreateOptions) (*v1.SpaceInstance, error) - Update(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.UpdateOptions) (*v1.SpaceInstance, error) + Create(ctx context.Context, spaceInstance *storagev1.SpaceInstance, opts metav1.CreateOptions) (*storagev1.SpaceInstance, error) + Update(ctx context.Context, spaceInstance *storagev1.SpaceInstance, opts metav1.UpdateOptions) (*storagev1.SpaceInstance, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.UpdateOptions) (*v1.SpaceInstance, error) + UpdateStatus(ctx context.Context, spaceInstance *storagev1.SpaceInstance, opts metav1.UpdateOptions) (*storagev1.SpaceInstance, 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) (*v1.SpaceInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SpaceInstanceList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.SpaceInstance, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.SpaceInstanceList, 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 *v1.SpaceInstance, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.SpaceInstance, err error) SpaceInstanceExpansion } // spaceInstances implements SpaceInstanceInterface type spaceInstances struct { - *gentype.ClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList] + *gentype.ClientWithList[*storagev1.SpaceInstance, *storagev1.SpaceInstanceList] } // newSpaceInstances returns a SpaceInstances func newSpaceInstances(c *StorageV1Client, namespace string) *spaceInstances { return &spaceInstances{ - gentype.NewClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList]( + gentype.NewClientWithList[*storagev1.SpaceInstance, *storagev1.SpaceInstanceList]( "spaceinstances", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.SpaceInstance { return &v1.SpaceInstance{} }, - func() *v1.SpaceInstanceList { return &v1.SpaceInstanceList{} }), + func() *storagev1.SpaceInstance { return &storagev1.SpaceInstance{} }, + func() *storagev1.SpaceInstanceList { return &storagev1.SpaceInstanceList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/spacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/spacetemplate.go index fca555b1..b32dc5df 100644 --- a/pkg/clientset/versioned/typed/storage/v1/spacetemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/spacetemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SpaceTemplatesGetter interface { // SpaceTemplateInterface has methods to work with SpaceTemplate resources. type SpaceTemplateInterface interface { - Create(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.CreateOptions) (*v1.SpaceTemplate, error) - Update(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (*v1.SpaceTemplate, error) + Create(ctx context.Context, spaceTemplate *storagev1.SpaceTemplate, opts metav1.CreateOptions) (*storagev1.SpaceTemplate, error) + Update(ctx context.Context, spaceTemplate *storagev1.SpaceTemplate, opts metav1.UpdateOptions) (*storagev1.SpaceTemplate, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (*v1.SpaceTemplate, error) + UpdateStatus(ctx context.Context, spaceTemplate *storagev1.SpaceTemplate, opts metav1.UpdateOptions) (*storagev1.SpaceTemplate, 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) (*v1.SpaceTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SpaceTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.SpaceTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.SpaceTemplateList, 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 *v1.SpaceTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.SpaceTemplate, err error) SpaceTemplateExpansion } // spaceTemplates implements SpaceTemplateInterface type spaceTemplates struct { - *gentype.ClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList] + *gentype.ClientWithList[*storagev1.SpaceTemplate, *storagev1.SpaceTemplateList] } // newSpaceTemplates returns a SpaceTemplates func newSpaceTemplates(c *StorageV1Client) *spaceTemplates { return &spaceTemplates{ - gentype.NewClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList]( + gentype.NewClientWithList[*storagev1.SpaceTemplate, *storagev1.SpaceTemplateList]( "spacetemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.SpaceTemplate { return &v1.SpaceTemplate{} }, - func() *v1.SpaceTemplateList { return &v1.SpaceTemplateList{} }), + func() *storagev1.SpaceTemplate { return &storagev1.SpaceTemplate{} }, + func() *storagev1.SpaceTemplateList { return &storagev1.SpaceTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/storage_client.go b/pkg/clientset/versioned/typed/storage/v1/storage_client.go index c360fa26..3592fd71 100644 --- a/pkg/clientset/versioned/typed/storage/v1/storage_client.go +++ b/pkg/clientset/versioned/typed/storage/v1/storage_client.go @@ -3,10 +3,10 @@ package v1 import ( - "net/http" + http "net/http" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) @@ -19,10 +19,13 @@ type StorageV1Interface interface { ClusterRoleTemplatesGetter DevPodEnvironmentTemplatesGetter DevPodWorkspaceInstancesGetter + DevPodWorkspacePresetsGetter DevPodWorkspaceTemplatesGetter NetworkPeersGetter + NodeClaimsGetter + NodeProvidersGetter + NodeTypesGetter ProjectsGetter - RunnersGetter SharedSecretsGetter SpaceInstancesGetter SpaceTemplatesGetter @@ -66,6 +69,10 @@ func (c *StorageV1Client) DevPodWorkspaceInstances(namespace string) DevPodWorks return newDevPodWorkspaceInstances(c, namespace) } +func (c *StorageV1Client) DevPodWorkspacePresets() DevPodWorkspacePresetInterface { + return newDevPodWorkspacePresets(c) +} + func (c *StorageV1Client) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface { return newDevPodWorkspaceTemplates(c) } @@ -74,12 +81,20 @@ func (c *StorageV1Client) NetworkPeers() NetworkPeerInterface { return newNetworkPeers(c) } -func (c *StorageV1Client) Projects() ProjectInterface { - return newProjects(c) +func (c *StorageV1Client) NodeClaims(namespace string) NodeClaimInterface { + return newNodeClaims(c, namespace) } -func (c *StorageV1Client) Runners() RunnerInterface { - return newRunners(c) +func (c *StorageV1Client) NodeProviders() NodeProviderInterface { + return newNodeProviders(c) +} + +func (c *StorageV1Client) NodeTypes() NodeTypeInterface { + return newNodeTypes(c) +} + +func (c *StorageV1Client) Projects() ProjectInterface { + return newProjects(c) } func (c *StorageV1Client) SharedSecrets(namespace string) SharedSecretInterface { @@ -119,9 +134,7 @@ func (c *StorageV1Client) VirtualClusterTemplates() VirtualClusterTemplateInterf // where httpClient was generated with rest.HTTPClientFor(c). func NewForConfig(c *rest.Config) (*StorageV1Client, error) { config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } + setConfigDefaults(&config) httpClient, err := rest.HTTPClientFor(&config) if err != nil { return nil, err @@ -133,9 +146,7 @@ func NewForConfig(c *rest.Config) (*StorageV1Client, error) { // Note the http client provided takes precedence over the configured transport values. func NewForConfigAndClient(c *rest.Config, h *http.Client) (*StorageV1Client, error) { config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } + setConfigDefaults(&config) client, err := rest.RESTClientForConfigAndClient(&config, h) if err != nil { return nil, err @@ -158,17 +169,15 @@ func New(c rest.Interface) *StorageV1Client { return &StorageV1Client{c} } -func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion +func setConfigDefaults(config *rest.Config) { + gv := storagev1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion() if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent() } - - return nil } // RESTClient returns a RESTClient that is used to communicate diff --git a/pkg/clientset/versioned/typed/storage/v1/task.go b/pkg/clientset/versioned/typed/storage/v1/task.go index 055fb169..e02dd9d0 100644 --- a/pkg/clientset/versioned/typed/storage/v1/task.go +++ b/pkg/clientset/versioned/typed/storage/v1/task.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type TasksGetter interface { // TaskInterface has methods to work with Task resources. type TaskInterface interface { - Create(ctx context.Context, task *v1.Task, opts metav1.CreateOptions) (*v1.Task, error) - Update(ctx context.Context, task *v1.Task, opts metav1.UpdateOptions) (*v1.Task, error) + Create(ctx context.Context, task *storagev1.Task, opts metav1.CreateOptions) (*storagev1.Task, error) + Update(ctx context.Context, task *storagev1.Task, opts metav1.UpdateOptions) (*storagev1.Task, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, task *v1.Task, opts metav1.UpdateOptions) (*v1.Task, error) + UpdateStatus(ctx context.Context, task *storagev1.Task, opts metav1.UpdateOptions) (*storagev1.Task, 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) (*v1.Task, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TaskList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.Task, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.TaskList, 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 *v1.Task, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.Task, err error) TaskExpansion } // tasks implements TaskInterface type tasks struct { - *gentype.ClientWithList[*v1.Task, *v1.TaskList] + *gentype.ClientWithList[*storagev1.Task, *storagev1.TaskList] } // newTasks returns a Tasks func newTasks(c *StorageV1Client) *tasks { return &tasks{ - gentype.NewClientWithList[*v1.Task, *v1.TaskList]( + gentype.NewClientWithList[*storagev1.Task, *storagev1.TaskList]( "tasks", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Task { return &v1.Task{} }, - func() *v1.TaskList { return &v1.TaskList{} }), + func() *storagev1.Task { return &storagev1.Task{} }, + func() *storagev1.TaskList { return &storagev1.TaskList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/team.go b/pkg/clientset/versioned/typed/storage/v1/team.go index 81258fa7..607b9f07 100644 --- a/pkg/clientset/versioned/typed/storage/v1/team.go +++ b/pkg/clientset/versioned/typed/storage/v1/team.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type TeamsGetter interface { // TeamInterface has methods to work with Team resources. type TeamInterface interface { - Create(ctx context.Context, team *v1.Team, opts metav1.CreateOptions) (*v1.Team, error) - Update(ctx context.Context, team *v1.Team, opts metav1.UpdateOptions) (*v1.Team, error) + Create(ctx context.Context, team *storagev1.Team, opts metav1.CreateOptions) (*storagev1.Team, error) + Update(ctx context.Context, team *storagev1.Team, opts metav1.UpdateOptions) (*storagev1.Team, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, team *v1.Team, opts metav1.UpdateOptions) (*v1.Team, error) + UpdateStatus(ctx context.Context, team *storagev1.Team, opts metav1.UpdateOptions) (*storagev1.Team, 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) (*v1.Team, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TeamList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.Team, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.TeamList, 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 *v1.Team, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.Team, err error) TeamExpansion } // teams implements TeamInterface type teams struct { - *gentype.ClientWithList[*v1.Team, *v1.TeamList] + *gentype.ClientWithList[*storagev1.Team, *storagev1.TeamList] } // newTeams returns a Teams func newTeams(c *StorageV1Client) *teams { return &teams{ - gentype.NewClientWithList[*v1.Team, *v1.TeamList]( + gentype.NewClientWithList[*storagev1.Team, *storagev1.TeamList]( "teams", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Team { return &v1.Team{} }, - func() *v1.TeamList { return &v1.TeamList{} }), + func() *storagev1.Team { return &storagev1.Team{} }, + func() *storagev1.TeamList { return &storagev1.TeamList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/user.go b/pkg/clientset/versioned/typed/storage/v1/user.go index 5ce78824..cace7487 100644 --- a/pkg/clientset/versioned/typed/storage/v1/user.go +++ b/pkg/clientset/versioned/typed/storage/v1/user.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type UsersGetter interface { // UserInterface has methods to work with User resources. type UserInterface interface { - Create(ctx context.Context, user *v1.User, opts metav1.CreateOptions) (*v1.User, error) - Update(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) (*v1.User, error) + Create(ctx context.Context, user *storagev1.User, opts metav1.CreateOptions) (*storagev1.User, error) + Update(ctx context.Context, user *storagev1.User, opts metav1.UpdateOptions) (*storagev1.User, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) (*v1.User, error) + UpdateStatus(ctx context.Context, user *storagev1.User, opts metav1.UpdateOptions) (*storagev1.User, 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) (*v1.User, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.UserList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.User, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.UserList, 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 *v1.User, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.User, err error) UserExpansion } // users implements UserInterface type users struct { - *gentype.ClientWithList[*v1.User, *v1.UserList] + *gentype.ClientWithList[*storagev1.User, *storagev1.UserList] } // newUsers returns a Users func newUsers(c *StorageV1Client) *users { return &users{ - gentype.NewClientWithList[*v1.User, *v1.UserList]( + gentype.NewClientWithList[*storagev1.User, *storagev1.UserList]( "users", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.User { return &v1.User{} }, - func() *v1.UserList { return &v1.UserList{} }), + func() *storagev1.User { return &storagev1.User{} }, + func() *storagev1.UserList { return &storagev1.UserList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/virtualclusterinstance.go b/pkg/clientset/versioned/typed/storage/v1/virtualclusterinstance.go index 28dea55a..cc66ae6f 100644 --- a/pkg/clientset/versioned/typed/storage/v1/virtualclusterinstance.go +++ b/pkg/clientset/versioned/typed/storage/v1/virtualclusterinstance.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,31 +21,32 @@ type VirtualClusterInstancesGetter interface { // VirtualClusterInstanceInterface has methods to work with VirtualClusterInstance resources. type VirtualClusterInstanceInterface interface { - Create(ctx context.Context, virtualClusterInstance *v1.VirtualClusterInstance, opts metav1.CreateOptions) (*v1.VirtualClusterInstance, error) - Update(ctx context.Context, virtualClusterInstance *v1.VirtualClusterInstance, opts metav1.UpdateOptions) (*v1.VirtualClusterInstance, error) + Create(ctx context.Context, virtualClusterInstance *storagev1.VirtualClusterInstance, opts metav1.CreateOptions) (*storagev1.VirtualClusterInstance, error) + Update(ctx context.Context, virtualClusterInstance *storagev1.VirtualClusterInstance, opts metav1.UpdateOptions) (*storagev1.VirtualClusterInstance, 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) (*v1.VirtualClusterInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.VirtualClusterInstanceList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.VirtualClusterInstance, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.VirtualClusterInstanceList, 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 *v1.VirtualClusterInstance, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.VirtualClusterInstance, err error) VirtualClusterInstanceExpansion } // virtualClusterInstances implements VirtualClusterInstanceInterface type virtualClusterInstances struct { - *gentype.ClientWithList[*v1.VirtualClusterInstance, *v1.VirtualClusterInstanceList] + *gentype.ClientWithList[*storagev1.VirtualClusterInstance, *storagev1.VirtualClusterInstanceList] } // newVirtualClusterInstances returns a VirtualClusterInstances func newVirtualClusterInstances(c *StorageV1Client, namespace string) *virtualClusterInstances { return &virtualClusterInstances{ - gentype.NewClientWithList[*v1.VirtualClusterInstance, *v1.VirtualClusterInstanceList]( + gentype.NewClientWithList[*storagev1.VirtualClusterInstance, *storagev1.VirtualClusterInstanceList]( "virtualclusterinstances", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.VirtualClusterInstance { return &v1.VirtualClusterInstance{} }, - func() *v1.VirtualClusterInstanceList { return &v1.VirtualClusterInstanceList{} }), + func() *storagev1.VirtualClusterInstance { return &storagev1.VirtualClusterInstance{} }, + func() *storagev1.VirtualClusterInstanceList { return &storagev1.VirtualClusterInstanceList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/virtualclustertemplate.go b/pkg/clientset/versioned/typed/storage/v1/virtualclustertemplate.go index 776e0351..fbb8218e 100644 --- a/pkg/clientset/versioned/typed/storage/v1/virtualclustertemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/virtualclustertemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type VirtualClusterTemplatesGetter interface { // VirtualClusterTemplateInterface has methods to work with VirtualClusterTemplate resources. type VirtualClusterTemplateInterface interface { - Create(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.CreateOptions) (*v1.VirtualClusterTemplate, error) - Update(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.UpdateOptions) (*v1.VirtualClusterTemplate, error) + Create(ctx context.Context, virtualClusterTemplate *storagev1.VirtualClusterTemplate, opts metav1.CreateOptions) (*storagev1.VirtualClusterTemplate, error) + Update(ctx context.Context, virtualClusterTemplate *storagev1.VirtualClusterTemplate, opts metav1.UpdateOptions) (*storagev1.VirtualClusterTemplate, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.UpdateOptions) (*v1.VirtualClusterTemplate, error) + UpdateStatus(ctx context.Context, virtualClusterTemplate *storagev1.VirtualClusterTemplate, opts metav1.UpdateOptions) (*storagev1.VirtualClusterTemplate, 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) (*v1.VirtualClusterTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.VirtualClusterTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.VirtualClusterTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.VirtualClusterTemplateList, 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 *v1.VirtualClusterTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.VirtualClusterTemplate, err error) VirtualClusterTemplateExpansion } // virtualClusterTemplates implements VirtualClusterTemplateInterface type virtualClusterTemplates struct { - *gentype.ClientWithList[*v1.VirtualClusterTemplate, *v1.VirtualClusterTemplateList] + *gentype.ClientWithList[*storagev1.VirtualClusterTemplate, *storagev1.VirtualClusterTemplateList] } // newVirtualClusterTemplates returns a VirtualClusterTemplates func newVirtualClusterTemplates(c *StorageV1Client) *virtualClusterTemplates { return &virtualClusterTemplates{ - gentype.NewClientWithList[*v1.VirtualClusterTemplate, *v1.VirtualClusterTemplateList]( + gentype.NewClientWithList[*storagev1.VirtualClusterTemplate, *storagev1.VirtualClusterTemplateList]( "virtualclustertemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.VirtualClusterTemplate { return &v1.VirtualClusterTemplate{} }, - func() *v1.VirtualClusterTemplateList { return &v1.VirtualClusterTemplateList{} }), + func() *storagev1.VirtualClusterTemplate { return &storagev1.VirtualClusterTemplate{} }, + func() *storagev1.VirtualClusterTemplateList { return &storagev1.VirtualClusterTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/virtualcluster/v1/fake/fake_helmrelease.go b/pkg/clientset/versioned/typed/virtualcluster/v1/fake/fake_helmrelease.go index ef2973dc..63064655 100644 --- a/pkg/clientset/versioned/typed/virtualcluster/v1/fake/fake_helmrelease.go +++ b/pkg/clientset/versioned/typed/virtualcluster/v1/fake/fake_helmrelease.go @@ -3,129 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + virtualclusterv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/virtualcluster/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeHelmReleases implements HelmReleaseInterface -type FakeHelmReleases struct { +// fakeHelmReleases implements HelmReleaseInterface +type fakeHelmReleases struct { + *gentype.FakeClientWithList[*v1.HelmRelease, *v1.HelmReleaseList] Fake *FakeVirtualclusterV1 - ns string -} - -var helmreleasesResource = v1.SchemeGroupVersion.WithResource("helmreleases") - -var helmreleasesKind = v1.SchemeGroupVersion.WithKind("HelmRelease") - -// Get takes name of the helmRelease, and returns the corresponding helmRelease object, and an error if there is any. -func (c *FakeHelmReleases) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.HelmRelease, err error) { - emptyResult := &v1.HelmRelease{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(helmreleasesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.HelmRelease), err -} - -// List takes label and field selectors, and returns the list of HelmReleases that match those selectors. -func (c *FakeHelmReleases) List(ctx context.Context, opts metav1.ListOptions) (result *v1.HelmReleaseList, err error) { - emptyResult := &v1.HelmReleaseList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(helmreleasesResource, helmreleasesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.HelmReleaseList{ListMeta: obj.(*v1.HelmReleaseList).ListMeta} - for _, item := range obj.(*v1.HelmReleaseList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested helmReleases. -func (c *FakeHelmReleases) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(helmreleasesResource, c.ns, opts)) - -} - -// Create takes the representation of a helmRelease and creates it. Returns the server's representation of the helmRelease, and an error, if there is any. -func (c *FakeHelmReleases) Create(ctx context.Context, helmRelease *v1.HelmRelease, opts metav1.CreateOptions) (result *v1.HelmRelease, err error) { - emptyResult := &v1.HelmRelease{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(helmreleasesResource, c.ns, helmRelease, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.HelmRelease), err -} - -// Update takes the representation of a helmRelease and updates it. Returns the server's representation of the helmRelease, and an error, if there is any. -func (c *FakeHelmReleases) Update(ctx context.Context, helmRelease *v1.HelmRelease, opts metav1.UpdateOptions) (result *v1.HelmRelease, err error) { - emptyResult := &v1.HelmRelease{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(helmreleasesResource, c.ns, helmRelease, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.HelmRelease), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeHelmReleases) UpdateStatus(ctx context.Context, helmRelease *v1.HelmRelease, opts metav1.UpdateOptions) (result *v1.HelmRelease, err error) { - emptyResult := &v1.HelmRelease{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(helmreleasesResource, "status", c.ns, helmRelease, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.HelmRelease), err -} - -// Delete takes name of the helmRelease and deletes it. Returns an error if one occurs. -func (c *FakeHelmReleases) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(helmreleasesResource, c.ns, name, opts), &v1.HelmRelease{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeHelmReleases) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(helmreleasesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.HelmReleaseList{}) - return err -} - -// Patch applies the patch and returns the patched helmRelease. -func (c *FakeHelmReleases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.HelmRelease, err error) { - emptyResult := &v1.HelmRelease{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(helmreleasesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeHelmReleases(fake *FakeVirtualclusterV1, namespace string) virtualclusterv1.HelmReleaseInterface { + return &fakeHelmReleases{ + gentype.NewFakeClientWithList[*v1.HelmRelease, *v1.HelmReleaseList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("helmreleases"), + v1.SchemeGroupVersion.WithKind("HelmRelease"), + func() *v1.HelmRelease { return &v1.HelmRelease{} }, + func() *v1.HelmReleaseList { return &v1.HelmReleaseList{} }, + func(dst, src *v1.HelmReleaseList) { dst.ListMeta = src.ListMeta }, + func(list *v1.HelmReleaseList) []*v1.HelmRelease { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.HelmReleaseList, items []*v1.HelmRelease) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.HelmRelease), err } diff --git a/pkg/clientset/versioned/typed/virtualcluster/v1/fake/fake_virtualcluster_client.go b/pkg/clientset/versioned/typed/virtualcluster/v1/fake/fake_virtualcluster_client.go index ec268515..b589de9e 100644 --- a/pkg/clientset/versioned/typed/virtualcluster/v1/fake/fake_virtualcluster_client.go +++ b/pkg/clientset/versioned/typed/virtualcluster/v1/fake/fake_virtualcluster_client.go @@ -13,7 +13,7 @@ type FakeVirtualclusterV1 struct { } func (c *FakeVirtualclusterV1) HelmReleases(namespace string) v1.HelmReleaseInterface { - return &FakeHelmReleases{c, namespace} + return newFakeHelmReleases(c, namespace) } // RESTClient returns a RESTClient that is used to communicate diff --git a/pkg/clientset/versioned/typed/virtualcluster/v1/helmrelease.go b/pkg/clientset/versioned/typed/virtualcluster/v1/helmrelease.go index 90867bce..c9097d54 100644 --- a/pkg/clientset/versioned/typed/virtualcluster/v1/helmrelease.go +++ b/pkg/clientset/versioned/typed/virtualcluster/v1/helmrelease.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" + virtualclusterv1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type HelmReleasesGetter interface { // HelmReleaseInterface has methods to work with HelmRelease resources. type HelmReleaseInterface interface { - Create(ctx context.Context, helmRelease *v1.HelmRelease, opts metav1.CreateOptions) (*v1.HelmRelease, error) - Update(ctx context.Context, helmRelease *v1.HelmRelease, opts metav1.UpdateOptions) (*v1.HelmRelease, error) + Create(ctx context.Context, helmRelease *virtualclusterv1.HelmRelease, opts metav1.CreateOptions) (*virtualclusterv1.HelmRelease, error) + Update(ctx context.Context, helmRelease *virtualclusterv1.HelmRelease, opts metav1.UpdateOptions) (*virtualclusterv1.HelmRelease, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, helmRelease *v1.HelmRelease, opts metav1.UpdateOptions) (*v1.HelmRelease, error) + UpdateStatus(ctx context.Context, helmRelease *virtualclusterv1.HelmRelease, opts metav1.UpdateOptions) (*virtualclusterv1.HelmRelease, 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) (*v1.HelmRelease, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.HelmReleaseList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*virtualclusterv1.HelmRelease, error) + List(ctx context.Context, opts metav1.ListOptions) (*virtualclusterv1.HelmReleaseList, 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 *v1.HelmRelease, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *virtualclusterv1.HelmRelease, err error) HelmReleaseExpansion } // helmReleases implements HelmReleaseInterface type helmReleases struct { - *gentype.ClientWithList[*v1.HelmRelease, *v1.HelmReleaseList] + *gentype.ClientWithList[*virtualclusterv1.HelmRelease, *virtualclusterv1.HelmReleaseList] } // newHelmReleases returns a HelmReleases func newHelmReleases(c *VirtualclusterV1Client, namespace string) *helmReleases { return &helmReleases{ - gentype.NewClientWithList[*v1.HelmRelease, *v1.HelmReleaseList]( + gentype.NewClientWithList[*virtualclusterv1.HelmRelease, *virtualclusterv1.HelmReleaseList]( "helmreleases", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.HelmRelease { return &v1.HelmRelease{} }, - func() *v1.HelmReleaseList { return &v1.HelmReleaseList{} }), + func() *virtualclusterv1.HelmRelease { return &virtualclusterv1.HelmRelease{} }, + func() *virtualclusterv1.HelmReleaseList { return &virtualclusterv1.HelmReleaseList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/virtualcluster/v1/virtualcluster_client.go b/pkg/clientset/versioned/typed/virtualcluster/v1/virtualcluster_client.go index 726babde..ea9b87cb 100644 --- a/pkg/clientset/versioned/typed/virtualcluster/v1/virtualcluster_client.go +++ b/pkg/clientset/versioned/typed/virtualcluster/v1/virtualcluster_client.go @@ -3,10 +3,10 @@ package v1 import ( - "net/http" + http "net/http" - v1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" - "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" + virtualclusterv1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" + scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) @@ -29,9 +29,7 @@ func (c *VirtualclusterV1Client) HelmReleases(namespace string) HelmReleaseInter // where httpClient was generated with rest.HTTPClientFor(c). func NewForConfig(c *rest.Config) (*VirtualclusterV1Client, error) { config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } + setConfigDefaults(&config) httpClient, err := rest.HTTPClientFor(&config) if err != nil { return nil, err @@ -43,9 +41,7 @@ func NewForConfig(c *rest.Config) (*VirtualclusterV1Client, error) { // Note the http client provided takes precedence over the configured transport values. func NewForConfigAndClient(c *rest.Config, h *http.Client) (*VirtualclusterV1Client, error) { config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } + setConfigDefaults(&config) client, err := rest.RESTClientForConfigAndClient(&config, h) if err != nil { return nil, err @@ -68,17 +64,15 @@ func New(c rest.Interface) *VirtualclusterV1Client { return &VirtualclusterV1Client{c} } -func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion +func setConfigDefaults(config *rest.Config) { + gv := virtualclusterv1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion() if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent() } - - return nil } // RESTClient returns a RESTClient that is used to communicate diff --git a/pkg/devpod/cloneoptions.go b/pkg/devpod/cloneoptions.go new file mode 100644 index 00000000..078aa3c8 --- /dev/null +++ b/pkg/devpod/cloneoptions.go @@ -0,0 +1,24 @@ +package devpod + +type CloneOptions struct { + // Repository is the repository to clone + Repository string `json:"repository,omitempty"` + + // Branch is the branch to use + Branch string `json:"branch,omitempty"` + + // Commit is the commit SHA to checkout + Commit string `json:"commit,omitempty"` + + // PRReference is the pull request reference to checkout + PRReference string `json:"prReference,omitempty"` + + // SubPath is the subpath in the repo to use + SubPath string `json:"subPath,omitempty"` + + // CredentialsHelper is the credentials helper to use for the clone + CredentialsHelper string `json:"credentialsHelper,omitempty"` + + // ExtraEnv is the extra environment variables to use for the clone + ExtraEnv []string `json:"extraEnv,omitempty"` +} diff --git a/pkg/devpod/platformoptions.go b/pkg/devpod/platformoptions.go new file mode 100644 index 00000000..56becf13 --- /dev/null +++ b/pkg/devpod/platformoptions.go @@ -0,0 +1,82 @@ +package devpod + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" +) + +type PlatformOptions struct { + // Enabled is true if platform mode is enabled. Be careful with this option as this is only enabled + // when executed on the platform side and not if a platform workspace is used locally. + Enabled bool `json:"enabled,omitempty"` + + // DevPodWorkspaceInstance information + InstanceName string `json:"instanceName,omitempty"` + InstanceProject string `json:"instanceProject,omitempty"` + InstanceNamespace string `json:"instanceNamespace,omitempty"` + + // connection options + // AccessKey is used by the workspace daemon to authenticate itself + AccessKey string `json:"accessKey,omitempty"` + // UserAccessKey can be used as the workspace owner + UserAccessKey string `json:"userAccessKey,omitempty"` + WorkspaceHost string `json:"workspaceHost,omitempty"` + PlatformHost string `json:"platformHost,omitempty"` + RunnerSocket string `json:"runnerSocket,omitempty"` + + // environment template options + EnvironmentTemplate string `json:"environmentTemplate,omitempty"` + EnvironmentTemplateVersion string `json:"environmentTemplateVersion,omitempty"` + GitCloneStrategy storagev1.GitCloneStrategy `json:"gitCloneStrategy,omitempty"` + GitSkipLFS bool `json:"gitSkipLFS,omitempty"` + + // Kubernetes holds configuration for workspaces that need information about their kubernetes environment, i.e. + // the ones running in virtual clusters or spaces + Kubernetes *Kubernetes `json:"kubernetes,omitempty"` + + // user credentials are the credentials for the user + UserCredentials PlatformWorkspaceCredentials `json:"userCredentials,omitempty"` + ProjectCredentials PlatformWorkspaceCredentials `json:"projectCredentials,omitempty"` + + // Remote builds + Build *PlatformBuildOptions `json:"build,omitempty"` +} + +type PlatformWorkspaceCredentials struct { + GitUser string `json:"gitUser,omitempty"` + GitEmail string `json:"gitEmail,omitempty"` + GitHttp []PlatformGitHttpCredentials `json:"gitHttp,omitempty"` + GitSsh []PlatformGitSshCredentials `json:"gitSsh,omitempty"` +} + +type PlatformGitHttpCredentials struct { + Host string `json:"host,omitempty"` + User string `json:"user,omitempty"` + Password string `json:"password,omitempty"` + Path string `json:"path,omitempty"` +} + +type PlatformGitSshCredentials struct { + Key string `json:"key,omitempty"` +} + +type PlatformDockerCredentials struct { + Host string `json:"host,omitempty"` + User string `json:"user,omitempty"` + Password string `json:"password,omitempty"` +} + +type PlatformBuildOptions struct { + Repository string `json:"repository,omitempty"` + RemoteAddress string `json:"remoteAddress,omitempty"` + + // mTLS + CertCA string `json:"certCa,omitempty"` + CertKey string `json:"certKey,omitempty"` + Cert string `json:"cert,omitempty"` +} + +type Kubernetes struct { + SpaceName string `json:"spaceName,omitempty"` + VirtualClusterName string `json:"virtualClusterName,omitempty"` + Namespace string `json:"namespace,omitempty"` +} diff --git a/pkg/devpod/runner.pb.go b/pkg/devpod/runner.pb.go new file mode 100644 index 00000000..51e2a1b7 --- /dev/null +++ b/pkg/devpod/runner.pb.go @@ -0,0 +1,214 @@ +// protoc -I . runner.proto --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v5.29.1 +// source: runner.proto + +package devpod + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type CloneRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TargetPath string `protobuf:"bytes,1,opt,name=targetPath,proto3" json:"targetPath,omitempty"` + Options string `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` +} + +func (x *CloneRequest) Reset() { + *x = CloneRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_runner_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloneRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloneRequest) ProtoMessage() {} + +func (x *CloneRequest) ProtoReflect() protoreflect.Message { + mi := &file_runner_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloneRequest.ProtoReflect.Descriptor instead. +func (*CloneRequest) Descriptor() ([]byte, []int) { + return file_runner_proto_rawDescGZIP(), []int{0} +} + +func (x *CloneRequest) GetTargetPath() string { + if x != nil { + return x.TargetPath + } + return "" +} + +func (x *CloneRequest) GetOptions() string { + if x != nil { + return x.Options + } + return "" +} + +type CloneResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloneResponse) Reset() { + *x = CloneResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_runner_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloneResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloneResponse) ProtoMessage() {} + +func (x *CloneResponse) ProtoReflect() protoreflect.Message { + mi := &file_runner_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloneResponse.ProtoReflect.Descriptor instead. +func (*CloneResponse) Descriptor() ([]byte, []int) { + return file_runner_proto_rawDescGZIP(), []int{1} +} + +var File_runner_proto protoreflect.FileDescriptor + +var file_runner_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, + 0x64, 0x65, 0x76, 0x70, 0x6f, 0x64, 0x22, 0x48, 0x0a, 0x0c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x22, 0x0f, 0x0a, 0x0d, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x32, 0x40, 0x0a, 0x06, 0x52, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x05, 0x43, + 0x6c, 0x6f, 0x6e, 0x65, 0x12, 0x14, 0x2e, 0x64, 0x65, 0x76, 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x6c, + 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x64, 0x65, 0x76, + 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x42, 0x26, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x6c, 0x6f, 0x66, 0x74, 0x2d, 0x73, 0x68, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x34, + 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x64, 0x65, 0x76, 0x70, 0x6f, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_runner_proto_rawDescOnce sync.Once + file_runner_proto_rawDescData = file_runner_proto_rawDesc +) + +func file_runner_proto_rawDescGZIP() []byte { + file_runner_proto_rawDescOnce.Do(func() { + file_runner_proto_rawDescData = protoimpl.X.CompressGZIP(file_runner_proto_rawDescData) + }) + return file_runner_proto_rawDescData +} + +var file_runner_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_runner_proto_goTypes = []interface{}{ + (*CloneRequest)(nil), // 0: devpod.CloneRequest + (*CloneResponse)(nil), // 1: devpod.CloneResponse +} +var file_runner_proto_depIdxs = []int32{ + 0, // 0: devpod.Runner.Clone:input_type -> devpod.CloneRequest + 1, // 1: devpod.Runner.Clone:output_type -> devpod.CloneResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_runner_proto_init() } +func file_runner_proto_init() { + if File_runner_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_runner_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloneRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_runner_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloneResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_runner_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_runner_proto_goTypes, + DependencyIndexes: file_runner_proto_depIdxs, + MessageInfos: file_runner_proto_msgTypes, + }.Build() + File_runner_proto = out.File + file_runner_proto_rawDesc = nil + file_runner_proto_goTypes = nil + file_runner_proto_depIdxs = nil +} diff --git a/pkg/devpod/runner.proto b/pkg/devpod/runner.proto new file mode 100644 index 00000000..30b65f44 --- /dev/null +++ b/pkg/devpod/runner.proto @@ -0,0 +1,17 @@ +// protoc -I . runner.proto --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative +syntax = "proto3"; + +option go_package = "github.com/loft-sh/api/v4/pkg/devpod"; + +package devpod; + +service Runner { + rpc Clone(CloneRequest) returns (CloneResponse) {} +} + +message CloneRequest { + string targetPath = 1; + string options = 2; +} + +message CloneResponse {} diff --git a/pkg/devpod/runner_grpc.pb.go b/pkg/devpod/runner_grpc.pb.go new file mode 100644 index 00000000..dac7f0d8 --- /dev/null +++ b/pkg/devpod/runner_grpc.pb.go @@ -0,0 +1,105 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v5.29.1 +// source: runner.proto + +package devpod + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// RunnerClient is the client API for Runner service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type RunnerClient interface { + Clone(ctx context.Context, in *CloneRequest, opts ...grpc.CallOption) (*CloneResponse, error) +} + +type runnerClient struct { + cc grpc.ClientConnInterface +} + +func NewRunnerClient(cc grpc.ClientConnInterface) RunnerClient { + return &runnerClient{cc} +} + +func (c *runnerClient) Clone(ctx context.Context, in *CloneRequest, opts ...grpc.CallOption) (*CloneResponse, error) { + out := new(CloneResponse) + err := c.cc.Invoke(ctx, "/devpod.Runner/Clone", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RunnerServer is the server API for Runner service. +// All implementations must embed UnimplementedRunnerServer +// for forward compatibility +type RunnerServer interface { + Clone(context.Context, *CloneRequest) (*CloneResponse, error) + mustEmbedUnimplementedRunnerServer() +} + +// UnimplementedRunnerServer must be embedded to have forward compatible implementations. +type UnimplementedRunnerServer struct { +} + +func (UnimplementedRunnerServer) Clone(context.Context, *CloneRequest) (*CloneResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Clone not implemented") +} +func (UnimplementedRunnerServer) mustEmbedUnimplementedRunnerServer() {} + +// UnsafeRunnerServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to RunnerServer will +// result in compilation errors. +type UnsafeRunnerServer interface { + mustEmbedUnimplementedRunnerServer() +} + +func RegisterRunnerServer(s grpc.ServiceRegistrar, srv RunnerServer) { + s.RegisterService(&Runner_ServiceDesc, srv) +} + +func _Runner_Clone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloneRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RunnerServer).Clone(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/devpod.Runner/Clone", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RunnerServer).Clone(ctx, req.(*CloneRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Runner_ServiceDesc is the grpc.ServiceDesc for Runner service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Runner_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "devpod.Runner", + HandlerType: (*RunnerServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Clone", + Handler: _Runner_Clone_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "runner.proto", +} diff --git a/pkg/informers/externalversions/generic.go b/pkg/informers/externalversions/generic.go index 19bb27f5..977fa759 100644 --- a/pkg/informers/externalversions/generic.go +++ b/pkg/informers/externalversions/generic.go @@ -3,7 +3,7 @@ package externalversions import ( - "fmt" + fmt "fmt" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" @@ -57,10 +57,14 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().Configs().Informer()}, nil case v1.SchemeGroupVersion.WithResource("convertvirtualclusterconfigs"): 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("directclusterendpointtokens"): @@ -77,6 +81,12 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().LicenseTokens().Informer()}, nil case v1.SchemeGroupVersion.WithResource("loftupgrades"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().LoftUpgrades().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("nodeclaims"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().NodeClaims().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("nodeproviders"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().NodeProviders().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("nodetypes"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().NodeTypes().Informer()}, nil case v1.SchemeGroupVersion.WithResource("oidcclients"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().OIDCClients().Informer()}, nil case v1.SchemeGroupVersion.WithResource("ownedaccesskeys"): @@ -91,8 +101,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().RegisterVirtualClusters().Informer()}, nil case v1.SchemeGroupVersion.WithResource("resetaccesskeys"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().ResetAccessKeys().Informer()}, nil - case v1.SchemeGroupVersion.WithResource("runners"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().Runners().Informer()}, nil case v1.SchemeGroupVersion.WithResource("selves"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().Selves().Informer()}, nil case v1.SchemeGroupVersion.WithResource("selfsubjectaccessreviews"): @@ -115,6 +123,8 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().Users().Informer()}, nil case v1.SchemeGroupVersion.WithResource("virtualclusterinstances"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().VirtualClusterInstances().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("virtualclusterschemas"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().VirtualClusterSchemas().Informer()}, nil case v1.SchemeGroupVersion.WithResource("virtualclustertemplates"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().VirtualClusterTemplates().Informer()}, nil @@ -133,14 +143,20 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource 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("networkpeers"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().NetworkPeers().Informer()}, nil + case storagev1.SchemeGroupVersion.WithResource("nodeclaims"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().NodeClaims().Informer()}, nil + case storagev1.SchemeGroupVersion.WithResource("nodeproviders"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().NodeProviders().Informer()}, nil + case storagev1.SchemeGroupVersion.WithResource("nodetypes"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().NodeTypes().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("projects"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().Projects().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("runners"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().Runners().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("sharedsecrets"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().SharedSecrets().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("spaceinstances"): diff --git a/pkg/informers/externalversions/management/v1/agentauditevent.go b/pkg/informers/externalversions/management/v1/agentauditevent.go index 9b4001b8..ba5ce176 100644 --- a/pkg/informers/externalversions/management/v1/agentauditevent.go +++ b/pkg/informers/externalversions/management/v1/agentauditevent.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // AgentAuditEvents. type AgentAuditEventInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.AgentAuditEventLister + Lister() managementv1.AgentAuditEventLister } type agentAuditEventInformer struct { @@ -45,16 +45,28 @@ func NewFilteredAgentAuditEventInformer(client versioned.Interface, resyncPeriod if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().AgentAuditEvents().List(context.TODO(), options) + return client.ManagementV1().AgentAuditEvents().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().AgentAuditEvents().Watch(context.TODO(), options) + return client.ManagementV1().AgentAuditEvents().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().AgentAuditEvents().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().AgentAuditEvents().Watch(ctx, options) }, }, - &managementv1.AgentAuditEvent{}, + &apismanagementv1.AgentAuditEvent{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *agentAuditEventInformer) defaultInformer(client versioned.Interface, re } func (f *agentAuditEventInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.AgentAuditEvent{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.AgentAuditEvent{}, f.defaultInformer) } -func (f *agentAuditEventInformer) Lister() v1.AgentAuditEventLister { - return v1.NewAgentAuditEventLister(f.Informer().GetIndexer()) +func (f *agentAuditEventInformer) Lister() managementv1.AgentAuditEventLister { + return managementv1.NewAgentAuditEventLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/announcement.go b/pkg/informers/externalversions/management/v1/announcement.go index b8a990ef..db71b750 100644 --- a/pkg/informers/externalversions/management/v1/announcement.go +++ b/pkg/informers/externalversions/management/v1/announcement.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Announcements. type AnnouncementInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.AnnouncementLister + Lister() managementv1.AnnouncementLister } type announcementInformer struct { @@ -45,16 +45,28 @@ func NewFilteredAnnouncementInformer(client versioned.Interface, resyncPeriod ti if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Announcements().List(context.TODO(), options) + return client.ManagementV1().Announcements().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Announcements().Watch(context.TODO(), options) + return client.ManagementV1().Announcements().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Announcements().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Announcements().Watch(ctx, options) }, }, - &managementv1.Announcement{}, + &apismanagementv1.Announcement{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *announcementInformer) defaultInformer(client versioned.Interface, resyn } func (f *announcementInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.Announcement{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.Announcement{}, f.defaultInformer) } -func (f *announcementInformer) Lister() v1.AnnouncementLister { - return v1.NewAnnouncementLister(f.Informer().GetIndexer()) +func (f *announcementInformer) Lister() managementv1.AnnouncementLister { + return managementv1.NewAnnouncementLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/app.go b/pkg/informers/externalversions/management/v1/app.go index 40dd3c0c..d274e5be 100644 --- a/pkg/informers/externalversions/management/v1/app.go +++ b/pkg/informers/externalversions/management/v1/app.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Apps. type AppInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.AppLister + Lister() managementv1.AppLister } type appInformer struct { @@ -45,16 +45,28 @@ func NewFilteredAppInformer(client versioned.Interface, resyncPeriod time.Durati if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Apps().List(context.TODO(), options) + return client.ManagementV1().Apps().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Apps().Watch(context.TODO(), options) + return client.ManagementV1().Apps().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Apps().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Apps().Watch(ctx, options) }, }, - &managementv1.App{}, + &apismanagementv1.App{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *appInformer) defaultInformer(client versioned.Interface, resyncPeriod t } func (f *appInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.App{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.App{}, f.defaultInformer) } -func (f *appInformer) Lister() v1.AppLister { - return v1.NewAppLister(f.Informer().GetIndexer()) +func (f *appInformer) Lister() managementv1.AppLister { + return managementv1.NewAppLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/backup.go b/pkg/informers/externalversions/management/v1/backup.go index f25e5711..6cd9489d 100644 --- a/pkg/informers/externalversions/management/v1/backup.go +++ b/pkg/informers/externalversions/management/v1/backup.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Backups. type BackupInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.BackupLister + Lister() managementv1.BackupLister } type backupInformer struct { @@ -45,16 +45,28 @@ func NewFilteredBackupInformer(client versioned.Interface, resyncPeriod time.Dur if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Backups().List(context.TODO(), options) + return client.ManagementV1().Backups().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Backups().Watch(context.TODO(), options) + return client.ManagementV1().Backups().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Backups().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Backups().Watch(ctx, options) }, }, - &managementv1.Backup{}, + &apismanagementv1.Backup{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *backupInformer) defaultInformer(client versioned.Interface, resyncPerio } func (f *backupInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.Backup{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.Backup{}, f.defaultInformer) } -func (f *backupInformer) Lister() v1.BackupLister { - return v1.NewBackupLister(f.Informer().GetIndexer()) +func (f *backupInformer) Lister() managementv1.BackupLister { + return managementv1.NewBackupLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/cluster.go b/pkg/informers/externalversions/management/v1/cluster.go index 1b7bf1f6..7c363f61 100644 --- a/pkg/informers/externalversions/management/v1/cluster.go +++ b/pkg/informers/externalversions/management/v1/cluster.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Clusters. type ClusterInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ClusterLister + Lister() managementv1.ClusterLister } type clusterInformer struct { @@ -45,16 +45,28 @@ func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Du if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Clusters().List(context.TODO(), options) + return client.ManagementV1().Clusters().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Clusters().Watch(context.TODO(), options) + return client.ManagementV1().Clusters().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Clusters().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Clusters().Watch(ctx, options) }, }, - &managementv1.Cluster{}, + &apismanagementv1.Cluster{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *clusterInformer) defaultInformer(client versioned.Interface, resyncPeri } func (f *clusterInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.Cluster{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.Cluster{}, f.defaultInformer) } -func (f *clusterInformer) Lister() v1.ClusterLister { - return v1.NewClusterLister(f.Informer().GetIndexer()) +func (f *clusterInformer) Lister() managementv1.ClusterLister { + return managementv1.NewClusterLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/clusteraccess.go b/pkg/informers/externalversions/management/v1/clusteraccess.go index bfa19ed3..76db4926 100644 --- a/pkg/informers/externalversions/management/v1/clusteraccess.go +++ b/pkg/informers/externalversions/management/v1/clusteraccess.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // ClusterAccesses. type ClusterAccessInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ClusterAccessLister + Lister() managementv1.ClusterAccessLister } type clusterAccessInformer struct { @@ -45,16 +45,28 @@ func NewFilteredClusterAccessInformer(client versioned.Interface, resyncPeriod t if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ClusterAccesses().List(context.TODO(), options) + return client.ManagementV1().ClusterAccesses().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ClusterAccesses().Watch(context.TODO(), options) + return client.ManagementV1().ClusterAccesses().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ClusterAccesses().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ClusterAccesses().Watch(ctx, options) }, }, - &managementv1.ClusterAccess{}, + &apismanagementv1.ClusterAccess{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *clusterAccessInformer) defaultInformer(client versioned.Interface, resy } func (f *clusterAccessInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.ClusterAccess{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.ClusterAccess{}, f.defaultInformer) } -func (f *clusterAccessInformer) Lister() v1.ClusterAccessLister { - return v1.NewClusterAccessLister(f.Informer().GetIndexer()) +func (f *clusterAccessInformer) Lister() managementv1.ClusterAccessLister { + return managementv1.NewClusterAccessLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/clusterroletemplate.go b/pkg/informers/externalversions/management/v1/clusterroletemplate.go index 181b8d9a..fd5ff155 100644 --- a/pkg/informers/externalversions/management/v1/clusterroletemplate.go +++ b/pkg/informers/externalversions/management/v1/clusterroletemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // ClusterRoleTemplates. type ClusterRoleTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ClusterRoleTemplateLister + Lister() managementv1.ClusterRoleTemplateLister } type clusterRoleTemplateInformer struct { @@ -45,16 +45,28 @@ func NewFilteredClusterRoleTemplateInformer(client versioned.Interface, resyncPe if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ClusterRoleTemplates().List(context.TODO(), options) + return client.ManagementV1().ClusterRoleTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ClusterRoleTemplates().Watch(context.TODO(), options) + return client.ManagementV1().ClusterRoleTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ClusterRoleTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ClusterRoleTemplates().Watch(ctx, options) }, }, - &managementv1.ClusterRoleTemplate{}, + &apismanagementv1.ClusterRoleTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *clusterRoleTemplateInformer) defaultInformer(client versioned.Interface } func (f *clusterRoleTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.ClusterRoleTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.ClusterRoleTemplate{}, f.defaultInformer) } -func (f *clusterRoleTemplateInformer) Lister() v1.ClusterRoleTemplateLister { - return v1.NewClusterRoleTemplateLister(f.Informer().GetIndexer()) +func (f *clusterRoleTemplateInformer) Lister() managementv1.ClusterRoleTemplateLister { + return managementv1.NewClusterRoleTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/config.go b/pkg/informers/externalversions/management/v1/config.go index 2bfc1aa6..c6be9711 100644 --- a/pkg/informers/externalversions/management/v1/config.go +++ b/pkg/informers/externalversions/management/v1/config.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Configs. type ConfigInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ConfigLister + Lister() managementv1.ConfigLister } type configInformer struct { @@ -45,16 +45,28 @@ func NewFilteredConfigInformer(client versioned.Interface, resyncPeriod time.Dur if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Configs().List(context.TODO(), options) + return client.ManagementV1().Configs().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Configs().Watch(context.TODO(), options) + return client.ManagementV1().Configs().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Configs().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Configs().Watch(ctx, options) }, }, - &managementv1.Config{}, + &apismanagementv1.Config{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *configInformer) defaultInformer(client versioned.Interface, resyncPerio } func (f *configInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.Config{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.Config{}, f.defaultInformer) } -func (f *configInformer) Lister() v1.ConfigLister { - return v1.NewConfigLister(f.Informer().GetIndexer()) +func (f *configInformer) Lister() managementv1.ConfigLister { + return managementv1.NewConfigLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/convertvirtualclusterconfig.go b/pkg/informers/externalversions/management/v1/convertvirtualclusterconfig.go index d5d7e1b2..0b1d9554 100644 --- a/pkg/informers/externalversions/management/v1/convertvirtualclusterconfig.go +++ b/pkg/informers/externalversions/management/v1/convertvirtualclusterconfig.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // ConvertVirtualClusterConfigs. type ConvertVirtualClusterConfigInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ConvertVirtualClusterConfigLister + Lister() managementv1.ConvertVirtualClusterConfigLister } type convertVirtualClusterConfigInformer struct { @@ -45,16 +45,28 @@ func NewFilteredConvertVirtualClusterConfigInformer(client versioned.Interface, if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ConvertVirtualClusterConfigs().List(context.TODO(), options) + return client.ManagementV1().ConvertVirtualClusterConfigs().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ConvertVirtualClusterConfigs().Watch(context.TODO(), options) + return client.ManagementV1().ConvertVirtualClusterConfigs().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ConvertVirtualClusterConfigs().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ConvertVirtualClusterConfigs().Watch(ctx, options) }, }, - &managementv1.ConvertVirtualClusterConfig{}, + &apismanagementv1.ConvertVirtualClusterConfig{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *convertVirtualClusterConfigInformer) defaultInformer(client versioned.I } func (f *convertVirtualClusterConfigInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.ConvertVirtualClusterConfig{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.ConvertVirtualClusterConfig{}, f.defaultInformer) } -func (f *convertVirtualClusterConfigInformer) Lister() v1.ConvertVirtualClusterConfigLister { - return v1.NewConvertVirtualClusterConfigLister(f.Informer().GetIndexer()) +func (f *convertVirtualClusterConfigInformer) Lister() managementv1.ConvertVirtualClusterConfigLister { + return managementv1.NewConvertVirtualClusterConfigLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/databaseconnector.go b/pkg/informers/externalversions/management/v1/databaseconnector.go new file mode 100644 index 00000000..d577c73c --- /dev/null +++ b/pkg/informers/externalversions/management/v1/databaseconnector.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/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" +) + +// DatabaseConnectorInformer provides access to a shared informer and lister for +// DatabaseConnectors. +type DatabaseConnectorInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.DatabaseConnectorLister +} + +type databaseConnectorInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewDatabaseConnectorInformer constructs a new informer for DatabaseConnector 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 NewDatabaseConnectorInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredDatabaseConnectorInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredDatabaseConnectorInformer constructs a new informer for DatabaseConnector 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 NewFilteredDatabaseConnectorInformer(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().DatabaseConnectors().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DatabaseConnectors().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DatabaseConnectors().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DatabaseConnectors().Watch(ctx, options) + }, + }, + &apismanagementv1.DatabaseConnector{}, + resyncPeriod, + indexers, + ) +} + +func (f *databaseConnectorInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredDatabaseConnectorInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *databaseConnectorInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.DatabaseConnector{}, f.defaultInformer) +} + +func (f *databaseConnectorInformer) Lister() managementv1.DatabaseConnectorLister { + return managementv1.NewDatabaseConnectorLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go b/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go index 65131ea7..c8ef75ca 100644 --- a/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go +++ b/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DevPodEnvironmentTemplates. type DevPodEnvironmentTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodEnvironmentTemplateLister + Lister() managementv1.DevPodEnvironmentTemplateLister } type devPodEnvironmentTemplateInformer struct { @@ -45,16 +45,28 @@ func NewFilteredDevPodEnvironmentTemplateInformer(client versioned.Interface, re if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DevPodEnvironmentTemplates().List(context.TODO(), 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.TODO(), 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) }, }, - &managementv1.DevPodEnvironmentTemplate{}, + &apismanagementv1.DevPodEnvironmentTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *devPodEnvironmentTemplateInformer) defaultInformer(client versioned.Int } func (f *devPodEnvironmentTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.DevPodEnvironmentTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.DevPodEnvironmentTemplate{}, f.defaultInformer) } -func (f *devPodEnvironmentTemplateInformer) Lister() v1.DevPodEnvironmentTemplateLister { - return v1.NewDevPodEnvironmentTemplateLister(f.Informer().GetIndexer()) +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 index 97f11dc2..9272771c 100644 --- a/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go +++ b/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DevPodWorkspaceInstances. type DevPodWorkspaceInstanceInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspaceInstanceLister + Lister() managementv1.DevPodWorkspaceInstanceLister } type devPodWorkspaceInstanceInformer struct { @@ -46,16 +46,28 @@ func NewFilteredDevPodWorkspaceInstanceInformer(client versioned.Interface, name if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).List(context.TODO(), 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.TODO(), 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) }, }, - &managementv1.DevPodWorkspaceInstance{}, + &apismanagementv1.DevPodWorkspaceInstance{}, resyncPeriod, indexers, ) @@ -66,9 +78,9 @@ func (f *devPodWorkspaceInstanceInformer) defaultInformer(client versioned.Inter } func (f *devPodWorkspaceInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.DevPodWorkspaceInstance{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.DevPodWorkspaceInstance{}, f.defaultInformer) } -func (f *devPodWorkspaceInstanceInformer) Lister() v1.DevPodWorkspaceInstanceLister { - return v1.NewDevPodWorkspaceInstanceLister(f.Informer().GetIndexer()) +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 new file mode 100644 index 00000000..3295fe46 --- /dev/null +++ b/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/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 index b74d607e..1a4eaa39 100644 --- a/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go +++ b/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DevPodWorkspaceTemplates. type DevPodWorkspaceTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspaceTemplateLister + Lister() managementv1.DevPodWorkspaceTemplateLister } type devPodWorkspaceTemplateInformer struct { @@ -45,16 +45,28 @@ func NewFilteredDevPodWorkspaceTemplateInformer(client versioned.Interface, resy if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DevPodWorkspaceTemplates().List(context.TODO(), 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.TODO(), 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) }, }, - &managementv1.DevPodWorkspaceTemplate{}, + &apismanagementv1.DevPodWorkspaceTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *devPodWorkspaceTemplateInformer) defaultInformer(client versioned.Inter } func (f *devPodWorkspaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.DevPodWorkspaceTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.DevPodWorkspaceTemplate{}, f.defaultInformer) } -func (f *devPodWorkspaceTemplateInformer) Lister() v1.DevPodWorkspaceTemplateLister { - return v1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) +func (f *devPodWorkspaceTemplateInformer) Lister() managementv1.DevPodWorkspaceTemplateLister { + return managementv1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go b/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go index babc02e6..f83aa2a6 100644 --- a/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go +++ b/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DirectClusterEndpointTokens. type DirectClusterEndpointTokenInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DirectClusterEndpointTokenLister + Lister() managementv1.DirectClusterEndpointTokenLister } type directClusterEndpointTokenInformer struct { @@ -45,16 +45,28 @@ func NewFilteredDirectClusterEndpointTokenInformer(client versioned.Interface, r if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DirectClusterEndpointTokens().List(context.TODO(), options) + return client.ManagementV1().DirectClusterEndpointTokens().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DirectClusterEndpointTokens().Watch(context.TODO(), options) + return client.ManagementV1().DirectClusterEndpointTokens().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DirectClusterEndpointTokens().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DirectClusterEndpointTokens().Watch(ctx, options) }, }, - &managementv1.DirectClusterEndpointToken{}, + &apismanagementv1.DirectClusterEndpointToken{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *directClusterEndpointTokenInformer) defaultInformer(client versioned.In } func (f *directClusterEndpointTokenInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.DirectClusterEndpointToken{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.DirectClusterEndpointToken{}, f.defaultInformer) } -func (f *directClusterEndpointTokenInformer) Lister() v1.DirectClusterEndpointTokenLister { - return v1.NewDirectClusterEndpointTokenLister(f.Informer().GetIndexer()) +func (f *directClusterEndpointTokenInformer) Lister() managementv1.DirectClusterEndpointTokenLister { + return managementv1.NewDirectClusterEndpointTokenLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/event.go b/pkg/informers/externalversions/management/v1/event.go index d940bcfb..f391f355 100644 --- a/pkg/informers/externalversions/management/v1/event.go +++ b/pkg/informers/externalversions/management/v1/event.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Events. type EventInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.EventLister + Lister() managementv1.EventLister } type eventInformer struct { @@ -45,16 +45,28 @@ func NewFilteredEventInformer(client versioned.Interface, resyncPeriod time.Dura if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Events().List(context.TODO(), options) + return client.ManagementV1().Events().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Events().Watch(context.TODO(), options) + return client.ManagementV1().Events().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Events().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Events().Watch(ctx, options) }, }, - &managementv1.Event{}, + &apismanagementv1.Event{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *eventInformer) defaultInformer(client versioned.Interface, resyncPeriod } func (f *eventInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.Event{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.Event{}, f.defaultInformer) } -func (f *eventInformer) Lister() v1.EventLister { - return v1.NewEventLister(f.Informer().GetIndexer()) +func (f *eventInformer) Lister() managementv1.EventLister { + return managementv1.NewEventLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/feature.go b/pkg/informers/externalversions/management/v1/feature.go index 7d2ae1bd..b22906ce 100644 --- a/pkg/informers/externalversions/management/v1/feature.go +++ b/pkg/informers/externalversions/management/v1/feature.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Features. type FeatureInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.FeatureLister + Lister() managementv1.FeatureLister } type featureInformer struct { @@ -45,16 +45,28 @@ func NewFilteredFeatureInformer(client versioned.Interface, resyncPeriod time.Du if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Features().List(context.TODO(), options) + return client.ManagementV1().Features().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Features().Watch(context.TODO(), options) + return client.ManagementV1().Features().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Features().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Features().Watch(ctx, options) }, }, - &managementv1.Feature{}, + &apismanagementv1.Feature{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *featureInformer) defaultInformer(client versioned.Interface, resyncPeri } func (f *featureInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.Feature{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.Feature{}, f.defaultInformer) } -func (f *featureInformer) Lister() v1.FeatureLister { - return v1.NewFeatureLister(f.Informer().GetIndexer()) +func (f *featureInformer) Lister() managementv1.FeatureLister { + return managementv1.NewFeatureLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/ingressauthtoken.go b/pkg/informers/externalversions/management/v1/ingressauthtoken.go index 2273133c..8300d484 100644 --- a/pkg/informers/externalversions/management/v1/ingressauthtoken.go +++ b/pkg/informers/externalversions/management/v1/ingressauthtoken.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // IngressAuthTokens. type IngressAuthTokenInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.IngressAuthTokenLister + Lister() managementv1.IngressAuthTokenLister } type ingressAuthTokenInformer struct { @@ -45,16 +45,28 @@ func NewFilteredIngressAuthTokenInformer(client versioned.Interface, resyncPerio if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().IngressAuthTokens().List(context.TODO(), options) + return client.ManagementV1().IngressAuthTokens().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().IngressAuthTokens().Watch(context.TODO(), options) + return client.ManagementV1().IngressAuthTokens().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().IngressAuthTokens().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().IngressAuthTokens().Watch(ctx, options) }, }, - &managementv1.IngressAuthToken{}, + &apismanagementv1.IngressAuthToken{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *ingressAuthTokenInformer) defaultInformer(client versioned.Interface, r } func (f *ingressAuthTokenInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.IngressAuthToken{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.IngressAuthToken{}, f.defaultInformer) } -func (f *ingressAuthTokenInformer) Lister() v1.IngressAuthTokenLister { - return v1.NewIngressAuthTokenLister(f.Informer().GetIndexer()) +func (f *ingressAuthTokenInformer) Lister() managementv1.IngressAuthTokenLister { + return managementv1.NewIngressAuthTokenLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/interface.go b/pkg/informers/externalversions/management/v1/interface.go index 38e860d7..75fbff39 100644 --- a/pkg/informers/externalversions/management/v1/interface.go +++ b/pkg/informers/externalversions/management/v1/interface.go @@ -26,10 +26,14 @@ type Interface interface { Configs() ConfigInformer // ConvertVirtualClusterConfigs returns a ConvertVirtualClusterConfigInformer. 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 // DirectClusterEndpointTokens returns a DirectClusterEndpointTokenInformer. @@ -46,6 +50,12 @@ type Interface interface { LicenseTokens() LicenseTokenInformer // LoftUpgrades returns a LoftUpgradeInformer. LoftUpgrades() LoftUpgradeInformer + // NodeClaims returns a NodeClaimInformer. + NodeClaims() NodeClaimInformer + // NodeProviders returns a NodeProviderInformer. + NodeProviders() NodeProviderInformer + // NodeTypes returns a NodeTypeInformer. + NodeTypes() NodeTypeInformer // OIDCClients returns a OIDCClientInformer. OIDCClients() OIDCClientInformer // OwnedAccessKeys returns a OwnedAccessKeyInformer. @@ -60,8 +70,6 @@ type Interface interface { RegisterVirtualClusters() RegisterVirtualClusterInformer // ResetAccessKeys returns a ResetAccessKeyInformer. ResetAccessKeys() ResetAccessKeyInformer - // Runners returns a RunnerInformer. - Runners() RunnerInformer // Selves returns a SelfInformer. Selves() SelfInformer // SelfSubjectAccessReviews returns a SelfSubjectAccessReviewInformer. @@ -84,6 +92,8 @@ type Interface interface { Users() UserInformer // VirtualClusterInstances returns a VirtualClusterInstanceInformer. VirtualClusterInstances() VirtualClusterInstanceInformer + // VirtualClusterSchemas returns a VirtualClusterSchemaInformer. + VirtualClusterSchemas() VirtualClusterSchemaInformer // VirtualClusterTemplates returns a VirtualClusterTemplateInformer. VirtualClusterTemplates() VirtualClusterTemplateInformer } @@ -144,6 +154,11 @@ func (v *version) ConvertVirtualClusterConfigs() ConvertVirtualClusterConfigInfo return &convertVirtualClusterConfigInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } +// DatabaseConnectors returns a DatabaseConnectorInformer. +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} @@ -154,6 +169,11 @@ func (v *version) DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer { return &devPodWorkspaceInstanceInformer{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} +} + // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. func (v *version) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer { return &devPodWorkspaceTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} @@ -194,6 +214,21 @@ func (v *version) LoftUpgrades() LoftUpgradeInformer { 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} +} + +// NodeProviders returns a NodeProviderInformer. +func (v *version) NodeProviders() NodeProviderInformer { + return &nodeProviderInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + +// NodeTypes returns a NodeTypeInformer. +func (v *version) NodeTypes() NodeTypeInformer { + return &nodeTypeInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + // OIDCClients returns a OIDCClientInformer. func (v *version) OIDCClients() OIDCClientInformer { return &oIDCClientInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} @@ -229,11 +264,6 @@ func (v *version) ResetAccessKeys() ResetAccessKeyInformer { return &resetAccessKeyInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// Runners returns a RunnerInformer. -func (v *version) Runners() RunnerInformer { - return &runnerInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - // Selves returns a SelfInformer. func (v *version) Selves() SelfInformer { return &selfInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} @@ -289,6 +319,11 @@ func (v *version) VirtualClusterInstances() VirtualClusterInstanceInformer { return &virtualClusterInstanceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } +// VirtualClusterSchemas returns a VirtualClusterSchemaInformer. +func (v *version) VirtualClusterSchemas() VirtualClusterSchemaInformer { + return &virtualClusterSchemaInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + // VirtualClusterTemplates returns a VirtualClusterTemplateInformer. func (v *version) VirtualClusterTemplates() VirtualClusterTemplateInformer { return &virtualClusterTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} diff --git a/pkg/informers/externalversions/management/v1/license.go b/pkg/informers/externalversions/management/v1/license.go index b5de0101..e24d5746 100644 --- a/pkg/informers/externalversions/management/v1/license.go +++ b/pkg/informers/externalversions/management/v1/license.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Licenses. type LicenseInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.LicenseLister + Lister() managementv1.LicenseLister } type licenseInformer struct { @@ -45,16 +45,28 @@ func NewFilteredLicenseInformer(client versioned.Interface, resyncPeriod time.Du if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Licenses().List(context.TODO(), options) + return client.ManagementV1().Licenses().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Licenses().Watch(context.TODO(), options) + return client.ManagementV1().Licenses().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Licenses().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Licenses().Watch(ctx, options) }, }, - &managementv1.License{}, + &apismanagementv1.License{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *licenseInformer) defaultInformer(client versioned.Interface, resyncPeri } func (f *licenseInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.License{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.License{}, f.defaultInformer) } -func (f *licenseInformer) Lister() v1.LicenseLister { - return v1.NewLicenseLister(f.Informer().GetIndexer()) +func (f *licenseInformer) Lister() managementv1.LicenseLister { + return managementv1.NewLicenseLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/licensetoken.go b/pkg/informers/externalversions/management/v1/licensetoken.go index bd8eb0be..fb69a4df 100644 --- a/pkg/informers/externalversions/management/v1/licensetoken.go +++ b/pkg/informers/externalversions/management/v1/licensetoken.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // LicenseTokens. type LicenseTokenInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.LicenseTokenLister + Lister() managementv1.LicenseTokenLister } type licenseTokenInformer struct { @@ -45,16 +45,28 @@ func NewFilteredLicenseTokenInformer(client versioned.Interface, resyncPeriod ti if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().LicenseTokens().List(context.TODO(), options) + return client.ManagementV1().LicenseTokens().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().LicenseTokens().Watch(context.TODO(), options) + return client.ManagementV1().LicenseTokens().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().LicenseTokens().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().LicenseTokens().Watch(ctx, options) }, }, - &managementv1.LicenseToken{}, + &apismanagementv1.LicenseToken{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *licenseTokenInformer) defaultInformer(client versioned.Interface, resyn } func (f *licenseTokenInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.LicenseToken{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.LicenseToken{}, f.defaultInformer) } -func (f *licenseTokenInformer) Lister() v1.LicenseTokenLister { - return v1.NewLicenseTokenLister(f.Informer().GetIndexer()) +func (f *licenseTokenInformer) Lister() managementv1.LicenseTokenLister { + return managementv1.NewLicenseTokenLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/loftupgrade.go b/pkg/informers/externalversions/management/v1/loftupgrade.go index bc016e52..69bb42bd 100644 --- a/pkg/informers/externalversions/management/v1/loftupgrade.go +++ b/pkg/informers/externalversions/management/v1/loftupgrade.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // LoftUpgrades. type LoftUpgradeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.LoftUpgradeLister + Lister() managementv1.LoftUpgradeLister } type loftUpgradeInformer struct { @@ -45,16 +45,28 @@ func NewFilteredLoftUpgradeInformer(client versioned.Interface, resyncPeriod tim if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().LoftUpgrades().List(context.TODO(), options) + return client.ManagementV1().LoftUpgrades().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().LoftUpgrades().Watch(context.TODO(), options) + return client.ManagementV1().LoftUpgrades().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().LoftUpgrades().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().LoftUpgrades().Watch(ctx, options) }, }, - &managementv1.LoftUpgrade{}, + &apismanagementv1.LoftUpgrade{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *loftUpgradeInformer) defaultInformer(client versioned.Interface, resync } func (f *loftUpgradeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.LoftUpgrade{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.LoftUpgrade{}, f.defaultInformer) } -func (f *loftUpgradeInformer) Lister() v1.LoftUpgradeLister { - return v1.NewLoftUpgradeLister(f.Informer().GetIndexer()) +func (f *loftUpgradeInformer) Lister() managementv1.LoftUpgradeLister { + return managementv1.NewLoftUpgradeLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/nodeclaim.go b/pkg/informers/externalversions/management/v1/nodeclaim.go new file mode 100644 index 00000000..33f46b22 --- /dev/null +++ b/pkg/informers/externalversions/management/v1/nodeclaim.go @@ -0,0 +1,86 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/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" +) + +// NodeClaimInformer provides access to a shared informer and lister for +// NodeClaims. +type NodeClaimInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.NodeClaimLister +} + +type nodeClaimInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewNodeClaimInformer constructs a new informer for NodeClaim 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 NewNodeClaimInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeClaimInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeClaimInformer constructs a new informer for NodeClaim 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 NewFilteredNodeClaimInformer(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().NodeClaims(namespace).List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeClaims(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeClaims(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeClaims(namespace).Watch(ctx, options) + }, + }, + &apismanagementv1.NodeClaim{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeClaimInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeClaimInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeClaimInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.NodeClaim{}, f.defaultInformer) +} + +func (f *nodeClaimInformer) Lister() managementv1.NodeClaimLister { + return managementv1.NewNodeClaimLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/nodeprovider.go b/pkg/informers/externalversions/management/v1/nodeprovider.go new file mode 100644 index 00000000..68eda66e --- /dev/null +++ b/pkg/informers/externalversions/management/v1/nodeprovider.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/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" +) + +// NodeProviderInformer provides access to a shared informer and lister for +// NodeProviders. +type NodeProviderInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.NodeProviderLister +} + +type nodeProviderInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewNodeProviderInformer constructs a new informer for NodeProvider 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 NewNodeProviderInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeProviderInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeProviderInformer constructs a new informer for NodeProvider 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 NewFilteredNodeProviderInformer(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().NodeProviders().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeProviders().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeProviders().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeProviders().Watch(ctx, options) + }, + }, + &apismanagementv1.NodeProvider{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeProviderInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeProviderInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeProviderInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.NodeProvider{}, f.defaultInformer) +} + +func (f *nodeProviderInformer) Lister() managementv1.NodeProviderLister { + return managementv1.NewNodeProviderLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/nodetype.go b/pkg/informers/externalversions/management/v1/nodetype.go new file mode 100644 index 00000000..f3df7910 --- /dev/null +++ b/pkg/informers/externalversions/management/v1/nodetype.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/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" +) + +// NodeTypeInformer provides access to a shared informer and lister for +// NodeTypes. +type NodeTypeInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.NodeTypeLister +} + +type nodeTypeInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewNodeTypeInformer constructs a new informer for NodeType 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 NewNodeTypeInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeTypeInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeTypeInformer constructs a new informer for NodeType 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 NewFilteredNodeTypeInformer(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().NodeTypes().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeTypes().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeTypes().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeTypes().Watch(ctx, options) + }, + }, + &apismanagementv1.NodeType{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeTypeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeTypeInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeTypeInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.NodeType{}, f.defaultInformer) +} + +func (f *nodeTypeInformer) Lister() managementv1.NodeTypeLister { + return managementv1.NewNodeTypeLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/oidcclient.go b/pkg/informers/externalversions/management/v1/oidcclient.go index d7af75c5..7c9d9b82 100644 --- a/pkg/informers/externalversions/management/v1/oidcclient.go +++ b/pkg/informers/externalversions/management/v1/oidcclient.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // OIDCClients. type OIDCClientInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.OIDCClientLister + Lister() managementv1.OIDCClientLister } type oIDCClientInformer struct { @@ -45,16 +45,28 @@ func NewFilteredOIDCClientInformer(client versioned.Interface, resyncPeriod time if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().OIDCClients().List(context.TODO(), options) + return client.ManagementV1().OIDCClients().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().OIDCClients().Watch(context.TODO(), options) + return client.ManagementV1().OIDCClients().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().OIDCClients().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().OIDCClients().Watch(ctx, options) }, }, - &managementv1.OIDCClient{}, + &apismanagementv1.OIDCClient{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *oIDCClientInformer) defaultInformer(client versioned.Interface, resyncP } func (f *oIDCClientInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.OIDCClient{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.OIDCClient{}, f.defaultInformer) } -func (f *oIDCClientInformer) Lister() v1.OIDCClientLister { - return v1.NewOIDCClientLister(f.Informer().GetIndexer()) +func (f *oIDCClientInformer) Lister() managementv1.OIDCClientLister { + return managementv1.NewOIDCClientLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/ownedaccesskey.go b/pkg/informers/externalversions/management/v1/ownedaccesskey.go index 7c76e8e4..413b6b3e 100644 --- a/pkg/informers/externalversions/management/v1/ownedaccesskey.go +++ b/pkg/informers/externalversions/management/v1/ownedaccesskey.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // OwnedAccessKeys. type OwnedAccessKeyInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.OwnedAccessKeyLister + Lister() managementv1.OwnedAccessKeyLister } type ownedAccessKeyInformer struct { @@ -45,16 +45,28 @@ func NewFilteredOwnedAccessKeyInformer(client versioned.Interface, resyncPeriod if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().OwnedAccessKeys().List(context.TODO(), options) + return client.ManagementV1().OwnedAccessKeys().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().OwnedAccessKeys().Watch(context.TODO(), options) + return client.ManagementV1().OwnedAccessKeys().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().OwnedAccessKeys().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().OwnedAccessKeys().Watch(ctx, options) }, }, - &managementv1.OwnedAccessKey{}, + &apismanagementv1.OwnedAccessKey{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *ownedAccessKeyInformer) defaultInformer(client versioned.Interface, res } func (f *ownedAccessKeyInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.OwnedAccessKey{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.OwnedAccessKey{}, f.defaultInformer) } -func (f *ownedAccessKeyInformer) Lister() v1.OwnedAccessKeyLister { - return v1.NewOwnedAccessKeyLister(f.Informer().GetIndexer()) +func (f *ownedAccessKeyInformer) Lister() managementv1.OwnedAccessKeyLister { + return managementv1.NewOwnedAccessKeyLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/project.go b/pkg/informers/externalversions/management/v1/project.go index 41f40716..91424968 100644 --- a/pkg/informers/externalversions/management/v1/project.go +++ b/pkg/informers/externalversions/management/v1/project.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Projects. type ProjectInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ProjectLister + Lister() managementv1.ProjectLister } type projectInformer struct { @@ -45,16 +45,28 @@ func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Du if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Projects().List(context.TODO(), options) + return client.ManagementV1().Projects().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Projects().Watch(context.TODO(), options) + return client.ManagementV1().Projects().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Projects().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Projects().Watch(ctx, options) }, }, - &managementv1.Project{}, + &apismanagementv1.Project{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *projectInformer) defaultInformer(client versioned.Interface, resyncPeri } func (f *projectInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.Project{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.Project{}, f.defaultInformer) } -func (f *projectInformer) Lister() v1.ProjectLister { - return v1.NewProjectLister(f.Informer().GetIndexer()) +func (f *projectInformer) Lister() managementv1.ProjectLister { + return managementv1.NewProjectLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/projectsecret.go b/pkg/informers/externalversions/management/v1/projectsecret.go index be6866c2..dd994bc6 100644 --- a/pkg/informers/externalversions/management/v1/projectsecret.go +++ b/pkg/informers/externalversions/management/v1/projectsecret.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // ProjectSecrets. type ProjectSecretInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ProjectSecretLister + Lister() managementv1.ProjectSecretLister } type projectSecretInformer struct { @@ -46,16 +46,28 @@ func NewFilteredProjectSecretInformer(client versioned.Interface, namespace stri if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ProjectSecrets(namespace).List(context.TODO(), options) + return client.ManagementV1().ProjectSecrets(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ProjectSecrets(namespace).Watch(context.TODO(), options) + return client.ManagementV1().ProjectSecrets(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ProjectSecrets(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ProjectSecrets(namespace).Watch(ctx, options) }, }, - &managementv1.ProjectSecret{}, + &apismanagementv1.ProjectSecret{}, resyncPeriod, indexers, ) @@ -66,9 +78,9 @@ func (f *projectSecretInformer) defaultInformer(client versioned.Interface, resy } func (f *projectSecretInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.ProjectSecret{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.ProjectSecret{}, f.defaultInformer) } -func (f *projectSecretInformer) Lister() v1.ProjectSecretLister { - return v1.NewProjectSecretLister(f.Informer().GetIndexer()) +func (f *projectSecretInformer) Lister() managementv1.ProjectSecretLister { + return managementv1.NewProjectSecretLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/redirecttoken.go b/pkg/informers/externalversions/management/v1/redirecttoken.go index adcad909..8b2c5469 100644 --- a/pkg/informers/externalversions/management/v1/redirecttoken.go +++ b/pkg/informers/externalversions/management/v1/redirecttoken.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // RedirectTokens. type RedirectTokenInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.RedirectTokenLister + Lister() managementv1.RedirectTokenLister } type redirectTokenInformer struct { @@ -45,16 +45,28 @@ func NewFilteredRedirectTokenInformer(client versioned.Interface, resyncPeriod t if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().RedirectTokens().List(context.TODO(), options) + return client.ManagementV1().RedirectTokens().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().RedirectTokens().Watch(context.TODO(), options) + return client.ManagementV1().RedirectTokens().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().RedirectTokens().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().RedirectTokens().Watch(ctx, options) }, }, - &managementv1.RedirectToken{}, + &apismanagementv1.RedirectToken{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *redirectTokenInformer) defaultInformer(client versioned.Interface, resy } func (f *redirectTokenInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.RedirectToken{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.RedirectToken{}, f.defaultInformer) } -func (f *redirectTokenInformer) Lister() v1.RedirectTokenLister { - return v1.NewRedirectTokenLister(f.Informer().GetIndexer()) +func (f *redirectTokenInformer) Lister() managementv1.RedirectTokenLister { + return managementv1.NewRedirectTokenLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/registervirtualcluster.go b/pkg/informers/externalversions/management/v1/registervirtualcluster.go index 76c9ecd8..ac30f569 100644 --- a/pkg/informers/externalversions/management/v1/registervirtualcluster.go +++ b/pkg/informers/externalversions/management/v1/registervirtualcluster.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // RegisterVirtualClusters. type RegisterVirtualClusterInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.RegisterVirtualClusterLister + Lister() managementv1.RegisterVirtualClusterLister } type registerVirtualClusterInformer struct { @@ -45,16 +45,28 @@ func NewFilteredRegisterVirtualClusterInformer(client versioned.Interface, resyn if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().RegisterVirtualClusters().List(context.TODO(), options) + return client.ManagementV1().RegisterVirtualClusters().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().RegisterVirtualClusters().Watch(context.TODO(), options) + return client.ManagementV1().RegisterVirtualClusters().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().RegisterVirtualClusters().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().RegisterVirtualClusters().Watch(ctx, options) }, }, - &managementv1.RegisterVirtualCluster{}, + &apismanagementv1.RegisterVirtualCluster{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *registerVirtualClusterInformer) defaultInformer(client versioned.Interf } func (f *registerVirtualClusterInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.RegisterVirtualCluster{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.RegisterVirtualCluster{}, f.defaultInformer) } -func (f *registerVirtualClusterInformer) Lister() v1.RegisterVirtualClusterLister { - return v1.NewRegisterVirtualClusterLister(f.Informer().GetIndexer()) +func (f *registerVirtualClusterInformer) Lister() managementv1.RegisterVirtualClusterLister { + return managementv1.NewRegisterVirtualClusterLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/resetaccesskey.go b/pkg/informers/externalversions/management/v1/resetaccesskey.go index 321d3454..b732fb32 100644 --- a/pkg/informers/externalversions/management/v1/resetaccesskey.go +++ b/pkg/informers/externalversions/management/v1/resetaccesskey.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // ResetAccessKeys. type ResetAccessKeyInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ResetAccessKeyLister + Lister() managementv1.ResetAccessKeyLister } type resetAccessKeyInformer struct { @@ -45,16 +45,28 @@ func NewFilteredResetAccessKeyInformer(client versioned.Interface, resyncPeriod if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ResetAccessKeys().List(context.TODO(), options) + return client.ManagementV1().ResetAccessKeys().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ResetAccessKeys().Watch(context.TODO(), options) + return client.ManagementV1().ResetAccessKeys().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ResetAccessKeys().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ResetAccessKeys().Watch(ctx, options) }, }, - &managementv1.ResetAccessKey{}, + &apismanagementv1.ResetAccessKey{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *resetAccessKeyInformer) defaultInformer(client versioned.Interface, res } func (f *resetAccessKeyInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.ResetAccessKey{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.ResetAccessKey{}, f.defaultInformer) } -func (f *resetAccessKeyInformer) Lister() v1.ResetAccessKeyLister { - return v1.NewResetAccessKeyLister(f.Informer().GetIndexer()) +func (f *resetAccessKeyInformer) Lister() managementv1.ResetAccessKeyLister { + return managementv1.NewResetAccessKeyLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/runner.go b/pkg/informers/externalversions/management/v1/runner.go deleted file mode 100644 index ac5eccf4..00000000 --- a/pkg/informers/externalversions/management/v1/runner.go +++ /dev/null @@ -1,73 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - "context" - time "time" - - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" - internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/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" -) - -// RunnerInformer provides access to a shared informer and lister for -// Runners. -type RunnerInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1.RunnerLister -} - -type runnerInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewRunnerInformer constructs a new informer for Runner 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 NewRunnerInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredRunnerInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredRunnerInformer constructs a new informer for Runner 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 NewFilteredRunnerInformer(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().Runners().List(context.TODO(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().Runners().Watch(context.TODO(), options) - }, - }, - &managementv1.Runner{}, - resyncPeriod, - indexers, - ) -} - -func (f *runnerInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredRunnerInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *runnerInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.Runner{}, f.defaultInformer) -} - -func (f *runnerInformer) Lister() v1.RunnerLister { - return v1.NewRunnerLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/management/v1/self.go b/pkg/informers/externalversions/management/v1/self.go index fdfb1b26..f03cb854 100644 --- a/pkg/informers/externalversions/management/v1/self.go +++ b/pkg/informers/externalversions/management/v1/self.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Selves. type SelfInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.SelfLister + Lister() managementv1.SelfLister } type selfInformer struct { @@ -45,16 +45,28 @@ func NewFilteredSelfInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Selves().List(context.TODO(), options) + return client.ManagementV1().Selves().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Selves().Watch(context.TODO(), options) + return client.ManagementV1().Selves().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Selves().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Selves().Watch(ctx, options) }, }, - &managementv1.Self{}, + &apismanagementv1.Self{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *selfInformer) defaultInformer(client versioned.Interface, resyncPeriod } func (f *selfInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.Self{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.Self{}, f.defaultInformer) } -func (f *selfInformer) Lister() v1.SelfLister { - return v1.NewSelfLister(f.Informer().GetIndexer()) +func (f *selfInformer) Lister() managementv1.SelfLister { + return managementv1.NewSelfLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/selfsubjectaccessreview.go b/pkg/informers/externalversions/management/v1/selfsubjectaccessreview.go index e2f924ed..a7757685 100644 --- a/pkg/informers/externalversions/management/v1/selfsubjectaccessreview.go +++ b/pkg/informers/externalversions/management/v1/selfsubjectaccessreview.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // SelfSubjectAccessReviews. type SelfSubjectAccessReviewInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.SelfSubjectAccessReviewLister + Lister() managementv1.SelfSubjectAccessReviewLister } type selfSubjectAccessReviewInformer struct { @@ -45,16 +45,28 @@ func NewFilteredSelfSubjectAccessReviewInformer(client versioned.Interface, resy if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SelfSubjectAccessReviews().List(context.TODO(), options) + return client.ManagementV1().SelfSubjectAccessReviews().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SelfSubjectAccessReviews().Watch(context.TODO(), options) + return client.ManagementV1().SelfSubjectAccessReviews().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SelfSubjectAccessReviews().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SelfSubjectAccessReviews().Watch(ctx, options) }, }, - &managementv1.SelfSubjectAccessReview{}, + &apismanagementv1.SelfSubjectAccessReview{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *selfSubjectAccessReviewInformer) defaultInformer(client versioned.Inter } func (f *selfSubjectAccessReviewInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.SelfSubjectAccessReview{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.SelfSubjectAccessReview{}, f.defaultInformer) } -func (f *selfSubjectAccessReviewInformer) Lister() v1.SelfSubjectAccessReviewLister { - return v1.NewSelfSubjectAccessReviewLister(f.Informer().GetIndexer()) +func (f *selfSubjectAccessReviewInformer) Lister() managementv1.SelfSubjectAccessReviewLister { + return managementv1.NewSelfSubjectAccessReviewLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/sharedsecret.go b/pkg/informers/externalversions/management/v1/sharedsecret.go index 5afb3e72..fee5af61 100644 --- a/pkg/informers/externalversions/management/v1/sharedsecret.go +++ b/pkg/informers/externalversions/management/v1/sharedsecret.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // SharedSecrets. type SharedSecretInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.SharedSecretLister + Lister() managementv1.SharedSecretLister } type sharedSecretInformer struct { @@ -46,16 +46,28 @@ func NewFilteredSharedSecretInformer(client versioned.Interface, namespace strin if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SharedSecrets(namespace).List(context.TODO(), options) + return client.ManagementV1().SharedSecrets(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SharedSecrets(namespace).Watch(context.TODO(), options) + return client.ManagementV1().SharedSecrets(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SharedSecrets(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SharedSecrets(namespace).Watch(ctx, options) }, }, - &managementv1.SharedSecret{}, + &apismanagementv1.SharedSecret{}, resyncPeriod, indexers, ) @@ -66,9 +78,9 @@ func (f *sharedSecretInformer) defaultInformer(client versioned.Interface, resyn } func (f *sharedSecretInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.SharedSecret{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.SharedSecret{}, f.defaultInformer) } -func (f *sharedSecretInformer) Lister() v1.SharedSecretLister { - return v1.NewSharedSecretLister(f.Informer().GetIndexer()) +func (f *sharedSecretInformer) Lister() managementv1.SharedSecretLister { + return managementv1.NewSharedSecretLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/spaceinstance.go b/pkg/informers/externalversions/management/v1/spaceinstance.go index 703b9f18..d4635dd2 100644 --- a/pkg/informers/externalversions/management/v1/spaceinstance.go +++ b/pkg/informers/externalversions/management/v1/spaceinstance.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // SpaceInstances. type SpaceInstanceInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.SpaceInstanceLister + Lister() managementv1.SpaceInstanceLister } type spaceInstanceInformer struct { @@ -46,16 +46,28 @@ func NewFilteredSpaceInstanceInformer(client versioned.Interface, namespace stri if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SpaceInstances(namespace).List(context.TODO(), options) + return client.ManagementV1().SpaceInstances(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SpaceInstances(namespace).Watch(context.TODO(), options) + return client.ManagementV1().SpaceInstances(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SpaceInstances(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SpaceInstances(namespace).Watch(ctx, options) }, }, - &managementv1.SpaceInstance{}, + &apismanagementv1.SpaceInstance{}, resyncPeriod, indexers, ) @@ -66,9 +78,9 @@ func (f *spaceInstanceInformer) defaultInformer(client versioned.Interface, resy } func (f *spaceInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.SpaceInstance{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.SpaceInstance{}, f.defaultInformer) } -func (f *spaceInstanceInformer) Lister() v1.SpaceInstanceLister { - return v1.NewSpaceInstanceLister(f.Informer().GetIndexer()) +func (f *spaceInstanceInformer) Lister() managementv1.SpaceInstanceLister { + return managementv1.NewSpaceInstanceLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/spacetemplate.go b/pkg/informers/externalversions/management/v1/spacetemplate.go index 433ad8a1..f6d4b175 100644 --- a/pkg/informers/externalversions/management/v1/spacetemplate.go +++ b/pkg/informers/externalversions/management/v1/spacetemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // SpaceTemplates. type SpaceTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.SpaceTemplateLister + Lister() managementv1.SpaceTemplateLister } type spaceTemplateInformer struct { @@ -45,16 +45,28 @@ func NewFilteredSpaceTemplateInformer(client versioned.Interface, resyncPeriod t if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SpaceTemplates().List(context.TODO(), options) + return client.ManagementV1().SpaceTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SpaceTemplates().Watch(context.TODO(), options) + return client.ManagementV1().SpaceTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SpaceTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SpaceTemplates().Watch(ctx, options) }, }, - &managementv1.SpaceTemplate{}, + &apismanagementv1.SpaceTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *spaceTemplateInformer) defaultInformer(client versioned.Interface, resy } func (f *spaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.SpaceTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.SpaceTemplate{}, f.defaultInformer) } -func (f *spaceTemplateInformer) Lister() v1.SpaceTemplateLister { - return v1.NewSpaceTemplateLister(f.Informer().GetIndexer()) +func (f *spaceTemplateInformer) Lister() managementv1.SpaceTemplateLister { + return managementv1.NewSpaceTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/subjectaccessreview.go b/pkg/informers/externalversions/management/v1/subjectaccessreview.go index a4afaf37..5ceb98d3 100644 --- a/pkg/informers/externalversions/management/v1/subjectaccessreview.go +++ b/pkg/informers/externalversions/management/v1/subjectaccessreview.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // SubjectAccessReviews. type SubjectAccessReviewInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.SubjectAccessReviewLister + Lister() managementv1.SubjectAccessReviewLister } type subjectAccessReviewInformer struct { @@ -45,16 +45,28 @@ func NewFilteredSubjectAccessReviewInformer(client versioned.Interface, resyncPe if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SubjectAccessReviews().List(context.TODO(), options) + return client.ManagementV1().SubjectAccessReviews().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SubjectAccessReviews().Watch(context.TODO(), options) + return client.ManagementV1().SubjectAccessReviews().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SubjectAccessReviews().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SubjectAccessReviews().Watch(ctx, options) }, }, - &managementv1.SubjectAccessReview{}, + &apismanagementv1.SubjectAccessReview{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *subjectAccessReviewInformer) defaultInformer(client versioned.Interface } func (f *subjectAccessReviewInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.SubjectAccessReview{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.SubjectAccessReview{}, f.defaultInformer) } -func (f *subjectAccessReviewInformer) Lister() v1.SubjectAccessReviewLister { - return v1.NewSubjectAccessReviewLister(f.Informer().GetIndexer()) +func (f *subjectAccessReviewInformer) Lister() managementv1.SubjectAccessReviewLister { + return managementv1.NewSubjectAccessReviewLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/task.go b/pkg/informers/externalversions/management/v1/task.go index e3c6b683..75945c14 100644 --- a/pkg/informers/externalversions/management/v1/task.go +++ b/pkg/informers/externalversions/management/v1/task.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Tasks. type TaskInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.TaskLister + Lister() managementv1.TaskLister } type taskInformer struct { @@ -45,16 +45,28 @@ func NewFilteredTaskInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Tasks().List(context.TODO(), options) + return client.ManagementV1().Tasks().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Tasks().Watch(context.TODO(), options) + return client.ManagementV1().Tasks().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Tasks().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Tasks().Watch(ctx, options) }, }, - &managementv1.Task{}, + &apismanagementv1.Task{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *taskInformer) defaultInformer(client versioned.Interface, resyncPeriod } func (f *taskInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.Task{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.Task{}, f.defaultInformer) } -func (f *taskInformer) Lister() v1.TaskLister { - return v1.NewTaskLister(f.Informer().GetIndexer()) +func (f *taskInformer) Lister() managementv1.TaskLister { + return managementv1.NewTaskLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/team.go b/pkg/informers/externalversions/management/v1/team.go index baed8098..9e3fb4d7 100644 --- a/pkg/informers/externalversions/management/v1/team.go +++ b/pkg/informers/externalversions/management/v1/team.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Teams. type TeamInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.TeamLister + Lister() managementv1.TeamLister } type teamInformer struct { @@ -45,16 +45,28 @@ func NewFilteredTeamInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Teams().List(context.TODO(), options) + return client.ManagementV1().Teams().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Teams().Watch(context.TODO(), options) + return client.ManagementV1().Teams().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Teams().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Teams().Watch(ctx, options) }, }, - &managementv1.Team{}, + &apismanagementv1.Team{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *teamInformer) defaultInformer(client versioned.Interface, resyncPeriod } func (f *teamInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.Team{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.Team{}, f.defaultInformer) } -func (f *teamInformer) Lister() v1.TeamLister { - return v1.NewTeamLister(f.Informer().GetIndexer()) +func (f *teamInformer) Lister() managementv1.TeamLister { + return managementv1.NewTeamLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/translatevclusterresourcename.go b/pkg/informers/externalversions/management/v1/translatevclusterresourcename.go index c0af574b..3891d6e6 100644 --- a/pkg/informers/externalversions/management/v1/translatevclusterresourcename.go +++ b/pkg/informers/externalversions/management/v1/translatevclusterresourcename.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // TranslateVClusterResourceNames. type TranslateVClusterResourceNameInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.TranslateVClusterResourceNameLister + Lister() managementv1.TranslateVClusterResourceNameLister } type translateVClusterResourceNameInformer struct { @@ -45,16 +45,28 @@ func NewFilteredTranslateVClusterResourceNameInformer(client versioned.Interface if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().TranslateVClusterResourceNames().List(context.TODO(), options) + return client.ManagementV1().TranslateVClusterResourceNames().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().TranslateVClusterResourceNames().Watch(context.TODO(), options) + return client.ManagementV1().TranslateVClusterResourceNames().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().TranslateVClusterResourceNames().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().TranslateVClusterResourceNames().Watch(ctx, options) }, }, - &managementv1.TranslateVClusterResourceName{}, + &apismanagementv1.TranslateVClusterResourceName{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *translateVClusterResourceNameInformer) defaultInformer(client versioned } func (f *translateVClusterResourceNameInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.TranslateVClusterResourceName{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.TranslateVClusterResourceName{}, f.defaultInformer) } -func (f *translateVClusterResourceNameInformer) Lister() v1.TranslateVClusterResourceNameLister { - return v1.NewTranslateVClusterResourceNameLister(f.Informer().GetIndexer()) +func (f *translateVClusterResourceNameInformer) Lister() managementv1.TranslateVClusterResourceNameLister { + return managementv1.NewTranslateVClusterResourceNameLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/user.go b/pkg/informers/externalversions/management/v1/user.go index 1bb267de..c51b4755 100644 --- a/pkg/informers/externalversions/management/v1/user.go +++ b/pkg/informers/externalversions/management/v1/user.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Users. type UserInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.UserLister + Lister() managementv1.UserLister } type userInformer struct { @@ -45,16 +45,28 @@ func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Users().List(context.TODO(), options) + return client.ManagementV1().Users().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Users().Watch(context.TODO(), options) + return client.ManagementV1().Users().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Users().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Users().Watch(ctx, options) }, }, - &managementv1.User{}, + &apismanagementv1.User{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *userInformer) defaultInformer(client versioned.Interface, resyncPeriod } func (f *userInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.User{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.User{}, f.defaultInformer) } -func (f *userInformer) Lister() v1.UserLister { - return v1.NewUserLister(f.Informer().GetIndexer()) +func (f *userInformer) Lister() managementv1.UserLister { + return managementv1.NewUserLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/virtualclusterinstance.go b/pkg/informers/externalversions/management/v1/virtualclusterinstance.go index ebe1aa51..662f9b49 100644 --- a/pkg/informers/externalversions/management/v1/virtualclusterinstance.go +++ b/pkg/informers/externalversions/management/v1/virtualclusterinstance.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // VirtualClusterInstances. type VirtualClusterInstanceInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.VirtualClusterInstanceLister + Lister() managementv1.VirtualClusterInstanceLister } type virtualClusterInstanceInformer struct { @@ -46,16 +46,28 @@ func NewFilteredVirtualClusterInstanceInformer(client versioned.Interface, names if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().VirtualClusterInstances(namespace).List(context.TODO(), options) + return client.ManagementV1().VirtualClusterInstances(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().VirtualClusterInstances(namespace).Watch(context.TODO(), options) + return client.ManagementV1().VirtualClusterInstances(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterInstances(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterInstances(namespace).Watch(ctx, options) }, }, - &managementv1.VirtualClusterInstance{}, + &apismanagementv1.VirtualClusterInstance{}, resyncPeriod, indexers, ) @@ -66,9 +78,9 @@ func (f *virtualClusterInstanceInformer) defaultInformer(client versioned.Interf } func (f *virtualClusterInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.VirtualClusterInstance{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.VirtualClusterInstance{}, f.defaultInformer) } -func (f *virtualClusterInstanceInformer) Lister() v1.VirtualClusterInstanceLister { - return v1.NewVirtualClusterInstanceLister(f.Informer().GetIndexer()) +func (f *virtualClusterInstanceInformer) Lister() managementv1.VirtualClusterInstanceLister { + return managementv1.NewVirtualClusterInstanceLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/virtualclusterschema.go b/pkg/informers/externalversions/management/v1/virtualclusterschema.go new file mode 100644 index 00000000..0a4f670a --- /dev/null +++ b/pkg/informers/externalversions/management/v1/virtualclusterschema.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/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" +) + +// VirtualClusterSchemaInformer provides access to a shared informer and lister for +// VirtualClusterSchemas. +type VirtualClusterSchemaInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.VirtualClusterSchemaLister +} + +type virtualClusterSchemaInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewVirtualClusterSchemaInformer constructs a new informer for VirtualClusterSchema 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 NewVirtualClusterSchemaInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredVirtualClusterSchemaInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredVirtualClusterSchemaInformer constructs a new informer for VirtualClusterSchema 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 NewFilteredVirtualClusterSchemaInformer(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().VirtualClusterSchemas().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterSchemas().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterSchemas().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterSchemas().Watch(ctx, options) + }, + }, + &apismanagementv1.VirtualClusterSchema{}, + resyncPeriod, + indexers, + ) +} + +func (f *virtualClusterSchemaInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredVirtualClusterSchemaInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *virtualClusterSchemaInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.VirtualClusterSchema{}, f.defaultInformer) +} + +func (f *virtualClusterSchemaInformer) Lister() managementv1.VirtualClusterSchemaLister { + return managementv1.NewVirtualClusterSchemaLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/virtualclustertemplate.go b/pkg/informers/externalversions/management/v1/virtualclustertemplate.go index 1eee1efd..028169c7 100644 --- a/pkg/informers/externalversions/management/v1/virtualclustertemplate.go +++ b/pkg/informers/externalversions/management/v1/virtualclustertemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // VirtualClusterTemplates. type VirtualClusterTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.VirtualClusterTemplateLister + Lister() managementv1.VirtualClusterTemplateLister } type virtualClusterTemplateInformer struct { @@ -45,16 +45,28 @@ func NewFilteredVirtualClusterTemplateInformer(client versioned.Interface, resyn if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().VirtualClusterTemplates().List(context.TODO(), options) + return client.ManagementV1().VirtualClusterTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().VirtualClusterTemplates().Watch(context.TODO(), options) + return client.ManagementV1().VirtualClusterTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterTemplates().Watch(ctx, options) }, }, - &managementv1.VirtualClusterTemplate{}, + &apismanagementv1.VirtualClusterTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *virtualClusterTemplateInformer) defaultInformer(client versioned.Interf } func (f *virtualClusterTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.VirtualClusterTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.VirtualClusterTemplate{}, f.defaultInformer) } -func (f *virtualClusterTemplateInformer) Lister() v1.VirtualClusterTemplateLister { - return v1.NewVirtualClusterTemplateLister(f.Informer().GetIndexer()) +func (f *virtualClusterTemplateInformer) Lister() managementv1.VirtualClusterTemplateLister { + return managementv1.NewVirtualClusterTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/accesskey.go b/pkg/informers/externalversions/storage/v1/accesskey.go index a4286724..9e5a0507 100644 --- a/pkg/informers/externalversions/storage/v1/accesskey.go +++ b/pkg/informers/externalversions/storage/v1/accesskey.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // AccessKeys. type AccessKeyInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.AccessKeyLister + Lister() storagev1.AccessKeyLister } type accessKeyInformer struct { @@ -45,16 +45,28 @@ func NewFilteredAccessKeyInformer(client versioned.Interface, resyncPeriod time. if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().AccessKeys().List(context.TODO(), options) + return client.StorageV1().AccessKeys().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().AccessKeys().Watch(context.TODO(), options) + return client.StorageV1().AccessKeys().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().AccessKeys().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().AccessKeys().Watch(ctx, options) }, }, - &storagev1.AccessKey{}, + &apisstoragev1.AccessKey{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *accessKeyInformer) defaultInformer(client versioned.Interface, resyncPe } func (f *accessKeyInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.AccessKey{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.AccessKey{}, f.defaultInformer) } -func (f *accessKeyInformer) Lister() v1.AccessKeyLister { - return v1.NewAccessKeyLister(f.Informer().GetIndexer()) +func (f *accessKeyInformer) Lister() storagev1.AccessKeyLister { + return storagev1.NewAccessKeyLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/app.go b/pkg/informers/externalversions/storage/v1/app.go index ceec6e14..9ae2a59e 100644 --- a/pkg/informers/externalversions/storage/v1/app.go +++ b/pkg/informers/externalversions/storage/v1/app.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Apps. type AppInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.AppLister + Lister() storagev1.AppLister } type appInformer struct { @@ -45,16 +45,28 @@ func NewFilteredAppInformer(client versioned.Interface, resyncPeriod time.Durati if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Apps().List(context.TODO(), options) + return client.StorageV1().Apps().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Apps().Watch(context.TODO(), options) + return client.StorageV1().Apps().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Apps().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Apps().Watch(ctx, options) }, }, - &storagev1.App{}, + &apisstoragev1.App{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *appInformer) defaultInformer(client versioned.Interface, resyncPeriod t } func (f *appInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.App{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.App{}, f.defaultInformer) } -func (f *appInformer) Lister() v1.AppLister { - return v1.NewAppLister(f.Informer().GetIndexer()) +func (f *appInformer) Lister() storagev1.AppLister { + return storagev1.NewAppLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/cluster.go b/pkg/informers/externalversions/storage/v1/cluster.go index a83390ae..d9c97273 100644 --- a/pkg/informers/externalversions/storage/v1/cluster.go +++ b/pkg/informers/externalversions/storage/v1/cluster.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Clusters. type ClusterInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ClusterLister + Lister() storagev1.ClusterLister } type clusterInformer struct { @@ -45,16 +45,28 @@ func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Du if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Clusters().List(context.TODO(), options) + return client.StorageV1().Clusters().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Clusters().Watch(context.TODO(), options) + return client.StorageV1().Clusters().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Clusters().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Clusters().Watch(ctx, options) }, }, - &storagev1.Cluster{}, + &apisstoragev1.Cluster{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *clusterInformer) defaultInformer(client versioned.Interface, resyncPeri } func (f *clusterInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.Cluster{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.Cluster{}, f.defaultInformer) } -func (f *clusterInformer) Lister() v1.ClusterLister { - return v1.NewClusterLister(f.Informer().GetIndexer()) +func (f *clusterInformer) Lister() storagev1.ClusterLister { + return storagev1.NewClusterLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/clusteraccess.go b/pkg/informers/externalversions/storage/v1/clusteraccess.go index 673e0fc4..fb763676 100644 --- a/pkg/informers/externalversions/storage/v1/clusteraccess.go +++ b/pkg/informers/externalversions/storage/v1/clusteraccess.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // ClusterAccesses. type ClusterAccessInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ClusterAccessLister + Lister() storagev1.ClusterAccessLister } type clusterAccessInformer struct { @@ -45,16 +45,28 @@ func NewFilteredClusterAccessInformer(client versioned.Interface, resyncPeriod t if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().ClusterAccesses().List(context.TODO(), options) + return client.StorageV1().ClusterAccesses().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().ClusterAccesses().Watch(context.TODO(), options) + return client.StorageV1().ClusterAccesses().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().ClusterAccesses().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().ClusterAccesses().Watch(ctx, options) }, }, - &storagev1.ClusterAccess{}, + &apisstoragev1.ClusterAccess{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *clusterAccessInformer) defaultInformer(client versioned.Interface, resy } func (f *clusterAccessInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.ClusterAccess{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.ClusterAccess{}, f.defaultInformer) } -func (f *clusterAccessInformer) Lister() v1.ClusterAccessLister { - return v1.NewClusterAccessLister(f.Informer().GetIndexer()) +func (f *clusterAccessInformer) Lister() storagev1.ClusterAccessLister { + return storagev1.NewClusterAccessLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/clusterroletemplate.go b/pkg/informers/externalversions/storage/v1/clusterroletemplate.go index 3616b222..f2d0fe21 100644 --- a/pkg/informers/externalversions/storage/v1/clusterroletemplate.go +++ b/pkg/informers/externalversions/storage/v1/clusterroletemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // ClusterRoleTemplates. type ClusterRoleTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ClusterRoleTemplateLister + Lister() storagev1.ClusterRoleTemplateLister } type clusterRoleTemplateInformer struct { @@ -45,16 +45,28 @@ func NewFilteredClusterRoleTemplateInformer(client versioned.Interface, resyncPe if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().ClusterRoleTemplates().List(context.TODO(), options) + return client.StorageV1().ClusterRoleTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().ClusterRoleTemplates().Watch(context.TODO(), options) + return client.StorageV1().ClusterRoleTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().ClusterRoleTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().ClusterRoleTemplates().Watch(ctx, options) }, }, - &storagev1.ClusterRoleTemplate{}, + &apisstoragev1.ClusterRoleTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *clusterRoleTemplateInformer) defaultInformer(client versioned.Interface } func (f *clusterRoleTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.ClusterRoleTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.ClusterRoleTemplate{}, f.defaultInformer) } -func (f *clusterRoleTemplateInformer) Lister() v1.ClusterRoleTemplateLister { - return v1.NewClusterRoleTemplateLister(f.Informer().GetIndexer()) +func (f *clusterRoleTemplateInformer) Lister() storagev1.ClusterRoleTemplateLister { + return storagev1.NewClusterRoleTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go b/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go index b6be71f0..ee51c870 100644 --- a/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go +++ b/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DevPodEnvironmentTemplates. type DevPodEnvironmentTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodEnvironmentTemplateLister + Lister() storagev1.DevPodEnvironmentTemplateLister } type devPodEnvironmentTemplateInformer struct { @@ -45,16 +45,28 @@ func NewFilteredDevPodEnvironmentTemplateInformer(client versioned.Interface, re if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().DevPodEnvironmentTemplates().List(context.TODO(), 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.TODO(), 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) }, }, - &storagev1.DevPodEnvironmentTemplate{}, + &apisstoragev1.DevPodEnvironmentTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *devPodEnvironmentTemplateInformer) defaultInformer(client versioned.Int } func (f *devPodEnvironmentTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.DevPodEnvironmentTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.DevPodEnvironmentTemplate{}, f.defaultInformer) } -func (f *devPodEnvironmentTemplateInformer) Lister() v1.DevPodEnvironmentTemplateLister { - return v1.NewDevPodEnvironmentTemplateLister(f.Informer().GetIndexer()) +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 index 6fa109b2..03fd1e2a 100644 --- a/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go +++ b/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DevPodWorkspaceInstances. type DevPodWorkspaceInstanceInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspaceInstanceLister + Lister() storagev1.DevPodWorkspaceInstanceLister } type devPodWorkspaceInstanceInformer struct { @@ -46,16 +46,28 @@ func NewFilteredDevPodWorkspaceInstanceInformer(client versioned.Interface, name if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().DevPodWorkspaceInstances(namespace).List(context.TODO(), 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.TODO(), 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) }, }, - &storagev1.DevPodWorkspaceInstance{}, + &apisstoragev1.DevPodWorkspaceInstance{}, resyncPeriod, indexers, ) @@ -66,9 +78,9 @@ func (f *devPodWorkspaceInstanceInformer) defaultInformer(client versioned.Inter } func (f *devPodWorkspaceInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.DevPodWorkspaceInstance{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.DevPodWorkspaceInstance{}, f.defaultInformer) } -func (f *devPodWorkspaceInstanceInformer) Lister() v1.DevPodWorkspaceInstanceLister { - return v1.NewDevPodWorkspaceInstanceLister(f.Informer().GetIndexer()) +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 new file mode 100644 index 00000000..d8ee4e6f --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + storagev1 "github.com/loft-sh/api/v4/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 index a97bba7e..5884e4df 100644 --- a/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go +++ b/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DevPodWorkspaceTemplates. type DevPodWorkspaceTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspaceTemplateLister + Lister() storagev1.DevPodWorkspaceTemplateLister } type devPodWorkspaceTemplateInformer struct { @@ -45,16 +45,28 @@ func NewFilteredDevPodWorkspaceTemplateInformer(client versioned.Interface, resy if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().DevPodWorkspaceTemplates().List(context.TODO(), 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.TODO(), 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) }, }, - &storagev1.DevPodWorkspaceTemplate{}, + &apisstoragev1.DevPodWorkspaceTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *devPodWorkspaceTemplateInformer) defaultInformer(client versioned.Inter } func (f *devPodWorkspaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.DevPodWorkspaceTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.DevPodWorkspaceTemplate{}, f.defaultInformer) } -func (f *devPodWorkspaceTemplateInformer) Lister() v1.DevPodWorkspaceTemplateLister { - return v1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) +func (f *devPodWorkspaceTemplateInformer) Lister() storagev1.DevPodWorkspaceTemplateLister { + return storagev1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/interface.go b/pkg/informers/externalversions/storage/v1/interface.go index d2f36b8f..a93f8c59 100644 --- a/pkg/informers/externalversions/storage/v1/interface.go +++ b/pkg/informers/externalversions/storage/v1/interface.go @@ -22,14 +22,20 @@ type Interface interface { DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer // DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer + // DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. + DevPodWorkspacePresets() DevPodWorkspacePresetInformer // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer // NetworkPeers returns a NetworkPeerInformer. NetworkPeers() NetworkPeerInformer + // NodeClaims returns a NodeClaimInformer. + NodeClaims() NodeClaimInformer + // NodeProviders returns a NodeProviderInformer. + NodeProviders() NodeProviderInformer + // NodeTypes returns a NodeTypeInformer. + NodeTypes() NodeTypeInformer // Projects returns a ProjectInformer. Projects() ProjectInformer - // Runners returns a RunnerInformer. - Runners() RunnerInformer // SharedSecrets returns a SharedSecretInformer. SharedSecrets() SharedSecretInformer // SpaceInstances returns a SpaceInstanceInformer. @@ -94,6 +100,11 @@ func (v *version) DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer { return &devPodWorkspaceInstanceInformer{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} +} + // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. func (v *version) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer { return &devPodWorkspaceTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} @@ -104,16 +115,26 @@ func (v *version) NetworkPeers() NetworkPeerInformer { return &networkPeerInformer{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} +} + +// NodeProviders returns a NodeProviderInformer. +func (v *version) NodeProviders() NodeProviderInformer { + return &nodeProviderInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + +// NodeTypes returns a NodeTypeInformer. +func (v *version) NodeTypes() NodeTypeInformer { + return &nodeTypeInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + // Projects returns a ProjectInformer. func (v *version) Projects() ProjectInformer { return &projectInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// Runners returns a RunnerInformer. -func (v *version) Runners() RunnerInformer { - return &runnerInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - // SharedSecrets returns a SharedSecretInformer. func (v *version) SharedSecrets() SharedSecretInformer { return &sharedSecretInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} diff --git a/pkg/informers/externalversions/storage/v1/networkpeer.go b/pkg/informers/externalversions/storage/v1/networkpeer.go index ef865824..cd02b75e 100644 --- a/pkg/informers/externalversions/storage/v1/networkpeer.go +++ b/pkg/informers/externalversions/storage/v1/networkpeer.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // NetworkPeers. type NetworkPeerInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.NetworkPeerLister + Lister() storagev1.NetworkPeerLister } type networkPeerInformer struct { @@ -45,16 +45,28 @@ func NewFilteredNetworkPeerInformer(client versioned.Interface, resyncPeriod tim if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().NetworkPeers().List(context.TODO(), options) + return client.StorageV1().NetworkPeers().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().NetworkPeers().Watch(context.TODO(), options) + return client.StorageV1().NetworkPeers().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NetworkPeers().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NetworkPeers().Watch(ctx, options) }, }, - &storagev1.NetworkPeer{}, + &apisstoragev1.NetworkPeer{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *networkPeerInformer) defaultInformer(client versioned.Interface, resync } func (f *networkPeerInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.NetworkPeer{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.NetworkPeer{}, f.defaultInformer) } -func (f *networkPeerInformer) Lister() v1.NetworkPeerLister { - return v1.NewNetworkPeerLister(f.Informer().GetIndexer()) +func (f *networkPeerInformer) Lister() storagev1.NetworkPeerLister { + return storagev1.NewNetworkPeerLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/nodeclaim.go b/pkg/informers/externalversions/storage/v1/nodeclaim.go new file mode 100644 index 00000000..4bd4ee2f --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/nodeclaim.go @@ -0,0 +1,86 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + storagev1 "github.com/loft-sh/api/v4/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" +) + +// NodeClaimInformer provides access to a shared informer and lister for +// NodeClaims. +type NodeClaimInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.NodeClaimLister +} + +type nodeClaimInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewNodeClaimInformer constructs a new informer for NodeClaim 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 NewNodeClaimInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeClaimInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeClaimInformer constructs a new informer for NodeClaim 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 NewFilteredNodeClaimInformer(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().NodeClaims(namespace).List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeClaims(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeClaims(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeClaims(namespace).Watch(ctx, options) + }, + }, + &apisstoragev1.NodeClaim{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeClaimInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeClaimInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeClaimInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.NodeClaim{}, f.defaultInformer) +} + +func (f *nodeClaimInformer) Lister() storagev1.NodeClaimLister { + return storagev1.NewNodeClaimLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/nodeprovider.go b/pkg/informers/externalversions/storage/v1/nodeprovider.go new file mode 100644 index 00000000..ba915a7e --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/nodeprovider.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + storagev1 "github.com/loft-sh/api/v4/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" +) + +// NodeProviderInformer provides access to a shared informer and lister for +// NodeProviders. +type NodeProviderInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.NodeProviderLister +} + +type nodeProviderInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewNodeProviderInformer constructs a new informer for NodeProvider 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 NewNodeProviderInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeProviderInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeProviderInformer constructs a new informer for NodeProvider 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 NewFilteredNodeProviderInformer(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().NodeProviders().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeProviders().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeProviders().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeProviders().Watch(ctx, options) + }, + }, + &apisstoragev1.NodeProvider{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeProviderInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeProviderInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeProviderInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.NodeProvider{}, f.defaultInformer) +} + +func (f *nodeProviderInformer) Lister() storagev1.NodeProviderLister { + return storagev1.NewNodeProviderLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/nodetype.go b/pkg/informers/externalversions/storage/v1/nodetype.go new file mode 100644 index 00000000..c2b1615a --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/nodetype.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + storagev1 "github.com/loft-sh/api/v4/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" +) + +// NodeTypeInformer provides access to a shared informer and lister for +// NodeTypes. +type NodeTypeInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.NodeTypeLister +} + +type nodeTypeInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewNodeTypeInformer constructs a new informer for NodeType 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 NewNodeTypeInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeTypeInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeTypeInformer constructs a new informer for NodeType 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 NewFilteredNodeTypeInformer(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().NodeTypes().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeTypes().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeTypes().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeTypes().Watch(ctx, options) + }, + }, + &apisstoragev1.NodeType{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeTypeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeTypeInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeTypeInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.NodeType{}, f.defaultInformer) +} + +func (f *nodeTypeInformer) Lister() storagev1.NodeTypeLister { + return storagev1.NewNodeTypeLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/project.go b/pkg/informers/externalversions/storage/v1/project.go index d2d5cf54..c4604b05 100644 --- a/pkg/informers/externalversions/storage/v1/project.go +++ b/pkg/informers/externalversions/storage/v1/project.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Projects. type ProjectInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.ProjectLister + Lister() storagev1.ProjectLister } type projectInformer struct { @@ -45,16 +45,28 @@ func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Du if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Projects().List(context.TODO(), options) + return client.StorageV1().Projects().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Projects().Watch(context.TODO(), options) + return client.StorageV1().Projects().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Projects().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Projects().Watch(ctx, options) }, }, - &storagev1.Project{}, + &apisstoragev1.Project{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *projectInformer) defaultInformer(client versioned.Interface, resyncPeri } func (f *projectInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.Project{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.Project{}, f.defaultInformer) } -func (f *projectInformer) Lister() v1.ProjectLister { - return v1.NewProjectLister(f.Informer().GetIndexer()) +func (f *projectInformer) Lister() storagev1.ProjectLister { + return storagev1.NewProjectLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/runner.go b/pkg/informers/externalversions/storage/v1/runner.go deleted file mode 100644 index da107f65..00000000 --- a/pkg/informers/externalversions/storage/v1/runner.go +++ /dev/null @@ -1,73 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - "context" - time "time" - - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" - internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/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" -) - -// RunnerInformer provides access to a shared informer and lister for -// Runners. -type RunnerInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1.RunnerLister -} - -type runnerInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewRunnerInformer constructs a new informer for Runner 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 NewRunnerInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredRunnerInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredRunnerInformer constructs a new informer for Runner 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 NewFilteredRunnerInformer(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().Runners().List(context.TODO(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().Runners().Watch(context.TODO(), options) - }, - }, - &storagev1.Runner{}, - resyncPeriod, - indexers, - ) -} - -func (f *runnerInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredRunnerInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *runnerInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.Runner{}, f.defaultInformer) -} - -func (f *runnerInformer) Lister() v1.RunnerLister { - return v1.NewRunnerLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/sharedsecret.go b/pkg/informers/externalversions/storage/v1/sharedsecret.go index d2497aec..9c46e736 100644 --- a/pkg/informers/externalversions/storage/v1/sharedsecret.go +++ b/pkg/informers/externalversions/storage/v1/sharedsecret.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // SharedSecrets. type SharedSecretInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.SharedSecretLister + Lister() storagev1.SharedSecretLister } type sharedSecretInformer struct { @@ -46,16 +46,28 @@ func NewFilteredSharedSecretInformer(client versioned.Interface, namespace strin if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().SharedSecrets(namespace).List(context.TODO(), options) + return client.StorageV1().SharedSecrets(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().SharedSecrets(namespace).Watch(context.TODO(), options) + return client.StorageV1().SharedSecrets(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SharedSecrets(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SharedSecrets(namespace).Watch(ctx, options) }, }, - &storagev1.SharedSecret{}, + &apisstoragev1.SharedSecret{}, resyncPeriod, indexers, ) @@ -66,9 +78,9 @@ func (f *sharedSecretInformer) defaultInformer(client versioned.Interface, resyn } func (f *sharedSecretInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.SharedSecret{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.SharedSecret{}, f.defaultInformer) } -func (f *sharedSecretInformer) Lister() v1.SharedSecretLister { - return v1.NewSharedSecretLister(f.Informer().GetIndexer()) +func (f *sharedSecretInformer) Lister() storagev1.SharedSecretLister { + return storagev1.NewSharedSecretLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/spaceinstance.go b/pkg/informers/externalversions/storage/v1/spaceinstance.go index 8f1837e0..b72aa667 100644 --- a/pkg/informers/externalversions/storage/v1/spaceinstance.go +++ b/pkg/informers/externalversions/storage/v1/spaceinstance.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // SpaceInstances. type SpaceInstanceInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.SpaceInstanceLister + Lister() storagev1.SpaceInstanceLister } type spaceInstanceInformer struct { @@ -46,16 +46,28 @@ func NewFilteredSpaceInstanceInformer(client versioned.Interface, namespace stri if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().SpaceInstances(namespace).List(context.TODO(), options) + return client.StorageV1().SpaceInstances(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().SpaceInstances(namespace).Watch(context.TODO(), options) + return client.StorageV1().SpaceInstances(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SpaceInstances(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SpaceInstances(namespace).Watch(ctx, options) }, }, - &storagev1.SpaceInstance{}, + &apisstoragev1.SpaceInstance{}, resyncPeriod, indexers, ) @@ -66,9 +78,9 @@ func (f *spaceInstanceInformer) defaultInformer(client versioned.Interface, resy } func (f *spaceInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.SpaceInstance{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.SpaceInstance{}, f.defaultInformer) } -func (f *spaceInstanceInformer) Lister() v1.SpaceInstanceLister { - return v1.NewSpaceInstanceLister(f.Informer().GetIndexer()) +func (f *spaceInstanceInformer) Lister() storagev1.SpaceInstanceLister { + return storagev1.NewSpaceInstanceLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/spacetemplate.go b/pkg/informers/externalversions/storage/v1/spacetemplate.go index 3b349d19..a648e194 100644 --- a/pkg/informers/externalversions/storage/v1/spacetemplate.go +++ b/pkg/informers/externalversions/storage/v1/spacetemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // SpaceTemplates. type SpaceTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.SpaceTemplateLister + Lister() storagev1.SpaceTemplateLister } type spaceTemplateInformer struct { @@ -45,16 +45,28 @@ func NewFilteredSpaceTemplateInformer(client versioned.Interface, resyncPeriod t if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().SpaceTemplates().List(context.TODO(), options) + return client.StorageV1().SpaceTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().SpaceTemplates().Watch(context.TODO(), options) + return client.StorageV1().SpaceTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SpaceTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SpaceTemplates().Watch(ctx, options) }, }, - &storagev1.SpaceTemplate{}, + &apisstoragev1.SpaceTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *spaceTemplateInformer) defaultInformer(client versioned.Interface, resy } func (f *spaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.SpaceTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.SpaceTemplate{}, f.defaultInformer) } -func (f *spaceTemplateInformer) Lister() v1.SpaceTemplateLister { - return v1.NewSpaceTemplateLister(f.Informer().GetIndexer()) +func (f *spaceTemplateInformer) Lister() storagev1.SpaceTemplateLister { + return storagev1.NewSpaceTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/task.go b/pkg/informers/externalversions/storage/v1/task.go index 347b82f7..7ab2bdf5 100644 --- a/pkg/informers/externalversions/storage/v1/task.go +++ b/pkg/informers/externalversions/storage/v1/task.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Tasks. type TaskInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.TaskLister + Lister() storagev1.TaskLister } type taskInformer struct { @@ -45,16 +45,28 @@ func NewFilteredTaskInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Tasks().List(context.TODO(), options) + return client.StorageV1().Tasks().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Tasks().Watch(context.TODO(), options) + return client.StorageV1().Tasks().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Tasks().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Tasks().Watch(ctx, options) }, }, - &storagev1.Task{}, + &apisstoragev1.Task{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *taskInformer) defaultInformer(client versioned.Interface, resyncPeriod } func (f *taskInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.Task{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.Task{}, f.defaultInformer) } -func (f *taskInformer) Lister() v1.TaskLister { - return v1.NewTaskLister(f.Informer().GetIndexer()) +func (f *taskInformer) Lister() storagev1.TaskLister { + return storagev1.NewTaskLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/team.go b/pkg/informers/externalversions/storage/v1/team.go index aa732d1e..45bde13f 100644 --- a/pkg/informers/externalversions/storage/v1/team.go +++ b/pkg/informers/externalversions/storage/v1/team.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Teams. type TeamInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.TeamLister + Lister() storagev1.TeamLister } type teamInformer struct { @@ -45,16 +45,28 @@ func NewFilteredTeamInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Teams().List(context.TODO(), options) + return client.StorageV1().Teams().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Teams().Watch(context.TODO(), options) + return client.StorageV1().Teams().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Teams().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Teams().Watch(ctx, options) }, }, - &storagev1.Team{}, + &apisstoragev1.Team{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *teamInformer) defaultInformer(client versioned.Interface, resyncPeriod } func (f *teamInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.Team{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.Team{}, f.defaultInformer) } -func (f *teamInformer) Lister() v1.TeamLister { - return v1.NewTeamLister(f.Informer().GetIndexer()) +func (f *teamInformer) Lister() storagev1.TeamLister { + return storagev1.NewTeamLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/user.go b/pkg/informers/externalversions/storage/v1/user.go index 47ac226d..f3667848 100644 --- a/pkg/informers/externalversions/storage/v1/user.go +++ b/pkg/informers/externalversions/storage/v1/user.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // Users. type UserInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.UserLister + Lister() storagev1.UserLister } type userInformer struct { @@ -45,16 +45,28 @@ func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Users().List(context.TODO(), options) + return client.StorageV1().Users().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Users().Watch(context.TODO(), options) + return client.StorageV1().Users().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Users().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Users().Watch(ctx, options) }, }, - &storagev1.User{}, + &apisstoragev1.User{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *userInformer) defaultInformer(client versioned.Interface, resyncPeriod } func (f *userInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.User{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.User{}, f.defaultInformer) } -func (f *userInformer) Lister() v1.UserLister { - return v1.NewUserLister(f.Informer().GetIndexer()) +func (f *userInformer) Lister() storagev1.UserLister { + return storagev1.NewUserLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/virtualclusterinstance.go b/pkg/informers/externalversions/storage/v1/virtualclusterinstance.go index bd9d88ec..077aa2fa 100644 --- a/pkg/informers/externalversions/storage/v1/virtualclusterinstance.go +++ b/pkg/informers/externalversions/storage/v1/virtualclusterinstance.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // VirtualClusterInstances. type VirtualClusterInstanceInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.VirtualClusterInstanceLister + Lister() storagev1.VirtualClusterInstanceLister } type virtualClusterInstanceInformer struct { @@ -46,16 +46,28 @@ func NewFilteredVirtualClusterInstanceInformer(client versioned.Interface, names if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().VirtualClusterInstances(namespace).List(context.TODO(), options) + return client.StorageV1().VirtualClusterInstances(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().VirtualClusterInstances(namespace).Watch(context.TODO(), options) + return client.StorageV1().VirtualClusterInstances(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().VirtualClusterInstances(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().VirtualClusterInstances(namespace).Watch(ctx, options) }, }, - &storagev1.VirtualClusterInstance{}, + &apisstoragev1.VirtualClusterInstance{}, resyncPeriod, indexers, ) @@ -66,9 +78,9 @@ func (f *virtualClusterInstanceInformer) defaultInformer(client versioned.Interf } func (f *virtualClusterInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.VirtualClusterInstance{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.VirtualClusterInstance{}, f.defaultInformer) } -func (f *virtualClusterInstanceInformer) Lister() v1.VirtualClusterInstanceLister { - return v1.NewVirtualClusterInstanceLister(f.Informer().GetIndexer()) +func (f *virtualClusterInstanceInformer) Lister() storagev1.VirtualClusterInstanceLister { + return storagev1.NewVirtualClusterInstanceLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/virtualclustertemplate.go b/pkg/informers/externalversions/storage/v1/virtualclustertemplate.go index e5203792..5fc23153 100644 --- a/pkg/informers/externalversions/storage/v1/virtualclustertemplate.go +++ b/pkg/informers/externalversions/storage/v1/virtualclustertemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // VirtualClusterTemplates. type VirtualClusterTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.VirtualClusterTemplateLister + Lister() storagev1.VirtualClusterTemplateLister } type virtualClusterTemplateInformer struct { @@ -45,16 +45,28 @@ func NewFilteredVirtualClusterTemplateInformer(client versioned.Interface, resyn if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().VirtualClusterTemplates().List(context.TODO(), options) + return client.StorageV1().VirtualClusterTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().VirtualClusterTemplates().Watch(context.TODO(), options) + return client.StorageV1().VirtualClusterTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().VirtualClusterTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().VirtualClusterTemplates().Watch(ctx, options) }, }, - &storagev1.VirtualClusterTemplate{}, + &apisstoragev1.VirtualClusterTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +77,9 @@ func (f *virtualClusterTemplateInformer) defaultInformer(client versioned.Interf } func (f *virtualClusterTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.VirtualClusterTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.VirtualClusterTemplate{}, f.defaultInformer) } -func (f *virtualClusterTemplateInformer) Lister() v1.VirtualClusterTemplateLister { - return v1.NewVirtualClusterTemplateLister(f.Informer().GetIndexer()) +func (f *virtualClusterTemplateInformer) Lister() storagev1.VirtualClusterTemplateLister { + return storagev1.NewVirtualClusterTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/virtualcluster/v1/helmrelease.go b/pkg/informers/externalversions/virtualcluster/v1/helmrelease.go index 53db0382..e15c416c 100644 --- a/pkg/informers/externalversions/virtualcluster/v1/helmrelease.go +++ b/pkg/informers/externalversions/virtualcluster/v1/helmrelease.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - virtualclusterv1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" + apisvirtualclusterv1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/virtualcluster/v1" + virtualclusterv1 "github.com/loft-sh/api/v4/pkg/listers/virtualcluster/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // HelmReleases. type HelmReleaseInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.HelmReleaseLister + Lister() virtualclusterv1.HelmReleaseLister } type helmReleaseInformer struct { @@ -46,16 +46,28 @@ func NewFilteredHelmReleaseInformer(client versioned.Interface, namespace string if tweakListOptions != nil { tweakListOptions(&options) } - return client.VirtualclusterV1().HelmReleases(namespace).List(context.TODO(), options) + return client.VirtualclusterV1().HelmReleases(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.VirtualclusterV1().HelmReleases(namespace).Watch(context.TODO(), options) + return client.VirtualclusterV1().HelmReleases(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.VirtualclusterV1().HelmReleases(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.VirtualclusterV1().HelmReleases(namespace).Watch(ctx, options) }, }, - &virtualclusterv1.HelmRelease{}, + &apisvirtualclusterv1.HelmRelease{}, resyncPeriod, indexers, ) @@ -66,9 +78,9 @@ func (f *helmReleaseInformer) defaultInformer(client versioned.Interface, resync } func (f *helmReleaseInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&virtualclusterv1.HelmRelease{}, f.defaultInformer) + return f.factory.InformerFor(&apisvirtualclusterv1.HelmRelease{}, f.defaultInformer) } -func (f *helmReleaseInformer) Lister() v1.HelmReleaseLister { - return v1.NewHelmReleaseLister(f.Informer().GetIndexer()) +func (f *helmReleaseInformer) Lister() virtualclusterv1.HelmReleaseLister { + return virtualclusterv1.NewHelmReleaseLister(f.Informer().GetIndexer()) } diff --git a/pkg/listers/management/v1/agentauditevent.go b/pkg/listers/management/v1/agentauditevent.go index f932c7d7..09b4b530 100644 --- a/pkg/listers/management/v1/agentauditevent.go +++ b/pkg/listers/management/v1/agentauditevent.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // AgentAuditEventLister helps list AgentAuditEvents. @@ -14,19 +14,19 @@ import ( type AgentAuditEventLister interface { // List lists all AgentAuditEvents in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.AgentAuditEvent, err error) + List(selector labels.Selector) (ret []*managementv1.AgentAuditEvent, err error) // Get retrieves the AgentAuditEvent from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.AgentAuditEvent, error) + Get(name string) (*managementv1.AgentAuditEvent, error) AgentAuditEventListerExpansion } // agentAuditEventLister implements the AgentAuditEventLister interface. type agentAuditEventLister struct { - listers.ResourceIndexer[*v1.AgentAuditEvent] + listers.ResourceIndexer[*managementv1.AgentAuditEvent] } // NewAgentAuditEventLister returns a new AgentAuditEventLister. func NewAgentAuditEventLister(indexer cache.Indexer) AgentAuditEventLister { - return &agentAuditEventLister{listers.New[*v1.AgentAuditEvent](indexer, v1.Resource("agentauditevent"))} + return &agentAuditEventLister{listers.New[*managementv1.AgentAuditEvent](indexer, managementv1.Resource("agentauditevent"))} } diff --git a/pkg/listers/management/v1/announcement.go b/pkg/listers/management/v1/announcement.go index 19509394..db96dd69 100644 --- a/pkg/listers/management/v1/announcement.go +++ b/pkg/listers/management/v1/announcement.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // AnnouncementLister helps list Announcements. @@ -14,19 +14,19 @@ import ( type AnnouncementLister interface { // List lists all Announcements in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Announcement, err error) + List(selector labels.Selector) (ret []*managementv1.Announcement, err error) // Get retrieves the Announcement from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Announcement, error) + Get(name string) (*managementv1.Announcement, error) AnnouncementListerExpansion } // announcementLister implements the AnnouncementLister interface. type announcementLister struct { - listers.ResourceIndexer[*v1.Announcement] + listers.ResourceIndexer[*managementv1.Announcement] } // NewAnnouncementLister returns a new AnnouncementLister. func NewAnnouncementLister(indexer cache.Indexer) AnnouncementLister { - return &announcementLister{listers.New[*v1.Announcement](indexer, v1.Resource("announcement"))} + return &announcementLister{listers.New[*managementv1.Announcement](indexer, managementv1.Resource("announcement"))} } diff --git a/pkg/listers/management/v1/app.go b/pkg/listers/management/v1/app.go index d2be17db..23c9288e 100644 --- a/pkg/listers/management/v1/app.go +++ b/pkg/listers/management/v1/app.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // AppLister helps list Apps. @@ -14,19 +14,19 @@ import ( type AppLister interface { // List lists all Apps in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.App, err error) + List(selector labels.Selector) (ret []*managementv1.App, err error) // Get retrieves the App from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.App, error) + Get(name string) (*managementv1.App, error) AppListerExpansion } // appLister implements the AppLister interface. type appLister struct { - listers.ResourceIndexer[*v1.App] + listers.ResourceIndexer[*managementv1.App] } // NewAppLister returns a new AppLister. func NewAppLister(indexer cache.Indexer) AppLister { - return &appLister{listers.New[*v1.App](indexer, v1.Resource("app"))} + return &appLister{listers.New[*managementv1.App](indexer, managementv1.Resource("app"))} } diff --git a/pkg/listers/management/v1/backup.go b/pkg/listers/management/v1/backup.go index 7a3643fa..8b7e5bec 100644 --- a/pkg/listers/management/v1/backup.go +++ b/pkg/listers/management/v1/backup.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // BackupLister helps list Backups. @@ -14,19 +14,19 @@ import ( type BackupLister interface { // List lists all Backups in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Backup, err error) + List(selector labels.Selector) (ret []*managementv1.Backup, err error) // Get retrieves the Backup from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Backup, error) + Get(name string) (*managementv1.Backup, error) BackupListerExpansion } // backupLister implements the BackupLister interface. type backupLister struct { - listers.ResourceIndexer[*v1.Backup] + listers.ResourceIndexer[*managementv1.Backup] } // NewBackupLister returns a new BackupLister. func NewBackupLister(indexer cache.Indexer) BackupLister { - return &backupLister{listers.New[*v1.Backup](indexer, v1.Resource("backup"))} + return &backupLister{listers.New[*managementv1.Backup](indexer, managementv1.Resource("backup"))} } diff --git a/pkg/listers/management/v1/cluster.go b/pkg/listers/management/v1/cluster.go index bf5b5b7b..44aff798 100644 --- a/pkg/listers/management/v1/cluster.go +++ b/pkg/listers/management/v1/cluster.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ClusterLister helps list Clusters. @@ -14,19 +14,19 @@ import ( type ClusterLister interface { // List lists all Clusters in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Cluster, err error) + List(selector labels.Selector) (ret []*managementv1.Cluster, err error) // Get retrieves the Cluster from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Cluster, error) + Get(name string) (*managementv1.Cluster, error) ClusterListerExpansion } // clusterLister implements the ClusterLister interface. type clusterLister struct { - listers.ResourceIndexer[*v1.Cluster] + listers.ResourceIndexer[*managementv1.Cluster] } // NewClusterLister returns a new ClusterLister. func NewClusterLister(indexer cache.Indexer) ClusterLister { - return &clusterLister{listers.New[*v1.Cluster](indexer, v1.Resource("cluster"))} + return &clusterLister{listers.New[*managementv1.Cluster](indexer, managementv1.Resource("cluster"))} } diff --git a/pkg/listers/management/v1/clusteraccess.go b/pkg/listers/management/v1/clusteraccess.go index 6040a1f0..3f62eefd 100644 --- a/pkg/listers/management/v1/clusteraccess.go +++ b/pkg/listers/management/v1/clusteraccess.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ClusterAccessLister helps list ClusterAccesses. @@ -14,19 +14,19 @@ import ( type ClusterAccessLister interface { // List lists all ClusterAccesses in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ClusterAccess, err error) + List(selector labels.Selector) (ret []*managementv1.ClusterAccess, err error) // Get retrieves the ClusterAccess from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ClusterAccess, error) + Get(name string) (*managementv1.ClusterAccess, error) ClusterAccessListerExpansion } // clusterAccessLister implements the ClusterAccessLister interface. type clusterAccessLister struct { - listers.ResourceIndexer[*v1.ClusterAccess] + listers.ResourceIndexer[*managementv1.ClusterAccess] } // NewClusterAccessLister returns a new ClusterAccessLister. func NewClusterAccessLister(indexer cache.Indexer) ClusterAccessLister { - return &clusterAccessLister{listers.New[*v1.ClusterAccess](indexer, v1.Resource("clusteraccess"))} + return &clusterAccessLister{listers.New[*managementv1.ClusterAccess](indexer, managementv1.Resource("clusteraccess"))} } diff --git a/pkg/listers/management/v1/clusterroletemplate.go b/pkg/listers/management/v1/clusterroletemplate.go index 100a7341..7744d27c 100644 --- a/pkg/listers/management/v1/clusterroletemplate.go +++ b/pkg/listers/management/v1/clusterroletemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ClusterRoleTemplateLister helps list ClusterRoleTemplates. @@ -14,19 +14,19 @@ import ( type ClusterRoleTemplateLister interface { // List lists all ClusterRoleTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ClusterRoleTemplate, err error) + List(selector labels.Selector) (ret []*managementv1.ClusterRoleTemplate, err error) // Get retrieves the ClusterRoleTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ClusterRoleTemplate, error) + Get(name string) (*managementv1.ClusterRoleTemplate, error) ClusterRoleTemplateListerExpansion } // clusterRoleTemplateLister implements the ClusterRoleTemplateLister interface. type clusterRoleTemplateLister struct { - listers.ResourceIndexer[*v1.ClusterRoleTemplate] + listers.ResourceIndexer[*managementv1.ClusterRoleTemplate] } // NewClusterRoleTemplateLister returns a new ClusterRoleTemplateLister. func NewClusterRoleTemplateLister(indexer cache.Indexer) ClusterRoleTemplateLister { - return &clusterRoleTemplateLister{listers.New[*v1.ClusterRoleTemplate](indexer, v1.Resource("clusterroletemplate"))} + return &clusterRoleTemplateLister{listers.New[*managementv1.ClusterRoleTemplate](indexer, managementv1.Resource("clusterroletemplate"))} } diff --git a/pkg/listers/management/v1/config.go b/pkg/listers/management/v1/config.go index 0455f955..c3a32383 100644 --- a/pkg/listers/management/v1/config.go +++ b/pkg/listers/management/v1/config.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ConfigLister helps list Configs. @@ -14,19 +14,19 @@ import ( type ConfigLister interface { // List lists all Configs in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Config, err error) + List(selector labels.Selector) (ret []*managementv1.Config, err error) // Get retrieves the Config from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Config, error) + Get(name string) (*managementv1.Config, error) ConfigListerExpansion } // configLister implements the ConfigLister interface. type configLister struct { - listers.ResourceIndexer[*v1.Config] + listers.ResourceIndexer[*managementv1.Config] } // NewConfigLister returns a new ConfigLister. func NewConfigLister(indexer cache.Indexer) ConfigLister { - return &configLister{listers.New[*v1.Config](indexer, v1.Resource("config"))} + return &configLister{listers.New[*managementv1.Config](indexer, managementv1.Resource("config"))} } diff --git a/pkg/listers/management/v1/convertvirtualclusterconfig.go b/pkg/listers/management/v1/convertvirtualclusterconfig.go index b3e0ab2b..4b87de91 100644 --- a/pkg/listers/management/v1/convertvirtualclusterconfig.go +++ b/pkg/listers/management/v1/convertvirtualclusterconfig.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ConvertVirtualClusterConfigLister helps list ConvertVirtualClusterConfigs. @@ -14,19 +14,19 @@ import ( type ConvertVirtualClusterConfigLister interface { // List lists all ConvertVirtualClusterConfigs in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ConvertVirtualClusterConfig, err error) + List(selector labels.Selector) (ret []*managementv1.ConvertVirtualClusterConfig, err error) // Get retrieves the ConvertVirtualClusterConfig from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ConvertVirtualClusterConfig, error) + Get(name string) (*managementv1.ConvertVirtualClusterConfig, error) ConvertVirtualClusterConfigListerExpansion } // convertVirtualClusterConfigLister implements the ConvertVirtualClusterConfigLister interface. type convertVirtualClusterConfigLister struct { - listers.ResourceIndexer[*v1.ConvertVirtualClusterConfig] + listers.ResourceIndexer[*managementv1.ConvertVirtualClusterConfig] } // NewConvertVirtualClusterConfigLister returns a new ConvertVirtualClusterConfigLister. func NewConvertVirtualClusterConfigLister(indexer cache.Indexer) ConvertVirtualClusterConfigLister { - return &convertVirtualClusterConfigLister{listers.New[*v1.ConvertVirtualClusterConfig](indexer, v1.Resource("convertvirtualclusterconfig"))} + return &convertVirtualClusterConfigLister{listers.New[*managementv1.ConvertVirtualClusterConfig](indexer, managementv1.Resource("convertvirtualclusterconfig"))} } diff --git a/pkg/listers/management/v1/databaseconnector.go b/pkg/listers/management/v1/databaseconnector.go new file mode 100644 index 00000000..a6a8d1ac --- /dev/null +++ b/pkg/listers/management/v1/databaseconnector.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// DatabaseConnectorLister helps list DatabaseConnectors. +// All objects returned here must be treated as read-only. +type DatabaseConnectorLister interface { + // List lists all DatabaseConnectors in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.DatabaseConnector, err error) + // Get retrieves the DatabaseConnector from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.DatabaseConnector, error) + DatabaseConnectorListerExpansion +} + +// databaseConnectorLister implements the DatabaseConnectorLister interface. +type databaseConnectorLister struct { + listers.ResourceIndexer[*managementv1.DatabaseConnector] +} + +// NewDatabaseConnectorLister returns a new DatabaseConnectorLister. +func NewDatabaseConnectorLister(indexer cache.Indexer) DatabaseConnectorLister { + return &databaseConnectorLister{listers.New[*managementv1.DatabaseConnector](indexer, managementv1.Resource("databaseconnector"))} +} diff --git a/pkg/listers/management/v1/devpodenvironmenttemplate.go b/pkg/listers/management/v1/devpodenvironmenttemplate.go index 7902544b..84622386 100644 --- a/pkg/listers/management/v1/devpodenvironmenttemplate.go +++ b/pkg/listers/management/v1/devpodenvironmenttemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/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. @@ -14,19 +14,19 @@ import ( type DevPodEnvironmentTemplateLister interface { // List lists all DevPodEnvironmentTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodEnvironmentTemplate, err error) + 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) (*v1.DevPodEnvironmentTemplate, error) + Get(name string) (*managementv1.DevPodEnvironmentTemplate, error) DevPodEnvironmentTemplateListerExpansion } // devPodEnvironmentTemplateLister implements the DevPodEnvironmentTemplateLister interface. type devPodEnvironmentTemplateLister struct { - listers.ResourceIndexer[*v1.DevPodEnvironmentTemplate] + listers.ResourceIndexer[*managementv1.DevPodEnvironmentTemplate] } // NewDevPodEnvironmentTemplateLister returns a new DevPodEnvironmentTemplateLister. func NewDevPodEnvironmentTemplateLister(indexer cache.Indexer) DevPodEnvironmentTemplateLister { - return &devPodEnvironmentTemplateLister{listers.New[*v1.DevPodEnvironmentTemplate](indexer, v1.Resource("devpodenvironmenttemplate"))} + 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 index d7ccf8b6..14b7b677 100644 --- a/pkg/listers/management/v1/devpodworkspaceinstance.go +++ b/pkg/listers/management/v1/devpodworkspaceinstance.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/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. @@ -14,7 +14,7 @@ import ( type DevPodWorkspaceInstanceLister interface { // List lists all DevPodWorkspaceInstances in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspaceInstance, err error) + List(selector labels.Selector) (ret []*managementv1.DevPodWorkspaceInstance, err error) // DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister DevPodWorkspaceInstanceListerExpansion @@ -22,17 +22,17 @@ type DevPodWorkspaceInstanceLister interface { // devPodWorkspaceInstanceLister implements the DevPodWorkspaceInstanceLister interface. type devPodWorkspaceInstanceLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceInstance] + listers.ResourceIndexer[*managementv1.DevPodWorkspaceInstance] } // NewDevPodWorkspaceInstanceLister returns a new DevPodWorkspaceInstanceLister. func NewDevPodWorkspaceInstanceLister(indexer cache.Indexer) DevPodWorkspaceInstanceLister { - return &devPodWorkspaceInstanceLister{listers.New[*v1.DevPodWorkspaceInstance](indexer, v1.Resource("devpodworkspaceinstance"))} + 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[*v1.DevPodWorkspaceInstance](s.ResourceIndexer, namespace)} + return devPodWorkspaceInstanceNamespaceLister{listers.NewNamespaced[*managementv1.DevPodWorkspaceInstance](s.ResourceIndexer, namespace)} } // DevPodWorkspaceInstanceNamespaceLister helps list and get DevPodWorkspaceInstances. @@ -40,15 +40,15 @@ func (s *devPodWorkspaceInstanceLister) DevPodWorkspaceInstances(namespace strin 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 []*v1.DevPodWorkspaceInstance, err error) + 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) (*v1.DevPodWorkspaceInstance, error) + Get(name string) (*managementv1.DevPodWorkspaceInstance, error) DevPodWorkspaceInstanceNamespaceListerExpansion } // devPodWorkspaceInstanceNamespaceLister implements the DevPodWorkspaceInstanceNamespaceLister // interface. type devPodWorkspaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceInstance] + listers.ResourceIndexer[*managementv1.DevPodWorkspaceInstance] } diff --git a/pkg/listers/management/v1/devpodworkspacepreset.go b/pkg/listers/management/v1/devpodworkspacepreset.go new file mode 100644 index 00000000..8c17b627 --- /dev/null +++ b/pkg/listers/management/v1/devpodworkspacepreset.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/loft-sh/api/v4/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 index ce5d6941..33862412 100644 --- a/pkg/listers/management/v1/devpodworkspacetemplate.go +++ b/pkg/listers/management/v1/devpodworkspacetemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/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. @@ -14,19 +14,19 @@ import ( type DevPodWorkspaceTemplateLister interface { // List lists all DevPodWorkspaceTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspaceTemplate, err error) + 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) (*v1.DevPodWorkspaceTemplate, error) + Get(name string) (*managementv1.DevPodWorkspaceTemplate, error) DevPodWorkspaceTemplateListerExpansion } // devPodWorkspaceTemplateLister implements the DevPodWorkspaceTemplateLister interface. type devPodWorkspaceTemplateLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceTemplate] + listers.ResourceIndexer[*managementv1.DevPodWorkspaceTemplate] } // NewDevPodWorkspaceTemplateLister returns a new DevPodWorkspaceTemplateLister. func NewDevPodWorkspaceTemplateLister(indexer cache.Indexer) DevPodWorkspaceTemplateLister { - return &devPodWorkspaceTemplateLister{listers.New[*v1.DevPodWorkspaceTemplate](indexer, v1.Resource("devpodworkspacetemplate"))} + return &devPodWorkspaceTemplateLister{listers.New[*managementv1.DevPodWorkspaceTemplate](indexer, managementv1.Resource("devpodworkspacetemplate"))} } diff --git a/pkg/listers/management/v1/directclusterendpointtoken.go b/pkg/listers/management/v1/directclusterendpointtoken.go index 58620ea2..564ee374 100644 --- a/pkg/listers/management/v1/directclusterendpointtoken.go +++ b/pkg/listers/management/v1/directclusterendpointtoken.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // DirectClusterEndpointTokenLister helps list DirectClusterEndpointTokens. @@ -14,19 +14,19 @@ import ( type DirectClusterEndpointTokenLister interface { // List lists all DirectClusterEndpointTokens in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DirectClusterEndpointToken, err error) + List(selector labels.Selector) (ret []*managementv1.DirectClusterEndpointToken, err error) // Get retrieves the DirectClusterEndpointToken from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.DirectClusterEndpointToken, error) + Get(name string) (*managementv1.DirectClusterEndpointToken, error) DirectClusterEndpointTokenListerExpansion } // directClusterEndpointTokenLister implements the DirectClusterEndpointTokenLister interface. type directClusterEndpointTokenLister struct { - listers.ResourceIndexer[*v1.DirectClusterEndpointToken] + listers.ResourceIndexer[*managementv1.DirectClusterEndpointToken] } // NewDirectClusterEndpointTokenLister returns a new DirectClusterEndpointTokenLister. func NewDirectClusterEndpointTokenLister(indexer cache.Indexer) DirectClusterEndpointTokenLister { - return &directClusterEndpointTokenLister{listers.New[*v1.DirectClusterEndpointToken](indexer, v1.Resource("directclusterendpointtoken"))} + return &directClusterEndpointTokenLister{listers.New[*managementv1.DirectClusterEndpointToken](indexer, managementv1.Resource("directclusterendpointtoken"))} } diff --git a/pkg/listers/management/v1/event.go b/pkg/listers/management/v1/event.go index d64d1c3f..8f3bee38 100644 --- a/pkg/listers/management/v1/event.go +++ b/pkg/listers/management/v1/event.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // EventLister helps list Events. @@ -14,19 +14,19 @@ import ( type EventLister interface { // List lists all Events in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Event, err error) + List(selector labels.Selector) (ret []*managementv1.Event, err error) // Get retrieves the Event from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Event, error) + Get(name string) (*managementv1.Event, error) EventListerExpansion } // eventLister implements the EventLister interface. type eventLister struct { - listers.ResourceIndexer[*v1.Event] + listers.ResourceIndexer[*managementv1.Event] } // NewEventLister returns a new EventLister. func NewEventLister(indexer cache.Indexer) EventLister { - return &eventLister{listers.New[*v1.Event](indexer, v1.Resource("event"))} + return &eventLister{listers.New[*managementv1.Event](indexer, managementv1.Resource("event"))} } diff --git a/pkg/listers/management/v1/expansion_generated.go b/pkg/listers/management/v1/expansion_generated.go index 534e2257..dbf124bc 100644 --- a/pkg/listers/management/v1/expansion_generated.go +++ b/pkg/listers/management/v1/expansion_generated.go @@ -38,6 +38,10 @@ type ConfigListerExpansion interface{} // ConvertVirtualClusterConfigLister. type ConvertVirtualClusterConfigListerExpansion interface{} +// DatabaseConnectorListerExpansion allows custom methods to be added to +// DatabaseConnectorLister. +type DatabaseConnectorListerExpansion interface{} + // DevPodEnvironmentTemplateListerExpansion allows custom methods to be added to // DevPodEnvironmentTemplateLister. type DevPodEnvironmentTemplateListerExpansion interface{} @@ -50,6 +54,10 @@ type DevPodWorkspaceInstanceListerExpansion interface{} // DevPodWorkspaceInstanceNamespaceLister. type DevPodWorkspaceInstanceNamespaceListerExpansion interface{} +// DevPodWorkspacePresetListerExpansion allows custom methods to be added to +// DevPodWorkspacePresetLister. +type DevPodWorkspacePresetListerExpansion interface{} + // DevPodWorkspaceTemplateListerExpansion allows custom methods to be added to // DevPodWorkspaceTemplateLister. type DevPodWorkspaceTemplateListerExpansion interface{} @@ -82,6 +90,22 @@ type LicenseTokenListerExpansion interface{} // LoftUpgradeLister. type LoftUpgradeListerExpansion interface{} +// NodeClaimListerExpansion allows custom methods to be added to +// NodeClaimLister. +type NodeClaimListerExpansion interface{} + +// NodeClaimNamespaceListerExpansion allows custom methods to be added to +// NodeClaimNamespaceLister. +type NodeClaimNamespaceListerExpansion interface{} + +// NodeProviderListerExpansion allows custom methods to be added to +// NodeProviderLister. +type NodeProviderListerExpansion interface{} + +// NodeTypeListerExpansion allows custom methods to be added to +// NodeTypeLister. +type NodeTypeListerExpansion interface{} + // OIDCClientListerExpansion allows custom methods to be added to // OIDCClientLister. type OIDCClientListerExpansion interface{} @@ -114,10 +138,6 @@ type RegisterVirtualClusterListerExpansion interface{} // ResetAccessKeyLister. type ResetAccessKeyListerExpansion interface{} -// RunnerListerExpansion allows custom methods to be added to -// RunnerLister. -type RunnerListerExpansion interface{} - // SelfListerExpansion allows custom methods to be added to // SelfLister. type SelfListerExpansion interface{} @@ -174,6 +194,10 @@ type VirtualClusterInstanceListerExpansion interface{} // VirtualClusterInstanceNamespaceLister. type VirtualClusterInstanceNamespaceListerExpansion interface{} +// VirtualClusterSchemaListerExpansion allows custom methods to be added to +// VirtualClusterSchemaLister. +type VirtualClusterSchemaListerExpansion interface{} + // VirtualClusterTemplateListerExpansion allows custom methods to be added to // VirtualClusterTemplateLister. type VirtualClusterTemplateListerExpansion interface{} diff --git a/pkg/listers/management/v1/feature.go b/pkg/listers/management/v1/feature.go index 14e88746..70a84b66 100644 --- a/pkg/listers/management/v1/feature.go +++ b/pkg/listers/management/v1/feature.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // FeatureLister helps list Features. @@ -14,19 +14,19 @@ import ( type FeatureLister interface { // List lists all Features in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Feature, err error) + List(selector labels.Selector) (ret []*managementv1.Feature, err error) // Get retrieves the Feature from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Feature, error) + Get(name string) (*managementv1.Feature, error) FeatureListerExpansion } // featureLister implements the FeatureLister interface. type featureLister struct { - listers.ResourceIndexer[*v1.Feature] + listers.ResourceIndexer[*managementv1.Feature] } // NewFeatureLister returns a new FeatureLister. func NewFeatureLister(indexer cache.Indexer) FeatureLister { - return &featureLister{listers.New[*v1.Feature](indexer, v1.Resource("feature"))} + return &featureLister{listers.New[*managementv1.Feature](indexer, managementv1.Resource("feature"))} } diff --git a/pkg/listers/management/v1/ingressauthtoken.go b/pkg/listers/management/v1/ingressauthtoken.go index 4239c8e3..86754e2b 100644 --- a/pkg/listers/management/v1/ingressauthtoken.go +++ b/pkg/listers/management/v1/ingressauthtoken.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // IngressAuthTokenLister helps list IngressAuthTokens. @@ -14,19 +14,19 @@ import ( type IngressAuthTokenLister interface { // List lists all IngressAuthTokens in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.IngressAuthToken, err error) + List(selector labels.Selector) (ret []*managementv1.IngressAuthToken, err error) // Get retrieves the IngressAuthToken from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.IngressAuthToken, error) + Get(name string) (*managementv1.IngressAuthToken, error) IngressAuthTokenListerExpansion } // ingressAuthTokenLister implements the IngressAuthTokenLister interface. type ingressAuthTokenLister struct { - listers.ResourceIndexer[*v1.IngressAuthToken] + listers.ResourceIndexer[*managementv1.IngressAuthToken] } // NewIngressAuthTokenLister returns a new IngressAuthTokenLister. func NewIngressAuthTokenLister(indexer cache.Indexer) IngressAuthTokenLister { - return &ingressAuthTokenLister{listers.New[*v1.IngressAuthToken](indexer, v1.Resource("ingressauthtoken"))} + return &ingressAuthTokenLister{listers.New[*managementv1.IngressAuthToken](indexer, managementv1.Resource("ingressauthtoken"))} } diff --git a/pkg/listers/management/v1/license.go b/pkg/listers/management/v1/license.go index 502e4751..a212ce89 100644 --- a/pkg/listers/management/v1/license.go +++ b/pkg/listers/management/v1/license.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // LicenseLister helps list Licenses. @@ -14,19 +14,19 @@ import ( type LicenseLister interface { // List lists all Licenses in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.License, err error) + List(selector labels.Selector) (ret []*managementv1.License, err error) // Get retrieves the License from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.License, error) + Get(name string) (*managementv1.License, error) LicenseListerExpansion } // licenseLister implements the LicenseLister interface. type licenseLister struct { - listers.ResourceIndexer[*v1.License] + listers.ResourceIndexer[*managementv1.License] } // NewLicenseLister returns a new LicenseLister. func NewLicenseLister(indexer cache.Indexer) LicenseLister { - return &licenseLister{listers.New[*v1.License](indexer, v1.Resource("license"))} + return &licenseLister{listers.New[*managementv1.License](indexer, managementv1.Resource("license"))} } diff --git a/pkg/listers/management/v1/licensetoken.go b/pkg/listers/management/v1/licensetoken.go index 43579dd7..ea43f256 100644 --- a/pkg/listers/management/v1/licensetoken.go +++ b/pkg/listers/management/v1/licensetoken.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // LicenseTokenLister helps list LicenseTokens. @@ -14,19 +14,19 @@ import ( type LicenseTokenLister interface { // List lists all LicenseTokens in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.LicenseToken, err error) + List(selector labels.Selector) (ret []*managementv1.LicenseToken, err error) // Get retrieves the LicenseToken from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.LicenseToken, error) + Get(name string) (*managementv1.LicenseToken, error) LicenseTokenListerExpansion } // licenseTokenLister implements the LicenseTokenLister interface. type licenseTokenLister struct { - listers.ResourceIndexer[*v1.LicenseToken] + listers.ResourceIndexer[*managementv1.LicenseToken] } // NewLicenseTokenLister returns a new LicenseTokenLister. func NewLicenseTokenLister(indexer cache.Indexer) LicenseTokenLister { - return &licenseTokenLister{listers.New[*v1.LicenseToken](indexer, v1.Resource("licensetoken"))} + return &licenseTokenLister{listers.New[*managementv1.LicenseToken](indexer, managementv1.Resource("licensetoken"))} } diff --git a/pkg/listers/management/v1/loftupgrade.go b/pkg/listers/management/v1/loftupgrade.go index f52fc506..644fb840 100644 --- a/pkg/listers/management/v1/loftupgrade.go +++ b/pkg/listers/management/v1/loftupgrade.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // LoftUpgradeLister helps list LoftUpgrades. @@ -14,19 +14,19 @@ import ( type LoftUpgradeLister interface { // List lists all LoftUpgrades in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.LoftUpgrade, err error) + List(selector labels.Selector) (ret []*managementv1.LoftUpgrade, err error) // Get retrieves the LoftUpgrade from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.LoftUpgrade, error) + Get(name string) (*managementv1.LoftUpgrade, error) LoftUpgradeListerExpansion } // loftUpgradeLister implements the LoftUpgradeLister interface. type loftUpgradeLister struct { - listers.ResourceIndexer[*v1.LoftUpgrade] + listers.ResourceIndexer[*managementv1.LoftUpgrade] } // NewLoftUpgradeLister returns a new LoftUpgradeLister. func NewLoftUpgradeLister(indexer cache.Indexer) LoftUpgradeLister { - return &loftUpgradeLister{listers.New[*v1.LoftUpgrade](indexer, v1.Resource("loftupgrade"))} + return &loftUpgradeLister{listers.New[*managementv1.LoftUpgrade](indexer, managementv1.Resource("loftupgrade"))} } diff --git a/pkg/listers/management/v1/nodeclaim.go b/pkg/listers/management/v1/nodeclaim.go new file mode 100644 index 00000000..e7d8c41a --- /dev/null +++ b/pkg/listers/management/v1/nodeclaim.go @@ -0,0 +1,54 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// NodeClaimLister helps list NodeClaims. +// All objects returned here must be treated as read-only. +type NodeClaimLister interface { + // List lists all NodeClaims in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.NodeClaim, err error) + // NodeClaims returns an object that can list and get NodeClaims. + NodeClaims(namespace string) NodeClaimNamespaceLister + NodeClaimListerExpansion +} + +// nodeClaimLister implements the NodeClaimLister interface. +type nodeClaimLister struct { + listers.ResourceIndexer[*managementv1.NodeClaim] +} + +// NewNodeClaimLister returns a new NodeClaimLister. +func NewNodeClaimLister(indexer cache.Indexer) NodeClaimLister { + return &nodeClaimLister{listers.New[*managementv1.NodeClaim](indexer, managementv1.Resource("nodeclaim"))} +} + +// NodeClaims returns an object that can list and get NodeClaims. +func (s *nodeClaimLister) NodeClaims(namespace string) NodeClaimNamespaceLister { + return nodeClaimNamespaceLister{listers.NewNamespaced[*managementv1.NodeClaim](s.ResourceIndexer, namespace)} +} + +// NodeClaimNamespaceLister helps list and get NodeClaims. +// All objects returned here must be treated as read-only. +type NodeClaimNamespaceLister interface { + // List lists all NodeClaims in the indexer for a given namespace. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.NodeClaim, err error) + // Get retrieves the NodeClaim from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.NodeClaim, error) + NodeClaimNamespaceListerExpansion +} + +// nodeClaimNamespaceLister implements the NodeClaimNamespaceLister +// interface. +type nodeClaimNamespaceLister struct { + listers.ResourceIndexer[*managementv1.NodeClaim] +} diff --git a/pkg/listers/management/v1/nodeprovider.go b/pkg/listers/management/v1/nodeprovider.go new file mode 100644 index 00000000..706da3b9 --- /dev/null +++ b/pkg/listers/management/v1/nodeprovider.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// NodeProviderLister helps list NodeProviders. +// All objects returned here must be treated as read-only. +type NodeProviderLister interface { + // List lists all NodeProviders in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.NodeProvider, err error) + // Get retrieves the NodeProvider from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.NodeProvider, error) + NodeProviderListerExpansion +} + +// nodeProviderLister implements the NodeProviderLister interface. +type nodeProviderLister struct { + listers.ResourceIndexer[*managementv1.NodeProvider] +} + +// NewNodeProviderLister returns a new NodeProviderLister. +func NewNodeProviderLister(indexer cache.Indexer) NodeProviderLister { + return &nodeProviderLister{listers.New[*managementv1.NodeProvider](indexer, managementv1.Resource("nodeprovider"))} +} diff --git a/pkg/listers/management/v1/nodetype.go b/pkg/listers/management/v1/nodetype.go new file mode 100644 index 00000000..215cf0da --- /dev/null +++ b/pkg/listers/management/v1/nodetype.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// NodeTypeLister helps list NodeTypes. +// All objects returned here must be treated as read-only. +type NodeTypeLister interface { + // List lists all NodeTypes in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.NodeType, err error) + // Get retrieves the NodeType from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.NodeType, error) + NodeTypeListerExpansion +} + +// nodeTypeLister implements the NodeTypeLister interface. +type nodeTypeLister struct { + listers.ResourceIndexer[*managementv1.NodeType] +} + +// NewNodeTypeLister returns a new NodeTypeLister. +func NewNodeTypeLister(indexer cache.Indexer) NodeTypeLister { + return &nodeTypeLister{listers.New[*managementv1.NodeType](indexer, managementv1.Resource("nodetype"))} +} diff --git a/pkg/listers/management/v1/oidcclient.go b/pkg/listers/management/v1/oidcclient.go index 47842772..68a308d2 100644 --- a/pkg/listers/management/v1/oidcclient.go +++ b/pkg/listers/management/v1/oidcclient.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // OIDCClientLister helps list OIDCClients. @@ -14,19 +14,19 @@ import ( type OIDCClientLister interface { // List lists all OIDCClients in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.OIDCClient, err error) + List(selector labels.Selector) (ret []*managementv1.OIDCClient, err error) // Get retrieves the OIDCClient from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.OIDCClient, error) + Get(name string) (*managementv1.OIDCClient, error) OIDCClientListerExpansion } // oIDCClientLister implements the OIDCClientLister interface. type oIDCClientLister struct { - listers.ResourceIndexer[*v1.OIDCClient] + listers.ResourceIndexer[*managementv1.OIDCClient] } // NewOIDCClientLister returns a new OIDCClientLister. func NewOIDCClientLister(indexer cache.Indexer) OIDCClientLister { - return &oIDCClientLister{listers.New[*v1.OIDCClient](indexer, v1.Resource("oidcclient"))} + return &oIDCClientLister{listers.New[*managementv1.OIDCClient](indexer, managementv1.Resource("oidcclient"))} } diff --git a/pkg/listers/management/v1/ownedaccesskey.go b/pkg/listers/management/v1/ownedaccesskey.go index 1cbd7ae9..cf1277f7 100644 --- a/pkg/listers/management/v1/ownedaccesskey.go +++ b/pkg/listers/management/v1/ownedaccesskey.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // OwnedAccessKeyLister helps list OwnedAccessKeys. @@ -14,19 +14,19 @@ import ( type OwnedAccessKeyLister interface { // List lists all OwnedAccessKeys in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.OwnedAccessKey, err error) + List(selector labels.Selector) (ret []*managementv1.OwnedAccessKey, err error) // Get retrieves the OwnedAccessKey from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.OwnedAccessKey, error) + Get(name string) (*managementv1.OwnedAccessKey, error) OwnedAccessKeyListerExpansion } // ownedAccessKeyLister implements the OwnedAccessKeyLister interface. type ownedAccessKeyLister struct { - listers.ResourceIndexer[*v1.OwnedAccessKey] + listers.ResourceIndexer[*managementv1.OwnedAccessKey] } // NewOwnedAccessKeyLister returns a new OwnedAccessKeyLister. func NewOwnedAccessKeyLister(indexer cache.Indexer) OwnedAccessKeyLister { - return &ownedAccessKeyLister{listers.New[*v1.OwnedAccessKey](indexer, v1.Resource("ownedaccesskey"))} + return &ownedAccessKeyLister{listers.New[*managementv1.OwnedAccessKey](indexer, managementv1.Resource("ownedaccesskey"))} } diff --git a/pkg/listers/management/v1/project.go b/pkg/listers/management/v1/project.go index bb5bd6cb..441412a1 100644 --- a/pkg/listers/management/v1/project.go +++ b/pkg/listers/management/v1/project.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ProjectLister helps list Projects. @@ -14,19 +14,19 @@ import ( type ProjectLister interface { // List lists all Projects in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Project, err error) + List(selector labels.Selector) (ret []*managementv1.Project, err error) // Get retrieves the Project from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Project, error) + Get(name string) (*managementv1.Project, error) ProjectListerExpansion } // projectLister implements the ProjectLister interface. type projectLister struct { - listers.ResourceIndexer[*v1.Project] + listers.ResourceIndexer[*managementv1.Project] } // NewProjectLister returns a new ProjectLister. func NewProjectLister(indexer cache.Indexer) ProjectLister { - return &projectLister{listers.New[*v1.Project](indexer, v1.Resource("project"))} + return &projectLister{listers.New[*managementv1.Project](indexer, managementv1.Resource("project"))} } diff --git a/pkg/listers/management/v1/projectsecret.go b/pkg/listers/management/v1/projectsecret.go index 5e46d9f9..b1fde715 100644 --- a/pkg/listers/management/v1/projectsecret.go +++ b/pkg/listers/management/v1/projectsecret.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ProjectSecretLister helps list ProjectSecrets. @@ -14,7 +14,7 @@ import ( type ProjectSecretLister interface { // List lists all ProjectSecrets in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ProjectSecret, err error) + List(selector labels.Selector) (ret []*managementv1.ProjectSecret, err error) // ProjectSecrets returns an object that can list and get ProjectSecrets. ProjectSecrets(namespace string) ProjectSecretNamespaceLister ProjectSecretListerExpansion @@ -22,17 +22,17 @@ type ProjectSecretLister interface { // projectSecretLister implements the ProjectSecretLister interface. type projectSecretLister struct { - listers.ResourceIndexer[*v1.ProjectSecret] + listers.ResourceIndexer[*managementv1.ProjectSecret] } // NewProjectSecretLister returns a new ProjectSecretLister. func NewProjectSecretLister(indexer cache.Indexer) ProjectSecretLister { - return &projectSecretLister{listers.New[*v1.ProjectSecret](indexer, v1.Resource("projectsecret"))} + return &projectSecretLister{listers.New[*managementv1.ProjectSecret](indexer, managementv1.Resource("projectsecret"))} } // ProjectSecrets returns an object that can list and get ProjectSecrets. func (s *projectSecretLister) ProjectSecrets(namespace string) ProjectSecretNamespaceLister { - return projectSecretNamespaceLister{listers.NewNamespaced[*v1.ProjectSecret](s.ResourceIndexer, namespace)} + return projectSecretNamespaceLister{listers.NewNamespaced[*managementv1.ProjectSecret](s.ResourceIndexer, namespace)} } // ProjectSecretNamespaceLister helps list and get ProjectSecrets. @@ -40,15 +40,15 @@ func (s *projectSecretLister) ProjectSecrets(namespace string) ProjectSecretName type ProjectSecretNamespaceLister interface { // List lists all ProjectSecrets in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ProjectSecret, err error) + List(selector labels.Selector) (ret []*managementv1.ProjectSecret, err error) // Get retrieves the ProjectSecret from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ProjectSecret, error) + Get(name string) (*managementv1.ProjectSecret, error) ProjectSecretNamespaceListerExpansion } // projectSecretNamespaceLister implements the ProjectSecretNamespaceLister // interface. type projectSecretNamespaceLister struct { - listers.ResourceIndexer[*v1.ProjectSecret] + listers.ResourceIndexer[*managementv1.ProjectSecret] } diff --git a/pkg/listers/management/v1/redirecttoken.go b/pkg/listers/management/v1/redirecttoken.go index 59771224..2ca8f25f 100644 --- a/pkg/listers/management/v1/redirecttoken.go +++ b/pkg/listers/management/v1/redirecttoken.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // RedirectTokenLister helps list RedirectTokens. @@ -14,19 +14,19 @@ import ( type RedirectTokenLister interface { // List lists all RedirectTokens in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.RedirectToken, err error) + List(selector labels.Selector) (ret []*managementv1.RedirectToken, err error) // Get retrieves the RedirectToken from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.RedirectToken, error) + Get(name string) (*managementv1.RedirectToken, error) RedirectTokenListerExpansion } // redirectTokenLister implements the RedirectTokenLister interface. type redirectTokenLister struct { - listers.ResourceIndexer[*v1.RedirectToken] + listers.ResourceIndexer[*managementv1.RedirectToken] } // NewRedirectTokenLister returns a new RedirectTokenLister. func NewRedirectTokenLister(indexer cache.Indexer) RedirectTokenLister { - return &redirectTokenLister{listers.New[*v1.RedirectToken](indexer, v1.Resource("redirecttoken"))} + return &redirectTokenLister{listers.New[*managementv1.RedirectToken](indexer, managementv1.Resource("redirecttoken"))} } diff --git a/pkg/listers/management/v1/registervirtualcluster.go b/pkg/listers/management/v1/registervirtualcluster.go index cd7cbee2..b5d603d3 100644 --- a/pkg/listers/management/v1/registervirtualcluster.go +++ b/pkg/listers/management/v1/registervirtualcluster.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // RegisterVirtualClusterLister helps list RegisterVirtualClusters. @@ -14,19 +14,19 @@ import ( type RegisterVirtualClusterLister interface { // List lists all RegisterVirtualClusters in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.RegisterVirtualCluster, err error) + List(selector labels.Selector) (ret []*managementv1.RegisterVirtualCluster, err error) // Get retrieves the RegisterVirtualCluster from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.RegisterVirtualCluster, error) + Get(name string) (*managementv1.RegisterVirtualCluster, error) RegisterVirtualClusterListerExpansion } // registerVirtualClusterLister implements the RegisterVirtualClusterLister interface. type registerVirtualClusterLister struct { - listers.ResourceIndexer[*v1.RegisterVirtualCluster] + listers.ResourceIndexer[*managementv1.RegisterVirtualCluster] } // NewRegisterVirtualClusterLister returns a new RegisterVirtualClusterLister. func NewRegisterVirtualClusterLister(indexer cache.Indexer) RegisterVirtualClusterLister { - return ®isterVirtualClusterLister{listers.New[*v1.RegisterVirtualCluster](indexer, v1.Resource("registervirtualcluster"))} + return ®isterVirtualClusterLister{listers.New[*managementv1.RegisterVirtualCluster](indexer, managementv1.Resource("registervirtualcluster"))} } diff --git a/pkg/listers/management/v1/resetaccesskey.go b/pkg/listers/management/v1/resetaccesskey.go index 924c185d..2ec680e0 100644 --- a/pkg/listers/management/v1/resetaccesskey.go +++ b/pkg/listers/management/v1/resetaccesskey.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ResetAccessKeyLister helps list ResetAccessKeys. @@ -14,19 +14,19 @@ import ( type ResetAccessKeyLister interface { // List lists all ResetAccessKeys in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ResetAccessKey, err error) + List(selector labels.Selector) (ret []*managementv1.ResetAccessKey, err error) // Get retrieves the ResetAccessKey from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ResetAccessKey, error) + Get(name string) (*managementv1.ResetAccessKey, error) ResetAccessKeyListerExpansion } // resetAccessKeyLister implements the ResetAccessKeyLister interface. type resetAccessKeyLister struct { - listers.ResourceIndexer[*v1.ResetAccessKey] + listers.ResourceIndexer[*managementv1.ResetAccessKey] } // NewResetAccessKeyLister returns a new ResetAccessKeyLister. func NewResetAccessKeyLister(indexer cache.Indexer) ResetAccessKeyLister { - return &resetAccessKeyLister{listers.New[*v1.ResetAccessKey](indexer, v1.Resource("resetaccesskey"))} + return &resetAccessKeyLister{listers.New[*managementv1.ResetAccessKey](indexer, managementv1.Resource("resetaccesskey"))} } diff --git a/pkg/listers/management/v1/runner.go b/pkg/listers/management/v1/runner.go deleted file mode 100644 index 42bc6239..00000000 --- a/pkg/listers/management/v1/runner.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by lister-gen. DO NOT EDIT. - -package v1 - -import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" -) - -// RunnerLister helps list Runners. -// All objects returned here must be treated as read-only. -type RunnerLister interface { - // List lists all Runners in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Runner, err error) - // Get retrieves the Runner from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*v1.Runner, error) - RunnerListerExpansion -} - -// runnerLister implements the RunnerLister interface. -type runnerLister struct { - listers.ResourceIndexer[*v1.Runner] -} - -// NewRunnerLister returns a new RunnerLister. -func NewRunnerLister(indexer cache.Indexer) RunnerLister { - return &runnerLister{listers.New[*v1.Runner](indexer, v1.Resource("runner"))} -} diff --git a/pkg/listers/management/v1/self.go b/pkg/listers/management/v1/self.go index fba7f87c..c3f7883d 100644 --- a/pkg/listers/management/v1/self.go +++ b/pkg/listers/management/v1/self.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SelfLister helps list Selves. @@ -14,19 +14,19 @@ import ( type SelfLister interface { // List lists all Selves in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Self, err error) + List(selector labels.Selector) (ret []*managementv1.Self, err error) // Get retrieves the Self from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Self, error) + Get(name string) (*managementv1.Self, error) SelfListerExpansion } // selfLister implements the SelfLister interface. type selfLister struct { - listers.ResourceIndexer[*v1.Self] + listers.ResourceIndexer[*managementv1.Self] } // NewSelfLister returns a new SelfLister. func NewSelfLister(indexer cache.Indexer) SelfLister { - return &selfLister{listers.New[*v1.Self](indexer, v1.Resource("self"))} + return &selfLister{listers.New[*managementv1.Self](indexer, managementv1.Resource("self"))} } diff --git a/pkg/listers/management/v1/selfsubjectaccessreview.go b/pkg/listers/management/v1/selfsubjectaccessreview.go index 775816b7..88b158b2 100644 --- a/pkg/listers/management/v1/selfsubjectaccessreview.go +++ b/pkg/listers/management/v1/selfsubjectaccessreview.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SelfSubjectAccessReviewLister helps list SelfSubjectAccessReviews. @@ -14,19 +14,19 @@ import ( type SelfSubjectAccessReviewLister interface { // List lists all SelfSubjectAccessReviews in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SelfSubjectAccessReview, err error) + List(selector labels.Selector) (ret []*managementv1.SelfSubjectAccessReview, err error) // Get retrieves the SelfSubjectAccessReview from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SelfSubjectAccessReview, error) + Get(name string) (*managementv1.SelfSubjectAccessReview, error) SelfSubjectAccessReviewListerExpansion } // selfSubjectAccessReviewLister implements the SelfSubjectAccessReviewLister interface. type selfSubjectAccessReviewLister struct { - listers.ResourceIndexer[*v1.SelfSubjectAccessReview] + listers.ResourceIndexer[*managementv1.SelfSubjectAccessReview] } // NewSelfSubjectAccessReviewLister returns a new SelfSubjectAccessReviewLister. func NewSelfSubjectAccessReviewLister(indexer cache.Indexer) SelfSubjectAccessReviewLister { - return &selfSubjectAccessReviewLister{listers.New[*v1.SelfSubjectAccessReview](indexer, v1.Resource("selfsubjectaccessreview"))} + return &selfSubjectAccessReviewLister{listers.New[*managementv1.SelfSubjectAccessReview](indexer, managementv1.Resource("selfsubjectaccessreview"))} } diff --git a/pkg/listers/management/v1/sharedsecret.go b/pkg/listers/management/v1/sharedsecret.go index 9d7995cd..8786a290 100644 --- a/pkg/listers/management/v1/sharedsecret.go +++ b/pkg/listers/management/v1/sharedsecret.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SharedSecretLister helps list SharedSecrets. @@ -14,7 +14,7 @@ import ( type SharedSecretLister interface { // List lists all SharedSecrets in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SharedSecret, err error) + List(selector labels.Selector) (ret []*managementv1.SharedSecret, err error) // SharedSecrets returns an object that can list and get SharedSecrets. SharedSecrets(namespace string) SharedSecretNamespaceLister SharedSecretListerExpansion @@ -22,17 +22,17 @@ type SharedSecretLister interface { // sharedSecretLister implements the SharedSecretLister interface. type sharedSecretLister struct { - listers.ResourceIndexer[*v1.SharedSecret] + listers.ResourceIndexer[*managementv1.SharedSecret] } // NewSharedSecretLister returns a new SharedSecretLister. func NewSharedSecretLister(indexer cache.Indexer) SharedSecretLister { - return &sharedSecretLister{listers.New[*v1.SharedSecret](indexer, v1.Resource("sharedsecret"))} + return &sharedSecretLister{listers.New[*managementv1.SharedSecret](indexer, managementv1.Resource("sharedsecret"))} } // SharedSecrets returns an object that can list and get SharedSecrets. func (s *sharedSecretLister) SharedSecrets(namespace string) SharedSecretNamespaceLister { - return sharedSecretNamespaceLister{listers.NewNamespaced[*v1.SharedSecret](s.ResourceIndexer, namespace)} + return sharedSecretNamespaceLister{listers.NewNamespaced[*managementv1.SharedSecret](s.ResourceIndexer, namespace)} } // SharedSecretNamespaceLister helps list and get SharedSecrets. @@ -40,15 +40,15 @@ func (s *sharedSecretLister) SharedSecrets(namespace string) SharedSecretNamespa type SharedSecretNamespaceLister interface { // List lists all SharedSecrets in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SharedSecret, err error) + List(selector labels.Selector) (ret []*managementv1.SharedSecret, err error) // Get retrieves the SharedSecret from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SharedSecret, error) + Get(name string) (*managementv1.SharedSecret, error) SharedSecretNamespaceListerExpansion } // sharedSecretNamespaceLister implements the SharedSecretNamespaceLister // interface. type sharedSecretNamespaceLister struct { - listers.ResourceIndexer[*v1.SharedSecret] + listers.ResourceIndexer[*managementv1.SharedSecret] } diff --git a/pkg/listers/management/v1/spaceinstance.go b/pkg/listers/management/v1/spaceinstance.go index 2876be64..790e50f8 100644 --- a/pkg/listers/management/v1/spaceinstance.go +++ b/pkg/listers/management/v1/spaceinstance.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SpaceInstanceLister helps list SpaceInstances. @@ -14,7 +14,7 @@ import ( type SpaceInstanceLister interface { // List lists all SpaceInstances in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SpaceInstance, err error) + List(selector labels.Selector) (ret []*managementv1.SpaceInstance, err error) // SpaceInstances returns an object that can list and get SpaceInstances. SpaceInstances(namespace string) SpaceInstanceNamespaceLister SpaceInstanceListerExpansion @@ -22,17 +22,17 @@ type SpaceInstanceLister interface { // spaceInstanceLister implements the SpaceInstanceLister interface. type spaceInstanceLister struct { - listers.ResourceIndexer[*v1.SpaceInstance] + listers.ResourceIndexer[*managementv1.SpaceInstance] } // NewSpaceInstanceLister returns a new SpaceInstanceLister. func NewSpaceInstanceLister(indexer cache.Indexer) SpaceInstanceLister { - return &spaceInstanceLister{listers.New[*v1.SpaceInstance](indexer, v1.Resource("spaceinstance"))} + return &spaceInstanceLister{listers.New[*managementv1.SpaceInstance](indexer, managementv1.Resource("spaceinstance"))} } // SpaceInstances returns an object that can list and get SpaceInstances. func (s *spaceInstanceLister) SpaceInstances(namespace string) SpaceInstanceNamespaceLister { - return spaceInstanceNamespaceLister{listers.NewNamespaced[*v1.SpaceInstance](s.ResourceIndexer, namespace)} + return spaceInstanceNamespaceLister{listers.NewNamespaced[*managementv1.SpaceInstance](s.ResourceIndexer, namespace)} } // SpaceInstanceNamespaceLister helps list and get SpaceInstances. @@ -40,15 +40,15 @@ func (s *spaceInstanceLister) SpaceInstances(namespace string) SpaceInstanceName type SpaceInstanceNamespaceLister interface { // List lists all SpaceInstances in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SpaceInstance, err error) + List(selector labels.Selector) (ret []*managementv1.SpaceInstance, err error) // Get retrieves the SpaceInstance from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SpaceInstance, error) + Get(name string) (*managementv1.SpaceInstance, error) SpaceInstanceNamespaceListerExpansion } // spaceInstanceNamespaceLister implements the SpaceInstanceNamespaceLister // interface. type spaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.SpaceInstance] + listers.ResourceIndexer[*managementv1.SpaceInstance] } diff --git a/pkg/listers/management/v1/spacetemplate.go b/pkg/listers/management/v1/spacetemplate.go index efeda367..bdbae57a 100644 --- a/pkg/listers/management/v1/spacetemplate.go +++ b/pkg/listers/management/v1/spacetemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SpaceTemplateLister helps list SpaceTemplates. @@ -14,19 +14,19 @@ import ( type SpaceTemplateLister interface { // List lists all SpaceTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SpaceTemplate, err error) + List(selector labels.Selector) (ret []*managementv1.SpaceTemplate, err error) // Get retrieves the SpaceTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SpaceTemplate, error) + Get(name string) (*managementv1.SpaceTemplate, error) SpaceTemplateListerExpansion } // spaceTemplateLister implements the SpaceTemplateLister interface. type spaceTemplateLister struct { - listers.ResourceIndexer[*v1.SpaceTemplate] + listers.ResourceIndexer[*managementv1.SpaceTemplate] } // NewSpaceTemplateLister returns a new SpaceTemplateLister. func NewSpaceTemplateLister(indexer cache.Indexer) SpaceTemplateLister { - return &spaceTemplateLister{listers.New[*v1.SpaceTemplate](indexer, v1.Resource("spacetemplate"))} + return &spaceTemplateLister{listers.New[*managementv1.SpaceTemplate](indexer, managementv1.Resource("spacetemplate"))} } diff --git a/pkg/listers/management/v1/subjectaccessreview.go b/pkg/listers/management/v1/subjectaccessreview.go index b90d7a76..0d322b28 100644 --- a/pkg/listers/management/v1/subjectaccessreview.go +++ b/pkg/listers/management/v1/subjectaccessreview.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SubjectAccessReviewLister helps list SubjectAccessReviews. @@ -14,19 +14,19 @@ import ( type SubjectAccessReviewLister interface { // List lists all SubjectAccessReviews in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SubjectAccessReview, err error) + List(selector labels.Selector) (ret []*managementv1.SubjectAccessReview, err error) // Get retrieves the SubjectAccessReview from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SubjectAccessReview, error) + Get(name string) (*managementv1.SubjectAccessReview, error) SubjectAccessReviewListerExpansion } // subjectAccessReviewLister implements the SubjectAccessReviewLister interface. type subjectAccessReviewLister struct { - listers.ResourceIndexer[*v1.SubjectAccessReview] + listers.ResourceIndexer[*managementv1.SubjectAccessReview] } // NewSubjectAccessReviewLister returns a new SubjectAccessReviewLister. func NewSubjectAccessReviewLister(indexer cache.Indexer) SubjectAccessReviewLister { - return &subjectAccessReviewLister{listers.New[*v1.SubjectAccessReview](indexer, v1.Resource("subjectaccessreview"))} + return &subjectAccessReviewLister{listers.New[*managementv1.SubjectAccessReview](indexer, managementv1.Resource("subjectaccessreview"))} } diff --git a/pkg/listers/management/v1/task.go b/pkg/listers/management/v1/task.go index 17a7f862..b50ff1e1 100644 --- a/pkg/listers/management/v1/task.go +++ b/pkg/listers/management/v1/task.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // TaskLister helps list Tasks. @@ -14,19 +14,19 @@ import ( type TaskLister interface { // List lists all Tasks in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Task, err error) + List(selector labels.Selector) (ret []*managementv1.Task, err error) // Get retrieves the Task from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Task, error) + Get(name string) (*managementv1.Task, error) TaskListerExpansion } // taskLister implements the TaskLister interface. type taskLister struct { - listers.ResourceIndexer[*v1.Task] + listers.ResourceIndexer[*managementv1.Task] } // NewTaskLister returns a new TaskLister. func NewTaskLister(indexer cache.Indexer) TaskLister { - return &taskLister{listers.New[*v1.Task](indexer, v1.Resource("task"))} + return &taskLister{listers.New[*managementv1.Task](indexer, managementv1.Resource("task"))} } diff --git a/pkg/listers/management/v1/team.go b/pkg/listers/management/v1/team.go index eea3dd23..f86e6c62 100644 --- a/pkg/listers/management/v1/team.go +++ b/pkg/listers/management/v1/team.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // TeamLister helps list Teams. @@ -14,19 +14,19 @@ import ( type TeamLister interface { // List lists all Teams in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Team, err error) + List(selector labels.Selector) (ret []*managementv1.Team, err error) // Get retrieves the Team from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Team, error) + Get(name string) (*managementv1.Team, error) TeamListerExpansion } // teamLister implements the TeamLister interface. type teamLister struct { - listers.ResourceIndexer[*v1.Team] + listers.ResourceIndexer[*managementv1.Team] } // NewTeamLister returns a new TeamLister. func NewTeamLister(indexer cache.Indexer) TeamLister { - return &teamLister{listers.New[*v1.Team](indexer, v1.Resource("team"))} + return &teamLister{listers.New[*managementv1.Team](indexer, managementv1.Resource("team"))} } diff --git a/pkg/listers/management/v1/translatevclusterresourcename.go b/pkg/listers/management/v1/translatevclusterresourcename.go index 6904a4ac..b859bd84 100644 --- a/pkg/listers/management/v1/translatevclusterresourcename.go +++ b/pkg/listers/management/v1/translatevclusterresourcename.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // TranslateVClusterResourceNameLister helps list TranslateVClusterResourceNames. @@ -14,19 +14,19 @@ import ( type TranslateVClusterResourceNameLister interface { // List lists all TranslateVClusterResourceNames in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TranslateVClusterResourceName, err error) + List(selector labels.Selector) (ret []*managementv1.TranslateVClusterResourceName, err error) // Get retrieves the TranslateVClusterResourceName from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.TranslateVClusterResourceName, error) + Get(name string) (*managementv1.TranslateVClusterResourceName, error) TranslateVClusterResourceNameListerExpansion } // translateVClusterResourceNameLister implements the TranslateVClusterResourceNameLister interface. type translateVClusterResourceNameLister struct { - listers.ResourceIndexer[*v1.TranslateVClusterResourceName] + listers.ResourceIndexer[*managementv1.TranslateVClusterResourceName] } // NewTranslateVClusterResourceNameLister returns a new TranslateVClusterResourceNameLister. func NewTranslateVClusterResourceNameLister(indexer cache.Indexer) TranslateVClusterResourceNameLister { - return &translateVClusterResourceNameLister{listers.New[*v1.TranslateVClusterResourceName](indexer, v1.Resource("translatevclusterresourcename"))} + return &translateVClusterResourceNameLister{listers.New[*managementv1.TranslateVClusterResourceName](indexer, managementv1.Resource("translatevclusterresourcename"))} } diff --git a/pkg/listers/management/v1/user.go b/pkg/listers/management/v1/user.go index 4aad0125..64eb1b0c 100644 --- a/pkg/listers/management/v1/user.go +++ b/pkg/listers/management/v1/user.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // UserLister helps list Users. @@ -14,19 +14,19 @@ import ( type UserLister interface { // List lists all Users in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.User, err error) + List(selector labels.Selector) (ret []*managementv1.User, err error) // Get retrieves the User from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.User, error) + Get(name string) (*managementv1.User, error) UserListerExpansion } // userLister implements the UserLister interface. type userLister struct { - listers.ResourceIndexer[*v1.User] + listers.ResourceIndexer[*managementv1.User] } // NewUserLister returns a new UserLister. func NewUserLister(indexer cache.Indexer) UserLister { - return &userLister{listers.New[*v1.User](indexer, v1.Resource("user"))} + return &userLister{listers.New[*managementv1.User](indexer, managementv1.Resource("user"))} } diff --git a/pkg/listers/management/v1/virtualclusterinstance.go b/pkg/listers/management/v1/virtualclusterinstance.go index 864a37f9..1642813c 100644 --- a/pkg/listers/management/v1/virtualclusterinstance.go +++ b/pkg/listers/management/v1/virtualclusterinstance.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // VirtualClusterInstanceLister helps list VirtualClusterInstances. @@ -14,7 +14,7 @@ import ( type VirtualClusterInstanceLister interface { // List lists all VirtualClusterInstances in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.VirtualClusterInstance, err error) + List(selector labels.Selector) (ret []*managementv1.VirtualClusterInstance, err error) // VirtualClusterInstances returns an object that can list and get VirtualClusterInstances. VirtualClusterInstances(namespace string) VirtualClusterInstanceNamespaceLister VirtualClusterInstanceListerExpansion @@ -22,17 +22,17 @@ type VirtualClusterInstanceLister interface { // virtualClusterInstanceLister implements the VirtualClusterInstanceLister interface. type virtualClusterInstanceLister struct { - listers.ResourceIndexer[*v1.VirtualClusterInstance] + listers.ResourceIndexer[*managementv1.VirtualClusterInstance] } // NewVirtualClusterInstanceLister returns a new VirtualClusterInstanceLister. func NewVirtualClusterInstanceLister(indexer cache.Indexer) VirtualClusterInstanceLister { - return &virtualClusterInstanceLister{listers.New[*v1.VirtualClusterInstance](indexer, v1.Resource("virtualclusterinstance"))} + return &virtualClusterInstanceLister{listers.New[*managementv1.VirtualClusterInstance](indexer, managementv1.Resource("virtualclusterinstance"))} } // VirtualClusterInstances returns an object that can list and get VirtualClusterInstances. func (s *virtualClusterInstanceLister) VirtualClusterInstances(namespace string) VirtualClusterInstanceNamespaceLister { - return virtualClusterInstanceNamespaceLister{listers.NewNamespaced[*v1.VirtualClusterInstance](s.ResourceIndexer, namespace)} + return virtualClusterInstanceNamespaceLister{listers.NewNamespaced[*managementv1.VirtualClusterInstance](s.ResourceIndexer, namespace)} } // VirtualClusterInstanceNamespaceLister helps list and get VirtualClusterInstances. @@ -40,15 +40,15 @@ func (s *virtualClusterInstanceLister) VirtualClusterInstances(namespace string) type VirtualClusterInstanceNamespaceLister interface { // List lists all VirtualClusterInstances in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.VirtualClusterInstance, err error) + List(selector labels.Selector) (ret []*managementv1.VirtualClusterInstance, err error) // Get retrieves the VirtualClusterInstance from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.VirtualClusterInstance, error) + Get(name string) (*managementv1.VirtualClusterInstance, error) VirtualClusterInstanceNamespaceListerExpansion } // virtualClusterInstanceNamespaceLister implements the VirtualClusterInstanceNamespaceLister // interface. type virtualClusterInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.VirtualClusterInstance] + listers.ResourceIndexer[*managementv1.VirtualClusterInstance] } diff --git a/pkg/listers/management/v1/virtualclusterschema.go b/pkg/listers/management/v1/virtualclusterschema.go new file mode 100644 index 00000000..83fc7d53 --- /dev/null +++ b/pkg/listers/management/v1/virtualclusterschema.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// VirtualClusterSchemaLister helps list VirtualClusterSchemas. +// All objects returned here must be treated as read-only. +type VirtualClusterSchemaLister interface { + // List lists all VirtualClusterSchemas in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.VirtualClusterSchema, err error) + // Get retrieves the VirtualClusterSchema from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.VirtualClusterSchema, error) + VirtualClusterSchemaListerExpansion +} + +// virtualClusterSchemaLister implements the VirtualClusterSchemaLister interface. +type virtualClusterSchemaLister struct { + listers.ResourceIndexer[*managementv1.VirtualClusterSchema] +} + +// NewVirtualClusterSchemaLister returns a new VirtualClusterSchemaLister. +func NewVirtualClusterSchemaLister(indexer cache.Indexer) VirtualClusterSchemaLister { + return &virtualClusterSchemaLister{listers.New[*managementv1.VirtualClusterSchema](indexer, managementv1.Resource("virtualclusterschema"))} +} diff --git a/pkg/listers/management/v1/virtualclustertemplate.go b/pkg/listers/management/v1/virtualclustertemplate.go index 015267d8..2c7b0bfb 100644 --- a/pkg/listers/management/v1/virtualclustertemplate.go +++ b/pkg/listers/management/v1/virtualclustertemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // VirtualClusterTemplateLister helps list VirtualClusterTemplates. @@ -14,19 +14,19 @@ import ( type VirtualClusterTemplateLister interface { // List lists all VirtualClusterTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.VirtualClusterTemplate, err error) + List(selector labels.Selector) (ret []*managementv1.VirtualClusterTemplate, err error) // Get retrieves the VirtualClusterTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.VirtualClusterTemplate, error) + Get(name string) (*managementv1.VirtualClusterTemplate, error) VirtualClusterTemplateListerExpansion } // virtualClusterTemplateLister implements the VirtualClusterTemplateLister interface. type virtualClusterTemplateLister struct { - listers.ResourceIndexer[*v1.VirtualClusterTemplate] + listers.ResourceIndexer[*managementv1.VirtualClusterTemplate] } // NewVirtualClusterTemplateLister returns a new VirtualClusterTemplateLister. func NewVirtualClusterTemplateLister(indexer cache.Indexer) VirtualClusterTemplateLister { - return &virtualClusterTemplateLister{listers.New[*v1.VirtualClusterTemplate](indexer, v1.Resource("virtualclustertemplate"))} + return &virtualClusterTemplateLister{listers.New[*managementv1.VirtualClusterTemplate](indexer, managementv1.Resource("virtualclustertemplate"))} } diff --git a/pkg/listers/storage/v1/accesskey.go b/pkg/listers/storage/v1/accesskey.go index 0a7da2ec..21822c4a 100644 --- a/pkg/listers/storage/v1/accesskey.go +++ b/pkg/listers/storage/v1/accesskey.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // AccessKeyLister helps list AccessKeys. @@ -14,19 +14,19 @@ import ( type AccessKeyLister interface { // List lists all AccessKeys in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.AccessKey, err error) + List(selector labels.Selector) (ret []*storagev1.AccessKey, err error) // Get retrieves the AccessKey from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.AccessKey, error) + Get(name string) (*storagev1.AccessKey, error) AccessKeyListerExpansion } // accessKeyLister implements the AccessKeyLister interface. type accessKeyLister struct { - listers.ResourceIndexer[*v1.AccessKey] + listers.ResourceIndexer[*storagev1.AccessKey] } // NewAccessKeyLister returns a new AccessKeyLister. func NewAccessKeyLister(indexer cache.Indexer) AccessKeyLister { - return &accessKeyLister{listers.New[*v1.AccessKey](indexer, v1.Resource("accesskey"))} + return &accessKeyLister{listers.New[*storagev1.AccessKey](indexer, storagev1.Resource("accesskey"))} } diff --git a/pkg/listers/storage/v1/app.go b/pkg/listers/storage/v1/app.go index 97fc8c0a..7ab5077a 100644 --- a/pkg/listers/storage/v1/app.go +++ b/pkg/listers/storage/v1/app.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // AppLister helps list Apps. @@ -14,19 +14,19 @@ import ( type AppLister interface { // List lists all Apps in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.App, err error) + List(selector labels.Selector) (ret []*storagev1.App, err error) // Get retrieves the App from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.App, error) + Get(name string) (*storagev1.App, error) AppListerExpansion } // appLister implements the AppLister interface. type appLister struct { - listers.ResourceIndexer[*v1.App] + listers.ResourceIndexer[*storagev1.App] } // NewAppLister returns a new AppLister. func NewAppLister(indexer cache.Indexer) AppLister { - return &appLister{listers.New[*v1.App](indexer, v1.Resource("app"))} + return &appLister{listers.New[*storagev1.App](indexer, storagev1.Resource("app"))} } diff --git a/pkg/listers/storage/v1/cluster.go b/pkg/listers/storage/v1/cluster.go index 5199adb6..20e23d3e 100644 --- a/pkg/listers/storage/v1/cluster.go +++ b/pkg/listers/storage/v1/cluster.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ClusterLister helps list Clusters. @@ -14,19 +14,19 @@ import ( type ClusterLister interface { // List lists all Clusters in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Cluster, err error) + List(selector labels.Selector) (ret []*storagev1.Cluster, err error) // Get retrieves the Cluster from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Cluster, error) + Get(name string) (*storagev1.Cluster, error) ClusterListerExpansion } // clusterLister implements the ClusterLister interface. type clusterLister struct { - listers.ResourceIndexer[*v1.Cluster] + listers.ResourceIndexer[*storagev1.Cluster] } // NewClusterLister returns a new ClusterLister. func NewClusterLister(indexer cache.Indexer) ClusterLister { - return &clusterLister{listers.New[*v1.Cluster](indexer, v1.Resource("cluster"))} + return &clusterLister{listers.New[*storagev1.Cluster](indexer, storagev1.Resource("cluster"))} } diff --git a/pkg/listers/storage/v1/clusteraccess.go b/pkg/listers/storage/v1/clusteraccess.go index 5ad7a45f..8ec43119 100644 --- a/pkg/listers/storage/v1/clusteraccess.go +++ b/pkg/listers/storage/v1/clusteraccess.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ClusterAccessLister helps list ClusterAccesses. @@ -14,19 +14,19 @@ import ( type ClusterAccessLister interface { // List lists all ClusterAccesses in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ClusterAccess, err error) + List(selector labels.Selector) (ret []*storagev1.ClusterAccess, err error) // Get retrieves the ClusterAccess from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ClusterAccess, error) + Get(name string) (*storagev1.ClusterAccess, error) ClusterAccessListerExpansion } // clusterAccessLister implements the ClusterAccessLister interface. type clusterAccessLister struct { - listers.ResourceIndexer[*v1.ClusterAccess] + listers.ResourceIndexer[*storagev1.ClusterAccess] } // NewClusterAccessLister returns a new ClusterAccessLister. func NewClusterAccessLister(indexer cache.Indexer) ClusterAccessLister { - return &clusterAccessLister{listers.New[*v1.ClusterAccess](indexer, v1.Resource("clusteraccess"))} + return &clusterAccessLister{listers.New[*storagev1.ClusterAccess](indexer, storagev1.Resource("clusteraccess"))} } diff --git a/pkg/listers/storage/v1/clusterroletemplate.go b/pkg/listers/storage/v1/clusterroletemplate.go index b91d7c87..67306da5 100644 --- a/pkg/listers/storage/v1/clusterroletemplate.go +++ b/pkg/listers/storage/v1/clusterroletemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ClusterRoleTemplateLister helps list ClusterRoleTemplates. @@ -14,19 +14,19 @@ import ( type ClusterRoleTemplateLister interface { // List lists all ClusterRoleTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ClusterRoleTemplate, err error) + List(selector labels.Selector) (ret []*storagev1.ClusterRoleTemplate, err error) // Get retrieves the ClusterRoleTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ClusterRoleTemplate, error) + Get(name string) (*storagev1.ClusterRoleTemplate, error) ClusterRoleTemplateListerExpansion } // clusterRoleTemplateLister implements the ClusterRoleTemplateLister interface. type clusterRoleTemplateLister struct { - listers.ResourceIndexer[*v1.ClusterRoleTemplate] + listers.ResourceIndexer[*storagev1.ClusterRoleTemplate] } // NewClusterRoleTemplateLister returns a new ClusterRoleTemplateLister. func NewClusterRoleTemplateLister(indexer cache.Indexer) ClusterRoleTemplateLister { - return &clusterRoleTemplateLister{listers.New[*v1.ClusterRoleTemplate](indexer, v1.Resource("clusterroletemplate"))} + return &clusterRoleTemplateLister{listers.New[*storagev1.ClusterRoleTemplate](indexer, storagev1.Resource("clusterroletemplate"))} } diff --git a/pkg/listers/storage/v1/devpodenvironmenttemplate.go b/pkg/listers/storage/v1/devpodenvironmenttemplate.go index 8e1b07ca..d26162b5 100644 --- a/pkg/listers/storage/v1/devpodenvironmenttemplate.go +++ b/pkg/listers/storage/v1/devpodenvironmenttemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/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. @@ -14,19 +14,19 @@ import ( type DevPodEnvironmentTemplateLister interface { // List lists all DevPodEnvironmentTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodEnvironmentTemplate, err error) + 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) (*v1.DevPodEnvironmentTemplate, error) + Get(name string) (*storagev1.DevPodEnvironmentTemplate, error) DevPodEnvironmentTemplateListerExpansion } // devPodEnvironmentTemplateLister implements the DevPodEnvironmentTemplateLister interface. type devPodEnvironmentTemplateLister struct { - listers.ResourceIndexer[*v1.DevPodEnvironmentTemplate] + listers.ResourceIndexer[*storagev1.DevPodEnvironmentTemplate] } // NewDevPodEnvironmentTemplateLister returns a new DevPodEnvironmentTemplateLister. func NewDevPodEnvironmentTemplateLister(indexer cache.Indexer) DevPodEnvironmentTemplateLister { - return &devPodEnvironmentTemplateLister{listers.New[*v1.DevPodEnvironmentTemplate](indexer, v1.Resource("devpodenvironmenttemplate"))} + 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 index 40b34cee..8bee50d2 100644 --- a/pkg/listers/storage/v1/devpodworkspaceinstance.go +++ b/pkg/listers/storage/v1/devpodworkspaceinstance.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/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. @@ -14,7 +14,7 @@ import ( type DevPodWorkspaceInstanceLister interface { // List lists all DevPodWorkspaceInstances in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspaceInstance, err error) + List(selector labels.Selector) (ret []*storagev1.DevPodWorkspaceInstance, err error) // DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister DevPodWorkspaceInstanceListerExpansion @@ -22,17 +22,17 @@ type DevPodWorkspaceInstanceLister interface { // devPodWorkspaceInstanceLister implements the DevPodWorkspaceInstanceLister interface. type devPodWorkspaceInstanceLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceInstance] + listers.ResourceIndexer[*storagev1.DevPodWorkspaceInstance] } // NewDevPodWorkspaceInstanceLister returns a new DevPodWorkspaceInstanceLister. func NewDevPodWorkspaceInstanceLister(indexer cache.Indexer) DevPodWorkspaceInstanceLister { - return &devPodWorkspaceInstanceLister{listers.New[*v1.DevPodWorkspaceInstance](indexer, v1.Resource("devpodworkspaceinstance"))} + 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[*v1.DevPodWorkspaceInstance](s.ResourceIndexer, namespace)} + return devPodWorkspaceInstanceNamespaceLister{listers.NewNamespaced[*storagev1.DevPodWorkspaceInstance](s.ResourceIndexer, namespace)} } // DevPodWorkspaceInstanceNamespaceLister helps list and get DevPodWorkspaceInstances. @@ -40,15 +40,15 @@ func (s *devPodWorkspaceInstanceLister) DevPodWorkspaceInstances(namespace strin 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 []*v1.DevPodWorkspaceInstance, err error) + 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) (*v1.DevPodWorkspaceInstance, error) + Get(name string) (*storagev1.DevPodWorkspaceInstance, error) DevPodWorkspaceInstanceNamespaceListerExpansion } // devPodWorkspaceInstanceNamespaceLister implements the DevPodWorkspaceInstanceNamespaceLister // interface. type devPodWorkspaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceInstance] + listers.ResourceIndexer[*storagev1.DevPodWorkspaceInstance] } diff --git a/pkg/listers/storage/v1/devpodworkspacepreset.go b/pkg/listers/storage/v1/devpodworkspacepreset.go new file mode 100644 index 00000000..fd969161 --- /dev/null +++ b/pkg/listers/storage/v1/devpodworkspacepreset.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/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 index 9e146f4e..4b64dc0d 100644 --- a/pkg/listers/storage/v1/devpodworkspacetemplate.go +++ b/pkg/listers/storage/v1/devpodworkspacetemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/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. @@ -14,19 +14,19 @@ import ( type DevPodWorkspaceTemplateLister interface { // List lists all DevPodWorkspaceTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspaceTemplate, err error) + 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) (*v1.DevPodWorkspaceTemplate, error) + Get(name string) (*storagev1.DevPodWorkspaceTemplate, error) DevPodWorkspaceTemplateListerExpansion } // devPodWorkspaceTemplateLister implements the DevPodWorkspaceTemplateLister interface. type devPodWorkspaceTemplateLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceTemplate] + listers.ResourceIndexer[*storagev1.DevPodWorkspaceTemplate] } // NewDevPodWorkspaceTemplateLister returns a new DevPodWorkspaceTemplateLister. func NewDevPodWorkspaceTemplateLister(indexer cache.Indexer) DevPodWorkspaceTemplateLister { - return &devPodWorkspaceTemplateLister{listers.New[*v1.DevPodWorkspaceTemplate](indexer, v1.Resource("devpodworkspacetemplate"))} + return &devPodWorkspaceTemplateLister{listers.New[*storagev1.DevPodWorkspaceTemplate](indexer, storagev1.Resource("devpodworkspacetemplate"))} } diff --git a/pkg/listers/storage/v1/expansion_generated.go b/pkg/listers/storage/v1/expansion_generated.go index a6099455..966faa61 100644 --- a/pkg/listers/storage/v1/expansion_generated.go +++ b/pkg/listers/storage/v1/expansion_generated.go @@ -34,6 +34,10 @@ type DevPodWorkspaceInstanceListerExpansion interface{} // DevPodWorkspaceInstanceNamespaceLister. type DevPodWorkspaceInstanceNamespaceListerExpansion interface{} +// DevPodWorkspacePresetListerExpansion allows custom methods to be added to +// DevPodWorkspacePresetLister. +type DevPodWorkspacePresetListerExpansion interface{} + // DevPodWorkspaceTemplateListerExpansion allows custom methods to be added to // DevPodWorkspaceTemplateLister. type DevPodWorkspaceTemplateListerExpansion interface{} @@ -42,14 +46,26 @@ type DevPodWorkspaceTemplateListerExpansion interface{} // NetworkPeerLister. type NetworkPeerListerExpansion interface{} +// NodeClaimListerExpansion allows custom methods to be added to +// NodeClaimLister. +type NodeClaimListerExpansion interface{} + +// NodeClaimNamespaceListerExpansion allows custom methods to be added to +// NodeClaimNamespaceLister. +type NodeClaimNamespaceListerExpansion interface{} + +// NodeProviderListerExpansion allows custom methods to be added to +// NodeProviderLister. +type NodeProviderListerExpansion interface{} + +// NodeTypeListerExpansion allows custom methods to be added to +// NodeTypeLister. +type NodeTypeListerExpansion interface{} + // ProjectListerExpansion allows custom methods to be added to // ProjectLister. type ProjectListerExpansion interface{} -// RunnerListerExpansion allows custom methods to be added to -// RunnerLister. -type RunnerListerExpansion interface{} - // SharedSecretListerExpansion allows custom methods to be added to // SharedSecretLister. type SharedSecretListerExpansion interface{} diff --git a/pkg/listers/storage/v1/networkpeer.go b/pkg/listers/storage/v1/networkpeer.go index a9c134d1..eae5584e 100644 --- a/pkg/listers/storage/v1/networkpeer.go +++ b/pkg/listers/storage/v1/networkpeer.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // NetworkPeerLister helps list NetworkPeers. @@ -14,19 +14,19 @@ import ( type NetworkPeerLister interface { // List lists all NetworkPeers in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.NetworkPeer, err error) + List(selector labels.Selector) (ret []*storagev1.NetworkPeer, err error) // Get retrieves the NetworkPeer from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.NetworkPeer, error) + Get(name string) (*storagev1.NetworkPeer, error) NetworkPeerListerExpansion } // networkPeerLister implements the NetworkPeerLister interface. type networkPeerLister struct { - listers.ResourceIndexer[*v1.NetworkPeer] + listers.ResourceIndexer[*storagev1.NetworkPeer] } // NewNetworkPeerLister returns a new NetworkPeerLister. func NewNetworkPeerLister(indexer cache.Indexer) NetworkPeerLister { - return &networkPeerLister{listers.New[*v1.NetworkPeer](indexer, v1.Resource("networkpeer"))} + return &networkPeerLister{listers.New[*storagev1.NetworkPeer](indexer, storagev1.Resource("networkpeer"))} } diff --git a/pkg/listers/storage/v1/nodeclaim.go b/pkg/listers/storage/v1/nodeclaim.go new file mode 100644 index 00000000..44e02202 --- /dev/null +++ b/pkg/listers/storage/v1/nodeclaim.go @@ -0,0 +1,54 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// NodeClaimLister helps list NodeClaims. +// All objects returned here must be treated as read-only. +type NodeClaimLister interface { + // List lists all NodeClaims in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.NodeClaim, err error) + // NodeClaims returns an object that can list and get NodeClaims. + NodeClaims(namespace string) NodeClaimNamespaceLister + NodeClaimListerExpansion +} + +// nodeClaimLister implements the NodeClaimLister interface. +type nodeClaimLister struct { + listers.ResourceIndexer[*storagev1.NodeClaim] +} + +// NewNodeClaimLister returns a new NodeClaimLister. +func NewNodeClaimLister(indexer cache.Indexer) NodeClaimLister { + return &nodeClaimLister{listers.New[*storagev1.NodeClaim](indexer, storagev1.Resource("nodeclaim"))} +} + +// NodeClaims returns an object that can list and get NodeClaims. +func (s *nodeClaimLister) NodeClaims(namespace string) NodeClaimNamespaceLister { + return nodeClaimNamespaceLister{listers.NewNamespaced[*storagev1.NodeClaim](s.ResourceIndexer, namespace)} +} + +// NodeClaimNamespaceLister helps list and get NodeClaims. +// All objects returned here must be treated as read-only. +type NodeClaimNamespaceLister interface { + // List lists all NodeClaims in the indexer for a given namespace. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.NodeClaim, err error) + // Get retrieves the NodeClaim from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.NodeClaim, error) + NodeClaimNamespaceListerExpansion +} + +// nodeClaimNamespaceLister implements the NodeClaimNamespaceLister +// interface. +type nodeClaimNamespaceLister struct { + listers.ResourceIndexer[*storagev1.NodeClaim] +} diff --git a/pkg/listers/storage/v1/nodeprovider.go b/pkg/listers/storage/v1/nodeprovider.go new file mode 100644 index 00000000..b79a9f3e --- /dev/null +++ b/pkg/listers/storage/v1/nodeprovider.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// NodeProviderLister helps list NodeProviders. +// All objects returned here must be treated as read-only. +type NodeProviderLister interface { + // List lists all NodeProviders in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.NodeProvider, err error) + // Get retrieves the NodeProvider from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.NodeProvider, error) + NodeProviderListerExpansion +} + +// nodeProviderLister implements the NodeProviderLister interface. +type nodeProviderLister struct { + listers.ResourceIndexer[*storagev1.NodeProvider] +} + +// NewNodeProviderLister returns a new NodeProviderLister. +func NewNodeProviderLister(indexer cache.Indexer) NodeProviderLister { + return &nodeProviderLister{listers.New[*storagev1.NodeProvider](indexer, storagev1.Resource("nodeprovider"))} +} diff --git a/pkg/listers/storage/v1/nodetype.go b/pkg/listers/storage/v1/nodetype.go new file mode 100644 index 00000000..b408b3e5 --- /dev/null +++ b/pkg/listers/storage/v1/nodetype.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// NodeTypeLister helps list NodeTypes. +// All objects returned here must be treated as read-only. +type NodeTypeLister interface { + // List lists all NodeTypes in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.NodeType, err error) + // Get retrieves the NodeType from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.NodeType, error) + NodeTypeListerExpansion +} + +// nodeTypeLister implements the NodeTypeLister interface. +type nodeTypeLister struct { + listers.ResourceIndexer[*storagev1.NodeType] +} + +// NewNodeTypeLister returns a new NodeTypeLister. +func NewNodeTypeLister(indexer cache.Indexer) NodeTypeLister { + return &nodeTypeLister{listers.New[*storagev1.NodeType](indexer, storagev1.Resource("nodetype"))} +} diff --git a/pkg/listers/storage/v1/project.go b/pkg/listers/storage/v1/project.go index 090e420e..1bfbc5bb 100644 --- a/pkg/listers/storage/v1/project.go +++ b/pkg/listers/storage/v1/project.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ProjectLister helps list Projects. @@ -14,19 +14,19 @@ import ( type ProjectLister interface { // List lists all Projects in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Project, err error) + List(selector labels.Selector) (ret []*storagev1.Project, err error) // Get retrieves the Project from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Project, error) + Get(name string) (*storagev1.Project, error) ProjectListerExpansion } // projectLister implements the ProjectLister interface. type projectLister struct { - listers.ResourceIndexer[*v1.Project] + listers.ResourceIndexer[*storagev1.Project] } // NewProjectLister returns a new ProjectLister. func NewProjectLister(indexer cache.Indexer) ProjectLister { - return &projectLister{listers.New[*v1.Project](indexer, v1.Resource("project"))} + return &projectLister{listers.New[*storagev1.Project](indexer, storagev1.Resource("project"))} } diff --git a/pkg/listers/storage/v1/runner.go b/pkg/listers/storage/v1/runner.go deleted file mode 100644 index 3fc9dede..00000000 --- a/pkg/listers/storage/v1/runner.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by lister-gen. DO NOT EDIT. - -package v1 - -import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" -) - -// RunnerLister helps list Runners. -// All objects returned here must be treated as read-only. -type RunnerLister interface { - // List lists all Runners in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Runner, err error) - // Get retrieves the Runner from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*v1.Runner, error) - RunnerListerExpansion -} - -// runnerLister implements the RunnerLister interface. -type runnerLister struct { - listers.ResourceIndexer[*v1.Runner] -} - -// NewRunnerLister returns a new RunnerLister. -func NewRunnerLister(indexer cache.Indexer) RunnerLister { - return &runnerLister{listers.New[*v1.Runner](indexer, v1.Resource("runner"))} -} diff --git a/pkg/listers/storage/v1/sharedsecret.go b/pkg/listers/storage/v1/sharedsecret.go index 528bc2db..7669cc9f 100644 --- a/pkg/listers/storage/v1/sharedsecret.go +++ b/pkg/listers/storage/v1/sharedsecret.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SharedSecretLister helps list SharedSecrets. @@ -14,7 +14,7 @@ import ( type SharedSecretLister interface { // List lists all SharedSecrets in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SharedSecret, err error) + List(selector labels.Selector) (ret []*storagev1.SharedSecret, err error) // SharedSecrets returns an object that can list and get SharedSecrets. SharedSecrets(namespace string) SharedSecretNamespaceLister SharedSecretListerExpansion @@ -22,17 +22,17 @@ type SharedSecretLister interface { // sharedSecretLister implements the SharedSecretLister interface. type sharedSecretLister struct { - listers.ResourceIndexer[*v1.SharedSecret] + listers.ResourceIndexer[*storagev1.SharedSecret] } // NewSharedSecretLister returns a new SharedSecretLister. func NewSharedSecretLister(indexer cache.Indexer) SharedSecretLister { - return &sharedSecretLister{listers.New[*v1.SharedSecret](indexer, v1.Resource("sharedsecret"))} + return &sharedSecretLister{listers.New[*storagev1.SharedSecret](indexer, storagev1.Resource("sharedsecret"))} } // SharedSecrets returns an object that can list and get SharedSecrets. func (s *sharedSecretLister) SharedSecrets(namespace string) SharedSecretNamespaceLister { - return sharedSecretNamespaceLister{listers.NewNamespaced[*v1.SharedSecret](s.ResourceIndexer, namespace)} + return sharedSecretNamespaceLister{listers.NewNamespaced[*storagev1.SharedSecret](s.ResourceIndexer, namespace)} } // SharedSecretNamespaceLister helps list and get SharedSecrets. @@ -40,15 +40,15 @@ func (s *sharedSecretLister) SharedSecrets(namespace string) SharedSecretNamespa type SharedSecretNamespaceLister interface { // List lists all SharedSecrets in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SharedSecret, err error) + List(selector labels.Selector) (ret []*storagev1.SharedSecret, err error) // Get retrieves the SharedSecret from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SharedSecret, error) + Get(name string) (*storagev1.SharedSecret, error) SharedSecretNamespaceListerExpansion } // sharedSecretNamespaceLister implements the SharedSecretNamespaceLister // interface. type sharedSecretNamespaceLister struct { - listers.ResourceIndexer[*v1.SharedSecret] + listers.ResourceIndexer[*storagev1.SharedSecret] } diff --git a/pkg/listers/storage/v1/spaceinstance.go b/pkg/listers/storage/v1/spaceinstance.go index 4a3b1810..382c0914 100644 --- a/pkg/listers/storage/v1/spaceinstance.go +++ b/pkg/listers/storage/v1/spaceinstance.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SpaceInstanceLister helps list SpaceInstances. @@ -14,7 +14,7 @@ import ( type SpaceInstanceLister interface { // List lists all SpaceInstances in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SpaceInstance, err error) + List(selector labels.Selector) (ret []*storagev1.SpaceInstance, err error) // SpaceInstances returns an object that can list and get SpaceInstances. SpaceInstances(namespace string) SpaceInstanceNamespaceLister SpaceInstanceListerExpansion @@ -22,17 +22,17 @@ type SpaceInstanceLister interface { // spaceInstanceLister implements the SpaceInstanceLister interface. type spaceInstanceLister struct { - listers.ResourceIndexer[*v1.SpaceInstance] + listers.ResourceIndexer[*storagev1.SpaceInstance] } // NewSpaceInstanceLister returns a new SpaceInstanceLister. func NewSpaceInstanceLister(indexer cache.Indexer) SpaceInstanceLister { - return &spaceInstanceLister{listers.New[*v1.SpaceInstance](indexer, v1.Resource("spaceinstance"))} + return &spaceInstanceLister{listers.New[*storagev1.SpaceInstance](indexer, storagev1.Resource("spaceinstance"))} } // SpaceInstances returns an object that can list and get SpaceInstances. func (s *spaceInstanceLister) SpaceInstances(namespace string) SpaceInstanceNamespaceLister { - return spaceInstanceNamespaceLister{listers.NewNamespaced[*v1.SpaceInstance](s.ResourceIndexer, namespace)} + return spaceInstanceNamespaceLister{listers.NewNamespaced[*storagev1.SpaceInstance](s.ResourceIndexer, namespace)} } // SpaceInstanceNamespaceLister helps list and get SpaceInstances. @@ -40,15 +40,15 @@ func (s *spaceInstanceLister) SpaceInstances(namespace string) SpaceInstanceName type SpaceInstanceNamespaceLister interface { // List lists all SpaceInstances in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SpaceInstance, err error) + List(selector labels.Selector) (ret []*storagev1.SpaceInstance, err error) // Get retrieves the SpaceInstance from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SpaceInstance, error) + Get(name string) (*storagev1.SpaceInstance, error) SpaceInstanceNamespaceListerExpansion } // spaceInstanceNamespaceLister implements the SpaceInstanceNamespaceLister // interface. type spaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.SpaceInstance] + listers.ResourceIndexer[*storagev1.SpaceInstance] } diff --git a/pkg/listers/storage/v1/spacetemplate.go b/pkg/listers/storage/v1/spacetemplate.go index aa7d44b3..98fa37e7 100644 --- a/pkg/listers/storage/v1/spacetemplate.go +++ b/pkg/listers/storage/v1/spacetemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SpaceTemplateLister helps list SpaceTemplates. @@ -14,19 +14,19 @@ import ( type SpaceTemplateLister interface { // List lists all SpaceTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SpaceTemplate, err error) + List(selector labels.Selector) (ret []*storagev1.SpaceTemplate, err error) // Get retrieves the SpaceTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SpaceTemplate, error) + Get(name string) (*storagev1.SpaceTemplate, error) SpaceTemplateListerExpansion } // spaceTemplateLister implements the SpaceTemplateLister interface. type spaceTemplateLister struct { - listers.ResourceIndexer[*v1.SpaceTemplate] + listers.ResourceIndexer[*storagev1.SpaceTemplate] } // NewSpaceTemplateLister returns a new SpaceTemplateLister. func NewSpaceTemplateLister(indexer cache.Indexer) SpaceTemplateLister { - return &spaceTemplateLister{listers.New[*v1.SpaceTemplate](indexer, v1.Resource("spacetemplate"))} + return &spaceTemplateLister{listers.New[*storagev1.SpaceTemplate](indexer, storagev1.Resource("spacetemplate"))} } diff --git a/pkg/listers/storage/v1/task.go b/pkg/listers/storage/v1/task.go index 03d0fdb0..f56caed5 100644 --- a/pkg/listers/storage/v1/task.go +++ b/pkg/listers/storage/v1/task.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // TaskLister helps list Tasks. @@ -14,19 +14,19 @@ import ( type TaskLister interface { // List lists all Tasks in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Task, err error) + List(selector labels.Selector) (ret []*storagev1.Task, err error) // Get retrieves the Task from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Task, error) + Get(name string) (*storagev1.Task, error) TaskListerExpansion } // taskLister implements the TaskLister interface. type taskLister struct { - listers.ResourceIndexer[*v1.Task] + listers.ResourceIndexer[*storagev1.Task] } // NewTaskLister returns a new TaskLister. func NewTaskLister(indexer cache.Indexer) TaskLister { - return &taskLister{listers.New[*v1.Task](indexer, v1.Resource("task"))} + return &taskLister{listers.New[*storagev1.Task](indexer, storagev1.Resource("task"))} } diff --git a/pkg/listers/storage/v1/team.go b/pkg/listers/storage/v1/team.go index f144ab51..d68cbea1 100644 --- a/pkg/listers/storage/v1/team.go +++ b/pkg/listers/storage/v1/team.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // TeamLister helps list Teams. @@ -14,19 +14,19 @@ import ( type TeamLister interface { // List lists all Teams in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Team, err error) + List(selector labels.Selector) (ret []*storagev1.Team, err error) // Get retrieves the Team from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Team, error) + Get(name string) (*storagev1.Team, error) TeamListerExpansion } // teamLister implements the TeamLister interface. type teamLister struct { - listers.ResourceIndexer[*v1.Team] + listers.ResourceIndexer[*storagev1.Team] } // NewTeamLister returns a new TeamLister. func NewTeamLister(indexer cache.Indexer) TeamLister { - return &teamLister{listers.New[*v1.Team](indexer, v1.Resource("team"))} + return &teamLister{listers.New[*storagev1.Team](indexer, storagev1.Resource("team"))} } diff --git a/pkg/listers/storage/v1/user.go b/pkg/listers/storage/v1/user.go index 026fce10..e0aa38d1 100644 --- a/pkg/listers/storage/v1/user.go +++ b/pkg/listers/storage/v1/user.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // UserLister helps list Users. @@ -14,19 +14,19 @@ import ( type UserLister interface { // List lists all Users in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.User, err error) + List(selector labels.Selector) (ret []*storagev1.User, err error) // Get retrieves the User from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.User, error) + Get(name string) (*storagev1.User, error) UserListerExpansion } // userLister implements the UserLister interface. type userLister struct { - listers.ResourceIndexer[*v1.User] + listers.ResourceIndexer[*storagev1.User] } // NewUserLister returns a new UserLister. func NewUserLister(indexer cache.Indexer) UserLister { - return &userLister{listers.New[*v1.User](indexer, v1.Resource("user"))} + return &userLister{listers.New[*storagev1.User](indexer, storagev1.Resource("user"))} } diff --git a/pkg/listers/storage/v1/virtualclusterinstance.go b/pkg/listers/storage/v1/virtualclusterinstance.go index a801501b..577f643c 100644 --- a/pkg/listers/storage/v1/virtualclusterinstance.go +++ b/pkg/listers/storage/v1/virtualclusterinstance.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // VirtualClusterInstanceLister helps list VirtualClusterInstances. @@ -14,7 +14,7 @@ import ( type VirtualClusterInstanceLister interface { // List lists all VirtualClusterInstances in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.VirtualClusterInstance, err error) + List(selector labels.Selector) (ret []*storagev1.VirtualClusterInstance, err error) // VirtualClusterInstances returns an object that can list and get VirtualClusterInstances. VirtualClusterInstances(namespace string) VirtualClusterInstanceNamespaceLister VirtualClusterInstanceListerExpansion @@ -22,17 +22,17 @@ type VirtualClusterInstanceLister interface { // virtualClusterInstanceLister implements the VirtualClusterInstanceLister interface. type virtualClusterInstanceLister struct { - listers.ResourceIndexer[*v1.VirtualClusterInstance] + listers.ResourceIndexer[*storagev1.VirtualClusterInstance] } // NewVirtualClusterInstanceLister returns a new VirtualClusterInstanceLister. func NewVirtualClusterInstanceLister(indexer cache.Indexer) VirtualClusterInstanceLister { - return &virtualClusterInstanceLister{listers.New[*v1.VirtualClusterInstance](indexer, v1.Resource("virtualclusterinstance"))} + return &virtualClusterInstanceLister{listers.New[*storagev1.VirtualClusterInstance](indexer, storagev1.Resource("virtualclusterinstance"))} } // VirtualClusterInstances returns an object that can list and get VirtualClusterInstances. func (s *virtualClusterInstanceLister) VirtualClusterInstances(namespace string) VirtualClusterInstanceNamespaceLister { - return virtualClusterInstanceNamespaceLister{listers.NewNamespaced[*v1.VirtualClusterInstance](s.ResourceIndexer, namespace)} + return virtualClusterInstanceNamespaceLister{listers.NewNamespaced[*storagev1.VirtualClusterInstance](s.ResourceIndexer, namespace)} } // VirtualClusterInstanceNamespaceLister helps list and get VirtualClusterInstances. @@ -40,15 +40,15 @@ func (s *virtualClusterInstanceLister) VirtualClusterInstances(namespace string) type VirtualClusterInstanceNamespaceLister interface { // List lists all VirtualClusterInstances in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.VirtualClusterInstance, err error) + List(selector labels.Selector) (ret []*storagev1.VirtualClusterInstance, err error) // Get retrieves the VirtualClusterInstance from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.VirtualClusterInstance, error) + Get(name string) (*storagev1.VirtualClusterInstance, error) VirtualClusterInstanceNamespaceListerExpansion } // virtualClusterInstanceNamespaceLister implements the VirtualClusterInstanceNamespaceLister // interface. type virtualClusterInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.VirtualClusterInstance] + listers.ResourceIndexer[*storagev1.VirtualClusterInstance] } diff --git a/pkg/listers/storage/v1/virtualclustertemplate.go b/pkg/listers/storage/v1/virtualclustertemplate.go index 582dc79d..a10ee5af 100644 --- a/pkg/listers/storage/v1/virtualclustertemplate.go +++ b/pkg/listers/storage/v1/virtualclustertemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // VirtualClusterTemplateLister helps list VirtualClusterTemplates. @@ -14,19 +14,19 @@ import ( type VirtualClusterTemplateLister interface { // List lists all VirtualClusterTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.VirtualClusterTemplate, err error) + List(selector labels.Selector) (ret []*storagev1.VirtualClusterTemplate, err error) // Get retrieves the VirtualClusterTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.VirtualClusterTemplate, error) + Get(name string) (*storagev1.VirtualClusterTemplate, error) VirtualClusterTemplateListerExpansion } // virtualClusterTemplateLister implements the VirtualClusterTemplateLister interface. type virtualClusterTemplateLister struct { - listers.ResourceIndexer[*v1.VirtualClusterTemplate] + listers.ResourceIndexer[*storagev1.VirtualClusterTemplate] } // NewVirtualClusterTemplateLister returns a new VirtualClusterTemplateLister. func NewVirtualClusterTemplateLister(indexer cache.Indexer) VirtualClusterTemplateLister { - return &virtualClusterTemplateLister{listers.New[*v1.VirtualClusterTemplate](indexer, v1.Resource("virtualclustertemplate"))} + return &virtualClusterTemplateLister{listers.New[*storagev1.VirtualClusterTemplate](indexer, storagev1.Resource("virtualclustertemplate"))} } diff --git a/pkg/listers/virtualcluster/v1/helmrelease.go b/pkg/listers/virtualcluster/v1/helmrelease.go index 580cf5e6..59ab5915 100644 --- a/pkg/listers/virtualcluster/v1/helmrelease.go +++ b/pkg/listers/virtualcluster/v1/helmrelease.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + virtualclusterv1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // HelmReleaseLister helps list HelmReleases. @@ -14,7 +14,7 @@ import ( type HelmReleaseLister interface { // List lists all HelmReleases in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.HelmRelease, err error) + List(selector labels.Selector) (ret []*virtualclusterv1.HelmRelease, err error) // HelmReleases returns an object that can list and get HelmReleases. HelmReleases(namespace string) HelmReleaseNamespaceLister HelmReleaseListerExpansion @@ -22,17 +22,17 @@ type HelmReleaseLister interface { // helmReleaseLister implements the HelmReleaseLister interface. type helmReleaseLister struct { - listers.ResourceIndexer[*v1.HelmRelease] + listers.ResourceIndexer[*virtualclusterv1.HelmRelease] } // NewHelmReleaseLister returns a new HelmReleaseLister. func NewHelmReleaseLister(indexer cache.Indexer) HelmReleaseLister { - return &helmReleaseLister{listers.New[*v1.HelmRelease](indexer, v1.Resource("helmrelease"))} + return &helmReleaseLister{listers.New[*virtualclusterv1.HelmRelease](indexer, virtualclusterv1.Resource("helmrelease"))} } // HelmReleases returns an object that can list and get HelmReleases. func (s *helmReleaseLister) HelmReleases(namespace string) HelmReleaseNamespaceLister { - return helmReleaseNamespaceLister{listers.NewNamespaced[*v1.HelmRelease](s.ResourceIndexer, namespace)} + return helmReleaseNamespaceLister{listers.NewNamespaced[*virtualclusterv1.HelmRelease](s.ResourceIndexer, namespace)} } // HelmReleaseNamespaceLister helps list and get HelmReleases. @@ -40,15 +40,15 @@ func (s *helmReleaseLister) HelmReleases(namespace string) HelmReleaseNamespaceL type HelmReleaseNamespaceLister interface { // List lists all HelmReleases in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.HelmRelease, err error) + List(selector labels.Selector) (ret []*virtualclusterv1.HelmRelease, err error) // Get retrieves the HelmRelease from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.HelmRelease, error) + Get(name string) (*virtualclusterv1.HelmRelease, error) HelmReleaseNamespaceListerExpansion } // helmReleaseNamespaceLister implements the HelmReleaseNamespaceLister // interface. type helmReleaseNamespaceLister struct { - listers.ResourceIndexer[*v1.HelmRelease] + listers.ResourceIndexer[*virtualclusterv1.HelmRelease] } diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index a60f689e..289b4deb 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -16,1326 +16,1435 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.Analytics": schema_loft_sh_admin_apis_pkg_licenseapi_Analytics(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Announcement": schema_loft_sh_admin_apis_pkg_licenseapi_Announcement(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.BlockRequest": schema_loft_sh_admin_apis_pkg_licenseapi_BlockRequest(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Button": schema_loft_sh_admin_apis_pkg_licenseapi_Button(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Feature": schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestInput(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestOutput(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenAuth(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenClaims": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenClaims(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Invoice": schema_loft_sh_admin_apis_pkg_licenseapi_Invoice(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.License": schema_loft_sh_admin_apis_pkg_licenseapi_License(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoute(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoutes": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoutes(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Limit": schema_loft_sh_admin_apis_pkg_licenseapi_Limit(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Module": schema_loft_sh_admin_apis_pkg_licenseapi_Module(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.OfflineLicenseKeyClaims": schema_loft_sh_admin_apis_pkg_licenseapi_OfflineLicenseKeyClaims(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Plan": schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanExpiration": schema_loft_sh_admin_apis_pkg_licenseapi_PlanExpiration(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPeriod": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPeriod(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPrice": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PriceTier": schema_loft_sh_admin_apis_pkg_licenseapi_PriceTier(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Request": schema_loft_sh_admin_apis_pkg_licenseapi_Request(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount": schema_loft_sh_admin_apis_pkg_licenseapi_ResourceCount(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.TierResource": schema_loft_sh_admin_apis_pkg_licenseapi_TierResource(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Trial": schema_loft_sh_admin_apis_pkg_licenseapi_Trial(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash": schema_apis_loft_cluster_v1_Bash(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart": schema_apis_loft_cluster_v1_Chart(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo": schema_apis_loft_cluster_v1_ChartInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoList": schema_apis_loft_cluster_v1_ChartInfoList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoSpec": schema_apis_loft_cluster_v1_ChartInfoSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoStatus": schema_apis_loft_cluster_v1_ChartInfoStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef": schema_apis_loft_cluster_v1_ChartSecretRef(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.EpochInfo": schema_apis_loft_cluster_v1_EpochInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Feature": schema_apis_loft_cluster_v1_Feature(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureList": schema_apis_loft_cluster_v1_FeatureList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureSpec": schema_apis_loft_cluster_v1_FeatureSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureStatus": schema_apis_loft_cluster_v1_FeatureStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease": schema_apis_loft_cluster_v1_HelmRelease(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseApp": schema_apis_loft_cluster_v1_HelmReleaseApp(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig": schema_apis_loft_cluster_v1_HelmReleaseConfig(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseList": schema_apis_loft_cluster_v1_HelmReleaseList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseSpec": schema_apis_loft_cluster_v1_HelmReleaseSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseStatus": schema_apis_loft_cluster_v1_HelmReleaseStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info": schema_apis_loft_cluster_v1_Info(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.LastActivityInfo": schema_apis_loft_cluster_v1_LastActivityInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Maintainer": schema_apis_loft_cluster_v1_Maintainer(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata": schema_apis_loft_cluster_v1_Metadata(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ProjectSecretRef": schema_apis_loft_cluster_v1_ProjectSecretRef(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig": schema_apis_loft_cluster_v1_SleepModeConfig(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigSpec": schema_apis_loft_cluster_v1_SleepModeConfigSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigStatus": schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota": schema_apis_loft_storage_v1_ClusterQuota(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaList": schema_apis_loft_storage_v1_ClusterQuotaList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaSpec": schema_apis_loft_storage_v1_ClusterQuotaSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatus": schema_apis_loft_storage_v1_ClusterQuotaStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatusByNamespace": schema_apis_loft_storage_v1_ClusterQuotaStatusByNamespace(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition": schema_apis_loft_storage_v1_Condition(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event": schema_pkg_apis_audit_v1_Event(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.EventList": schema_pkg_apis_audit_v1_EventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference": schema_pkg_apis_audit_v1_ObjectReference(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec": schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig": schema_pkg_apis_management_v1_AgentAuditConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEvent": schema_pkg_apis_management_v1_AgentAuditEvent(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventList": schema_pkg_apis_management_v1_AgentAuditEventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventSpec": schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventStatus": schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Announcement": schema_pkg_apis_management_v1_Announcement(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementList": schema_pkg_apis_management_v1_AnnouncementList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementSpec": schema_pkg_apis_management_v1_AnnouncementSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementStatus": schema_pkg_apis_management_v1_AnnouncementStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.App": schema_pkg_apis_management_v1_App(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentials": schema_pkg_apis_management_v1_AppCredentials(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentialsList": schema_pkg_apis_management_v1_AppCredentialsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppList": schema_pkg_apis_management_v1_AppList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppSpec": schema_pkg_apis_management_v1_AppSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppStatus": schema_pkg_apis_management_v1_AppStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps": schema_pkg_apis_management_v1_Apps(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit": schema_pkg_apis_management_v1_Audit(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy": schema_pkg_apis_management_v1_AuditPolicy(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicyRule": schema_pkg_apis_management_v1_AuditPolicyRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication": schema_pkg_apis_management_v1_Authentication(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub": schema_pkg_apis_management_v1_AuthenticationGithub(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithubOrg": schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab": schema_pkg_apis_management_v1_AuthenticationGitlab(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle": schema_pkg_apis_management_v1_AuthenticationGoogle(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft": schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC": schema_pkg_apis_management_v1_AuthenticationOIDC(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationPassword": schema_pkg_apis_management_v1_AuthenticationPassword(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationRancher": schema_pkg_apis_management_v1_AuthenticationRancher(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML": schema_pkg_apis_management_v1_AuthenticationSAML(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Backup": schema_pkg_apis_management_v1_Backup(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApply": schema_pkg_apis_management_v1_BackupApply(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyList": schema_pkg_apis_management_v1_BackupApplyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyOptions": schema_pkg_apis_management_v1_BackupApplyOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplySpec": schema_pkg_apis_management_v1_BackupApplySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupList": schema_pkg_apis_management_v1_BackupList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupSpec": schema_pkg_apis_management_v1_BackupSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupStatus": schema_pkg_apis_management_v1_BackupStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster": schema_pkg_apis_management_v1_Cluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccess": schema_pkg_apis_management_v1_ClusterAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKeyList": schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessList": schema_pkg_apis_management_v1_ClusterAccessList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessSpec": schema_pkg_apis_management_v1_ClusterAccessSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessStatus": schema_pkg_apis_management_v1_ClusterAccessStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts": schema_pkg_apis_management_v1_ClusterAccounts(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfig": schema_pkg_apis_management_v1_ClusterAgentConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfigCommon": schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfigList": schema_pkg_apis_management_v1_ClusterAgentConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterCharts": schema_pkg_apis_management_v1_ClusterCharts(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterChartsList": schema_pkg_apis_management_v1_ClusterChartsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterDomain": schema_pkg_apis_management_v1_ClusterDomain(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterDomainList": schema_pkg_apis_management_v1_ClusterDomainList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterList": schema_pkg_apis_management_v1_ClusterList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMember": schema_pkg_apis_management_v1_ClusterMember(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccess": schema_pkg_apis_management_v1_ClusterMemberAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccessList": schema_pkg_apis_management_v1_ClusterMemberAccessList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMembers": schema_pkg_apis_management_v1_ClusterMembers(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMembersList": schema_pkg_apis_management_v1_ClusterMembersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterReset": schema_pkg_apis_management_v1_ClusterReset(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterResetList": schema_pkg_apis_management_v1_ClusterResetList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplate": schema_pkg_apis_management_v1_ClusterRoleTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateList": schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateSpec": schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateStatus": schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterSpec": schema_pkg_apis_management_v1_ClusterSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterStatus": schema_pkg_apis_management_v1_ClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterVirtualClusterDefaults": schema_pkg_apis_management_v1_ClusterVirtualClusterDefaults(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterVirtualClusterDefaultsList": schema_pkg_apis_management_v1_ClusterVirtualClusterDefaultsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Config": schema_pkg_apis_management_v1_Config(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigList": schema_pkg_apis_management_v1_ConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigSpec": schema_pkg_apis_management_v1_ConfigSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigStatus": schema_pkg_apis_management_v1_ConfigStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Connector": schema_pkg_apis_management_v1_Connector(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConnectorWithName": schema_pkg_apis_management_v1_ConnectorWithName(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfig": schema_pkg_apis_management_v1_ConvertVirtualClusterConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigList": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodDeleteOptions": schema_pkg_apis_management_v1_DevPodDeleteOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodDeleteOptionsList": schema_pkg_apis_management_v1_DevPodDeleteOptionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate": schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodSshOptions": schema_pkg_apis_management_v1_DevPodSshOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodSshOptionsList": schema_pkg_apis_management_v1_DevPodSshOptionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStatusOptions": schema_pkg_apis_management_v1_DevPodStatusOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStatusOptionsList": schema_pkg_apis_management_v1_DevPodStatusOptionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStopOptions": schema_pkg_apis_management_v1_DevPodStopOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStopOptionsList": schema_pkg_apis_management_v1_DevPodStopOptionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodUpOptions": schema_pkg_apis_management_v1_DevPodUpOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodUpOptionsList": schema_pkg_apis_management_v1_DevPodUpOptionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance": schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceState(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStateList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate": schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken": schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenList": schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec": schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus": schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Event": schema_pkg_apis_management_v1_Event(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventList": schema_pkg_apis_management_v1_EventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec": schema_pkg_apis_management_v1_EventSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus": schema_pkg_apis_management_v1_EventStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature": schema_pkg_apis_management_v1_Feature(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureList": schema_pkg_apis_management_v1_FeatureList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec": schema_pkg_apis_management_v1_FeatureSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus": schema_pkg_apis_management_v1_FeatureStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.GitEnvironmentTemplate": schema_pkg_apis_management_v1_GitEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.GroupResources": schema_pkg_apis_management_v1_GroupResources(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken": schema_pkg_apis_management_v1_IngressAuthToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenList": schema_pkg_apis_management_v1_IngressAuthTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec": schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus": schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk": schema_pkg_apis_management_v1_Kiosk(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskList": schema_pkg_apis_management_v1_KioskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec": schema_pkg_apis_management_v1_KioskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus": schema_pkg_apis_management_v1_KioskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.License": schema_pkg_apis_management_v1_License(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseList": schema_pkg_apis_management_v1_LicenseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest": schema_pkg_apis_management_v1_LicenseRequest(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestList": schema_pkg_apis_management_v1_LicenseRequestList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec": schema_pkg_apis_management_v1_LicenseRequestSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus": schema_pkg_apis_management_v1_LicenseRequestStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec": schema_pkg_apis_management_v1_LicenseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus": schema_pkg_apis_management_v1_LicenseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken": schema_pkg_apis_management_v1_LicenseToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenList": schema_pkg_apis_management_v1_LicenseTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec": schema_pkg_apis_management_v1_LicenseTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus": schema_pkg_apis_management_v1_LicenseTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade": schema_pkg_apis_management_v1_LoftUpgrade(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeList": schema_pkg_apis_management_v1_LoftUpgradeList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec": schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus": schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC": schema_pkg_apis_management_v1_OIDC(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient": schema_pkg_apis_management_v1_OIDCClient(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientList": schema_pkg_apis_management_v1_OIDCClientList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec": schema_pkg_apis_management_v1_OIDCClientSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus": schema_pkg_apis_management_v1_OIDCClientStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey": schema_pkg_apis_management_v1_OwnedAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyList": schema_pkg_apis_management_v1_OwnedAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec": schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus": schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.PredefinedApp": schema_pkg_apis_management_v1_PredefinedApp(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Project": schema_pkg_apis_management_v1_Project(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo": schema_pkg_apis_management_v1_ProjectChartInfo(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoList": schema_pkg_apis_management_v1_ProjectChartInfoList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec": schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus": schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts": schema_pkg_apis_management_v1_ProjectCharts(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartsList": schema_pkg_apis_management_v1_ProjectChartsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters": schema_pkg_apis_management_v1_ProjectClusters(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClustersList": schema_pkg_apis_management_v1_ProjectClustersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace": schema_pkg_apis_management_v1_ProjectImportSpace(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceList": schema_pkg_apis_management_v1_ProjectImportSpaceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource": schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectList": schema_pkg_apis_management_v1_ProjectList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember": schema_pkg_apis_management_v1_ProjectMember(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers": schema_pkg_apis_management_v1_ProjectMembers(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembersList": schema_pkg_apis_management_v1_ProjectMembersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceList": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceList": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRunners": schema_pkg_apis_management_v1_ProjectRunners(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRunnersList": schema_pkg_apis_management_v1_ProjectRunnersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret": schema_pkg_apis_management_v1_ProjectSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretList": schema_pkg_apis_management_v1_ProjectSecretList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec": schema_pkg_apis_management_v1_ProjectSecretSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus": schema_pkg_apis_management_v1_ProjectSecretStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec": schema_pkg_apis_management_v1_ProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus": schema_pkg_apis_management_v1_ProjectStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates": schema_pkg_apis_management_v1_ProjectTemplates(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplatesList": schema_pkg_apis_management_v1_ProjectTemplatesList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken": schema_pkg_apis_management_v1_RedirectToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenClaims": schema_pkg_apis_management_v1_RedirectTokenClaims(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenList": schema_pkg_apis_management_v1_RedirectTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec": schema_pkg_apis_management_v1_RedirectTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus": schema_pkg_apis_management_v1_RedirectTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster": schema_pkg_apis_management_v1_RegisterVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterList": schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec": schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus": schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey": schema_pkg_apis_management_v1_ResetAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyList": schema_pkg_apis_management_v1_ResetAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec": schema_pkg_apis_management_v1_ResetAccessKeySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus": schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner": schema_pkg_apis_management_v1_Runner(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerAccessKey": schema_pkg_apis_management_v1_RunnerAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerAccessKeyList": schema_pkg_apis_management_v1_RunnerAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerConfig": schema_pkg_apis_management_v1_RunnerConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerConfigList": schema_pkg_apis_management_v1_RunnerConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerList": schema_pkg_apis_management_v1_RunnerList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerSpec": schema_pkg_apis_management_v1_RunnerSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerStatus": schema_pkg_apis_management_v1_RunnerStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self": schema_pkg_apis_management_v1_Self(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfList": schema_pkg_apis_management_v1_SelfList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec": schema_pkg_apis_management_v1_SelfSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus": schema_pkg_apis_management_v1_SelfStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview": schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewList": schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec": schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus": schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret": schema_pkg_apis_management_v1_SharedSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretList": schema_pkg_apis_management_v1_SharedSecretList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec": schema_pkg_apis_management_v1_SharedSecretSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus": schema_pkg_apis_management_v1_SharedSecretStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance": schema_pkg_apis_management_v1_SpaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceList": schema_pkg_apis_management_v1_SpaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec": schema_pkg_apis_management_v1_SpaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus": schema_pkg_apis_management_v1_SpaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate": schema_pkg_apis_management_v1_SpaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateList": schema_pkg_apis_management_v1_SpaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec": schema_pkg_apis_management_v1_SpaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus": schema_pkg_apis_management_v1_SpaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview": schema_pkg_apis_management_v1_SubjectAccessReview(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewList": schema_pkg_apis_management_v1_SubjectAccessReviewList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec": schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus": schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task": schema_pkg_apis_management_v1_Task(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskList": schema_pkg_apis_management_v1_TaskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog": schema_pkg_apis_management_v1_TaskLog(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogList": schema_pkg_apis_management_v1_TaskLogList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogOptions": schema_pkg_apis_management_v1_TaskLogOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec": schema_pkg_apis_management_v1_TaskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus": schema_pkg_apis_management_v1_TaskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team": schema_pkg_apis_management_v1_Team(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys": schema_pkg_apis_management_v1_TeamAccessKeys(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeysList": schema_pkg_apis_management_v1_TeamAccessKeysList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters": schema_pkg_apis_management_v1_TeamClusters(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClustersList": schema_pkg_apis_management_v1_TeamClustersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamList": schema_pkg_apis_management_v1_TeamList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec": schema_pkg_apis_management_v1_TeamSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus": schema_pkg_apis_management_v1_TeamStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName": schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameList": schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec": schema_pkg_apis_management_v1_TranslateVClusterResourceNameSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus": schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.User": schema_pkg_apis_management_v1_User(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys": schema_pkg_apis_management_v1_UserAccessKeys(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeysList": schema_pkg_apis_management_v1_UserAccessKeysList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters": schema_pkg_apis_management_v1_UserClusters(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClustersList": schema_pkg_apis_management_v1_UserClustersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserInfo": schema_pkg_apis_management_v1_UserInfo(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserList": schema_pkg_apis_management_v1_UserList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions": schema_pkg_apis_management_v1_UserPermissions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsList": schema_pkg_apis_management_v1_UserPermissionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole": schema_pkg_apis_management_v1_UserPermissionsRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile": schema_pkg_apis_management_v1_UserProfile(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileList": schema_pkg_apis_management_v1_UserProfileList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserQuotasOptions": schema_pkg_apis_management_v1_UserQuotasOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpacesOptions": schema_pkg_apis_management_v1_UserSpacesOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec": schema_pkg_apis_management_v1_UserSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus": schema_pkg_apis_management_v1_UserStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserVirtualClustersOptions": schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey": schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance": schema_pkg_apis_management_v1_VirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigList": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceList": schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog": schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogList": schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogOptions": schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate": schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateList": schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec": schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus": schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access": schema_pkg_apis_storage_v1_Access(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey": schema_pkg_apis_storage_v1_AccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity": schema_pkg_apis_storage_v1_AccessKeyIdentity(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyList": schema_pkg_apis_storage_v1_AccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC": schema_pkg_apis_storage_v1_AccessKeyOIDC(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider": schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope": schema_pkg_apis_storage_v1_AccessKeyScope(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeCluster": schema_pkg_apis_storage_v1_AccessKeyScopeCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeProject": schema_pkg_apis_storage_v1_AccessKeyScopeProject(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRole": schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRule": schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeSpace": schema_pkg_apis_storage_v1_AccessKeyScopeSpace(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyScopeVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeySpec": schema_pkg_apis_storage_v1_AccessKeySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyStatus": schema_pkg_apis_storage_v1_AccessKeyStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster": schema_pkg_apis_storage_v1_AllowedCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedClusterAccountTemplate": schema_pkg_apis_storage_v1_AllowedClusterAccountTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner": schema_pkg_apis_storage_v1_AllowedRunner(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate": schema_pkg_apis_storage_v1_AllowedTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.App": schema_pkg_apis_storage_v1_App(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppConfig": schema_pkg_apis_storage_v1_AppConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppList": schema_pkg_apis_storage_v1_AppList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter": schema_pkg_apis_storage_v1_AppParameter(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference": schema_pkg_apis_storage_v1_AppReference(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppSpec": schema_pkg_apis_storage_v1_AppSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppStatus": schema_pkg_apis_storage_v1_AppStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppTask": schema_pkg_apis_storage_v1_AppTask(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion": schema_pkg_apis_storage_v1_AppVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec": schema_pkg_apis_storage_v1_ArgoIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectPolicyRule": schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectRole": schema_pkg_apis_storage_v1_ArgoProjectRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpec": schema_pkg_apis_storage_v1_ArgoProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpecMetadata": schema_pkg_apis_storage_v1_ArgoProjectSpecMetadata(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoSSOSpec": schema_pkg_apis_storage_v1_ArgoSSOSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Chart": schema_pkg_apis_storage_v1_Chart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ChartStatus": schema_pkg_apis_storage_v1_ChartStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster": schema_pkg_apis_storage_v1_Cluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess": schema_pkg_apis_storage_v1_ClusterAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessList": schema_pkg_apis_storage_v1_ClusterAccessList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec": schema_pkg_apis_storage_v1_ClusterAccessSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus": schema_pkg_apis_storage_v1_ClusterAccessStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterList": schema_pkg_apis_storage_v1_ClusterList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef": schema_pkg_apis_storage_v1_ClusterRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef": schema_pkg_apis_storage_v1_ClusterRoleRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate": schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateList": schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus": schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate": schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterSpec": schema_pkg_apis_storage_v1_ClusterSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterStatus": schema_pkg_apis_storage_v1_ClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.CredentialForwarding": schema_pkg_apis_storage_v1_CredentialForwarding(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandDeleteOptions": schema_pkg_apis_storage_v1_DevPodCommandDeleteOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandStatusOptions": schema_pkg_apis_storage_v1_DevPodCommandStatusOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandStopOptions": schema_pkg_apis_storage_v1_DevPodCommandStopOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandUpOptions": schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplate": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec": schema_pkg_apis_storage_v1_DevPodProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption": schema_pkg_apis_storage_v1_DevPodProviderOption(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom": schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderSource": schema_pkg_apis_storage_v1_DevPodProviderSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance": schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider": schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DockerCredentialForwarding": schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo": schema_pkg_apis_storage_v1_EntityInfo(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef": schema_pkg_apis_storage_v1_EnvironmentRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding": schema_pkg_apis_storage_v1_GitCredentialForwarding(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate": schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec": schema_pkg_apis_storage_v1_GitProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources": schema_pkg_apis_storage_v1_GroupResources(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart": schema_pkg_apis_storage_v1_HelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository": schema_pkg_apis_storage_v1_HelmChartRepository(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration": schema_pkg_apis_storage_v1_HelmConfiguration(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTask": schema_pkg_apis_storage_v1_HelmTask(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease": schema_pkg_apis_storage_v1_HelmTaskRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec": schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess": schema_pkg_apis_storage_v1_InstanceAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule": schema_pkg_apis_storage_v1_InstanceAccessRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceDeployedAppStatus": schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef": schema_pkg_apis_storage_v1_KindSecretRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec": schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate": schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate": schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member": schema_pkg_apis_storage_v1_Member(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer": schema_pkg_apis_storage_v1_NetworkPeer(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerList": schema_pkg_apis_storage_v1_NetworkPeerList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec": schema_pkg_apis_storage_v1_NetworkPeerSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus": schema_pkg_apis_storage_v1_NetworkPeerStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus": schema_pkg_apis_storage_v1_ObjectsStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectList": schema_pkg_apis_storage_v1_ProjectList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec": schema_pkg_apis_storage_v1_ProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus": schema_pkg_apis_storage_v1_ProjectStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus": schema_pkg_apis_storage_v1_QuotaStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject": schema_pkg_apis_storage_v1_QuotaStatusProject(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster": schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser": schema_pkg_apis_storage_v1_QuotaStatusUser(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed": schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas": schema_pkg_apis_storage_v1_Quotas(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec": schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef": schema_pkg_apis_storage_v1_RancherProjectRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Runner": schema_pkg_apis_storage_v1_Runner(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef": schema_pkg_apis_storage_v1_RunnerClusterRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerList": schema_pkg_apis_storage_v1_RunnerList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPersistentVolumeClaimTemplate": schema_pkg_apis_storage_v1_RunnerPersistentVolumeClaimTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPersistentVolumeClaimTemplateSpec": schema_pkg_apis_storage_v1_RunnerPersistentVolumeClaimTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPodTemplate": schema_pkg_apis_storage_v1_RunnerPodTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPodTemplateSpec": schema_pkg_apis_storage_v1_RunnerPodTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef": schema_pkg_apis_storage_v1_RunnerRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplate": schema_pkg_apis_storage_v1_RunnerServiceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplateSpec": schema_pkg_apis_storage_v1_RunnerServiceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerSpec": schema_pkg_apis_storage_v1_RunnerSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerStatus": schema_pkg_apis_storage_v1_RunnerStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSHProjectSpec": schema_pkg_apis_storage_v1_SSHProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef": schema_pkg_apis_storage_v1_SecretRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecret": schema_pkg_apis_storage_v1_SharedSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretList": schema_pkg_apis_storage_v1_SharedSecretList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretSpec": schema_pkg_apis_storage_v1_SharedSecretSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretStatus": schema_pkg_apis_storage_v1_SharedSecretStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstance": schema_pkg_apis_storage_v1_SpaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceList": schema_pkg_apis_storage_v1_SpaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceSpec": schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceStatus": schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplate": schema_pkg_apis_storage_v1_SpaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateList": schema_pkg_apis_storage_v1_SpaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateSpec": schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateStatus": schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion": schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer": schema_pkg_apis_storage_v1_StreamContainer(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec": schema_pkg_apis_storage_v1_SyncMembersSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target": schema_pkg_apis_storage_v1_Target(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetCluster": schema_pkg_apis_storage_v1_TargetCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetInstance": schema_pkg_apis_storage_v1_TargetInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetVirtualCluster": schema_pkg_apis_storage_v1_TargetVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Task": schema_pkg_apis_storage_v1_Task(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition": schema_pkg_apis_storage_v1_TaskDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskList": schema_pkg_apis_storage_v1_TaskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskSpec": schema_pkg_apis_storage_v1_TaskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskStatus": schema_pkg_apis_storage_v1_TaskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Team": schema_pkg_apis_storage_v1_Team(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamList": schema_pkg_apis_storage_v1_TeamList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamSpec": schema_pkg_apis_storage_v1_TeamSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamStatus": schema_pkg_apis_storage_v1_TeamStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart": schema_pkg_apis_storage_v1_TemplateHelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata": schema_pkg_apis_storage_v1_TemplateMetadata(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef": schema_pkg_apis_storage_v1_TemplateRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.User": schema_pkg_apis_storage_v1_User(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserList": schema_pkg_apis_storage_v1_UserList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam": schema_pkg_apis_storage_v1_UserOrTeam(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity": schema_pkg_apis_storage_v1_UserOrTeamEntity(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserSpec": schema_pkg_apis_storage_v1_UserSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserStatus": schema_pkg_apis_storage_v1_UserStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultAuthSpec": schema_pkg_apis_storage_v1_VaultAuthSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec": schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPoint": schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec": schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef": schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterCommonSpec": schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmChart": schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease": schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus": schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstance": schema_pkg_apis_storage_v1_VirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceList": schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceSpec": schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceStatus": schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterProSpec": schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterStatus": schema_pkg_apis_storage_v1_VirtualClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplate": schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateList": schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpec": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateStatus": schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion": schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceStatusResult": schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton": schema_pkg_apis_ui_v1_NavBarButton(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings": schema_pkg_apis_ui_v1_UISettings(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig": schema_pkg_apis_ui_v1_UISettingsConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsSpec": schema_pkg_apis_ui_v1_UISettingsSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsStatus": schema_pkg_apis_ui_v1_UISettingsStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmRelease": schema_pkg_apis_virtualcluster_v1_HelmRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseList": schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseSpec": schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseStatus": schema_pkg_apis_virtualcluster_v1_HelmReleaseStatus(ref), - "k8s.io/api/admissionregistration/v1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1_AuditAnnotation(ref), - "k8s.io/api/admissionregistration/v1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1_ExpressionWarning(ref), - "k8s.io/api/admissionregistration/v1.MatchCondition": schema_k8sio_api_admissionregistration_v1_MatchCondition(ref), - "k8s.io/api/admissionregistration/v1.MatchResources": schema_k8sio_api_admissionregistration_v1_MatchResources(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1.ParamKind": schema_k8sio_api_admissionregistration_v1_ParamKind(ref), - "k8s.io/api/admissionregistration/v1.ParamRef": schema_k8sio_api_admissionregistration_v1_ParamRef(ref), - "k8s.io/api/admissionregistration/v1.Rule": schema_k8sio_api_admissionregistration_v1_Rule(ref), - "k8s.io/api/admissionregistration/v1.RuleWithOperations": schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1.ServiceReference": schema_k8sio_api_admissionregistration_v1_ServiceReference(ref), - "k8s.io/api/admissionregistration/v1.TypeChecking": schema_k8sio_api_admissionregistration_v1_TypeChecking(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicy(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingList(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingSpec(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyList(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1.Validation": schema_k8sio_api_admissionregistration_v1_Validation(ref), - "k8s.io/api/admissionregistration/v1.Variable": schema_k8sio_api_admissionregistration_v1_Variable(ref), - "k8s.io/api/admissionregistration/v1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref), - "k8s.io/api/admissionregistration/v1beta1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref), - "k8s.io/api/admissionregistration/v1beta1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref), - "k8s.io/api/admissionregistration/v1beta1.MatchCondition": schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref), - "k8s.io/api/admissionregistration/v1beta1.MatchResources": schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1beta1.ParamKind": schema_k8sio_api_admissionregistration_v1beta1_ParamKind(ref), - "k8s.io/api/admissionregistration/v1beta1.ParamRef": schema_k8sio_api_admissionregistration_v1beta1_ParamRef(ref), - "k8s.io/api/admissionregistration/v1beta1.ServiceReference": schema_k8sio_api_admissionregistration_v1beta1_ServiceReference(ref), - "k8s.io/api/admissionregistration/v1beta1.TypeChecking": schema_k8sio_api_admissionregistration_v1beta1_TypeChecking(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicy(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBinding(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingList(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingSpec(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyList(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpec(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyStatus(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1beta1.Validation": schema_k8sio_api_admissionregistration_v1beta1_Validation(ref), - "k8s.io/api/admissionregistration/v1beta1.Variable": schema_k8sio_api_admissionregistration_v1beta1_Variable(ref), - "k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1beta1_WebhookClientConfig(ref), - "k8s.io/api/apps/v1.ControllerRevision": schema_k8sio_api_apps_v1_ControllerRevision(ref), - "k8s.io/api/apps/v1.ControllerRevisionList": schema_k8sio_api_apps_v1_ControllerRevisionList(ref), - "k8s.io/api/apps/v1.DaemonSet": schema_k8sio_api_apps_v1_DaemonSet(ref), - "k8s.io/api/apps/v1.DaemonSetCondition": schema_k8sio_api_apps_v1_DaemonSetCondition(ref), - "k8s.io/api/apps/v1.DaemonSetList": schema_k8sio_api_apps_v1_DaemonSetList(ref), - "k8s.io/api/apps/v1.DaemonSetSpec": schema_k8sio_api_apps_v1_DaemonSetSpec(ref), - "k8s.io/api/apps/v1.DaemonSetStatus": schema_k8sio_api_apps_v1_DaemonSetStatus(ref), - "k8s.io/api/apps/v1.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref), - "k8s.io/api/apps/v1.Deployment": schema_k8sio_api_apps_v1_Deployment(ref), - "k8s.io/api/apps/v1.DeploymentCondition": schema_k8sio_api_apps_v1_DeploymentCondition(ref), - "k8s.io/api/apps/v1.DeploymentList": schema_k8sio_api_apps_v1_DeploymentList(ref), - "k8s.io/api/apps/v1.DeploymentSpec": schema_k8sio_api_apps_v1_DeploymentSpec(ref), - "k8s.io/api/apps/v1.DeploymentStatus": schema_k8sio_api_apps_v1_DeploymentStatus(ref), - "k8s.io/api/apps/v1.DeploymentStrategy": schema_k8sio_api_apps_v1_DeploymentStrategy(ref), - "k8s.io/api/apps/v1.ReplicaSet": schema_k8sio_api_apps_v1_ReplicaSet(ref), - "k8s.io/api/apps/v1.ReplicaSetCondition": schema_k8sio_api_apps_v1_ReplicaSetCondition(ref), - "k8s.io/api/apps/v1.ReplicaSetList": schema_k8sio_api_apps_v1_ReplicaSetList(ref), - "k8s.io/api/apps/v1.ReplicaSetSpec": schema_k8sio_api_apps_v1_ReplicaSetSpec(ref), - "k8s.io/api/apps/v1.ReplicaSetStatus": schema_k8sio_api_apps_v1_ReplicaSetStatus(ref), - "k8s.io/api/apps/v1.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref), - "k8s.io/api/apps/v1.RollingUpdateDeployment": schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1.StatefulSet": schema_k8sio_api_apps_v1_StatefulSet(ref), - "k8s.io/api/apps/v1.StatefulSetCondition": schema_k8sio_api_apps_v1_StatefulSetCondition(ref), - "k8s.io/api/apps/v1.StatefulSetList": schema_k8sio_api_apps_v1_StatefulSetList(ref), - "k8s.io/api/apps/v1.StatefulSetOrdinals": schema_k8sio_api_apps_v1_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1.StatefulSetSpec": schema_k8sio_api_apps_v1_StatefulSetSpec(ref), - "k8s.io/api/apps/v1.StatefulSetStatus": schema_k8sio_api_apps_v1_StatefulSetStatus(ref), - "k8s.io/api/apps/v1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta1.ControllerRevision": schema_k8sio_api_apps_v1beta1_ControllerRevision(ref), - "k8s.io/api/apps/v1beta1.ControllerRevisionList": schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref), - "k8s.io/api/apps/v1beta1.Deployment": schema_k8sio_api_apps_v1beta1_Deployment(ref), - "k8s.io/api/apps/v1beta1.DeploymentCondition": schema_k8sio_api_apps_v1beta1_DeploymentCondition(ref), - "k8s.io/api/apps/v1beta1.DeploymentList": schema_k8sio_api_apps_v1beta1_DeploymentList(ref), - "k8s.io/api/apps/v1beta1.DeploymentRollback": schema_k8sio_api_apps_v1beta1_DeploymentRollback(ref), - "k8s.io/api/apps/v1beta1.DeploymentSpec": schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref), - "k8s.io/api/apps/v1beta1.DeploymentStatus": schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref), - "k8s.io/api/apps/v1beta1.DeploymentStrategy": schema_k8sio_api_apps_v1beta1_DeploymentStrategy(ref), - "k8s.io/api/apps/v1beta1.RollbackConfig": schema_k8sio_api_apps_v1beta1_RollbackConfig(ref), - "k8s.io/api/apps/v1beta1.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta1_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1beta1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta1_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1beta1.Scale": schema_k8sio_api_apps_v1beta1_Scale(ref), - "k8s.io/api/apps/v1beta1.ScaleSpec": schema_k8sio_api_apps_v1beta1_ScaleSpec(ref), - "k8s.io/api/apps/v1beta1.ScaleStatus": schema_k8sio_api_apps_v1beta1_ScaleStatus(ref), - "k8s.io/api/apps/v1beta1.StatefulSet": schema_k8sio_api_apps_v1beta1_StatefulSet(ref), - "k8s.io/api/apps/v1beta1.StatefulSetCondition": schema_k8sio_api_apps_v1beta1_StatefulSetCondition(ref), - "k8s.io/api/apps/v1beta1.StatefulSetList": schema_k8sio_api_apps_v1beta1_StatefulSetList(ref), - "k8s.io/api/apps/v1beta1.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta1_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1beta1.StatefulSetSpec": schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref), - "k8s.io/api/apps/v1beta1.StatefulSetStatus": schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref), - "k8s.io/api/apps/v1beta1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta1_StatefulSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta2.ControllerRevision": schema_k8sio_api_apps_v1beta2_ControllerRevision(ref), - "k8s.io/api/apps/v1beta2.ControllerRevisionList": schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref), - "k8s.io/api/apps/v1beta2.DaemonSet": schema_k8sio_api_apps_v1beta2_DaemonSet(ref), - "k8s.io/api/apps/v1beta2.DaemonSetCondition": schema_k8sio_api_apps_v1beta2_DaemonSetCondition(ref), - "k8s.io/api/apps/v1beta2.DaemonSetList": schema_k8sio_api_apps_v1beta2_DaemonSetList(ref), - "k8s.io/api/apps/v1beta2.DaemonSetSpec": schema_k8sio_api_apps_v1beta2_DaemonSetSpec(ref), - "k8s.io/api/apps/v1beta2.DaemonSetStatus": schema_k8sio_api_apps_v1beta2_DaemonSetStatus(ref), - "k8s.io/api/apps/v1beta2.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_DaemonSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta2.Deployment": schema_k8sio_api_apps_v1beta2_Deployment(ref), - "k8s.io/api/apps/v1beta2.DeploymentCondition": schema_k8sio_api_apps_v1beta2_DeploymentCondition(ref), - "k8s.io/api/apps/v1beta2.DeploymentList": schema_k8sio_api_apps_v1beta2_DeploymentList(ref), - "k8s.io/api/apps/v1beta2.DeploymentSpec": schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref), - "k8s.io/api/apps/v1beta2.DeploymentStatus": schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref), - "k8s.io/api/apps/v1beta2.DeploymentStrategy": schema_k8sio_api_apps_v1beta2_DeploymentStrategy(ref), - "k8s.io/api/apps/v1beta2.ReplicaSet": schema_k8sio_api_apps_v1beta2_ReplicaSet(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetCondition": schema_k8sio_api_apps_v1beta2_ReplicaSetCondition(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetList": schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetSpec": schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetStatus": schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta2_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta2_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1beta2.Scale": schema_k8sio_api_apps_v1beta2_Scale(ref), - "k8s.io/api/apps/v1beta2.ScaleSpec": schema_k8sio_api_apps_v1beta2_ScaleSpec(ref), - "k8s.io/api/apps/v1beta2.ScaleStatus": schema_k8sio_api_apps_v1beta2_ScaleStatus(ref), - "k8s.io/api/apps/v1beta2.StatefulSet": schema_k8sio_api_apps_v1beta2_StatefulSet(ref), - "k8s.io/api/apps/v1beta2.StatefulSetCondition": schema_k8sio_api_apps_v1beta2_StatefulSetCondition(ref), - "k8s.io/api/apps/v1beta2.StatefulSetList": schema_k8sio_api_apps_v1beta2_StatefulSetList(ref), - "k8s.io/api/apps/v1beta2.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta2_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta2_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1beta2.StatefulSetSpec": schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref), - "k8s.io/api/apps/v1beta2.StatefulSetStatus": schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref), - "k8s.io/api/apps/v1beta2.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_StatefulSetUpdateStrategy(ref), - "k8s.io/api/authentication/v1.BoundObjectReference": schema_k8sio_api_authentication_v1_BoundObjectReference(ref), - "k8s.io/api/authentication/v1.SelfSubjectReview": schema_k8sio_api_authentication_v1_SelfSubjectReview(ref), - "k8s.io/api/authentication/v1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1_SelfSubjectReviewStatus(ref), - "k8s.io/api/authentication/v1.TokenRequest": schema_k8sio_api_authentication_v1_TokenRequest(ref), - "k8s.io/api/authentication/v1.TokenRequestSpec": schema_k8sio_api_authentication_v1_TokenRequestSpec(ref), - "k8s.io/api/authentication/v1.TokenRequestStatus": schema_k8sio_api_authentication_v1_TokenRequestStatus(ref), - "k8s.io/api/authentication/v1.TokenReview": schema_k8sio_api_authentication_v1_TokenReview(ref), - "k8s.io/api/authentication/v1.TokenReviewSpec": schema_k8sio_api_authentication_v1_TokenReviewSpec(ref), - "k8s.io/api/authentication/v1.TokenReviewStatus": schema_k8sio_api_authentication_v1_TokenReviewStatus(ref), - "k8s.io/api/authentication/v1.UserInfo": schema_k8sio_api_authentication_v1_UserInfo(ref), - "k8s.io/api/authentication/v1beta1.SelfSubjectReview": schema_k8sio_api_authentication_v1beta1_SelfSubjectReview(ref), - "k8s.io/api/authentication/v1beta1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1beta1_SelfSubjectReviewStatus(ref), - "k8s.io/api/authentication/v1beta1.TokenReview": schema_k8sio_api_authentication_v1beta1_TokenReview(ref), - "k8s.io/api/authentication/v1beta1.TokenReviewSpec": schema_k8sio_api_authentication_v1beta1_TokenReviewSpec(ref), - "k8s.io/api/authentication/v1beta1.TokenReviewStatus": schema_k8sio_api_authentication_v1beta1_TokenReviewStatus(ref), - "k8s.io/api/authentication/v1beta1.UserInfo": schema_k8sio_api_authentication_v1beta1_UserInfo(ref), - "k8s.io/api/authorization/v1.FieldSelectorAttributes": schema_k8sio_api_authorization_v1_FieldSelectorAttributes(ref), - "k8s.io/api/authorization/v1.LabelSelectorAttributes": schema_k8sio_api_authorization_v1_LabelSelectorAttributes(ref), - "k8s.io/api/authorization/v1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1_LocalSubjectAccessReview(ref), - "k8s.io/api/authorization/v1.NonResourceAttributes": schema_k8sio_api_authorization_v1_NonResourceAttributes(ref), - "k8s.io/api/authorization/v1.NonResourceRule": schema_k8sio_api_authorization_v1_NonResourceRule(ref), - "k8s.io/api/authorization/v1.ResourceAttributes": schema_k8sio_api_authorization_v1_ResourceAttributes(ref), - "k8s.io/api/authorization/v1.ResourceRule": schema_k8sio_api_authorization_v1_ResourceRule(ref), - "k8s.io/api/authorization/v1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1_SelfSubjectAccessReview(ref), - "k8s.io/api/authorization/v1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1_SelfSubjectRulesReview(ref), - "k8s.io/api/authorization/v1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectRulesReviewSpec(ref), - "k8s.io/api/authorization/v1.SubjectAccessReview": schema_k8sio_api_authorization_v1_SubjectAccessReview(ref), - "k8s.io/api/authorization/v1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1_SubjectAccessReviewStatus(ref), - "k8s.io/api/authorization/v1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref), - "k8s.io/api/authorization/v1beta1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_LocalSubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.NonResourceAttributes": schema_k8sio_api_authorization_v1beta1_NonResourceAttributes(ref), - "k8s.io/api/authorization/v1beta1.NonResourceRule": schema_k8sio_api_authorization_v1beta1_NonResourceRule(ref), - "k8s.io/api/authorization/v1beta1.ResourceAttributes": schema_k8sio_api_authorization_v1beta1_ResourceAttributes(ref), - "k8s.io/api/authorization/v1beta1.ResourceRule": schema_k8sio_api_authorization_v1beta1_ResourceRule(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReview(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewStatus(ref), - "k8s.io/api/authorization/v1beta1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref), - "k8s.io/api/autoscaling/v1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v1_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v1.ExternalMetricSource": schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v1.MetricSpec": schema_k8sio_api_autoscaling_v1_MetricSpec(ref), - "k8s.io/api/autoscaling/v1.MetricStatus": schema_k8sio_api_autoscaling_v1_MetricStatus(ref), - "k8s.io/api/autoscaling/v1.ObjectMetricSource": schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v1.PodsMetricSource": schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v1.PodsMetricStatus": schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v1.ResourceMetricSource": schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v1.Scale": schema_k8sio_api_autoscaling_v1_Scale(ref), - "k8s.io/api/autoscaling/v1.ScaleSpec": schema_k8sio_api_autoscaling_v1_ScaleSpec(ref), - "k8s.io/api/autoscaling/v1.ScaleStatus": schema_k8sio_api_autoscaling_v1_ScaleStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta1_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v2beta1.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v2beta1.MetricSpec": schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref), - "k8s.io/api/autoscaling/v2beta1.MetricStatus": schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta1_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta1_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta2_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v2beta2.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.HPAScalingPolicy": schema_k8sio_api_autoscaling_v2beta2_HPAScalingPolicy(ref), - "k8s.io/api/autoscaling/v2beta2.HPAScalingRules": schema_k8sio_api_autoscaling_v2beta2_HPAScalingRules(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerBehavior": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerBehavior(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v2beta2.MetricIdentifier": schema_k8sio_api_autoscaling_v2beta2_MetricIdentifier(ref), - "k8s.io/api/autoscaling/v2beta2.MetricSpec": schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref), - "k8s.io/api/autoscaling/v2beta2.MetricStatus": schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.MetricTarget": schema_k8sio_api_autoscaling_v2beta2_MetricTarget(ref), - "k8s.io/api/autoscaling/v2beta2.MetricValueStatus": schema_k8sio_api_autoscaling_v2beta2_MetricValueStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta2_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta2_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricStatus(ref), - "k8s.io/api/batch/v1.CronJob": schema_k8sio_api_batch_v1_CronJob(ref), - "k8s.io/api/batch/v1.CronJobList": schema_k8sio_api_batch_v1_CronJobList(ref), - "k8s.io/api/batch/v1.CronJobSpec": schema_k8sio_api_batch_v1_CronJobSpec(ref), - "k8s.io/api/batch/v1.CronJobStatus": schema_k8sio_api_batch_v1_CronJobStatus(ref), - "k8s.io/api/batch/v1.Job": schema_k8sio_api_batch_v1_Job(ref), - "k8s.io/api/batch/v1.JobCondition": schema_k8sio_api_batch_v1_JobCondition(ref), - "k8s.io/api/batch/v1.JobList": schema_k8sio_api_batch_v1_JobList(ref), - "k8s.io/api/batch/v1.JobSpec": schema_k8sio_api_batch_v1_JobSpec(ref), - "k8s.io/api/batch/v1.JobStatus": schema_k8sio_api_batch_v1_JobStatus(ref), - "k8s.io/api/batch/v1.JobTemplateSpec": schema_k8sio_api_batch_v1_JobTemplateSpec(ref), - "k8s.io/api/batch/v1.PodFailurePolicy": schema_k8sio_api_batch_v1_PodFailurePolicy(ref), - "k8s.io/api/batch/v1.PodFailurePolicyOnExitCodesRequirement": schema_k8sio_api_batch_v1_PodFailurePolicyOnExitCodesRequirement(ref), - "k8s.io/api/batch/v1.PodFailurePolicyOnPodConditionsPattern": schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref), - "k8s.io/api/batch/v1.PodFailurePolicyRule": schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref), - "k8s.io/api/batch/v1.SuccessPolicy": schema_k8sio_api_batch_v1_SuccessPolicy(ref), - "k8s.io/api/batch/v1.SuccessPolicyRule": schema_k8sio_api_batch_v1_SuccessPolicyRule(ref), - "k8s.io/api/batch/v1.UncountedTerminatedPods": schema_k8sio_api_batch_v1_UncountedTerminatedPods(ref), - "k8s.io/api/batch/v1beta1.CronJob": schema_k8sio_api_batch_v1beta1_CronJob(ref), - "k8s.io/api/batch/v1beta1.CronJobList": schema_k8sio_api_batch_v1beta1_CronJobList(ref), - "k8s.io/api/batch/v1beta1.CronJobSpec": schema_k8sio_api_batch_v1beta1_CronJobSpec(ref), - "k8s.io/api/batch/v1beta1.CronJobStatus": schema_k8sio_api_batch_v1beta1_CronJobStatus(ref), - "k8s.io/api/batch/v1beta1.JobTemplateSpec": schema_k8sio_api_batch_v1beta1_JobTemplateSpec(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequest": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequest(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestCondition": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestCondition(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestList": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestSpec": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestSpec(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestStatus": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref), - "k8s.io/api/coordination/v1.Lease": schema_k8sio_api_coordination_v1_Lease(ref), - "k8s.io/api/coordination/v1.LeaseList": schema_k8sio_api_coordination_v1_LeaseList(ref), - "k8s.io/api/coordination/v1.LeaseSpec": schema_k8sio_api_coordination_v1_LeaseSpec(ref), - "k8s.io/api/coordination/v1beta1.Lease": schema_k8sio_api_coordination_v1beta1_Lease(ref), - "k8s.io/api/coordination/v1beta1.LeaseList": schema_k8sio_api_coordination_v1beta1_LeaseList(ref), - "k8s.io/api/coordination/v1beta1.LeaseSpec": schema_k8sio_api_coordination_v1beta1_LeaseSpec(ref), - "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource": schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), - "k8s.io/api/core/v1.Affinity": schema_k8sio_api_core_v1_Affinity(ref), - "k8s.io/api/core/v1.AppArmorProfile": schema_k8sio_api_core_v1_AppArmorProfile(ref), - "k8s.io/api/core/v1.AttachedVolume": schema_k8sio_api_core_v1_AttachedVolume(ref), - "k8s.io/api/core/v1.AvoidPods": schema_k8sio_api_core_v1_AvoidPods(ref), - "k8s.io/api/core/v1.AzureDiskVolumeSource": schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref), - "k8s.io/api/core/v1.AzureFilePersistentVolumeSource": schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref), - "k8s.io/api/core/v1.AzureFileVolumeSource": schema_k8sio_api_core_v1_AzureFileVolumeSource(ref), - "k8s.io/api/core/v1.Binding": schema_k8sio_api_core_v1_Binding(ref), - "k8s.io/api/core/v1.CSIPersistentVolumeSource": schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref), - "k8s.io/api/core/v1.CSIVolumeSource": schema_k8sio_api_core_v1_CSIVolumeSource(ref), - "k8s.io/api/core/v1.Capabilities": schema_k8sio_api_core_v1_Capabilities(ref), - "k8s.io/api/core/v1.CephFSPersistentVolumeSource": schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref), - "k8s.io/api/core/v1.CephFSVolumeSource": schema_k8sio_api_core_v1_CephFSVolumeSource(ref), - "k8s.io/api/core/v1.CinderPersistentVolumeSource": schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref), - "k8s.io/api/core/v1.CinderVolumeSource": schema_k8sio_api_core_v1_CinderVolumeSource(ref), - "k8s.io/api/core/v1.ClientIPConfig": schema_k8sio_api_core_v1_ClientIPConfig(ref), - "k8s.io/api/core/v1.ClusterTrustBundleProjection": schema_k8sio_api_core_v1_ClusterTrustBundleProjection(ref), - "k8s.io/api/core/v1.ComponentCondition": schema_k8sio_api_core_v1_ComponentCondition(ref), - "k8s.io/api/core/v1.ComponentStatus": schema_k8sio_api_core_v1_ComponentStatus(ref), - "k8s.io/api/core/v1.ComponentStatusList": schema_k8sio_api_core_v1_ComponentStatusList(ref), - "k8s.io/api/core/v1.ConfigMap": schema_k8sio_api_core_v1_ConfigMap(ref), - "k8s.io/api/core/v1.ConfigMapEnvSource": schema_k8sio_api_core_v1_ConfigMapEnvSource(ref), - "k8s.io/api/core/v1.ConfigMapKeySelector": schema_k8sio_api_core_v1_ConfigMapKeySelector(ref), - "k8s.io/api/core/v1.ConfigMapList": schema_k8sio_api_core_v1_ConfigMapList(ref), - "k8s.io/api/core/v1.ConfigMapNodeConfigSource": schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref), - "k8s.io/api/core/v1.ConfigMapProjection": schema_k8sio_api_core_v1_ConfigMapProjection(ref), - "k8s.io/api/core/v1.ConfigMapVolumeSource": schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref), - "k8s.io/api/core/v1.Container": schema_k8sio_api_core_v1_Container(ref), - "k8s.io/api/core/v1.ContainerImage": schema_k8sio_api_core_v1_ContainerImage(ref), - "k8s.io/api/core/v1.ContainerPort": schema_k8sio_api_core_v1_ContainerPort(ref), - "k8s.io/api/core/v1.ContainerResizePolicy": schema_k8sio_api_core_v1_ContainerResizePolicy(ref), - "k8s.io/api/core/v1.ContainerState": schema_k8sio_api_core_v1_ContainerState(ref), - "k8s.io/api/core/v1.ContainerStateRunning": schema_k8sio_api_core_v1_ContainerStateRunning(ref), - "k8s.io/api/core/v1.ContainerStateTerminated": schema_k8sio_api_core_v1_ContainerStateTerminated(ref), - "k8s.io/api/core/v1.ContainerStateWaiting": schema_k8sio_api_core_v1_ContainerStateWaiting(ref), - "k8s.io/api/core/v1.ContainerStatus": schema_k8sio_api_core_v1_ContainerStatus(ref), - "k8s.io/api/core/v1.ContainerUser": schema_k8sio_api_core_v1_ContainerUser(ref), - "k8s.io/api/core/v1.DaemonEndpoint": schema_k8sio_api_core_v1_DaemonEndpoint(ref), - "k8s.io/api/core/v1.DownwardAPIProjection": schema_k8sio_api_core_v1_DownwardAPIProjection(ref), - "k8s.io/api/core/v1.DownwardAPIVolumeFile": schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref), - "k8s.io/api/core/v1.DownwardAPIVolumeSource": schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref), - "k8s.io/api/core/v1.EmptyDirVolumeSource": schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref), - "k8s.io/api/core/v1.EndpointAddress": schema_k8sio_api_core_v1_EndpointAddress(ref), - "k8s.io/api/core/v1.EndpointPort": schema_k8sio_api_core_v1_EndpointPort(ref), - "k8s.io/api/core/v1.EndpointSubset": schema_k8sio_api_core_v1_EndpointSubset(ref), - "k8s.io/api/core/v1.Endpoints": schema_k8sio_api_core_v1_Endpoints(ref), - "k8s.io/api/core/v1.EndpointsList": schema_k8sio_api_core_v1_EndpointsList(ref), - "k8s.io/api/core/v1.EnvFromSource": schema_k8sio_api_core_v1_EnvFromSource(ref), - "k8s.io/api/core/v1.EnvVar": schema_k8sio_api_core_v1_EnvVar(ref), - "k8s.io/api/core/v1.EnvVarSource": schema_k8sio_api_core_v1_EnvVarSource(ref), - "k8s.io/api/core/v1.EphemeralContainer": schema_k8sio_api_core_v1_EphemeralContainer(ref), - "k8s.io/api/core/v1.EphemeralContainerCommon": schema_k8sio_api_core_v1_EphemeralContainerCommon(ref), - "k8s.io/api/core/v1.EphemeralVolumeSource": schema_k8sio_api_core_v1_EphemeralVolumeSource(ref), - "k8s.io/api/core/v1.Event": schema_k8sio_api_core_v1_Event(ref), - "k8s.io/api/core/v1.EventList": schema_k8sio_api_core_v1_EventList(ref), - "k8s.io/api/core/v1.EventSeries": schema_k8sio_api_core_v1_EventSeries(ref), - "k8s.io/api/core/v1.EventSource": schema_k8sio_api_core_v1_EventSource(ref), - "k8s.io/api/core/v1.ExecAction": schema_k8sio_api_core_v1_ExecAction(ref), - "k8s.io/api/core/v1.FCVolumeSource": schema_k8sio_api_core_v1_FCVolumeSource(ref), - "k8s.io/api/core/v1.FlexPersistentVolumeSource": schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref), - "k8s.io/api/core/v1.FlexVolumeSource": schema_k8sio_api_core_v1_FlexVolumeSource(ref), - "k8s.io/api/core/v1.FlockerVolumeSource": schema_k8sio_api_core_v1_FlockerVolumeSource(ref), - "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource": schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref), - "k8s.io/api/core/v1.GRPCAction": schema_k8sio_api_core_v1_GRPCAction(ref), - "k8s.io/api/core/v1.GitRepoVolumeSource": schema_k8sio_api_core_v1_GitRepoVolumeSource(ref), - "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource": schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref), - "k8s.io/api/core/v1.GlusterfsVolumeSource": schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref), - "k8s.io/api/core/v1.HTTPGetAction": schema_k8sio_api_core_v1_HTTPGetAction(ref), - "k8s.io/api/core/v1.HTTPHeader": schema_k8sio_api_core_v1_HTTPHeader(ref), - "k8s.io/api/core/v1.HostAlias": schema_k8sio_api_core_v1_HostAlias(ref), - "k8s.io/api/core/v1.HostIP": schema_k8sio_api_core_v1_HostIP(ref), - "k8s.io/api/core/v1.HostPathVolumeSource": schema_k8sio_api_core_v1_HostPathVolumeSource(ref), - "k8s.io/api/core/v1.ISCSIPersistentVolumeSource": schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref), - "k8s.io/api/core/v1.ISCSIVolumeSource": schema_k8sio_api_core_v1_ISCSIVolumeSource(ref), - "k8s.io/api/core/v1.ImageVolumeSource": schema_k8sio_api_core_v1_ImageVolumeSource(ref), - "k8s.io/api/core/v1.KeyToPath": schema_k8sio_api_core_v1_KeyToPath(ref), - "k8s.io/api/core/v1.Lifecycle": schema_k8sio_api_core_v1_Lifecycle(ref), - "k8s.io/api/core/v1.LifecycleHandler": schema_k8sio_api_core_v1_LifecycleHandler(ref), - "k8s.io/api/core/v1.LimitRange": schema_k8sio_api_core_v1_LimitRange(ref), - "k8s.io/api/core/v1.LimitRangeItem": schema_k8sio_api_core_v1_LimitRangeItem(ref), - "k8s.io/api/core/v1.LimitRangeList": schema_k8sio_api_core_v1_LimitRangeList(ref), - "k8s.io/api/core/v1.LimitRangeSpec": schema_k8sio_api_core_v1_LimitRangeSpec(ref), - "k8s.io/api/core/v1.LinuxContainerUser": schema_k8sio_api_core_v1_LinuxContainerUser(ref), - "k8s.io/api/core/v1.List": schema_k8sio_api_core_v1_List(ref), - "k8s.io/api/core/v1.LoadBalancerIngress": schema_k8sio_api_core_v1_LoadBalancerIngress(ref), - "k8s.io/api/core/v1.LoadBalancerStatus": schema_k8sio_api_core_v1_LoadBalancerStatus(ref), - "k8s.io/api/core/v1.LocalObjectReference": schema_k8sio_api_core_v1_LocalObjectReference(ref), - "k8s.io/api/core/v1.LocalVolumeSource": schema_k8sio_api_core_v1_LocalVolumeSource(ref), - "k8s.io/api/core/v1.ModifyVolumeStatus": schema_k8sio_api_core_v1_ModifyVolumeStatus(ref), - "k8s.io/api/core/v1.NFSVolumeSource": schema_k8sio_api_core_v1_NFSVolumeSource(ref), - "k8s.io/api/core/v1.Namespace": schema_k8sio_api_core_v1_Namespace(ref), - "k8s.io/api/core/v1.NamespaceCondition": schema_k8sio_api_core_v1_NamespaceCondition(ref), - "k8s.io/api/core/v1.NamespaceList": schema_k8sio_api_core_v1_NamespaceList(ref), - "k8s.io/api/core/v1.NamespaceSpec": schema_k8sio_api_core_v1_NamespaceSpec(ref), - "k8s.io/api/core/v1.NamespaceStatus": schema_k8sio_api_core_v1_NamespaceStatus(ref), - "k8s.io/api/core/v1.Node": schema_k8sio_api_core_v1_Node(ref), - "k8s.io/api/core/v1.NodeAddress": schema_k8sio_api_core_v1_NodeAddress(ref), - "k8s.io/api/core/v1.NodeAffinity": schema_k8sio_api_core_v1_NodeAffinity(ref), - "k8s.io/api/core/v1.NodeCondition": schema_k8sio_api_core_v1_NodeCondition(ref), - "k8s.io/api/core/v1.NodeConfigSource": schema_k8sio_api_core_v1_NodeConfigSource(ref), - "k8s.io/api/core/v1.NodeConfigStatus": schema_k8sio_api_core_v1_NodeConfigStatus(ref), - "k8s.io/api/core/v1.NodeDaemonEndpoints": schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref), - "k8s.io/api/core/v1.NodeFeatures": schema_k8sio_api_core_v1_NodeFeatures(ref), - "k8s.io/api/core/v1.NodeList": schema_k8sio_api_core_v1_NodeList(ref), - "k8s.io/api/core/v1.NodeProxyOptions": schema_k8sio_api_core_v1_NodeProxyOptions(ref), - "k8s.io/api/core/v1.NodeRuntimeHandler": schema_k8sio_api_core_v1_NodeRuntimeHandler(ref), - "k8s.io/api/core/v1.NodeRuntimeHandlerFeatures": schema_k8sio_api_core_v1_NodeRuntimeHandlerFeatures(ref), - "k8s.io/api/core/v1.NodeSelector": schema_k8sio_api_core_v1_NodeSelector(ref), - "k8s.io/api/core/v1.NodeSelectorRequirement": schema_k8sio_api_core_v1_NodeSelectorRequirement(ref), - "k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref), - "k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref), - "k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref), - "k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref), - "k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref), - "k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref), - "k8s.io/api/core/v1.PersistentVolume": schema_k8sio_api_core_v1_PersistentVolume(ref), - "k8s.io/api/core/v1.PersistentVolumeClaim": schema_k8sio_api_core_v1_PersistentVolumeClaim(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimCondition": schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimList": schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimSpec": schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimStatus": schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimTemplate": schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref), - "k8s.io/api/core/v1.PersistentVolumeList": schema_k8sio_api_core_v1_PersistentVolumeList(ref), - "k8s.io/api/core/v1.PersistentVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeSource(ref), - "k8s.io/api/core/v1.PersistentVolumeSpec": schema_k8sio_api_core_v1_PersistentVolumeSpec(ref), - "k8s.io/api/core/v1.PersistentVolumeStatus": schema_k8sio_api_core_v1_PersistentVolumeStatus(ref), - "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource": schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref), - "k8s.io/api/core/v1.Pod": schema_k8sio_api_core_v1_Pod(ref), - "k8s.io/api/core/v1.PodAffinity": schema_k8sio_api_core_v1_PodAffinity(ref), - "k8s.io/api/core/v1.PodAffinityTerm": schema_k8sio_api_core_v1_PodAffinityTerm(ref), - "k8s.io/api/core/v1.PodAntiAffinity": schema_k8sio_api_core_v1_PodAntiAffinity(ref), - "k8s.io/api/core/v1.PodAttachOptions": schema_k8sio_api_core_v1_PodAttachOptions(ref), - "k8s.io/api/core/v1.PodCondition": schema_k8sio_api_core_v1_PodCondition(ref), - "k8s.io/api/core/v1.PodDNSConfig": schema_k8sio_api_core_v1_PodDNSConfig(ref), - "k8s.io/api/core/v1.PodDNSConfigOption": schema_k8sio_api_core_v1_PodDNSConfigOption(ref), - "k8s.io/api/core/v1.PodExecOptions": schema_k8sio_api_core_v1_PodExecOptions(ref), - "k8s.io/api/core/v1.PodIP": schema_k8sio_api_core_v1_PodIP(ref), - "k8s.io/api/core/v1.PodList": schema_k8sio_api_core_v1_PodList(ref), - "k8s.io/api/core/v1.PodLogOptions": schema_k8sio_api_core_v1_PodLogOptions(ref), - "k8s.io/api/core/v1.PodOS": schema_k8sio_api_core_v1_PodOS(ref), - "k8s.io/api/core/v1.PodPortForwardOptions": schema_k8sio_api_core_v1_PodPortForwardOptions(ref), - "k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref), - "k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref), - "k8s.io/api/core/v1.PodResourceClaim": schema_k8sio_api_core_v1_PodResourceClaim(ref), - "k8s.io/api/core/v1.PodResourceClaimStatus": schema_k8sio_api_core_v1_PodResourceClaimStatus(ref), - "k8s.io/api/core/v1.PodSchedulingGate": schema_k8sio_api_core_v1_PodSchedulingGate(ref), - "k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref), - "k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref), - "k8s.io/api/core/v1.PodSpec": schema_k8sio_api_core_v1_PodSpec(ref), - "k8s.io/api/core/v1.PodStatus": schema_k8sio_api_core_v1_PodStatus(ref), - "k8s.io/api/core/v1.PodStatusResult": schema_k8sio_api_core_v1_PodStatusResult(ref), - "k8s.io/api/core/v1.PodTemplate": schema_k8sio_api_core_v1_PodTemplate(ref), - "k8s.io/api/core/v1.PodTemplateList": schema_k8sio_api_core_v1_PodTemplateList(ref), - "k8s.io/api/core/v1.PodTemplateSpec": schema_k8sio_api_core_v1_PodTemplateSpec(ref), - "k8s.io/api/core/v1.PortStatus": schema_k8sio_api_core_v1_PortStatus(ref), - "k8s.io/api/core/v1.PortworxVolumeSource": schema_k8sio_api_core_v1_PortworxVolumeSource(ref), - "k8s.io/api/core/v1.PreferAvoidPodsEntry": schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref), - "k8s.io/api/core/v1.PreferredSchedulingTerm": schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref), - "k8s.io/api/core/v1.Probe": schema_k8sio_api_core_v1_Probe(ref), - "k8s.io/api/core/v1.ProbeHandler": schema_k8sio_api_core_v1_ProbeHandler(ref), - "k8s.io/api/core/v1.ProjectedVolumeSource": schema_k8sio_api_core_v1_ProjectedVolumeSource(ref), - "k8s.io/api/core/v1.QuobyteVolumeSource": schema_k8sio_api_core_v1_QuobyteVolumeSource(ref), - "k8s.io/api/core/v1.RBDPersistentVolumeSource": schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref), - "k8s.io/api/core/v1.RBDVolumeSource": schema_k8sio_api_core_v1_RBDVolumeSource(ref), - "k8s.io/api/core/v1.RangeAllocation": schema_k8sio_api_core_v1_RangeAllocation(ref), - "k8s.io/api/core/v1.ReplicationController": schema_k8sio_api_core_v1_ReplicationController(ref), - "k8s.io/api/core/v1.ReplicationControllerCondition": schema_k8sio_api_core_v1_ReplicationControllerCondition(ref), - "k8s.io/api/core/v1.ReplicationControllerList": schema_k8sio_api_core_v1_ReplicationControllerList(ref), - "k8s.io/api/core/v1.ReplicationControllerSpec": schema_k8sio_api_core_v1_ReplicationControllerSpec(ref), - "k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref), - "k8s.io/api/core/v1.ResourceClaim": schema_k8sio_api_core_v1_ResourceClaim(ref), - "k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref), - "k8s.io/api/core/v1.ResourceHealth": schema_k8sio_api_core_v1_ResourceHealth(ref), - "k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref), - "k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref), - "k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref), - "k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref), - "k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref), - "k8s.io/api/core/v1.ResourceStatus": schema_k8sio_api_core_v1_ResourceStatus(ref), - "k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref), - "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref), - "k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref), - "k8s.io/api/core/v1.ScopeSelector": schema_k8sio_api_core_v1_ScopeSelector(ref), - "k8s.io/api/core/v1.ScopedResourceSelectorRequirement": schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref), - "k8s.io/api/core/v1.SeccompProfile": schema_k8sio_api_core_v1_SeccompProfile(ref), - "k8s.io/api/core/v1.Secret": schema_k8sio_api_core_v1_Secret(ref), - "k8s.io/api/core/v1.SecretEnvSource": schema_k8sio_api_core_v1_SecretEnvSource(ref), - "k8s.io/api/core/v1.SecretKeySelector": schema_k8sio_api_core_v1_SecretKeySelector(ref), - "k8s.io/api/core/v1.SecretList": schema_k8sio_api_core_v1_SecretList(ref), - "k8s.io/api/core/v1.SecretProjection": schema_k8sio_api_core_v1_SecretProjection(ref), - "k8s.io/api/core/v1.SecretReference": schema_k8sio_api_core_v1_SecretReference(ref), - "k8s.io/api/core/v1.SecretVolumeSource": schema_k8sio_api_core_v1_SecretVolumeSource(ref), - "k8s.io/api/core/v1.SecurityContext": schema_k8sio_api_core_v1_SecurityContext(ref), - "k8s.io/api/core/v1.SerializedReference": schema_k8sio_api_core_v1_SerializedReference(ref), - "k8s.io/api/core/v1.Service": schema_k8sio_api_core_v1_Service(ref), - "k8s.io/api/core/v1.ServiceAccount": schema_k8sio_api_core_v1_ServiceAccount(ref), - "k8s.io/api/core/v1.ServiceAccountList": schema_k8sio_api_core_v1_ServiceAccountList(ref), - "k8s.io/api/core/v1.ServiceAccountTokenProjection": schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref), - "k8s.io/api/core/v1.ServiceList": schema_k8sio_api_core_v1_ServiceList(ref), - "k8s.io/api/core/v1.ServicePort": schema_k8sio_api_core_v1_ServicePort(ref), - "k8s.io/api/core/v1.ServiceProxyOptions": schema_k8sio_api_core_v1_ServiceProxyOptions(ref), - "k8s.io/api/core/v1.ServiceSpec": schema_k8sio_api_core_v1_ServiceSpec(ref), - "k8s.io/api/core/v1.ServiceStatus": schema_k8sio_api_core_v1_ServiceStatus(ref), - "k8s.io/api/core/v1.SessionAffinityConfig": schema_k8sio_api_core_v1_SessionAffinityConfig(ref), - "k8s.io/api/core/v1.SleepAction": schema_k8sio_api_core_v1_SleepAction(ref), - "k8s.io/api/core/v1.StorageOSPersistentVolumeSource": schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref), - "k8s.io/api/core/v1.StorageOSVolumeSource": schema_k8sio_api_core_v1_StorageOSVolumeSource(ref), - "k8s.io/api/core/v1.Sysctl": schema_k8sio_api_core_v1_Sysctl(ref), - "k8s.io/api/core/v1.TCPSocketAction": schema_k8sio_api_core_v1_TCPSocketAction(ref), - "k8s.io/api/core/v1.Taint": schema_k8sio_api_core_v1_Taint(ref), - "k8s.io/api/core/v1.Toleration": schema_k8sio_api_core_v1_Toleration(ref), - "k8s.io/api/core/v1.TopologySelectorLabelRequirement": schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref), - "k8s.io/api/core/v1.TopologySelectorTerm": schema_k8sio_api_core_v1_TopologySelectorTerm(ref), - "k8s.io/api/core/v1.TopologySpreadConstraint": schema_k8sio_api_core_v1_TopologySpreadConstraint(ref), - "k8s.io/api/core/v1.TypedLocalObjectReference": schema_k8sio_api_core_v1_TypedLocalObjectReference(ref), - "k8s.io/api/core/v1.TypedObjectReference": schema_k8sio_api_core_v1_TypedObjectReference(ref), - "k8s.io/api/core/v1.Volume": schema_k8sio_api_core_v1_Volume(ref), - "k8s.io/api/core/v1.VolumeDevice": schema_k8sio_api_core_v1_VolumeDevice(ref), - "k8s.io/api/core/v1.VolumeMount": schema_k8sio_api_core_v1_VolumeMount(ref), - "k8s.io/api/core/v1.VolumeMountStatus": schema_k8sio_api_core_v1_VolumeMountStatus(ref), - "k8s.io/api/core/v1.VolumeNodeAffinity": schema_k8sio_api_core_v1_VolumeNodeAffinity(ref), - "k8s.io/api/core/v1.VolumeProjection": schema_k8sio_api_core_v1_VolumeProjection(ref), - "k8s.io/api/core/v1.VolumeResourceRequirements": schema_k8sio_api_core_v1_VolumeResourceRequirements(ref), - "k8s.io/api/core/v1.VolumeSource": schema_k8sio_api_core_v1_VolumeSource(ref), - "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource": schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref), - "k8s.io/api/core/v1.WeightedPodAffinityTerm": schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref), - "k8s.io/api/core/v1.WindowsSecurityContextOptions": schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref), - "k8s.io/api/events/v1beta1.Event": schema_k8sio_api_events_v1beta1_Event(ref), - "k8s.io/api/events/v1beta1.EventList": schema_k8sio_api_events_v1beta1_EventList(ref), - "k8s.io/api/events/v1beta1.EventSeries": schema_k8sio_api_events_v1beta1_EventSeries(ref), - "k8s.io/api/extensions/v1beta1.DaemonSet": schema_k8sio_api_extensions_v1beta1_DaemonSet(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetCondition": schema_k8sio_api_extensions_v1beta1_DaemonSetCondition(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetList": schema_k8sio_api_extensions_v1beta1_DaemonSetList(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetSpec": schema_k8sio_api_extensions_v1beta1_DaemonSetSpec(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetStatus": schema_k8sio_api_extensions_v1beta1_DaemonSetStatus(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetUpdateStrategy": schema_k8sio_api_extensions_v1beta1_DaemonSetUpdateStrategy(ref), - "k8s.io/api/extensions/v1beta1.Deployment": schema_k8sio_api_extensions_v1beta1_Deployment(ref), - "k8s.io/api/extensions/v1beta1.DeploymentCondition": schema_k8sio_api_extensions_v1beta1_DeploymentCondition(ref), - "k8s.io/api/extensions/v1beta1.DeploymentList": schema_k8sio_api_extensions_v1beta1_DeploymentList(ref), - "k8s.io/api/extensions/v1beta1.DeploymentRollback": schema_k8sio_api_extensions_v1beta1_DeploymentRollback(ref), - "k8s.io/api/extensions/v1beta1.DeploymentSpec": schema_k8sio_api_extensions_v1beta1_DeploymentSpec(ref), - "k8s.io/api/extensions/v1beta1.DeploymentStatus": schema_k8sio_api_extensions_v1beta1_DeploymentStatus(ref), - "k8s.io/api/extensions/v1beta1.DeploymentStrategy": schema_k8sio_api_extensions_v1beta1_DeploymentStrategy(ref), - "k8s.io/api/extensions/v1beta1.HTTPIngressPath": schema_k8sio_api_extensions_v1beta1_HTTPIngressPath(ref), - "k8s.io/api/extensions/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_extensions_v1beta1_HTTPIngressRuleValue(ref), - "k8s.io/api/extensions/v1beta1.IPBlock": schema_k8sio_api_extensions_v1beta1_IPBlock(ref), - "k8s.io/api/extensions/v1beta1.Ingress": schema_k8sio_api_extensions_v1beta1_Ingress(ref), - "k8s.io/api/extensions/v1beta1.IngressBackend": schema_k8sio_api_extensions_v1beta1_IngressBackend(ref), - "k8s.io/api/extensions/v1beta1.IngressList": schema_k8sio_api_extensions_v1beta1_IngressList(ref), - "k8s.io/api/extensions/v1beta1.IngressLoadBalancerIngress": schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerIngress(ref), - "k8s.io/api/extensions/v1beta1.IngressLoadBalancerStatus": schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerStatus(ref), - "k8s.io/api/extensions/v1beta1.IngressPortStatus": schema_k8sio_api_extensions_v1beta1_IngressPortStatus(ref), - "k8s.io/api/extensions/v1beta1.IngressRule": schema_k8sio_api_extensions_v1beta1_IngressRule(ref), - "k8s.io/api/extensions/v1beta1.IngressRuleValue": schema_k8sio_api_extensions_v1beta1_IngressRuleValue(ref), - "k8s.io/api/extensions/v1beta1.IngressSpec": schema_k8sio_api_extensions_v1beta1_IngressSpec(ref), - "k8s.io/api/extensions/v1beta1.IngressStatus": schema_k8sio_api_extensions_v1beta1_IngressStatus(ref), - "k8s.io/api/extensions/v1beta1.IngressTLS": schema_k8sio_api_extensions_v1beta1_IngressTLS(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicy": schema_k8sio_api_extensions_v1beta1_NetworkPolicy(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyEgressRule": schema_k8sio_api_extensions_v1beta1_NetworkPolicyEgressRule(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyIngressRule": schema_k8sio_api_extensions_v1beta1_NetworkPolicyIngressRule(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyList": schema_k8sio_api_extensions_v1beta1_NetworkPolicyList(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyPeer": schema_k8sio_api_extensions_v1beta1_NetworkPolicyPeer(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyPort": schema_k8sio_api_extensions_v1beta1_NetworkPolicyPort(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicySpec": schema_k8sio_api_extensions_v1beta1_NetworkPolicySpec(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSet": schema_k8sio_api_extensions_v1beta1_ReplicaSet(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetCondition": schema_k8sio_api_extensions_v1beta1_ReplicaSetCondition(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetList": schema_k8sio_api_extensions_v1beta1_ReplicaSetList(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetSpec": schema_k8sio_api_extensions_v1beta1_ReplicaSetSpec(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetStatus": schema_k8sio_api_extensions_v1beta1_ReplicaSetStatus(ref), - "k8s.io/api/extensions/v1beta1.RollbackConfig": schema_k8sio_api_extensions_v1beta1_RollbackConfig(ref), - "k8s.io/api/extensions/v1beta1.RollingUpdateDaemonSet": schema_k8sio_api_extensions_v1beta1_RollingUpdateDaemonSet(ref), - "k8s.io/api/extensions/v1beta1.RollingUpdateDeployment": schema_k8sio_api_extensions_v1beta1_RollingUpdateDeployment(ref), - "k8s.io/api/extensions/v1beta1.Scale": schema_k8sio_api_extensions_v1beta1_Scale(ref), - "k8s.io/api/extensions/v1beta1.ScaleSpec": schema_k8sio_api_extensions_v1beta1_ScaleSpec(ref), - "k8s.io/api/extensions/v1beta1.ScaleStatus": schema_k8sio_api_extensions_v1beta1_ScaleStatus(ref), - "k8s.io/api/networking/v1.HTTPIngressPath": schema_k8sio_api_networking_v1_HTTPIngressPath(ref), - "k8s.io/api/networking/v1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref), - "k8s.io/api/networking/v1.IPBlock": schema_k8sio_api_networking_v1_IPBlock(ref), - "k8s.io/api/networking/v1.Ingress": schema_k8sio_api_networking_v1_Ingress(ref), - "k8s.io/api/networking/v1.IngressBackend": schema_k8sio_api_networking_v1_IngressBackend(ref), - "k8s.io/api/networking/v1.IngressClass": schema_k8sio_api_networking_v1_IngressClass(ref), - "k8s.io/api/networking/v1.IngressClassList": schema_k8sio_api_networking_v1_IngressClassList(ref), - "k8s.io/api/networking/v1.IngressClassParametersReference": schema_k8sio_api_networking_v1_IngressClassParametersReference(ref), - "k8s.io/api/networking/v1.IngressClassSpec": schema_k8sio_api_networking_v1_IngressClassSpec(ref), - "k8s.io/api/networking/v1.IngressList": schema_k8sio_api_networking_v1_IngressList(ref), - "k8s.io/api/networking/v1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref), - "k8s.io/api/networking/v1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref), - "k8s.io/api/networking/v1.IngressPortStatus": schema_k8sio_api_networking_v1_IngressPortStatus(ref), - "k8s.io/api/networking/v1.IngressRule": schema_k8sio_api_networking_v1_IngressRule(ref), - "k8s.io/api/networking/v1.IngressRuleValue": schema_k8sio_api_networking_v1_IngressRuleValue(ref), - "k8s.io/api/networking/v1.IngressServiceBackend": schema_k8sio_api_networking_v1_IngressServiceBackend(ref), - "k8s.io/api/networking/v1.IngressSpec": schema_k8sio_api_networking_v1_IngressSpec(ref), - "k8s.io/api/networking/v1.IngressStatus": schema_k8sio_api_networking_v1_IngressStatus(ref), - "k8s.io/api/networking/v1.IngressTLS": schema_k8sio_api_networking_v1_IngressTLS(ref), - "k8s.io/api/networking/v1.NetworkPolicy": schema_k8sio_api_networking_v1_NetworkPolicy(ref), - "k8s.io/api/networking/v1.NetworkPolicyEgressRule": schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref), - "k8s.io/api/networking/v1.NetworkPolicyIngressRule": schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref), - "k8s.io/api/networking/v1.NetworkPolicyList": schema_k8sio_api_networking_v1_NetworkPolicyList(ref), - "k8s.io/api/networking/v1.NetworkPolicyPeer": schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref), - "k8s.io/api/networking/v1.NetworkPolicyPort": schema_k8sio_api_networking_v1_NetworkPolicyPort(ref), - "k8s.io/api/networking/v1.NetworkPolicySpec": schema_k8sio_api_networking_v1_NetworkPolicySpec(ref), - "k8s.io/api/networking/v1.ServiceBackendPort": schema_k8sio_api_networking_v1_ServiceBackendPort(ref), - "k8s.io/api/networking/v1beta1.HTTPIngressPath": schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref), - "k8s.io/api/networking/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1beta1_HTTPIngressRuleValue(ref), - "k8s.io/api/networking/v1beta1.IPAddress": schema_k8sio_api_networking_v1beta1_IPAddress(ref), - "k8s.io/api/networking/v1beta1.IPAddressList": schema_k8sio_api_networking_v1beta1_IPAddressList(ref), - "k8s.io/api/networking/v1beta1.IPAddressSpec": schema_k8sio_api_networking_v1beta1_IPAddressSpec(ref), - "k8s.io/api/networking/v1beta1.Ingress": schema_k8sio_api_networking_v1beta1_Ingress(ref), - "k8s.io/api/networking/v1beta1.IngressBackend": schema_k8sio_api_networking_v1beta1_IngressBackend(ref), - "k8s.io/api/networking/v1beta1.IngressClass": schema_k8sio_api_networking_v1beta1_IngressClass(ref), - "k8s.io/api/networking/v1beta1.IngressClassList": schema_k8sio_api_networking_v1beta1_IngressClassList(ref), - "k8s.io/api/networking/v1beta1.IngressClassParametersReference": schema_k8sio_api_networking_v1beta1_IngressClassParametersReference(ref), - "k8s.io/api/networking/v1beta1.IngressClassSpec": schema_k8sio_api_networking_v1beta1_IngressClassSpec(ref), - "k8s.io/api/networking/v1beta1.IngressList": schema_k8sio_api_networking_v1beta1_IngressList(ref), - "k8s.io/api/networking/v1beta1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1beta1_IngressLoadBalancerIngress(ref), - "k8s.io/api/networking/v1beta1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1beta1_IngressLoadBalancerStatus(ref), - "k8s.io/api/networking/v1beta1.IngressPortStatus": schema_k8sio_api_networking_v1beta1_IngressPortStatus(ref), - "k8s.io/api/networking/v1beta1.IngressRule": schema_k8sio_api_networking_v1beta1_IngressRule(ref), - "k8s.io/api/networking/v1beta1.IngressRuleValue": schema_k8sio_api_networking_v1beta1_IngressRuleValue(ref), - "k8s.io/api/networking/v1beta1.IngressSpec": schema_k8sio_api_networking_v1beta1_IngressSpec(ref), - "k8s.io/api/networking/v1beta1.IngressStatus": schema_k8sio_api_networking_v1beta1_IngressStatus(ref), - "k8s.io/api/networking/v1beta1.IngressTLS": schema_k8sio_api_networking_v1beta1_IngressTLS(ref), - "k8s.io/api/networking/v1beta1.ParentReference": schema_k8sio_api_networking_v1beta1_ParentReference(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDR": schema_k8sio_api_networking_v1beta1_ServiceCIDR(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDRList": schema_k8sio_api_networking_v1beta1_ServiceCIDRList(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDRSpec": schema_k8sio_api_networking_v1beta1_ServiceCIDRSpec(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDRStatus": schema_k8sio_api_networking_v1beta1_ServiceCIDRStatus(ref), - "k8s.io/api/node/v1alpha1.Overhead": schema_k8sio_api_node_v1alpha1_Overhead(ref), - "k8s.io/api/node/v1alpha1.RuntimeClass": schema_k8sio_api_node_v1alpha1_RuntimeClass(ref), - "k8s.io/api/node/v1alpha1.RuntimeClassList": schema_k8sio_api_node_v1alpha1_RuntimeClassList(ref), - "k8s.io/api/node/v1alpha1.RuntimeClassSpec": schema_k8sio_api_node_v1alpha1_RuntimeClassSpec(ref), - "k8s.io/api/node/v1alpha1.Scheduling": schema_k8sio_api_node_v1alpha1_Scheduling(ref), - "k8s.io/api/node/v1beta1.Overhead": schema_k8sio_api_node_v1beta1_Overhead(ref), - "k8s.io/api/node/v1beta1.RuntimeClass": schema_k8sio_api_node_v1beta1_RuntimeClass(ref), - "k8s.io/api/node/v1beta1.RuntimeClassList": schema_k8sio_api_node_v1beta1_RuntimeClassList(ref), - "k8s.io/api/node/v1beta1.Scheduling": schema_k8sio_api_node_v1beta1_Scheduling(ref), - "k8s.io/api/policy/v1beta1.Eviction": schema_k8sio_api_policy_v1beta1_Eviction(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudget": schema_k8sio_api_policy_v1beta1_PodDisruptionBudget(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetList": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetList(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetSpec": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetSpec(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetStatus": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetStatus(ref), - "k8s.io/api/rbac/v1.AggregationRule": schema_k8sio_api_rbac_v1_AggregationRule(ref), - "k8s.io/api/rbac/v1.ClusterRole": schema_k8sio_api_rbac_v1_ClusterRole(ref), - "k8s.io/api/rbac/v1.ClusterRoleBinding": schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref), - "k8s.io/api/rbac/v1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref), - "k8s.io/api/rbac/v1.ClusterRoleList": schema_k8sio_api_rbac_v1_ClusterRoleList(ref), - "k8s.io/api/rbac/v1.PolicyRule": schema_k8sio_api_rbac_v1_PolicyRule(ref), - "k8s.io/api/rbac/v1.Role": schema_k8sio_api_rbac_v1_Role(ref), - "k8s.io/api/rbac/v1.RoleBinding": schema_k8sio_api_rbac_v1_RoleBinding(ref), - "k8s.io/api/rbac/v1.RoleBindingList": schema_k8sio_api_rbac_v1_RoleBindingList(ref), - "k8s.io/api/rbac/v1.RoleList": schema_k8sio_api_rbac_v1_RoleList(ref), - "k8s.io/api/rbac/v1.RoleRef": schema_k8sio_api_rbac_v1_RoleRef(ref), - "k8s.io/api/rbac/v1.Subject": schema_k8sio_api_rbac_v1_Subject(ref), - "k8s.io/api/rbac/v1alpha1.AggregationRule": schema_k8sio_api_rbac_v1alpha1_AggregationRule(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRole": schema_k8sio_api_rbac_v1alpha1_ClusterRole(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRoleBinding": schema_k8sio_api_rbac_v1alpha1_ClusterRoleBinding(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1alpha1_ClusterRoleBindingList(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRoleList": schema_k8sio_api_rbac_v1alpha1_ClusterRoleList(ref), - "k8s.io/api/rbac/v1alpha1.PolicyRule": schema_k8sio_api_rbac_v1alpha1_PolicyRule(ref), - "k8s.io/api/rbac/v1alpha1.Role": schema_k8sio_api_rbac_v1alpha1_Role(ref), - "k8s.io/api/rbac/v1alpha1.RoleBinding": schema_k8sio_api_rbac_v1alpha1_RoleBinding(ref), - "k8s.io/api/rbac/v1alpha1.RoleBindingList": schema_k8sio_api_rbac_v1alpha1_RoleBindingList(ref), - "k8s.io/api/rbac/v1alpha1.RoleList": schema_k8sio_api_rbac_v1alpha1_RoleList(ref), - "k8s.io/api/rbac/v1alpha1.RoleRef": schema_k8sio_api_rbac_v1alpha1_RoleRef(ref), - "k8s.io/api/rbac/v1alpha1.Subject": schema_k8sio_api_rbac_v1alpha1_Subject(ref), - "k8s.io/api/rbac/v1beta1.AggregationRule": schema_k8sio_api_rbac_v1beta1_AggregationRule(ref), - "k8s.io/api/rbac/v1beta1.ClusterRole": schema_k8sio_api_rbac_v1beta1_ClusterRole(ref), - "k8s.io/api/rbac/v1beta1.ClusterRoleBinding": schema_k8sio_api_rbac_v1beta1_ClusterRoleBinding(ref), - "k8s.io/api/rbac/v1beta1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1beta1_ClusterRoleBindingList(ref), - "k8s.io/api/rbac/v1beta1.ClusterRoleList": schema_k8sio_api_rbac_v1beta1_ClusterRoleList(ref), - "k8s.io/api/rbac/v1beta1.PolicyRule": schema_k8sio_api_rbac_v1beta1_PolicyRule(ref), - "k8s.io/api/rbac/v1beta1.Role": schema_k8sio_api_rbac_v1beta1_Role(ref), - "k8s.io/api/rbac/v1beta1.RoleBinding": schema_k8sio_api_rbac_v1beta1_RoleBinding(ref), - "k8s.io/api/rbac/v1beta1.RoleBindingList": schema_k8sio_api_rbac_v1beta1_RoleBindingList(ref), - "k8s.io/api/rbac/v1beta1.RoleList": schema_k8sio_api_rbac_v1beta1_RoleList(ref), - "k8s.io/api/rbac/v1beta1.RoleRef": schema_k8sio_api_rbac_v1beta1_RoleRef(ref), - "k8s.io/api/rbac/v1beta1.Subject": schema_k8sio_api_rbac_v1beta1_Subject(ref), - "k8s.io/api/scheduling/v1.PriorityClass": schema_k8sio_api_scheduling_v1_PriorityClass(ref), - "k8s.io/api/scheduling/v1.PriorityClassList": schema_k8sio_api_scheduling_v1_PriorityClassList(ref), - "k8s.io/api/scheduling/v1alpha1.PriorityClass": schema_k8sio_api_scheduling_v1alpha1_PriorityClass(ref), - "k8s.io/api/scheduling/v1alpha1.PriorityClassList": schema_k8sio_api_scheduling_v1alpha1_PriorityClassList(ref), - "k8s.io/api/scheduling/v1beta1.PriorityClass": schema_k8sio_api_scheduling_v1beta1_PriorityClass(ref), - "k8s.io/api/scheduling/v1beta1.PriorityClassList": schema_k8sio_api_scheduling_v1beta1_PriorityClassList(ref), - "k8s.io/api/storage/v1.CSIDriver": schema_k8sio_api_storage_v1_CSIDriver(ref), - "k8s.io/api/storage/v1.CSIDriverList": schema_k8sio_api_storage_v1_CSIDriverList(ref), - "k8s.io/api/storage/v1.CSIDriverSpec": schema_k8sio_api_storage_v1_CSIDriverSpec(ref), - "k8s.io/api/storage/v1.CSINode": schema_k8sio_api_storage_v1_CSINode(ref), - "k8s.io/api/storage/v1.CSINodeDriver": schema_k8sio_api_storage_v1_CSINodeDriver(ref), - "k8s.io/api/storage/v1.CSINodeList": schema_k8sio_api_storage_v1_CSINodeList(ref), - "k8s.io/api/storage/v1.CSINodeSpec": schema_k8sio_api_storage_v1_CSINodeSpec(ref), - "k8s.io/api/storage/v1.CSIStorageCapacity": schema_k8sio_api_storage_v1_CSIStorageCapacity(ref), - "k8s.io/api/storage/v1.CSIStorageCapacityList": schema_k8sio_api_storage_v1_CSIStorageCapacityList(ref), - "k8s.io/api/storage/v1.StorageClass": schema_k8sio_api_storage_v1_StorageClass(ref), - "k8s.io/api/storage/v1.StorageClassList": schema_k8sio_api_storage_v1_StorageClassList(ref), - "k8s.io/api/storage/v1.TokenRequest": schema_k8sio_api_storage_v1_TokenRequest(ref), - "k8s.io/api/storage/v1.VolumeAttachment": schema_k8sio_api_storage_v1_VolumeAttachment(ref), - "k8s.io/api/storage/v1.VolumeAttachmentList": schema_k8sio_api_storage_v1_VolumeAttachmentList(ref), - "k8s.io/api/storage/v1.VolumeAttachmentSource": schema_k8sio_api_storage_v1_VolumeAttachmentSource(ref), - "k8s.io/api/storage/v1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1_VolumeAttachmentSpec(ref), - "k8s.io/api/storage/v1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref), - "k8s.io/api/storage/v1.VolumeError": schema_k8sio_api_storage_v1_VolumeError(ref), - "k8s.io/api/storage/v1.VolumeNodeResources": schema_k8sio_api_storage_v1_VolumeNodeResources(ref), - "k8s.io/api/storage/v1alpha1.CSIStorageCapacity": schema_k8sio_api_storage_v1alpha1_CSIStorageCapacity(ref), - "k8s.io/api/storage/v1alpha1.CSIStorageCapacityList": schema_k8sio_api_storage_v1alpha1_CSIStorageCapacityList(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachment": schema_k8sio_api_storage_v1alpha1_VolumeAttachment(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentList": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentList(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentSource": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSource(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSpec(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentStatus(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttributesClass": schema_k8sio_api_storage_v1alpha1_VolumeAttributesClass(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttributesClassList": schema_k8sio_api_storage_v1alpha1_VolumeAttributesClassList(ref), - "k8s.io/api/storage/v1alpha1.VolumeError": schema_k8sio_api_storage_v1alpha1_VolumeError(ref), - "k8s.io/api/storage/v1beta1.CSIDriver": schema_k8sio_api_storage_v1beta1_CSIDriver(ref), - "k8s.io/api/storage/v1beta1.CSIDriverList": schema_k8sio_api_storage_v1beta1_CSIDriverList(ref), - "k8s.io/api/storage/v1beta1.CSIDriverSpec": schema_k8sio_api_storage_v1beta1_CSIDriverSpec(ref), - "k8s.io/api/storage/v1beta1.CSINode": schema_k8sio_api_storage_v1beta1_CSINode(ref), - "k8s.io/api/storage/v1beta1.CSINodeDriver": schema_k8sio_api_storage_v1beta1_CSINodeDriver(ref), - "k8s.io/api/storage/v1beta1.CSINodeList": schema_k8sio_api_storage_v1beta1_CSINodeList(ref), - "k8s.io/api/storage/v1beta1.CSINodeSpec": schema_k8sio_api_storage_v1beta1_CSINodeSpec(ref), - "k8s.io/api/storage/v1beta1.CSIStorageCapacity": schema_k8sio_api_storage_v1beta1_CSIStorageCapacity(ref), - "k8s.io/api/storage/v1beta1.CSIStorageCapacityList": schema_k8sio_api_storage_v1beta1_CSIStorageCapacityList(ref), - "k8s.io/api/storage/v1beta1.StorageClass": schema_k8sio_api_storage_v1beta1_StorageClass(ref), - "k8s.io/api/storage/v1beta1.StorageClassList": schema_k8sio_api_storage_v1beta1_StorageClassList(ref), - "k8s.io/api/storage/v1beta1.TokenRequest": schema_k8sio_api_storage_v1beta1_TokenRequest(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachment": schema_k8sio_api_storage_v1beta1_VolumeAttachment(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentList": schema_k8sio_api_storage_v1beta1_VolumeAttachmentList(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentSource": schema_k8sio_api_storage_v1beta1_VolumeAttachmentSource(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1beta1_VolumeAttachmentSpec(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1beta1_VolumeAttachmentStatus(ref), - "k8s.io/api/storage/v1beta1.VolumeAttributesClass": schema_k8sio_api_storage_v1beta1_VolumeAttributesClass(ref), - "k8s.io/api/storage/v1beta1.VolumeAttributesClassList": schema_k8sio_api_storage_v1beta1_VolumeAttributesClassList(ref), - "k8s.io/api/storage/v1beta1.VolumeError": schema_k8sio_api_storage_v1beta1_VolumeError(ref), - "k8s.io/api/storage/v1beta1.VolumeNodeResources": schema_k8sio_api_storage_v1beta1_VolumeNodeResources(ref), - "k8s.io/apimachinery/pkg/api/resource.Quantity": schema_apimachinery_pkg_api_resource_Quantity(ref), - "k8s.io/apimachinery/pkg/api/resource.int64Amount": schema_apimachinery_pkg_api_resource_int64Amount(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldSelectorRequirement": schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), - "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), - "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), - "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), - "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), - "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.Cluster": schema_pkg_apis_clientauthentication_v1beta1_Cluster(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredential": schema_pkg_apis_clientauthentication_v1beta1_ExecCredential(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialSpec": schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialSpec(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialStatus": schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialStatus(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Analytics": schema_loft_sh_admin_apis_pkg_licenseapi_Analytics(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Announcement": schema_loft_sh_admin_apis_pkg_licenseapi_Announcement(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.BlockRequest": schema_loft_sh_admin_apis_pkg_licenseapi_BlockRequest(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Button": schema_loft_sh_admin_apis_pkg_licenseapi_Button(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Feature": schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestInput(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestOutput(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenAuth(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenClaims": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenClaims(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Invoice": schema_loft_sh_admin_apis_pkg_licenseapi_Invoice(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.License": schema_loft_sh_admin_apis_pkg_licenseapi_License(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoute(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoutes": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoutes(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Limit": schema_loft_sh_admin_apis_pkg_licenseapi_Limit(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Module": schema_loft_sh_admin_apis_pkg_licenseapi_Module(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.OfflineLicenseKeyClaims": schema_loft_sh_admin_apis_pkg_licenseapi_OfflineLicenseKeyClaims(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Plan": schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanExpiration": schema_loft_sh_admin_apis_pkg_licenseapi_PlanExpiration(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPeriod": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPeriod(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPrice": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PriceTier": schema_loft_sh_admin_apis_pkg_licenseapi_PriceTier(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Request": schema_loft_sh_admin_apis_pkg_licenseapi_Request(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount": schema_loft_sh_admin_apis_pkg_licenseapi_ResourceCount(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.TierResource": schema_loft_sh_admin_apis_pkg_licenseapi_TierResource(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Trial": schema_loft_sh_admin_apis_pkg_licenseapi_Trial(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash": schema_apis_loft_cluster_v1_Bash(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart": schema_apis_loft_cluster_v1_Chart(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo": schema_apis_loft_cluster_v1_ChartInfo(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoList": schema_apis_loft_cluster_v1_ChartInfoList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoSpec": schema_apis_loft_cluster_v1_ChartInfoSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoStatus": schema_apis_loft_cluster_v1_ChartInfoStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef": schema_apis_loft_cluster_v1_ChartSecretRef(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.EpochInfo": schema_apis_loft_cluster_v1_EpochInfo(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Feature": schema_apis_loft_cluster_v1_Feature(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureList": schema_apis_loft_cluster_v1_FeatureList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureSpec": schema_apis_loft_cluster_v1_FeatureSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureStatus": schema_apis_loft_cluster_v1_FeatureStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease": schema_apis_loft_cluster_v1_HelmRelease(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseApp": schema_apis_loft_cluster_v1_HelmReleaseApp(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig": schema_apis_loft_cluster_v1_HelmReleaseConfig(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseList": schema_apis_loft_cluster_v1_HelmReleaseList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseSpec": schema_apis_loft_cluster_v1_HelmReleaseSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseStatus": schema_apis_loft_cluster_v1_HelmReleaseStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info": schema_apis_loft_cluster_v1_Info(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.LastActivityInfo": schema_apis_loft_cluster_v1_LastActivityInfo(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Maintainer": schema_apis_loft_cluster_v1_Maintainer(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata": schema_apis_loft_cluster_v1_Metadata(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ProjectSecretRef": schema_apis_loft_cluster_v1_ProjectSecretRef(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig": schema_apis_loft_cluster_v1_SleepModeConfig(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigSpec": schema_apis_loft_cluster_v1_SleepModeConfigSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigStatus": schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota": schema_apis_loft_storage_v1_ClusterQuota(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaList": schema_apis_loft_storage_v1_ClusterQuotaList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaSpec": schema_apis_loft_storage_v1_ClusterQuotaSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatus": schema_apis_loft_storage_v1_ClusterQuotaStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatusByNamespace": schema_apis_loft_storage_v1_ClusterQuotaStatusByNamespace(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition": schema_apis_loft_storage_v1_Condition(ref), + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event": schema_pkg_apis_audit_v1_Event(ref), + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.EventList": schema_pkg_apis_audit_v1_EventList(ref), + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference": schema_pkg_apis_audit_v1_ObjectReference(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec": schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig": schema_pkg_apis_management_v1_AgentAuditConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEvent": schema_pkg_apis_management_v1_AgentAuditEvent(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventList": schema_pkg_apis_management_v1_AgentAuditEventList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventSpec": schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventStatus": schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig": schema_pkg_apis_management_v1_AgentCostControlConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Announcement": schema_pkg_apis_management_v1_Announcement(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementList": schema_pkg_apis_management_v1_AnnouncementList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementSpec": schema_pkg_apis_management_v1_AnnouncementSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementStatus": schema_pkg_apis_management_v1_AnnouncementStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.App": schema_pkg_apis_management_v1_App(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentials": schema_pkg_apis_management_v1_AppCredentials(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentialsList": schema_pkg_apis_management_v1_AppCredentialsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppList": schema_pkg_apis_management_v1_AppList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppSpec": schema_pkg_apis_management_v1_AppSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppStatus": schema_pkg_apis_management_v1_AppStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps": schema_pkg_apis_management_v1_Apps(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia": schema_pkg_apis_management_v1_AssignedVia(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit": schema_pkg_apis_management_v1_Audit(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy": schema_pkg_apis_management_v1_AuditPolicy(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicyRule": schema_pkg_apis_management_v1_AuditPolicyRule(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication": schema_pkg_apis_management_v1_Authentication(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub": schema_pkg_apis_management_v1_AuthenticationGithub(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithubOrg": schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab": schema_pkg_apis_management_v1_AuthenticationGitlab(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle": schema_pkg_apis_management_v1_AuthenticationGoogle(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft": schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC": schema_pkg_apis_management_v1_AuthenticationOIDC(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationPassword": schema_pkg_apis_management_v1_AuthenticationPassword(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationRancher": schema_pkg_apis_management_v1_AuthenticationRancher(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML": schema_pkg_apis_management_v1_AuthenticationSAML(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Backup": schema_pkg_apis_management_v1_Backup(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApply": schema_pkg_apis_management_v1_BackupApply(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyList": schema_pkg_apis_management_v1_BackupApplyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyOptions": schema_pkg_apis_management_v1_BackupApplyOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplySpec": schema_pkg_apis_management_v1_BackupApplySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupList": schema_pkg_apis_management_v1_BackupList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupSpec": schema_pkg_apis_management_v1_BackupSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupStatus": schema_pkg_apis_management_v1_BackupStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud": schema_pkg_apis_management_v1_Cloud(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster": schema_pkg_apis_management_v1_Cluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccess": schema_pkg_apis_management_v1_ClusterAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKeyList": schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessList": schema_pkg_apis_management_v1_ClusterAccessList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole": schema_pkg_apis_management_v1_ClusterAccessRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessSpec": schema_pkg_apis_management_v1_ClusterAccessSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessStatus": schema_pkg_apis_management_v1_ClusterAccessStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts": schema_pkg_apis_management_v1_ClusterAccounts(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfig": schema_pkg_apis_management_v1_ClusterAgentConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfigCommon": schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfigList": schema_pkg_apis_management_v1_ClusterAgentConfigList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterCharts": schema_pkg_apis_management_v1_ClusterCharts(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterChartsList": schema_pkg_apis_management_v1_ClusterChartsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterDomain": schema_pkg_apis_management_v1_ClusterDomain(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterDomainList": schema_pkg_apis_management_v1_ClusterDomainList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterList": schema_pkg_apis_management_v1_ClusterList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMember": schema_pkg_apis_management_v1_ClusterMember(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccess": schema_pkg_apis_management_v1_ClusterMemberAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccessList": schema_pkg_apis_management_v1_ClusterMemberAccessList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMembers": schema_pkg_apis_management_v1_ClusterMembers(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMembersList": schema_pkg_apis_management_v1_ClusterMembersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterReset": schema_pkg_apis_management_v1_ClusterReset(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterResetList": schema_pkg_apis_management_v1_ClusterResetList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplate": schema_pkg_apis_management_v1_ClusterRoleTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateList": schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateSpec": schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateStatus": schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterSpec": schema_pkg_apis_management_v1_ClusterSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterStatus": schema_pkg_apis_management_v1_ClusterStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Config": schema_pkg_apis_management_v1_Config(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigList": schema_pkg_apis_management_v1_ConfigList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigSpec": schema_pkg_apis_management_v1_ConfigSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigStatus": schema_pkg_apis_management_v1_ConfigStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Connector": schema_pkg_apis_management_v1_Connector(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConnectorWithName": schema_pkg_apis_management_v1_ConnectorWithName(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfig": schema_pkg_apis_management_v1_ConvertVirtualClusterConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigList": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl": schema_pkg_apis_management_v1_CostControl(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlClusterConfig": schema_pkg_apis_management_v1_CostControlClusterConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGPUSettings": schema_pkg_apis_management_v1_CostControlGPUSettings(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnector": schema_pkg_apis_management_v1_DatabaseConnector(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorList": schema_pkg_apis_management_v1_DatabaseConnectorList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorSpec": schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorStatus": schema_pkg_apis_management_v1_DatabaseConnectorStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate": schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance": schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancel(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancelList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownload": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownload(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownloadList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownloadOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLog": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLog(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLogList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLogOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStop(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTask": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTask(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasks(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasksList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasksOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshootList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUp(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset": schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetList": schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSource": schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_management_v1_DevPodWorkspacePresetSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_management_v1_DevPodWorkspacePresetStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate": schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken": schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenList": schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec": schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus": schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Event": schema_pkg_apis_management_v1_Event(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventList": schema_pkg_apis_management_v1_EventList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec": schema_pkg_apis_management_v1_EventSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus": schema_pkg_apis_management_v1_EventStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature": schema_pkg_apis_management_v1_Feature(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureList": schema_pkg_apis_management_v1_FeatureList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec": schema_pkg_apis_management_v1_FeatureSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus": schema_pkg_apis_management_v1_FeatureStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.GroupResources": schema_pkg_apis_management_v1_GroupResources(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ImageBuilder": schema_pkg_apis_management_v1_ImageBuilder(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken": schema_pkg_apis_management_v1_IngressAuthToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenList": schema_pkg_apis_management_v1_IngressAuthTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec": schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus": schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk": schema_pkg_apis_management_v1_Kiosk(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskList": schema_pkg_apis_management_v1_KioskList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec": schema_pkg_apis_management_v1_KioskSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus": schema_pkg_apis_management_v1_KioskStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.License": schema_pkg_apis_management_v1_License(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseList": schema_pkg_apis_management_v1_LicenseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest": schema_pkg_apis_management_v1_LicenseRequest(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestList": schema_pkg_apis_management_v1_LicenseRequestList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec": schema_pkg_apis_management_v1_LicenseRequestSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus": schema_pkg_apis_management_v1_LicenseRequestStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec": schema_pkg_apis_management_v1_LicenseSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus": schema_pkg_apis_management_v1_LicenseStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken": schema_pkg_apis_management_v1_LicenseToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenList": schema_pkg_apis_management_v1_LicenseTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec": schema_pkg_apis_management_v1_LicenseTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus": schema_pkg_apis_management_v1_LicenseTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade": schema_pkg_apis_management_v1_LoftUpgrade(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeList": schema_pkg_apis_management_v1_LoftUpgradeList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec": schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus": schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow": schema_pkg_apis_management_v1_MaintenanceWindow(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole": schema_pkg_apis_management_v1_ManagementRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaim": schema_pkg_apis_management_v1_NodeClaim(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimList": schema_pkg_apis_management_v1_NodeClaimList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimSpec": schema_pkg_apis_management_v1_NodeClaimSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimStatus": schema_pkg_apis_management_v1_NodeClaimStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProvider": schema_pkg_apis_management_v1_NodeProvider(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderList": schema_pkg_apis_management_v1_NodeProviderList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec": schema_pkg_apis_management_v1_NodeProviderSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderStatus": schema_pkg_apis_management_v1_NodeProviderStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeType": schema_pkg_apis_management_v1_NodeType(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeList": schema_pkg_apis_management_v1_NodeTypeList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeSpec": schema_pkg_apis_management_v1_NodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeStatus": schema_pkg_apis_management_v1_NodeTypeStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC": schema_pkg_apis_management_v1_OIDC(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient": schema_pkg_apis_management_v1_OIDCClient(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientList": schema_pkg_apis_management_v1_OIDCClientList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec": schema_pkg_apis_management_v1_OIDCClientSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus": schema_pkg_apis_management_v1_OIDCClientStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName": schema_pkg_apis_management_v1_ObjectName(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission": schema_pkg_apis_management_v1_ObjectPermission(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey": schema_pkg_apis_management_v1_OwnedAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyList": schema_pkg_apis_management_v1_OwnedAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec": schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus": schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.PredefinedApp": schema_pkg_apis_management_v1_PredefinedApp(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Project": schema_pkg_apis_management_v1_Project(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo": schema_pkg_apis_management_v1_ProjectChartInfo(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoList": schema_pkg_apis_management_v1_ProjectChartInfoList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec": schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus": schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts": schema_pkg_apis_management_v1_ProjectCharts(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartsList": schema_pkg_apis_management_v1_ProjectChartsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters": schema_pkg_apis_management_v1_ProjectClusters(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClustersList": schema_pkg_apis_management_v1_ProjectClustersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace": schema_pkg_apis_management_v1_ProjectImportSpace(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceList": schema_pkg_apis_management_v1_ProjectImportSpaceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource": schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectList": schema_pkg_apis_management_v1_ProjectList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember": schema_pkg_apis_management_v1_ProjectMember(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers": schema_pkg_apis_management_v1_ProjectMembers(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembersList": schema_pkg_apis_management_v1_ProjectMembersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership": schema_pkg_apis_management_v1_ProjectMembership(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceList": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceList": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole": schema_pkg_apis_management_v1_ProjectRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret": schema_pkg_apis_management_v1_ProjectSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretList": schema_pkg_apis_management_v1_ProjectSecretList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec": schema_pkg_apis_management_v1_ProjectSecretSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus": schema_pkg_apis_management_v1_ProjectSecretStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec": schema_pkg_apis_management_v1_ProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus": schema_pkg_apis_management_v1_ProjectStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates": schema_pkg_apis_management_v1_ProjectTemplates(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplatesList": schema_pkg_apis_management_v1_ProjectTemplatesList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken": schema_pkg_apis_management_v1_RedirectToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenClaims": schema_pkg_apis_management_v1_RedirectTokenClaims(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenList": schema_pkg_apis_management_v1_RedirectTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec": schema_pkg_apis_management_v1_RedirectTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus": schema_pkg_apis_management_v1_RedirectTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster": schema_pkg_apis_management_v1_RegisterVirtualCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterList": schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec": schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus": schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey": schema_pkg_apis_management_v1_ResetAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyList": schema_pkg_apis_management_v1_ResetAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec": schema_pkg_apis_management_v1_ResetAccessKeySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus": schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self": schema_pkg_apis_management_v1_Self(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfList": schema_pkg_apis_management_v1_SelfList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec": schema_pkg_apis_management_v1_SelfSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus": schema_pkg_apis_management_v1_SelfStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview": schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewList": schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec": schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus": schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret": schema_pkg_apis_management_v1_SharedSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretList": schema_pkg_apis_management_v1_SharedSecretList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec": schema_pkg_apis_management_v1_SharedSecretSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus": schema_pkg_apis_management_v1_SharedSecretStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance": schema_pkg_apis_management_v1_SpaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceList": schema_pkg_apis_management_v1_SpaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec": schema_pkg_apis_management_v1_SpaceInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus": schema_pkg_apis_management_v1_SpaceInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate": schema_pkg_apis_management_v1_SpaceTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateList": schema_pkg_apis_management_v1_SpaceTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec": schema_pkg_apis_management_v1_SpaceTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus": schema_pkg_apis_management_v1_SpaceTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview": schema_pkg_apis_management_v1_SubjectAccessReview(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewList": schema_pkg_apis_management_v1_SubjectAccessReviewList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec": schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus": schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task": schema_pkg_apis_management_v1_Task(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskList": schema_pkg_apis_management_v1_TaskList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog": schema_pkg_apis_management_v1_TaskLog(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogList": schema_pkg_apis_management_v1_TaskLogList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogOptions": schema_pkg_apis_management_v1_TaskLogOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec": schema_pkg_apis_management_v1_TaskSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus": schema_pkg_apis_management_v1_TaskStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team": schema_pkg_apis_management_v1_Team(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys": schema_pkg_apis_management_v1_TeamAccessKeys(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeysList": schema_pkg_apis_management_v1_TeamAccessKeysList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters": schema_pkg_apis_management_v1_TeamClusters(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClustersList": schema_pkg_apis_management_v1_TeamClustersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamList": schema_pkg_apis_management_v1_TeamList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions": schema_pkg_apis_management_v1_TeamObjectPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissionsList": schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions": schema_pkg_apis_management_v1_TeamPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissionsList": schema_pkg_apis_management_v1_TeamPermissionsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec": schema_pkg_apis_management_v1_TeamSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus": schema_pkg_apis_management_v1_TeamStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName": schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameList": schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec": schema_pkg_apis_management_v1_TranslateVClusterResourceNameSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus": schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.User": schema_pkg_apis_management_v1_User(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys": schema_pkg_apis_management_v1_UserAccessKeys(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeysList": schema_pkg_apis_management_v1_UserAccessKeysList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters": schema_pkg_apis_management_v1_UserClusters(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClustersList": schema_pkg_apis_management_v1_UserClustersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserInfo": schema_pkg_apis_management_v1_UserInfo(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserList": schema_pkg_apis_management_v1_UserList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions": schema_pkg_apis_management_v1_UserObjectPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissionsList": schema_pkg_apis_management_v1_UserObjectPermissionsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions": schema_pkg_apis_management_v1_UserPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsList": schema_pkg_apis_management_v1_UserPermissionsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole": schema_pkg_apis_management_v1_UserPermissionsRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile": schema_pkg_apis_management_v1_UserProfile(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileList": schema_pkg_apis_management_v1_UserProfileList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret": schema_pkg_apis_management_v1_UserProfileSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserQuotasOptions": schema_pkg_apis_management_v1_UserQuotasOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpacesOptions": schema_pkg_apis_management_v1_UserSpacesOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec": schema_pkg_apis_management_v1_UserSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus": schema_pkg_apis_management_v1_UserStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserVirtualClustersOptions": schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey": schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase": schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseList": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance": schema_pkg_apis_management_v1_VirtualClusterInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigList": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceList": schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog": schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogList": schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogOptions": schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole": schema_pkg_apis_management_v1_VirtualClusterRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema": schema_pkg_apis_management_v1_VirtualClusterSchema(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaList": schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec": schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus": schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate": schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateList": schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec": schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus": schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access": schema_pkg_apis_storage_v1_Access(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey": schema_pkg_apis_storage_v1_AccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyList": schema_pkg_apis_storage_v1_AccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC": schema_pkg_apis_storage_v1_AccessKeyOIDC(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider": schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope": schema_pkg_apis_storage_v1_AccessKeyScope(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeCluster": schema_pkg_apis_storage_v1_AccessKeyScopeCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeProject": schema_pkg_apis_storage_v1_AccessKeyScopeProject(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRole": schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRule": schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeSpace": schema_pkg_apis_storage_v1_AccessKeyScopeSpace(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyScopeVirtualCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeySpec": schema_pkg_apis_storage_v1_AccessKeySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyStatus": schema_pkg_apis_storage_v1_AccessKeyStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyVirtualCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster": schema_pkg_apis_storage_v1_AllowedCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedClusterAccountTemplate": schema_pkg_apis_storage_v1_AllowedClusterAccountTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner": schema_pkg_apis_storage_v1_AllowedRunner(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate": schema_pkg_apis_storage_v1_AllowedTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.App": schema_pkg_apis_storage_v1_App(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppConfig": schema_pkg_apis_storage_v1_AppConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppList": schema_pkg_apis_storage_v1_AppList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter": schema_pkg_apis_storage_v1_AppParameter(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference": schema_pkg_apis_storage_v1_AppReference(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppSpec": schema_pkg_apis_storage_v1_AppSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppStatus": schema_pkg_apis_storage_v1_AppStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppTask": schema_pkg_apis_storage_v1_AppTask(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion": schema_pkg_apis_storage_v1_AppVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec": schema_pkg_apis_storage_v1_ArgoIntegrationSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectPolicyRule": schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectRole": schema_pkg_apis_storage_v1_ArgoProjectRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpec": schema_pkg_apis_storage_v1_ArgoProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpecMetadata": schema_pkg_apis_storage_v1_ArgoProjectSpecMetadata(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoSSOSpec": schema_pkg_apis_storage_v1_ArgoSSOSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.BCMNodeTypeSpec": schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Chart": schema_pkg_apis_storage_v1_Chart(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ChartStatus": schema_pkg_apis_storage_v1_ChartStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster": schema_pkg_apis_storage_v1_Cluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess": schema_pkg_apis_storage_v1_ClusterAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessList": schema_pkg_apis_storage_v1_ClusterAccessList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec": schema_pkg_apis_storage_v1_ClusterAccessSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus": schema_pkg_apis_storage_v1_ClusterAccessStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterList": schema_pkg_apis_storage_v1_ClusterList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef": schema_pkg_apis_storage_v1_ClusterRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef": schema_pkg_apis_storage_v1_ClusterRoleRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate": schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateList": schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus": schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate": schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterSpec": schema_pkg_apis_storage_v1_ClusterSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterStatus": schema_pkg_apis_storage_v1_ClusterStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.CredentialForwarding": schema_pkg_apis_storage_v1_CredentialForwarding(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandDeleteOptions": schema_pkg_apis_storage_v1_DevPodCommandDeleteOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandStatusOptions": schema_pkg_apis_storage_v1_DevPodCommandStatusOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandStopOptions": schema_pkg_apis_storage_v1_DevPodCommandStopOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandUpOptions": schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplate": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec": schema_pkg_apis_storage_v1_DevPodProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption": schema_pkg_apis_storage_v1_DevPodProviderOption(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom": schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderSource": schema_pkg_apis_storage_v1_DevPodProviderSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceContainer": schema_pkg_apis_storage_v1_DevPodWorkspaceContainer(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance": schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceContainerResource": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceContainerResource(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceEvent(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceKubernetesStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePodStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePodStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceKubernetesSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceKubernetesSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplate": schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePreset": schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetList": schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_storage_v1_DevPodWorkspacePresetStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion": schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider": schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements": schema_pkg_apis_storage_v1_DevPodWorkspaceResourceRequirements(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimTemplate": schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DockerCredentialForwarding": schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo": schema_pkg_apis_storage_v1_EntityInfo(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef": schema_pkg_apis_storage_v1_EnvironmentRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding": schema_pkg_apis_storage_v1_GitCredentialForwarding(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate": schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials": schema_pkg_apis_storage_v1_GitProjectCredentials(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec": schema_pkg_apis_storage_v1_GitProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources": schema_pkg_apis_storage_v1_GroupResources(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart": schema_pkg_apis_storage_v1_HelmChart(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository": schema_pkg_apis_storage_v1_HelmChartRepository(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration": schema_pkg_apis_storage_v1_HelmConfiguration(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTask": schema_pkg_apis_storage_v1_HelmTask(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease": schema_pkg_apis_storage_v1_HelmTaskRelease(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec": schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess": schema_pkg_apis_storage_v1_InstanceAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule": schema_pkg_apis_storage_v1_InstanceAccessRule(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceDeployedAppStatus": schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef": schema_pkg_apis_storage_v1_KindSecretRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec": schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate": schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate": schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member": schema_pkg_apis_storage_v1_Member(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics": schema_pkg_apis_storage_v1_Metrics(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacedRef": schema_pkg_apis_storage_v1_NamespacedRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer": schema_pkg_apis_storage_v1_NetworkPeer(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerList": schema_pkg_apis_storage_v1_NetworkPeerList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec": schema_pkg_apis_storage_v1_NetworkPeerSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus": schema_pkg_apis_storage_v1_NetworkPeerStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaim": schema_pkg_apis_storage_v1_NodeClaim(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimList": schema_pkg_apis_storage_v1_NodeClaimList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimSpec": schema_pkg_apis_storage_v1_NodeClaimSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimStatus": schema_pkg_apis_storage_v1_NodeClaimStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProvider": schema_pkg_apis_storage_v1_NodeProvider(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM": schema_pkg_apis_storage_v1_NodeProviderBCM(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt": schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderList": schema_pkg_apis_storage_v1_NodeProviderList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods": schema_pkg_apis_storage_v1_NodeProviderPods(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderSpec": schema_pkg_apis_storage_v1_NodeProviderSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderStatus": schema_pkg_apis_storage_v1_NodeProviderStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType": schema_pkg_apis_storage_v1_NodeType(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity": schema_pkg_apis_storage_v1_NodeTypeCapacity(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeList": schema_pkg_apis_storage_v1_NodeTypeList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead": schema_pkg_apis_storage_v1_NodeTypeOverhead(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeSpec": schema_pkg_apis_storage_v1_NodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeStatus": schema_pkg_apis_storage_v1_NodeTypeStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus": schema_pkg_apis_storage_v1_ObjectsStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost": schema_pkg_apis_storage_v1_OpenCost(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef": schema_pkg_apis_storage_v1_PresetRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectList": schema_pkg_apis_storage_v1_ProjectList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec": schema_pkg_apis_storage_v1_ProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus": schema_pkg_apis_storage_v1_ProjectStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus": schema_pkg_apis_storage_v1_QuotaStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject": schema_pkg_apis_storage_v1_QuotaStatusProject(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster": schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser": schema_pkg_apis_storage_v1_QuotaStatusUser(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed": schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas": schema_pkg_apis_storage_v1_Quotas(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec": schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef": schema_pkg_apis_storage_v1_RancherProjectRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset": schema_pkg_apis_storage_v1_RequirePreset(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef": schema_pkg_apis_storage_v1_RunnerRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity": schema_pkg_apis_storage_v1_SSOIdentity(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef": schema_pkg_apis_storage_v1_SecretRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecret": schema_pkg_apis_storage_v1_SharedSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretList": schema_pkg_apis_storage_v1_SharedSecretList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretSpec": schema_pkg_apis_storage_v1_SharedSecretSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretStatus": schema_pkg_apis_storage_v1_SharedSecretStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstance": schema_pkg_apis_storage_v1_SpaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceList": schema_pkg_apis_storage_v1_SpaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceSpec": schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceStatus": schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplate": schema_pkg_apis_storage_v1_SpaceTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateList": schema_pkg_apis_storage_v1_SpaceTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateSpec": schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateStatus": schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion": schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage": schema_pkg_apis_storage_v1_Storage(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer": schema_pkg_apis_storage_v1_StreamContainer(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec": schema_pkg_apis_storage_v1_SyncMembersSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target": schema_pkg_apis_storage_v1_Target(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetCluster": schema_pkg_apis_storage_v1_TargetCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetInstance": schema_pkg_apis_storage_v1_TargetInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetVirtualCluster": schema_pkg_apis_storage_v1_TargetVirtualCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Task": schema_pkg_apis_storage_v1_Task(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition": schema_pkg_apis_storage_v1_TaskDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskList": schema_pkg_apis_storage_v1_TaskList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskSpec": schema_pkg_apis_storage_v1_TaskSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskStatus": schema_pkg_apis_storage_v1_TaskStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Team": schema_pkg_apis_storage_v1_Team(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamList": schema_pkg_apis_storage_v1_TeamList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamSpec": schema_pkg_apis_storage_v1_TeamSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamStatus": schema_pkg_apis_storage_v1_TeamStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart": schema_pkg_apis_storage_v1_TemplateHelmChart(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata": schema_pkg_apis_storage_v1_TemplateMetadata(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef": schema_pkg_apis_storage_v1_TemplateRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.User": schema_pkg_apis_storage_v1_User(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserList": schema_pkg_apis_storage_v1_UserList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam": schema_pkg_apis_storage_v1_UserOrTeam(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity": schema_pkg_apis_storage_v1_UserOrTeamEntity(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserSpec": schema_pkg_apis_storage_v1_UserSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserStatus": schema_pkg_apis_storage_v1_UserStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultAuthSpec": schema_pkg_apis_storage_v1_VaultAuthSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec": schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPoint": schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec": schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef": schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterCommonSpec": schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmChart": schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease": schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus": schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstance": schema_pkg_apis_storage_v1_VirtualClusterInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceList": schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceSpec": schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceStatus": schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterProSpec": schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterStatus": schema_pkg_apis_storage_v1_VirtualClusterStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplate": schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateList": schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpec": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateStatus": schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion": schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceRef": schema_pkg_apis_storage_v1_WorkspaceRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget": schema_pkg_apis_storage_v1_WorkspaceResolvedTarget(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceStatusResult": schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget": schema_pkg_apis_storage_v1_WorkspaceTarget(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName": schema_pkg_apis_storage_v1_WorkspaceTargetName(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace": schema_pkg_apis_storage_v1_WorkspaceTargetNamespace(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton": schema_pkg_apis_ui_v1_NavBarButton(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings": schema_pkg_apis_ui_v1_UISettings(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig": schema_pkg_apis_ui_v1_UISettingsConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsSpec": schema_pkg_apis_ui_v1_UISettingsSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsStatus": schema_pkg_apis_ui_v1_UISettingsStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmRelease": schema_pkg_apis_virtualcluster_v1_HelmRelease(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseList": schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseSpec": schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseStatus": schema_pkg_apis_virtualcluster_v1_HelmReleaseStatus(ref), + "k8s.io/api/admissionregistration/v1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1_AuditAnnotation(ref), + "k8s.io/api/admissionregistration/v1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1_ExpressionWarning(ref), + "k8s.io/api/admissionregistration/v1.MatchCondition": schema_k8sio_api_admissionregistration_v1_MatchCondition(ref), + "k8s.io/api/admissionregistration/v1.MatchResources": schema_k8sio_api_admissionregistration_v1_MatchResources(ref), + "k8s.io/api/admissionregistration/v1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref), + "k8s.io/api/admissionregistration/v1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref), + "k8s.io/api/admissionregistration/v1.ParamKind": schema_k8sio_api_admissionregistration_v1_ParamKind(ref), + "k8s.io/api/admissionregistration/v1.ParamRef": schema_k8sio_api_admissionregistration_v1_ParamRef(ref), + "k8s.io/api/admissionregistration/v1.Rule": schema_k8sio_api_admissionregistration_v1_Rule(ref), + "k8s.io/api/admissionregistration/v1.RuleWithOperations": schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref), + "k8s.io/api/admissionregistration/v1.ServiceReference": schema_k8sio_api_admissionregistration_v1_ServiceReference(ref), + "k8s.io/api/admissionregistration/v1.TypeChecking": schema_k8sio_api_admissionregistration_v1_TypeChecking(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicy(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingList(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingSpec(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyList(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus(ref), + "k8s.io/api/admissionregistration/v1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref), + "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1.Validation": schema_k8sio_api_admissionregistration_v1_Validation(ref), + "k8s.io/api/admissionregistration/v1.Variable": schema_k8sio_api_admissionregistration_v1_Variable(ref), + "k8s.io/api/admissionregistration/v1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref), + "k8s.io/api/admissionregistration/v1beta1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref), + "k8s.io/api/admissionregistration/v1beta1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref), + "k8s.io/api/admissionregistration/v1beta1.MatchCondition": schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref), + "k8s.io/api/admissionregistration/v1beta1.MatchResources": schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref), + "k8s.io/api/admissionregistration/v1beta1.ParamKind": schema_k8sio_api_admissionregistration_v1beta1_ParamKind(ref), + "k8s.io/api/admissionregistration/v1beta1.ParamRef": schema_k8sio_api_admissionregistration_v1beta1_ParamRef(ref), + "k8s.io/api/admissionregistration/v1beta1.ServiceReference": schema_k8sio_api_admissionregistration_v1beta1_ServiceReference(ref), + "k8s.io/api/admissionregistration/v1beta1.TypeChecking": schema_k8sio_api_admissionregistration_v1beta1_TypeChecking(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicy(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBinding(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingList(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingSpec(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyList(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpec(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyStatus(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1beta1.Validation": schema_k8sio_api_admissionregistration_v1beta1_Validation(ref), + "k8s.io/api/admissionregistration/v1beta1.Variable": schema_k8sio_api_admissionregistration_v1beta1_Variable(ref), + "k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1beta1_WebhookClientConfig(ref), + "k8s.io/api/apps/v1.ControllerRevision": schema_k8sio_api_apps_v1_ControllerRevision(ref), + "k8s.io/api/apps/v1.ControllerRevisionList": schema_k8sio_api_apps_v1_ControllerRevisionList(ref), + "k8s.io/api/apps/v1.DaemonSet": schema_k8sio_api_apps_v1_DaemonSet(ref), + "k8s.io/api/apps/v1.DaemonSetCondition": schema_k8sio_api_apps_v1_DaemonSetCondition(ref), + "k8s.io/api/apps/v1.DaemonSetList": schema_k8sio_api_apps_v1_DaemonSetList(ref), + "k8s.io/api/apps/v1.DaemonSetSpec": schema_k8sio_api_apps_v1_DaemonSetSpec(ref), + "k8s.io/api/apps/v1.DaemonSetStatus": schema_k8sio_api_apps_v1_DaemonSetStatus(ref), + "k8s.io/api/apps/v1.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref), + "k8s.io/api/apps/v1.Deployment": schema_k8sio_api_apps_v1_Deployment(ref), + "k8s.io/api/apps/v1.DeploymentCondition": schema_k8sio_api_apps_v1_DeploymentCondition(ref), + "k8s.io/api/apps/v1.DeploymentList": schema_k8sio_api_apps_v1_DeploymentList(ref), + "k8s.io/api/apps/v1.DeploymentSpec": schema_k8sio_api_apps_v1_DeploymentSpec(ref), + "k8s.io/api/apps/v1.DeploymentStatus": schema_k8sio_api_apps_v1_DeploymentStatus(ref), + "k8s.io/api/apps/v1.DeploymentStrategy": schema_k8sio_api_apps_v1_DeploymentStrategy(ref), + "k8s.io/api/apps/v1.ReplicaSet": schema_k8sio_api_apps_v1_ReplicaSet(ref), + "k8s.io/api/apps/v1.ReplicaSetCondition": schema_k8sio_api_apps_v1_ReplicaSetCondition(ref), + "k8s.io/api/apps/v1.ReplicaSetList": schema_k8sio_api_apps_v1_ReplicaSetList(ref), + "k8s.io/api/apps/v1.ReplicaSetSpec": schema_k8sio_api_apps_v1_ReplicaSetSpec(ref), + "k8s.io/api/apps/v1.ReplicaSetStatus": schema_k8sio_api_apps_v1_ReplicaSetStatus(ref), + "k8s.io/api/apps/v1.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref), + "k8s.io/api/apps/v1.RollingUpdateDeployment": schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref), + "k8s.io/api/apps/v1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref), + "k8s.io/api/apps/v1.StatefulSet": schema_k8sio_api_apps_v1_StatefulSet(ref), + "k8s.io/api/apps/v1.StatefulSetCondition": schema_k8sio_api_apps_v1_StatefulSetCondition(ref), + "k8s.io/api/apps/v1.StatefulSetList": schema_k8sio_api_apps_v1_StatefulSetList(ref), + "k8s.io/api/apps/v1.StatefulSetOrdinals": schema_k8sio_api_apps_v1_StatefulSetOrdinals(ref), + "k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + "k8s.io/api/apps/v1.StatefulSetSpec": schema_k8sio_api_apps_v1_StatefulSetSpec(ref), + "k8s.io/api/apps/v1.StatefulSetStatus": schema_k8sio_api_apps_v1_StatefulSetStatus(ref), + "k8s.io/api/apps/v1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref), + "k8s.io/api/apps/v1beta1.ControllerRevision": schema_k8sio_api_apps_v1beta1_ControllerRevision(ref), + "k8s.io/api/apps/v1beta1.ControllerRevisionList": schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref), + "k8s.io/api/apps/v1beta1.Deployment": schema_k8sio_api_apps_v1beta1_Deployment(ref), + "k8s.io/api/apps/v1beta1.DeploymentCondition": schema_k8sio_api_apps_v1beta1_DeploymentCondition(ref), + "k8s.io/api/apps/v1beta1.DeploymentList": schema_k8sio_api_apps_v1beta1_DeploymentList(ref), + "k8s.io/api/apps/v1beta1.DeploymentRollback": schema_k8sio_api_apps_v1beta1_DeploymentRollback(ref), + "k8s.io/api/apps/v1beta1.DeploymentSpec": schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref), + "k8s.io/api/apps/v1beta1.DeploymentStatus": schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref), + "k8s.io/api/apps/v1beta1.DeploymentStrategy": schema_k8sio_api_apps_v1beta1_DeploymentStrategy(ref), + "k8s.io/api/apps/v1beta1.RollbackConfig": schema_k8sio_api_apps_v1beta1_RollbackConfig(ref), + "k8s.io/api/apps/v1beta1.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta1_RollingUpdateDeployment(ref), + "k8s.io/api/apps/v1beta1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta1_RollingUpdateStatefulSetStrategy(ref), + "k8s.io/api/apps/v1beta1.Scale": schema_k8sio_api_apps_v1beta1_Scale(ref), + "k8s.io/api/apps/v1beta1.ScaleSpec": schema_k8sio_api_apps_v1beta1_ScaleSpec(ref), + "k8s.io/api/apps/v1beta1.ScaleStatus": schema_k8sio_api_apps_v1beta1_ScaleStatus(ref), + "k8s.io/api/apps/v1beta1.StatefulSet": schema_k8sio_api_apps_v1beta1_StatefulSet(ref), + "k8s.io/api/apps/v1beta1.StatefulSetCondition": schema_k8sio_api_apps_v1beta1_StatefulSetCondition(ref), + "k8s.io/api/apps/v1beta1.StatefulSetList": schema_k8sio_api_apps_v1beta1_StatefulSetList(ref), + "k8s.io/api/apps/v1beta1.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta1_StatefulSetOrdinals(ref), + "k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + "k8s.io/api/apps/v1beta1.StatefulSetSpec": schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref), + "k8s.io/api/apps/v1beta1.StatefulSetStatus": schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref), + "k8s.io/api/apps/v1beta1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta1_StatefulSetUpdateStrategy(ref), + "k8s.io/api/apps/v1beta2.ControllerRevision": schema_k8sio_api_apps_v1beta2_ControllerRevision(ref), + "k8s.io/api/apps/v1beta2.ControllerRevisionList": schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref), + "k8s.io/api/apps/v1beta2.DaemonSet": schema_k8sio_api_apps_v1beta2_DaemonSet(ref), + "k8s.io/api/apps/v1beta2.DaemonSetCondition": schema_k8sio_api_apps_v1beta2_DaemonSetCondition(ref), + "k8s.io/api/apps/v1beta2.DaemonSetList": schema_k8sio_api_apps_v1beta2_DaemonSetList(ref), + "k8s.io/api/apps/v1beta2.DaemonSetSpec": schema_k8sio_api_apps_v1beta2_DaemonSetSpec(ref), + "k8s.io/api/apps/v1beta2.DaemonSetStatus": schema_k8sio_api_apps_v1beta2_DaemonSetStatus(ref), + "k8s.io/api/apps/v1beta2.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_DaemonSetUpdateStrategy(ref), + "k8s.io/api/apps/v1beta2.Deployment": schema_k8sio_api_apps_v1beta2_Deployment(ref), + "k8s.io/api/apps/v1beta2.DeploymentCondition": schema_k8sio_api_apps_v1beta2_DeploymentCondition(ref), + "k8s.io/api/apps/v1beta2.DeploymentList": schema_k8sio_api_apps_v1beta2_DeploymentList(ref), + "k8s.io/api/apps/v1beta2.DeploymentSpec": schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref), + "k8s.io/api/apps/v1beta2.DeploymentStatus": schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref), + "k8s.io/api/apps/v1beta2.DeploymentStrategy": schema_k8sio_api_apps_v1beta2_DeploymentStrategy(ref), + "k8s.io/api/apps/v1beta2.ReplicaSet": schema_k8sio_api_apps_v1beta2_ReplicaSet(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetCondition": schema_k8sio_api_apps_v1beta2_ReplicaSetCondition(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetList": schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetSpec": schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetStatus": schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref), + "k8s.io/api/apps/v1beta2.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref), + "k8s.io/api/apps/v1beta2.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta2_RollingUpdateDeployment(ref), + "k8s.io/api/apps/v1beta2.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta2_RollingUpdateStatefulSetStrategy(ref), + "k8s.io/api/apps/v1beta2.Scale": schema_k8sio_api_apps_v1beta2_Scale(ref), + "k8s.io/api/apps/v1beta2.ScaleSpec": schema_k8sio_api_apps_v1beta2_ScaleSpec(ref), + "k8s.io/api/apps/v1beta2.ScaleStatus": schema_k8sio_api_apps_v1beta2_ScaleStatus(ref), + "k8s.io/api/apps/v1beta2.StatefulSet": schema_k8sio_api_apps_v1beta2_StatefulSet(ref), + "k8s.io/api/apps/v1beta2.StatefulSetCondition": schema_k8sio_api_apps_v1beta2_StatefulSetCondition(ref), + "k8s.io/api/apps/v1beta2.StatefulSetList": schema_k8sio_api_apps_v1beta2_StatefulSetList(ref), + "k8s.io/api/apps/v1beta2.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta2_StatefulSetOrdinals(ref), + "k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta2_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + "k8s.io/api/apps/v1beta2.StatefulSetSpec": schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref), + "k8s.io/api/apps/v1beta2.StatefulSetStatus": schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref), + "k8s.io/api/apps/v1beta2.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_StatefulSetUpdateStrategy(ref), + "k8s.io/api/authentication/v1.BoundObjectReference": schema_k8sio_api_authentication_v1_BoundObjectReference(ref), + "k8s.io/api/authentication/v1.SelfSubjectReview": schema_k8sio_api_authentication_v1_SelfSubjectReview(ref), + "k8s.io/api/authentication/v1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1_SelfSubjectReviewStatus(ref), + "k8s.io/api/authentication/v1.TokenRequest": schema_k8sio_api_authentication_v1_TokenRequest(ref), + "k8s.io/api/authentication/v1.TokenRequestSpec": schema_k8sio_api_authentication_v1_TokenRequestSpec(ref), + "k8s.io/api/authentication/v1.TokenRequestStatus": schema_k8sio_api_authentication_v1_TokenRequestStatus(ref), + "k8s.io/api/authentication/v1.TokenReview": schema_k8sio_api_authentication_v1_TokenReview(ref), + "k8s.io/api/authentication/v1.TokenReviewSpec": schema_k8sio_api_authentication_v1_TokenReviewSpec(ref), + "k8s.io/api/authentication/v1.TokenReviewStatus": schema_k8sio_api_authentication_v1_TokenReviewStatus(ref), + "k8s.io/api/authentication/v1.UserInfo": schema_k8sio_api_authentication_v1_UserInfo(ref), + "k8s.io/api/authentication/v1beta1.SelfSubjectReview": schema_k8sio_api_authentication_v1beta1_SelfSubjectReview(ref), + "k8s.io/api/authentication/v1beta1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1beta1_SelfSubjectReviewStatus(ref), + "k8s.io/api/authentication/v1beta1.TokenReview": schema_k8sio_api_authentication_v1beta1_TokenReview(ref), + "k8s.io/api/authentication/v1beta1.TokenReviewSpec": schema_k8sio_api_authentication_v1beta1_TokenReviewSpec(ref), + "k8s.io/api/authentication/v1beta1.TokenReviewStatus": schema_k8sio_api_authentication_v1beta1_TokenReviewStatus(ref), + "k8s.io/api/authentication/v1beta1.UserInfo": schema_k8sio_api_authentication_v1beta1_UserInfo(ref), + "k8s.io/api/authorization/v1.FieldSelectorAttributes": schema_k8sio_api_authorization_v1_FieldSelectorAttributes(ref), + "k8s.io/api/authorization/v1.LabelSelectorAttributes": schema_k8sio_api_authorization_v1_LabelSelectorAttributes(ref), + "k8s.io/api/authorization/v1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1_LocalSubjectAccessReview(ref), + "k8s.io/api/authorization/v1.NonResourceAttributes": schema_k8sio_api_authorization_v1_NonResourceAttributes(ref), + "k8s.io/api/authorization/v1.NonResourceRule": schema_k8sio_api_authorization_v1_NonResourceRule(ref), + "k8s.io/api/authorization/v1.ResourceAttributes": schema_k8sio_api_authorization_v1_ResourceAttributes(ref), + "k8s.io/api/authorization/v1.ResourceRule": schema_k8sio_api_authorization_v1_ResourceRule(ref), + "k8s.io/api/authorization/v1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1_SelfSubjectAccessReview(ref), + "k8s.io/api/authorization/v1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1_SelfSubjectRulesReview(ref), + "k8s.io/api/authorization/v1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectRulesReviewSpec(ref), + "k8s.io/api/authorization/v1.SubjectAccessReview": schema_k8sio_api_authorization_v1_SubjectAccessReview(ref), + "k8s.io/api/authorization/v1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1_SubjectAccessReviewStatus(ref), + "k8s.io/api/authorization/v1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref), + "k8s.io/api/authorization/v1beta1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_LocalSubjectAccessReview(ref), + "k8s.io/api/authorization/v1beta1.NonResourceAttributes": schema_k8sio_api_authorization_v1beta1_NonResourceAttributes(ref), + "k8s.io/api/authorization/v1beta1.NonResourceRule": schema_k8sio_api_authorization_v1beta1_NonResourceRule(ref), + "k8s.io/api/authorization/v1beta1.ResourceAttributes": schema_k8sio_api_authorization_v1beta1_ResourceAttributes(ref), + "k8s.io/api/authorization/v1beta1.ResourceRule": schema_k8sio_api_authorization_v1beta1_ResourceRule(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReview(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReview(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReviewSpec(ref), + "k8s.io/api/authorization/v1beta1.SubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SubjectAccessReview(ref), + "k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewStatus(ref), + "k8s.io/api/authorization/v1beta1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref), + "k8s.io/api/autoscaling/v1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref), + "k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v1_CrossVersionObjectReference(ref), + "k8s.io/api/autoscaling/v1.ExternalMetricSource": schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref), + "k8s.io/api/autoscaling/v1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref), + "k8s.io/api/autoscaling/v1.MetricSpec": schema_k8sio_api_autoscaling_v1_MetricSpec(ref), + "k8s.io/api/autoscaling/v1.MetricStatus": schema_k8sio_api_autoscaling_v1_MetricStatus(ref), + "k8s.io/api/autoscaling/v1.ObjectMetricSource": schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref), + "k8s.io/api/autoscaling/v1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref), + "k8s.io/api/autoscaling/v1.PodsMetricSource": schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref), + "k8s.io/api/autoscaling/v1.PodsMetricStatus": schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref), + "k8s.io/api/autoscaling/v1.ResourceMetricSource": schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref), + "k8s.io/api/autoscaling/v1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v1.Scale": schema_k8sio_api_autoscaling_v1_Scale(ref), + "k8s.io/api/autoscaling/v1.ScaleSpec": schema_k8sio_api_autoscaling_v1_ScaleSpec(ref), + "k8s.io/api/autoscaling/v1.ScaleStatus": schema_k8sio_api_autoscaling_v1_ScaleStatus(ref), + "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta1_CrossVersionObjectReference(ref), + "k8s.io/api/autoscaling/v2beta1.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscaler(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerCondition(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref), + "k8s.io/api/autoscaling/v2beta1.MetricSpec": schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref), + "k8s.io/api/autoscaling/v2beta1.MetricStatus": schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta1_PodsMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta1_PodsMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta2_CrossVersionObjectReference(ref), + "k8s.io/api/autoscaling/v2beta2.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.HPAScalingPolicy": schema_k8sio_api_autoscaling_v2beta2_HPAScalingPolicy(ref), + "k8s.io/api/autoscaling/v2beta2.HPAScalingRules": schema_k8sio_api_autoscaling_v2beta2_HPAScalingRules(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscaler(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerBehavior": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerBehavior(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerCondition(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref), + "k8s.io/api/autoscaling/v2beta2.MetricIdentifier": schema_k8sio_api_autoscaling_v2beta2_MetricIdentifier(ref), + "k8s.io/api/autoscaling/v2beta2.MetricSpec": schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref), + "k8s.io/api/autoscaling/v2beta2.MetricStatus": schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.MetricTarget": schema_k8sio_api_autoscaling_v2beta2_MetricTarget(ref), + "k8s.io/api/autoscaling/v2beta2.MetricValueStatus": schema_k8sio_api_autoscaling_v2beta2_MetricValueStatus(ref), + "k8s.io/api/autoscaling/v2beta2.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta2_PodsMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta2_PodsMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricStatus(ref), + "k8s.io/api/batch/v1.CronJob": schema_k8sio_api_batch_v1_CronJob(ref), + "k8s.io/api/batch/v1.CronJobList": schema_k8sio_api_batch_v1_CronJobList(ref), + "k8s.io/api/batch/v1.CronJobSpec": schema_k8sio_api_batch_v1_CronJobSpec(ref), + "k8s.io/api/batch/v1.CronJobStatus": schema_k8sio_api_batch_v1_CronJobStatus(ref), + "k8s.io/api/batch/v1.Job": schema_k8sio_api_batch_v1_Job(ref), + "k8s.io/api/batch/v1.JobCondition": schema_k8sio_api_batch_v1_JobCondition(ref), + "k8s.io/api/batch/v1.JobList": schema_k8sio_api_batch_v1_JobList(ref), + "k8s.io/api/batch/v1.JobSpec": schema_k8sio_api_batch_v1_JobSpec(ref), + "k8s.io/api/batch/v1.JobStatus": schema_k8sio_api_batch_v1_JobStatus(ref), + "k8s.io/api/batch/v1.JobTemplateSpec": schema_k8sio_api_batch_v1_JobTemplateSpec(ref), + "k8s.io/api/batch/v1.PodFailurePolicy": schema_k8sio_api_batch_v1_PodFailurePolicy(ref), + "k8s.io/api/batch/v1.PodFailurePolicyOnExitCodesRequirement": schema_k8sio_api_batch_v1_PodFailurePolicyOnExitCodesRequirement(ref), + "k8s.io/api/batch/v1.PodFailurePolicyOnPodConditionsPattern": schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref), + "k8s.io/api/batch/v1.PodFailurePolicyRule": schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref), + "k8s.io/api/batch/v1.SuccessPolicy": schema_k8sio_api_batch_v1_SuccessPolicy(ref), + "k8s.io/api/batch/v1.SuccessPolicyRule": schema_k8sio_api_batch_v1_SuccessPolicyRule(ref), + "k8s.io/api/batch/v1.UncountedTerminatedPods": schema_k8sio_api_batch_v1_UncountedTerminatedPods(ref), + "k8s.io/api/batch/v1beta1.CronJob": schema_k8sio_api_batch_v1beta1_CronJob(ref), + "k8s.io/api/batch/v1beta1.CronJobList": schema_k8sio_api_batch_v1beta1_CronJobList(ref), + "k8s.io/api/batch/v1beta1.CronJobSpec": schema_k8sio_api_batch_v1beta1_CronJobSpec(ref), + "k8s.io/api/batch/v1beta1.CronJobStatus": schema_k8sio_api_batch_v1beta1_CronJobStatus(ref), + "k8s.io/api/batch/v1beta1.JobTemplateSpec": schema_k8sio_api_batch_v1beta1_JobTemplateSpec(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequest": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequest(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestCondition": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestCondition(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestList": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestSpec": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestSpec(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestStatus": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref), + "k8s.io/api/certificates/v1beta1.ClusterTrustBundle": schema_k8sio_api_certificates_v1beta1_ClusterTrustBundle(ref), + "k8s.io/api/certificates/v1beta1.ClusterTrustBundleList": schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleList(ref), + "k8s.io/api/certificates/v1beta1.ClusterTrustBundleSpec": schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleSpec(ref), + "k8s.io/api/coordination/v1.Lease": schema_k8sio_api_coordination_v1_Lease(ref), + "k8s.io/api/coordination/v1.LeaseList": schema_k8sio_api_coordination_v1_LeaseList(ref), + "k8s.io/api/coordination/v1.LeaseSpec": schema_k8sio_api_coordination_v1_LeaseSpec(ref), + "k8s.io/api/coordination/v1beta1.Lease": schema_k8sio_api_coordination_v1beta1_Lease(ref), + "k8s.io/api/coordination/v1beta1.LeaseCandidate": schema_k8sio_api_coordination_v1beta1_LeaseCandidate(ref), + "k8s.io/api/coordination/v1beta1.LeaseCandidateList": schema_k8sio_api_coordination_v1beta1_LeaseCandidateList(ref), + "k8s.io/api/coordination/v1beta1.LeaseCandidateSpec": schema_k8sio_api_coordination_v1beta1_LeaseCandidateSpec(ref), + "k8s.io/api/coordination/v1beta1.LeaseList": schema_k8sio_api_coordination_v1beta1_LeaseList(ref), + "k8s.io/api/coordination/v1beta1.LeaseSpec": schema_k8sio_api_coordination_v1beta1_LeaseSpec(ref), + "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource": schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), + "k8s.io/api/core/v1.Affinity": schema_k8sio_api_core_v1_Affinity(ref), + "k8s.io/api/core/v1.AppArmorProfile": schema_k8sio_api_core_v1_AppArmorProfile(ref), + "k8s.io/api/core/v1.AttachedVolume": schema_k8sio_api_core_v1_AttachedVolume(ref), + "k8s.io/api/core/v1.AvoidPods": schema_k8sio_api_core_v1_AvoidPods(ref), + "k8s.io/api/core/v1.AzureDiskVolumeSource": schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref), + "k8s.io/api/core/v1.AzureFilePersistentVolumeSource": schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref), + "k8s.io/api/core/v1.AzureFileVolumeSource": schema_k8sio_api_core_v1_AzureFileVolumeSource(ref), + "k8s.io/api/core/v1.Binding": schema_k8sio_api_core_v1_Binding(ref), + "k8s.io/api/core/v1.CSIPersistentVolumeSource": schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref), + "k8s.io/api/core/v1.CSIVolumeSource": schema_k8sio_api_core_v1_CSIVolumeSource(ref), + "k8s.io/api/core/v1.Capabilities": schema_k8sio_api_core_v1_Capabilities(ref), + "k8s.io/api/core/v1.CephFSPersistentVolumeSource": schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref), + "k8s.io/api/core/v1.CephFSVolumeSource": schema_k8sio_api_core_v1_CephFSVolumeSource(ref), + "k8s.io/api/core/v1.CinderPersistentVolumeSource": schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref), + "k8s.io/api/core/v1.CinderVolumeSource": schema_k8sio_api_core_v1_CinderVolumeSource(ref), + "k8s.io/api/core/v1.ClientIPConfig": schema_k8sio_api_core_v1_ClientIPConfig(ref), + "k8s.io/api/core/v1.ClusterTrustBundleProjection": schema_k8sio_api_core_v1_ClusterTrustBundleProjection(ref), + "k8s.io/api/core/v1.ComponentCondition": schema_k8sio_api_core_v1_ComponentCondition(ref), + "k8s.io/api/core/v1.ComponentStatus": schema_k8sio_api_core_v1_ComponentStatus(ref), + "k8s.io/api/core/v1.ComponentStatusList": schema_k8sio_api_core_v1_ComponentStatusList(ref), + "k8s.io/api/core/v1.ConfigMap": schema_k8sio_api_core_v1_ConfigMap(ref), + "k8s.io/api/core/v1.ConfigMapEnvSource": schema_k8sio_api_core_v1_ConfigMapEnvSource(ref), + "k8s.io/api/core/v1.ConfigMapKeySelector": schema_k8sio_api_core_v1_ConfigMapKeySelector(ref), + "k8s.io/api/core/v1.ConfigMapList": schema_k8sio_api_core_v1_ConfigMapList(ref), + "k8s.io/api/core/v1.ConfigMapNodeConfigSource": schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref), + "k8s.io/api/core/v1.ConfigMapProjection": schema_k8sio_api_core_v1_ConfigMapProjection(ref), + "k8s.io/api/core/v1.ConfigMapVolumeSource": schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref), + "k8s.io/api/core/v1.Container": schema_k8sio_api_core_v1_Container(ref), + "k8s.io/api/core/v1.ContainerImage": schema_k8sio_api_core_v1_ContainerImage(ref), + "k8s.io/api/core/v1.ContainerPort": schema_k8sio_api_core_v1_ContainerPort(ref), + "k8s.io/api/core/v1.ContainerResizePolicy": schema_k8sio_api_core_v1_ContainerResizePolicy(ref), + "k8s.io/api/core/v1.ContainerState": schema_k8sio_api_core_v1_ContainerState(ref), + "k8s.io/api/core/v1.ContainerStateRunning": schema_k8sio_api_core_v1_ContainerStateRunning(ref), + "k8s.io/api/core/v1.ContainerStateTerminated": schema_k8sio_api_core_v1_ContainerStateTerminated(ref), + "k8s.io/api/core/v1.ContainerStateWaiting": schema_k8sio_api_core_v1_ContainerStateWaiting(ref), + "k8s.io/api/core/v1.ContainerStatus": schema_k8sio_api_core_v1_ContainerStatus(ref), + "k8s.io/api/core/v1.ContainerUser": schema_k8sio_api_core_v1_ContainerUser(ref), + "k8s.io/api/core/v1.DaemonEndpoint": schema_k8sio_api_core_v1_DaemonEndpoint(ref), + "k8s.io/api/core/v1.DownwardAPIProjection": schema_k8sio_api_core_v1_DownwardAPIProjection(ref), + "k8s.io/api/core/v1.DownwardAPIVolumeFile": schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref), + "k8s.io/api/core/v1.DownwardAPIVolumeSource": schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref), + "k8s.io/api/core/v1.EmptyDirVolumeSource": schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref), + "k8s.io/api/core/v1.EndpointAddress": schema_k8sio_api_core_v1_EndpointAddress(ref), + "k8s.io/api/core/v1.EndpointPort": schema_k8sio_api_core_v1_EndpointPort(ref), + "k8s.io/api/core/v1.EndpointSubset": schema_k8sio_api_core_v1_EndpointSubset(ref), + "k8s.io/api/core/v1.Endpoints": schema_k8sio_api_core_v1_Endpoints(ref), + "k8s.io/api/core/v1.EndpointsList": schema_k8sio_api_core_v1_EndpointsList(ref), + "k8s.io/api/core/v1.EnvFromSource": schema_k8sio_api_core_v1_EnvFromSource(ref), + "k8s.io/api/core/v1.EnvVar": schema_k8sio_api_core_v1_EnvVar(ref), + "k8s.io/api/core/v1.EnvVarSource": schema_k8sio_api_core_v1_EnvVarSource(ref), + "k8s.io/api/core/v1.EphemeralContainer": schema_k8sio_api_core_v1_EphemeralContainer(ref), + "k8s.io/api/core/v1.EphemeralContainerCommon": schema_k8sio_api_core_v1_EphemeralContainerCommon(ref), + "k8s.io/api/core/v1.EphemeralVolumeSource": schema_k8sio_api_core_v1_EphemeralVolumeSource(ref), + "k8s.io/api/core/v1.Event": schema_k8sio_api_core_v1_Event(ref), + "k8s.io/api/core/v1.EventList": schema_k8sio_api_core_v1_EventList(ref), + "k8s.io/api/core/v1.EventSeries": schema_k8sio_api_core_v1_EventSeries(ref), + "k8s.io/api/core/v1.EventSource": schema_k8sio_api_core_v1_EventSource(ref), + "k8s.io/api/core/v1.ExecAction": schema_k8sio_api_core_v1_ExecAction(ref), + "k8s.io/api/core/v1.FCVolumeSource": schema_k8sio_api_core_v1_FCVolumeSource(ref), + "k8s.io/api/core/v1.FlexPersistentVolumeSource": schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref), + "k8s.io/api/core/v1.FlexVolumeSource": schema_k8sio_api_core_v1_FlexVolumeSource(ref), + "k8s.io/api/core/v1.FlockerVolumeSource": schema_k8sio_api_core_v1_FlockerVolumeSource(ref), + "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource": schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref), + "k8s.io/api/core/v1.GRPCAction": schema_k8sio_api_core_v1_GRPCAction(ref), + "k8s.io/api/core/v1.GitRepoVolumeSource": schema_k8sio_api_core_v1_GitRepoVolumeSource(ref), + "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource": schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref), + "k8s.io/api/core/v1.GlusterfsVolumeSource": schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref), + "k8s.io/api/core/v1.HTTPGetAction": schema_k8sio_api_core_v1_HTTPGetAction(ref), + "k8s.io/api/core/v1.HTTPHeader": schema_k8sio_api_core_v1_HTTPHeader(ref), + "k8s.io/api/core/v1.HostAlias": schema_k8sio_api_core_v1_HostAlias(ref), + "k8s.io/api/core/v1.HostIP": schema_k8sio_api_core_v1_HostIP(ref), + "k8s.io/api/core/v1.HostPathVolumeSource": schema_k8sio_api_core_v1_HostPathVolumeSource(ref), + "k8s.io/api/core/v1.ISCSIPersistentVolumeSource": schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref), + "k8s.io/api/core/v1.ISCSIVolumeSource": schema_k8sio_api_core_v1_ISCSIVolumeSource(ref), + "k8s.io/api/core/v1.ImageVolumeSource": schema_k8sio_api_core_v1_ImageVolumeSource(ref), + "k8s.io/api/core/v1.KeyToPath": schema_k8sio_api_core_v1_KeyToPath(ref), + "k8s.io/api/core/v1.Lifecycle": schema_k8sio_api_core_v1_Lifecycle(ref), + "k8s.io/api/core/v1.LifecycleHandler": schema_k8sio_api_core_v1_LifecycleHandler(ref), + "k8s.io/api/core/v1.LimitRange": schema_k8sio_api_core_v1_LimitRange(ref), + "k8s.io/api/core/v1.LimitRangeItem": schema_k8sio_api_core_v1_LimitRangeItem(ref), + "k8s.io/api/core/v1.LimitRangeList": schema_k8sio_api_core_v1_LimitRangeList(ref), + "k8s.io/api/core/v1.LimitRangeSpec": schema_k8sio_api_core_v1_LimitRangeSpec(ref), + "k8s.io/api/core/v1.LinuxContainerUser": schema_k8sio_api_core_v1_LinuxContainerUser(ref), + "k8s.io/api/core/v1.List": schema_k8sio_api_core_v1_List(ref), + "k8s.io/api/core/v1.LoadBalancerIngress": schema_k8sio_api_core_v1_LoadBalancerIngress(ref), + "k8s.io/api/core/v1.LoadBalancerStatus": schema_k8sio_api_core_v1_LoadBalancerStatus(ref), + "k8s.io/api/core/v1.LocalObjectReference": schema_k8sio_api_core_v1_LocalObjectReference(ref), + "k8s.io/api/core/v1.LocalVolumeSource": schema_k8sio_api_core_v1_LocalVolumeSource(ref), + "k8s.io/api/core/v1.ModifyVolumeStatus": schema_k8sio_api_core_v1_ModifyVolumeStatus(ref), + "k8s.io/api/core/v1.NFSVolumeSource": schema_k8sio_api_core_v1_NFSVolumeSource(ref), + "k8s.io/api/core/v1.Namespace": schema_k8sio_api_core_v1_Namespace(ref), + "k8s.io/api/core/v1.NamespaceCondition": schema_k8sio_api_core_v1_NamespaceCondition(ref), + "k8s.io/api/core/v1.NamespaceList": schema_k8sio_api_core_v1_NamespaceList(ref), + "k8s.io/api/core/v1.NamespaceSpec": schema_k8sio_api_core_v1_NamespaceSpec(ref), + "k8s.io/api/core/v1.NamespaceStatus": schema_k8sio_api_core_v1_NamespaceStatus(ref), + "k8s.io/api/core/v1.Node": schema_k8sio_api_core_v1_Node(ref), + "k8s.io/api/core/v1.NodeAddress": schema_k8sio_api_core_v1_NodeAddress(ref), + "k8s.io/api/core/v1.NodeAffinity": schema_k8sio_api_core_v1_NodeAffinity(ref), + "k8s.io/api/core/v1.NodeCondition": schema_k8sio_api_core_v1_NodeCondition(ref), + "k8s.io/api/core/v1.NodeConfigSource": schema_k8sio_api_core_v1_NodeConfigSource(ref), + "k8s.io/api/core/v1.NodeConfigStatus": schema_k8sio_api_core_v1_NodeConfigStatus(ref), + "k8s.io/api/core/v1.NodeDaemonEndpoints": schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref), + "k8s.io/api/core/v1.NodeFeatures": schema_k8sio_api_core_v1_NodeFeatures(ref), + "k8s.io/api/core/v1.NodeList": schema_k8sio_api_core_v1_NodeList(ref), + "k8s.io/api/core/v1.NodeProxyOptions": schema_k8sio_api_core_v1_NodeProxyOptions(ref), + "k8s.io/api/core/v1.NodeRuntimeHandler": schema_k8sio_api_core_v1_NodeRuntimeHandler(ref), + "k8s.io/api/core/v1.NodeRuntimeHandlerFeatures": schema_k8sio_api_core_v1_NodeRuntimeHandlerFeatures(ref), + "k8s.io/api/core/v1.NodeSelector": schema_k8sio_api_core_v1_NodeSelector(ref), + "k8s.io/api/core/v1.NodeSelectorRequirement": schema_k8sio_api_core_v1_NodeSelectorRequirement(ref), + "k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref), + "k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref), + "k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref), + "k8s.io/api/core/v1.NodeSwapStatus": schema_k8sio_api_core_v1_NodeSwapStatus(ref), + "k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref), + "k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref), + "k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref), + "k8s.io/api/core/v1.PersistentVolume": schema_k8sio_api_core_v1_PersistentVolume(ref), + "k8s.io/api/core/v1.PersistentVolumeClaim": schema_k8sio_api_core_v1_PersistentVolumeClaim(ref), + "k8s.io/api/core/v1.PersistentVolumeClaimCondition": schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref), + "k8s.io/api/core/v1.PersistentVolumeClaimList": schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref), + "k8s.io/api/core/v1.PersistentVolumeClaimSpec": schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref), + "k8s.io/api/core/v1.PersistentVolumeClaimStatus": schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref), + "k8s.io/api/core/v1.PersistentVolumeClaimTemplate": schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref), + "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref), + "k8s.io/api/core/v1.PersistentVolumeList": schema_k8sio_api_core_v1_PersistentVolumeList(ref), + "k8s.io/api/core/v1.PersistentVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeSource(ref), + "k8s.io/api/core/v1.PersistentVolumeSpec": schema_k8sio_api_core_v1_PersistentVolumeSpec(ref), + "k8s.io/api/core/v1.PersistentVolumeStatus": schema_k8sio_api_core_v1_PersistentVolumeStatus(ref), + "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource": schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref), + "k8s.io/api/core/v1.Pod": schema_k8sio_api_core_v1_Pod(ref), + "k8s.io/api/core/v1.PodAffinity": schema_k8sio_api_core_v1_PodAffinity(ref), + "k8s.io/api/core/v1.PodAffinityTerm": schema_k8sio_api_core_v1_PodAffinityTerm(ref), + "k8s.io/api/core/v1.PodAntiAffinity": schema_k8sio_api_core_v1_PodAntiAffinity(ref), + "k8s.io/api/core/v1.PodAttachOptions": schema_k8sio_api_core_v1_PodAttachOptions(ref), + "k8s.io/api/core/v1.PodCondition": schema_k8sio_api_core_v1_PodCondition(ref), + "k8s.io/api/core/v1.PodDNSConfig": schema_k8sio_api_core_v1_PodDNSConfig(ref), + "k8s.io/api/core/v1.PodDNSConfigOption": schema_k8sio_api_core_v1_PodDNSConfigOption(ref), + "k8s.io/api/core/v1.PodExecOptions": schema_k8sio_api_core_v1_PodExecOptions(ref), + "k8s.io/api/core/v1.PodIP": schema_k8sio_api_core_v1_PodIP(ref), + "k8s.io/api/core/v1.PodList": schema_k8sio_api_core_v1_PodList(ref), + "k8s.io/api/core/v1.PodLogOptions": schema_k8sio_api_core_v1_PodLogOptions(ref), + "k8s.io/api/core/v1.PodOS": schema_k8sio_api_core_v1_PodOS(ref), + "k8s.io/api/core/v1.PodPortForwardOptions": schema_k8sio_api_core_v1_PodPortForwardOptions(ref), + "k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref), + "k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref), + "k8s.io/api/core/v1.PodResourceClaim": schema_k8sio_api_core_v1_PodResourceClaim(ref), + "k8s.io/api/core/v1.PodResourceClaimStatus": schema_k8sio_api_core_v1_PodResourceClaimStatus(ref), + "k8s.io/api/core/v1.PodSchedulingGate": schema_k8sio_api_core_v1_PodSchedulingGate(ref), + "k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref), + "k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref), + "k8s.io/api/core/v1.PodSpec": schema_k8sio_api_core_v1_PodSpec(ref), + "k8s.io/api/core/v1.PodStatus": schema_k8sio_api_core_v1_PodStatus(ref), + "k8s.io/api/core/v1.PodStatusResult": schema_k8sio_api_core_v1_PodStatusResult(ref), + "k8s.io/api/core/v1.PodTemplate": schema_k8sio_api_core_v1_PodTemplate(ref), + "k8s.io/api/core/v1.PodTemplateList": schema_k8sio_api_core_v1_PodTemplateList(ref), + "k8s.io/api/core/v1.PodTemplateSpec": schema_k8sio_api_core_v1_PodTemplateSpec(ref), + "k8s.io/api/core/v1.PortStatus": schema_k8sio_api_core_v1_PortStatus(ref), + "k8s.io/api/core/v1.PortworxVolumeSource": schema_k8sio_api_core_v1_PortworxVolumeSource(ref), + "k8s.io/api/core/v1.PreferAvoidPodsEntry": schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref), + "k8s.io/api/core/v1.PreferredSchedulingTerm": schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref), + "k8s.io/api/core/v1.Probe": schema_k8sio_api_core_v1_Probe(ref), + "k8s.io/api/core/v1.ProbeHandler": schema_k8sio_api_core_v1_ProbeHandler(ref), + "k8s.io/api/core/v1.ProjectedVolumeSource": schema_k8sio_api_core_v1_ProjectedVolumeSource(ref), + "k8s.io/api/core/v1.QuobyteVolumeSource": schema_k8sio_api_core_v1_QuobyteVolumeSource(ref), + "k8s.io/api/core/v1.RBDPersistentVolumeSource": schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref), + "k8s.io/api/core/v1.RBDVolumeSource": schema_k8sio_api_core_v1_RBDVolumeSource(ref), + "k8s.io/api/core/v1.RangeAllocation": schema_k8sio_api_core_v1_RangeAllocation(ref), + "k8s.io/api/core/v1.ReplicationController": schema_k8sio_api_core_v1_ReplicationController(ref), + "k8s.io/api/core/v1.ReplicationControllerCondition": schema_k8sio_api_core_v1_ReplicationControllerCondition(ref), + "k8s.io/api/core/v1.ReplicationControllerList": schema_k8sio_api_core_v1_ReplicationControllerList(ref), + "k8s.io/api/core/v1.ReplicationControllerSpec": schema_k8sio_api_core_v1_ReplicationControllerSpec(ref), + "k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref), + "k8s.io/api/core/v1.ResourceClaim": schema_k8sio_api_core_v1_ResourceClaim(ref), + "k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref), + "k8s.io/api/core/v1.ResourceHealth": schema_k8sio_api_core_v1_ResourceHealth(ref), + "k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref), + "k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref), + "k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref), + "k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref), + "k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref), + "k8s.io/api/core/v1.ResourceStatus": schema_k8sio_api_core_v1_ResourceStatus(ref), + "k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref), + "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref), + "k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref), + "k8s.io/api/core/v1.ScopeSelector": schema_k8sio_api_core_v1_ScopeSelector(ref), + "k8s.io/api/core/v1.ScopedResourceSelectorRequirement": schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref), + "k8s.io/api/core/v1.SeccompProfile": schema_k8sio_api_core_v1_SeccompProfile(ref), + "k8s.io/api/core/v1.Secret": schema_k8sio_api_core_v1_Secret(ref), + "k8s.io/api/core/v1.SecretEnvSource": schema_k8sio_api_core_v1_SecretEnvSource(ref), + "k8s.io/api/core/v1.SecretKeySelector": schema_k8sio_api_core_v1_SecretKeySelector(ref), + "k8s.io/api/core/v1.SecretList": schema_k8sio_api_core_v1_SecretList(ref), + "k8s.io/api/core/v1.SecretProjection": schema_k8sio_api_core_v1_SecretProjection(ref), + "k8s.io/api/core/v1.SecretReference": schema_k8sio_api_core_v1_SecretReference(ref), + "k8s.io/api/core/v1.SecretVolumeSource": schema_k8sio_api_core_v1_SecretVolumeSource(ref), + "k8s.io/api/core/v1.SecurityContext": schema_k8sio_api_core_v1_SecurityContext(ref), + "k8s.io/api/core/v1.SerializedReference": schema_k8sio_api_core_v1_SerializedReference(ref), + "k8s.io/api/core/v1.Service": schema_k8sio_api_core_v1_Service(ref), + "k8s.io/api/core/v1.ServiceAccount": schema_k8sio_api_core_v1_ServiceAccount(ref), + "k8s.io/api/core/v1.ServiceAccountList": schema_k8sio_api_core_v1_ServiceAccountList(ref), + "k8s.io/api/core/v1.ServiceAccountTokenProjection": schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref), + "k8s.io/api/core/v1.ServiceList": schema_k8sio_api_core_v1_ServiceList(ref), + "k8s.io/api/core/v1.ServicePort": schema_k8sio_api_core_v1_ServicePort(ref), + "k8s.io/api/core/v1.ServiceProxyOptions": schema_k8sio_api_core_v1_ServiceProxyOptions(ref), + "k8s.io/api/core/v1.ServiceSpec": schema_k8sio_api_core_v1_ServiceSpec(ref), + "k8s.io/api/core/v1.ServiceStatus": schema_k8sio_api_core_v1_ServiceStatus(ref), + "k8s.io/api/core/v1.SessionAffinityConfig": schema_k8sio_api_core_v1_SessionAffinityConfig(ref), + "k8s.io/api/core/v1.SleepAction": schema_k8sio_api_core_v1_SleepAction(ref), + "k8s.io/api/core/v1.StorageOSPersistentVolumeSource": schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref), + "k8s.io/api/core/v1.StorageOSVolumeSource": schema_k8sio_api_core_v1_StorageOSVolumeSource(ref), + "k8s.io/api/core/v1.Sysctl": schema_k8sio_api_core_v1_Sysctl(ref), + "k8s.io/api/core/v1.TCPSocketAction": schema_k8sio_api_core_v1_TCPSocketAction(ref), + "k8s.io/api/core/v1.Taint": schema_k8sio_api_core_v1_Taint(ref), + "k8s.io/api/core/v1.Toleration": schema_k8sio_api_core_v1_Toleration(ref), + "k8s.io/api/core/v1.TopologySelectorLabelRequirement": schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref), + "k8s.io/api/core/v1.TopologySelectorTerm": schema_k8sio_api_core_v1_TopologySelectorTerm(ref), + "k8s.io/api/core/v1.TopologySpreadConstraint": schema_k8sio_api_core_v1_TopologySpreadConstraint(ref), + "k8s.io/api/core/v1.TypedLocalObjectReference": schema_k8sio_api_core_v1_TypedLocalObjectReference(ref), + "k8s.io/api/core/v1.TypedObjectReference": schema_k8sio_api_core_v1_TypedObjectReference(ref), + "k8s.io/api/core/v1.Volume": schema_k8sio_api_core_v1_Volume(ref), + "k8s.io/api/core/v1.VolumeDevice": schema_k8sio_api_core_v1_VolumeDevice(ref), + "k8s.io/api/core/v1.VolumeMount": schema_k8sio_api_core_v1_VolumeMount(ref), + "k8s.io/api/core/v1.VolumeMountStatus": schema_k8sio_api_core_v1_VolumeMountStatus(ref), + "k8s.io/api/core/v1.VolumeNodeAffinity": schema_k8sio_api_core_v1_VolumeNodeAffinity(ref), + "k8s.io/api/core/v1.VolumeProjection": schema_k8sio_api_core_v1_VolumeProjection(ref), + "k8s.io/api/core/v1.VolumeResourceRequirements": schema_k8sio_api_core_v1_VolumeResourceRequirements(ref), + "k8s.io/api/core/v1.VolumeSource": schema_k8sio_api_core_v1_VolumeSource(ref), + "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource": schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref), + "k8s.io/api/core/v1.WeightedPodAffinityTerm": schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref), + "k8s.io/api/core/v1.WindowsSecurityContextOptions": schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref), + "k8s.io/api/events/v1beta1.Event": schema_k8sio_api_events_v1beta1_Event(ref), + "k8s.io/api/events/v1beta1.EventList": schema_k8sio_api_events_v1beta1_EventList(ref), + "k8s.io/api/events/v1beta1.EventSeries": schema_k8sio_api_events_v1beta1_EventSeries(ref), + "k8s.io/api/extensions/v1beta1.DaemonSet": schema_k8sio_api_extensions_v1beta1_DaemonSet(ref), + "k8s.io/api/extensions/v1beta1.DaemonSetCondition": schema_k8sio_api_extensions_v1beta1_DaemonSetCondition(ref), + "k8s.io/api/extensions/v1beta1.DaemonSetList": schema_k8sio_api_extensions_v1beta1_DaemonSetList(ref), + "k8s.io/api/extensions/v1beta1.DaemonSetSpec": schema_k8sio_api_extensions_v1beta1_DaemonSetSpec(ref), + "k8s.io/api/extensions/v1beta1.DaemonSetStatus": schema_k8sio_api_extensions_v1beta1_DaemonSetStatus(ref), + "k8s.io/api/extensions/v1beta1.DaemonSetUpdateStrategy": schema_k8sio_api_extensions_v1beta1_DaemonSetUpdateStrategy(ref), + "k8s.io/api/extensions/v1beta1.Deployment": schema_k8sio_api_extensions_v1beta1_Deployment(ref), + "k8s.io/api/extensions/v1beta1.DeploymentCondition": schema_k8sio_api_extensions_v1beta1_DeploymentCondition(ref), + "k8s.io/api/extensions/v1beta1.DeploymentList": schema_k8sio_api_extensions_v1beta1_DeploymentList(ref), + "k8s.io/api/extensions/v1beta1.DeploymentRollback": schema_k8sio_api_extensions_v1beta1_DeploymentRollback(ref), + "k8s.io/api/extensions/v1beta1.DeploymentSpec": schema_k8sio_api_extensions_v1beta1_DeploymentSpec(ref), + "k8s.io/api/extensions/v1beta1.DeploymentStatus": schema_k8sio_api_extensions_v1beta1_DeploymentStatus(ref), + "k8s.io/api/extensions/v1beta1.DeploymentStrategy": schema_k8sio_api_extensions_v1beta1_DeploymentStrategy(ref), + "k8s.io/api/extensions/v1beta1.HTTPIngressPath": schema_k8sio_api_extensions_v1beta1_HTTPIngressPath(ref), + "k8s.io/api/extensions/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_extensions_v1beta1_HTTPIngressRuleValue(ref), + "k8s.io/api/extensions/v1beta1.IPBlock": schema_k8sio_api_extensions_v1beta1_IPBlock(ref), + "k8s.io/api/extensions/v1beta1.Ingress": schema_k8sio_api_extensions_v1beta1_Ingress(ref), + "k8s.io/api/extensions/v1beta1.IngressBackend": schema_k8sio_api_extensions_v1beta1_IngressBackend(ref), + "k8s.io/api/extensions/v1beta1.IngressList": schema_k8sio_api_extensions_v1beta1_IngressList(ref), + "k8s.io/api/extensions/v1beta1.IngressLoadBalancerIngress": schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerIngress(ref), + "k8s.io/api/extensions/v1beta1.IngressLoadBalancerStatus": schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerStatus(ref), + "k8s.io/api/extensions/v1beta1.IngressPortStatus": schema_k8sio_api_extensions_v1beta1_IngressPortStatus(ref), + "k8s.io/api/extensions/v1beta1.IngressRule": schema_k8sio_api_extensions_v1beta1_IngressRule(ref), + "k8s.io/api/extensions/v1beta1.IngressRuleValue": schema_k8sio_api_extensions_v1beta1_IngressRuleValue(ref), + "k8s.io/api/extensions/v1beta1.IngressSpec": schema_k8sio_api_extensions_v1beta1_IngressSpec(ref), + "k8s.io/api/extensions/v1beta1.IngressStatus": schema_k8sio_api_extensions_v1beta1_IngressStatus(ref), + "k8s.io/api/extensions/v1beta1.IngressTLS": schema_k8sio_api_extensions_v1beta1_IngressTLS(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicy": schema_k8sio_api_extensions_v1beta1_NetworkPolicy(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicyEgressRule": schema_k8sio_api_extensions_v1beta1_NetworkPolicyEgressRule(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicyIngressRule": schema_k8sio_api_extensions_v1beta1_NetworkPolicyIngressRule(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicyList": schema_k8sio_api_extensions_v1beta1_NetworkPolicyList(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicyPeer": schema_k8sio_api_extensions_v1beta1_NetworkPolicyPeer(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicyPort": schema_k8sio_api_extensions_v1beta1_NetworkPolicyPort(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicySpec": schema_k8sio_api_extensions_v1beta1_NetworkPolicySpec(ref), + "k8s.io/api/extensions/v1beta1.ReplicaSet": schema_k8sio_api_extensions_v1beta1_ReplicaSet(ref), + "k8s.io/api/extensions/v1beta1.ReplicaSetCondition": schema_k8sio_api_extensions_v1beta1_ReplicaSetCondition(ref), + "k8s.io/api/extensions/v1beta1.ReplicaSetList": schema_k8sio_api_extensions_v1beta1_ReplicaSetList(ref), + "k8s.io/api/extensions/v1beta1.ReplicaSetSpec": schema_k8sio_api_extensions_v1beta1_ReplicaSetSpec(ref), + "k8s.io/api/extensions/v1beta1.ReplicaSetStatus": schema_k8sio_api_extensions_v1beta1_ReplicaSetStatus(ref), + "k8s.io/api/extensions/v1beta1.RollbackConfig": schema_k8sio_api_extensions_v1beta1_RollbackConfig(ref), + "k8s.io/api/extensions/v1beta1.RollingUpdateDaemonSet": schema_k8sio_api_extensions_v1beta1_RollingUpdateDaemonSet(ref), + "k8s.io/api/extensions/v1beta1.RollingUpdateDeployment": schema_k8sio_api_extensions_v1beta1_RollingUpdateDeployment(ref), + "k8s.io/api/extensions/v1beta1.Scale": schema_k8sio_api_extensions_v1beta1_Scale(ref), + "k8s.io/api/extensions/v1beta1.ScaleSpec": schema_k8sio_api_extensions_v1beta1_ScaleSpec(ref), + "k8s.io/api/extensions/v1beta1.ScaleStatus": schema_k8sio_api_extensions_v1beta1_ScaleStatus(ref), + "k8s.io/api/networking/v1.HTTPIngressPath": schema_k8sio_api_networking_v1_HTTPIngressPath(ref), + "k8s.io/api/networking/v1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref), + "k8s.io/api/networking/v1.IPAddress": schema_k8sio_api_networking_v1_IPAddress(ref), + "k8s.io/api/networking/v1.IPAddressList": schema_k8sio_api_networking_v1_IPAddressList(ref), + "k8s.io/api/networking/v1.IPAddressSpec": schema_k8sio_api_networking_v1_IPAddressSpec(ref), + "k8s.io/api/networking/v1.IPBlock": schema_k8sio_api_networking_v1_IPBlock(ref), + "k8s.io/api/networking/v1.Ingress": schema_k8sio_api_networking_v1_Ingress(ref), + "k8s.io/api/networking/v1.IngressBackend": schema_k8sio_api_networking_v1_IngressBackend(ref), + "k8s.io/api/networking/v1.IngressClass": schema_k8sio_api_networking_v1_IngressClass(ref), + "k8s.io/api/networking/v1.IngressClassList": schema_k8sio_api_networking_v1_IngressClassList(ref), + "k8s.io/api/networking/v1.IngressClassParametersReference": schema_k8sio_api_networking_v1_IngressClassParametersReference(ref), + "k8s.io/api/networking/v1.IngressClassSpec": schema_k8sio_api_networking_v1_IngressClassSpec(ref), + "k8s.io/api/networking/v1.IngressList": schema_k8sio_api_networking_v1_IngressList(ref), + "k8s.io/api/networking/v1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref), + "k8s.io/api/networking/v1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref), + "k8s.io/api/networking/v1.IngressPortStatus": schema_k8sio_api_networking_v1_IngressPortStatus(ref), + "k8s.io/api/networking/v1.IngressRule": schema_k8sio_api_networking_v1_IngressRule(ref), + "k8s.io/api/networking/v1.IngressRuleValue": schema_k8sio_api_networking_v1_IngressRuleValue(ref), + "k8s.io/api/networking/v1.IngressServiceBackend": schema_k8sio_api_networking_v1_IngressServiceBackend(ref), + "k8s.io/api/networking/v1.IngressSpec": schema_k8sio_api_networking_v1_IngressSpec(ref), + "k8s.io/api/networking/v1.IngressStatus": schema_k8sio_api_networking_v1_IngressStatus(ref), + "k8s.io/api/networking/v1.IngressTLS": schema_k8sio_api_networking_v1_IngressTLS(ref), + "k8s.io/api/networking/v1.NetworkPolicy": schema_k8sio_api_networking_v1_NetworkPolicy(ref), + "k8s.io/api/networking/v1.NetworkPolicyEgressRule": schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref), + "k8s.io/api/networking/v1.NetworkPolicyIngressRule": schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref), + "k8s.io/api/networking/v1.NetworkPolicyList": schema_k8sio_api_networking_v1_NetworkPolicyList(ref), + "k8s.io/api/networking/v1.NetworkPolicyPeer": schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref), + "k8s.io/api/networking/v1.NetworkPolicyPort": schema_k8sio_api_networking_v1_NetworkPolicyPort(ref), + "k8s.io/api/networking/v1.NetworkPolicySpec": schema_k8sio_api_networking_v1_NetworkPolicySpec(ref), + "k8s.io/api/networking/v1.ParentReference": schema_k8sio_api_networking_v1_ParentReference(ref), + "k8s.io/api/networking/v1.ServiceBackendPort": schema_k8sio_api_networking_v1_ServiceBackendPort(ref), + "k8s.io/api/networking/v1.ServiceCIDR": schema_k8sio_api_networking_v1_ServiceCIDR(ref), + "k8s.io/api/networking/v1.ServiceCIDRList": schema_k8sio_api_networking_v1_ServiceCIDRList(ref), + "k8s.io/api/networking/v1.ServiceCIDRSpec": schema_k8sio_api_networking_v1_ServiceCIDRSpec(ref), + "k8s.io/api/networking/v1.ServiceCIDRStatus": schema_k8sio_api_networking_v1_ServiceCIDRStatus(ref), + "k8s.io/api/networking/v1beta1.HTTPIngressPath": schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref), + "k8s.io/api/networking/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1beta1_HTTPIngressRuleValue(ref), + "k8s.io/api/networking/v1beta1.IPAddress": schema_k8sio_api_networking_v1beta1_IPAddress(ref), + "k8s.io/api/networking/v1beta1.IPAddressList": schema_k8sio_api_networking_v1beta1_IPAddressList(ref), + "k8s.io/api/networking/v1beta1.IPAddressSpec": schema_k8sio_api_networking_v1beta1_IPAddressSpec(ref), + "k8s.io/api/networking/v1beta1.Ingress": schema_k8sio_api_networking_v1beta1_Ingress(ref), + "k8s.io/api/networking/v1beta1.IngressBackend": schema_k8sio_api_networking_v1beta1_IngressBackend(ref), + "k8s.io/api/networking/v1beta1.IngressClass": schema_k8sio_api_networking_v1beta1_IngressClass(ref), + "k8s.io/api/networking/v1beta1.IngressClassList": schema_k8sio_api_networking_v1beta1_IngressClassList(ref), + "k8s.io/api/networking/v1beta1.IngressClassParametersReference": schema_k8sio_api_networking_v1beta1_IngressClassParametersReference(ref), + "k8s.io/api/networking/v1beta1.IngressClassSpec": schema_k8sio_api_networking_v1beta1_IngressClassSpec(ref), + "k8s.io/api/networking/v1beta1.IngressList": schema_k8sio_api_networking_v1beta1_IngressList(ref), + "k8s.io/api/networking/v1beta1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1beta1_IngressLoadBalancerIngress(ref), + "k8s.io/api/networking/v1beta1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1beta1_IngressLoadBalancerStatus(ref), + "k8s.io/api/networking/v1beta1.IngressPortStatus": schema_k8sio_api_networking_v1beta1_IngressPortStatus(ref), + "k8s.io/api/networking/v1beta1.IngressRule": schema_k8sio_api_networking_v1beta1_IngressRule(ref), + "k8s.io/api/networking/v1beta1.IngressRuleValue": schema_k8sio_api_networking_v1beta1_IngressRuleValue(ref), + "k8s.io/api/networking/v1beta1.IngressSpec": schema_k8sio_api_networking_v1beta1_IngressSpec(ref), + "k8s.io/api/networking/v1beta1.IngressStatus": schema_k8sio_api_networking_v1beta1_IngressStatus(ref), + "k8s.io/api/networking/v1beta1.IngressTLS": schema_k8sio_api_networking_v1beta1_IngressTLS(ref), + "k8s.io/api/networking/v1beta1.ParentReference": schema_k8sio_api_networking_v1beta1_ParentReference(ref), + "k8s.io/api/networking/v1beta1.ServiceCIDR": schema_k8sio_api_networking_v1beta1_ServiceCIDR(ref), + "k8s.io/api/networking/v1beta1.ServiceCIDRList": schema_k8sio_api_networking_v1beta1_ServiceCIDRList(ref), + "k8s.io/api/networking/v1beta1.ServiceCIDRSpec": schema_k8sio_api_networking_v1beta1_ServiceCIDRSpec(ref), + "k8s.io/api/networking/v1beta1.ServiceCIDRStatus": schema_k8sio_api_networking_v1beta1_ServiceCIDRStatus(ref), + "k8s.io/api/node/v1alpha1.Overhead": schema_k8sio_api_node_v1alpha1_Overhead(ref), + "k8s.io/api/node/v1alpha1.RuntimeClass": schema_k8sio_api_node_v1alpha1_RuntimeClass(ref), + "k8s.io/api/node/v1alpha1.RuntimeClassList": schema_k8sio_api_node_v1alpha1_RuntimeClassList(ref), + "k8s.io/api/node/v1alpha1.RuntimeClassSpec": schema_k8sio_api_node_v1alpha1_RuntimeClassSpec(ref), + "k8s.io/api/node/v1alpha1.Scheduling": schema_k8sio_api_node_v1alpha1_Scheduling(ref), + "k8s.io/api/node/v1beta1.Overhead": schema_k8sio_api_node_v1beta1_Overhead(ref), + "k8s.io/api/node/v1beta1.RuntimeClass": schema_k8sio_api_node_v1beta1_RuntimeClass(ref), + "k8s.io/api/node/v1beta1.RuntimeClassList": schema_k8sio_api_node_v1beta1_RuntimeClassList(ref), + "k8s.io/api/node/v1beta1.Scheduling": schema_k8sio_api_node_v1beta1_Scheduling(ref), + "k8s.io/api/policy/v1beta1.Eviction": schema_k8sio_api_policy_v1beta1_Eviction(ref), + "k8s.io/api/policy/v1beta1.PodDisruptionBudget": schema_k8sio_api_policy_v1beta1_PodDisruptionBudget(ref), + "k8s.io/api/policy/v1beta1.PodDisruptionBudgetList": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetList(ref), + "k8s.io/api/policy/v1beta1.PodDisruptionBudgetSpec": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetSpec(ref), + "k8s.io/api/policy/v1beta1.PodDisruptionBudgetStatus": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetStatus(ref), + "k8s.io/api/rbac/v1.AggregationRule": schema_k8sio_api_rbac_v1_AggregationRule(ref), + "k8s.io/api/rbac/v1.ClusterRole": schema_k8sio_api_rbac_v1_ClusterRole(ref), + "k8s.io/api/rbac/v1.ClusterRoleBinding": schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref), + "k8s.io/api/rbac/v1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref), + "k8s.io/api/rbac/v1.ClusterRoleList": schema_k8sio_api_rbac_v1_ClusterRoleList(ref), + "k8s.io/api/rbac/v1.PolicyRule": schema_k8sio_api_rbac_v1_PolicyRule(ref), + "k8s.io/api/rbac/v1.Role": schema_k8sio_api_rbac_v1_Role(ref), + "k8s.io/api/rbac/v1.RoleBinding": schema_k8sio_api_rbac_v1_RoleBinding(ref), + "k8s.io/api/rbac/v1.RoleBindingList": schema_k8sio_api_rbac_v1_RoleBindingList(ref), + "k8s.io/api/rbac/v1.RoleList": schema_k8sio_api_rbac_v1_RoleList(ref), + "k8s.io/api/rbac/v1.RoleRef": schema_k8sio_api_rbac_v1_RoleRef(ref), + "k8s.io/api/rbac/v1.Subject": schema_k8sio_api_rbac_v1_Subject(ref), + "k8s.io/api/rbac/v1alpha1.AggregationRule": schema_k8sio_api_rbac_v1alpha1_AggregationRule(ref), + "k8s.io/api/rbac/v1alpha1.ClusterRole": schema_k8sio_api_rbac_v1alpha1_ClusterRole(ref), + "k8s.io/api/rbac/v1alpha1.ClusterRoleBinding": schema_k8sio_api_rbac_v1alpha1_ClusterRoleBinding(ref), + "k8s.io/api/rbac/v1alpha1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1alpha1_ClusterRoleBindingList(ref), + "k8s.io/api/rbac/v1alpha1.ClusterRoleList": schema_k8sio_api_rbac_v1alpha1_ClusterRoleList(ref), + "k8s.io/api/rbac/v1alpha1.PolicyRule": schema_k8sio_api_rbac_v1alpha1_PolicyRule(ref), + "k8s.io/api/rbac/v1alpha1.Role": schema_k8sio_api_rbac_v1alpha1_Role(ref), + "k8s.io/api/rbac/v1alpha1.RoleBinding": schema_k8sio_api_rbac_v1alpha1_RoleBinding(ref), + "k8s.io/api/rbac/v1alpha1.RoleBindingList": schema_k8sio_api_rbac_v1alpha1_RoleBindingList(ref), + "k8s.io/api/rbac/v1alpha1.RoleList": schema_k8sio_api_rbac_v1alpha1_RoleList(ref), + "k8s.io/api/rbac/v1alpha1.RoleRef": schema_k8sio_api_rbac_v1alpha1_RoleRef(ref), + "k8s.io/api/rbac/v1alpha1.Subject": schema_k8sio_api_rbac_v1alpha1_Subject(ref), + "k8s.io/api/rbac/v1beta1.AggregationRule": schema_k8sio_api_rbac_v1beta1_AggregationRule(ref), + "k8s.io/api/rbac/v1beta1.ClusterRole": schema_k8sio_api_rbac_v1beta1_ClusterRole(ref), + "k8s.io/api/rbac/v1beta1.ClusterRoleBinding": schema_k8sio_api_rbac_v1beta1_ClusterRoleBinding(ref), + "k8s.io/api/rbac/v1beta1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1beta1_ClusterRoleBindingList(ref), + "k8s.io/api/rbac/v1beta1.ClusterRoleList": schema_k8sio_api_rbac_v1beta1_ClusterRoleList(ref), + "k8s.io/api/rbac/v1beta1.PolicyRule": schema_k8sio_api_rbac_v1beta1_PolicyRule(ref), + "k8s.io/api/rbac/v1beta1.Role": schema_k8sio_api_rbac_v1beta1_Role(ref), + "k8s.io/api/rbac/v1beta1.RoleBinding": schema_k8sio_api_rbac_v1beta1_RoleBinding(ref), + "k8s.io/api/rbac/v1beta1.RoleBindingList": schema_k8sio_api_rbac_v1beta1_RoleBindingList(ref), + "k8s.io/api/rbac/v1beta1.RoleList": schema_k8sio_api_rbac_v1beta1_RoleList(ref), + "k8s.io/api/rbac/v1beta1.RoleRef": schema_k8sio_api_rbac_v1beta1_RoleRef(ref), + "k8s.io/api/rbac/v1beta1.Subject": schema_k8sio_api_rbac_v1beta1_Subject(ref), + "k8s.io/api/scheduling/v1.PriorityClass": schema_k8sio_api_scheduling_v1_PriorityClass(ref), + "k8s.io/api/scheduling/v1.PriorityClassList": schema_k8sio_api_scheduling_v1_PriorityClassList(ref), + "k8s.io/api/scheduling/v1alpha1.PriorityClass": schema_k8sio_api_scheduling_v1alpha1_PriorityClass(ref), + "k8s.io/api/scheduling/v1alpha1.PriorityClassList": schema_k8sio_api_scheduling_v1alpha1_PriorityClassList(ref), + "k8s.io/api/scheduling/v1beta1.PriorityClass": schema_k8sio_api_scheduling_v1beta1_PriorityClass(ref), + "k8s.io/api/scheduling/v1beta1.PriorityClassList": schema_k8sio_api_scheduling_v1beta1_PriorityClassList(ref), + "k8s.io/api/storage/v1.CSIDriver": schema_k8sio_api_storage_v1_CSIDriver(ref), + "k8s.io/api/storage/v1.CSIDriverList": schema_k8sio_api_storage_v1_CSIDriverList(ref), + "k8s.io/api/storage/v1.CSIDriverSpec": schema_k8sio_api_storage_v1_CSIDriverSpec(ref), + "k8s.io/api/storage/v1.CSINode": schema_k8sio_api_storage_v1_CSINode(ref), + "k8s.io/api/storage/v1.CSINodeDriver": schema_k8sio_api_storage_v1_CSINodeDriver(ref), + "k8s.io/api/storage/v1.CSINodeList": schema_k8sio_api_storage_v1_CSINodeList(ref), + "k8s.io/api/storage/v1.CSINodeSpec": schema_k8sio_api_storage_v1_CSINodeSpec(ref), + "k8s.io/api/storage/v1.CSIStorageCapacity": schema_k8sio_api_storage_v1_CSIStorageCapacity(ref), + "k8s.io/api/storage/v1.CSIStorageCapacityList": schema_k8sio_api_storage_v1_CSIStorageCapacityList(ref), + "k8s.io/api/storage/v1.StorageClass": schema_k8sio_api_storage_v1_StorageClass(ref), + "k8s.io/api/storage/v1.StorageClassList": schema_k8sio_api_storage_v1_StorageClassList(ref), + "k8s.io/api/storage/v1.TokenRequest": schema_k8sio_api_storage_v1_TokenRequest(ref), + "k8s.io/api/storage/v1.VolumeAttachment": schema_k8sio_api_storage_v1_VolumeAttachment(ref), + "k8s.io/api/storage/v1.VolumeAttachmentList": schema_k8sio_api_storage_v1_VolumeAttachmentList(ref), + "k8s.io/api/storage/v1.VolumeAttachmentSource": schema_k8sio_api_storage_v1_VolumeAttachmentSource(ref), + "k8s.io/api/storage/v1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1_VolumeAttachmentSpec(ref), + "k8s.io/api/storage/v1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref), + "k8s.io/api/storage/v1.VolumeError": schema_k8sio_api_storage_v1_VolumeError(ref), + "k8s.io/api/storage/v1.VolumeNodeResources": schema_k8sio_api_storage_v1_VolumeNodeResources(ref), + "k8s.io/api/storage/v1alpha1.CSIStorageCapacity": schema_k8sio_api_storage_v1alpha1_CSIStorageCapacity(ref), + "k8s.io/api/storage/v1alpha1.CSIStorageCapacityList": schema_k8sio_api_storage_v1alpha1_CSIStorageCapacityList(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttachment": schema_k8sio_api_storage_v1alpha1_VolumeAttachment(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttachmentList": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentList(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttachmentSource": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSource(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSpec(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentStatus(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttributesClass": schema_k8sio_api_storage_v1alpha1_VolumeAttributesClass(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttributesClassList": schema_k8sio_api_storage_v1alpha1_VolumeAttributesClassList(ref), + "k8s.io/api/storage/v1alpha1.VolumeError": schema_k8sio_api_storage_v1alpha1_VolumeError(ref), + "k8s.io/api/storage/v1beta1.CSIDriver": schema_k8sio_api_storage_v1beta1_CSIDriver(ref), + "k8s.io/api/storage/v1beta1.CSIDriverList": schema_k8sio_api_storage_v1beta1_CSIDriverList(ref), + "k8s.io/api/storage/v1beta1.CSIDriverSpec": schema_k8sio_api_storage_v1beta1_CSIDriverSpec(ref), + "k8s.io/api/storage/v1beta1.CSINode": schema_k8sio_api_storage_v1beta1_CSINode(ref), + "k8s.io/api/storage/v1beta1.CSINodeDriver": schema_k8sio_api_storage_v1beta1_CSINodeDriver(ref), + "k8s.io/api/storage/v1beta1.CSINodeList": schema_k8sio_api_storage_v1beta1_CSINodeList(ref), + "k8s.io/api/storage/v1beta1.CSINodeSpec": schema_k8sio_api_storage_v1beta1_CSINodeSpec(ref), + "k8s.io/api/storage/v1beta1.CSIStorageCapacity": schema_k8sio_api_storage_v1beta1_CSIStorageCapacity(ref), + "k8s.io/api/storage/v1beta1.CSIStorageCapacityList": schema_k8sio_api_storage_v1beta1_CSIStorageCapacityList(ref), + "k8s.io/api/storage/v1beta1.StorageClass": schema_k8sio_api_storage_v1beta1_StorageClass(ref), + "k8s.io/api/storage/v1beta1.StorageClassList": schema_k8sio_api_storage_v1beta1_StorageClassList(ref), + "k8s.io/api/storage/v1beta1.TokenRequest": schema_k8sio_api_storage_v1beta1_TokenRequest(ref), + "k8s.io/api/storage/v1beta1.VolumeAttachment": schema_k8sio_api_storage_v1beta1_VolumeAttachment(ref), + "k8s.io/api/storage/v1beta1.VolumeAttachmentList": schema_k8sio_api_storage_v1beta1_VolumeAttachmentList(ref), + "k8s.io/api/storage/v1beta1.VolumeAttachmentSource": schema_k8sio_api_storage_v1beta1_VolumeAttachmentSource(ref), + "k8s.io/api/storage/v1beta1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1beta1_VolumeAttachmentSpec(ref), + "k8s.io/api/storage/v1beta1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1beta1_VolumeAttachmentStatus(ref), + "k8s.io/api/storage/v1beta1.VolumeAttributesClass": schema_k8sio_api_storage_v1beta1_VolumeAttributesClass(ref), + "k8s.io/api/storage/v1beta1.VolumeAttributesClassList": schema_k8sio_api_storage_v1beta1_VolumeAttributesClassList(ref), + "k8s.io/api/storage/v1beta1.VolumeError": schema_k8sio_api_storage_v1beta1_VolumeError(ref), + "k8s.io/api/storage/v1beta1.VolumeNodeResources": schema_k8sio_api_storage_v1beta1_VolumeNodeResources(ref), + "k8s.io/apimachinery/pkg/api/resource.Quantity": schema_apimachinery_pkg_api_resource_Quantity(ref), + "k8s.io/apimachinery/pkg/api/resource.int64Amount": schema_apimachinery_pkg_api_resource_int64Amount(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.FieldSelectorRequirement": schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), + "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), + "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), + "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), + "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), + "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), + "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.Cluster": schema_pkg_apis_clientauthentication_v1beta1_Cluster(ref), + "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredential": schema_pkg_apis_clientauthentication_v1beta1_ExecCredential(ref), + "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialSpec": schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialSpec(ref), + "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialStatus": schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialStatus(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), } } @@ -1537,39 +1646,32 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref common.ReferenceCallba Format: "", }, }, - "description": { + "preview": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Preview represents whether the feature can be previewed if a user's license does not allow the feature", + Type: []string{"boolean"}, + Format: "", }, }, - "status": { + "allowBefore": { SchemaProps: spec.SchemaProps{ - Description: "Status shows the status of the feature (see type FeatureStatus)", + 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: "", }, }, - "compatibility": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Compatibility contains a series of semver compatibility constraints", + Description: "Status shows the status of the feature (see type FeatureStatus)", Type: []string{"string"}, Format: "", }, }, - "labels": { + "module": { SchemaProps: spec.SchemaProps{ - Description: "Labels contains a list of labels to be displayed for this feature (e.g. alpha, beta)", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Name of the module that this feature belongs to", + Type: []string{"string"}, + Format: "", }, }, }, @@ -1986,6 +2088,13 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Limit(ref common.ReferenceCallback Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"), }, }, + "module": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the module that this limit belongs to", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -2966,39 +3075,32 @@ func schema_apis_loft_cluster_v1_FeatureStatus(ref common.ReferenceCallback) com Format: "", }, }, - "description": { + "preview": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Preview represents whether the feature can be previewed if a user's license does not allow the feature", + Type: []string{"boolean"}, + Format: "", }, }, - "status": { + "allowBefore": { SchemaProps: spec.SchemaProps{ - Description: "Status shows the status of the feature (see type FeatureStatus)", + 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: "", }, }, - "compatibility": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Compatibility contains a series of semver compatibility constraints", + Description: "Status shows the status of the feature (see type FeatureStatus)", Type: []string{"string"}, Format: "", }, }, - "labels": { + "module": { SchemaProps: spec.SchemaProps{ - Description: "Labels contains a list of labels to be displayed for this feature (e.g. alpha, beta)", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Name of the module that this feature belongs to", + Type: []string{"string"}, + Format: "", }, }, "internal": { @@ -4696,6 +4798,39 @@ func schema_pkg_apis_management_v1_AgentAuditEventStatus(ref common.ReferenceCal } } +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": { + 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"}, + 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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"}, + } +} + func schema_pkg_apis_management_v1_Announcement(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -5244,6 +5379,53 @@ func schema_pkg_apis_management_v1_Apps(ref common.ReferenceCallback) common.Ope } } +func schema_pkg_apis_management_v1_AssignedVia(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": { + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner indicates if the", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_management_v1_Audit(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -6087,6 +6269,21 @@ func schema_pkg_apis_management_v1_AuthenticationOIDC(ref common.ReferenceCallba Format: "", }, }, + "allowedExtraClaims": { + 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: "", + }, + }, + }, + }, + }, "usernamePrefix": { 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\".", @@ -6587,6 +6784,34 @@ func schema_pkg_apis_management_v1_BackupStatus(ref common.ReferenceCallback) co } } +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: "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: "", + }, + }, + "maintenanceWindow": { + 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/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow"}, + } +} + func schema_pkg_apis_management_v1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -6840,6 +7065,62 @@ func schema_pkg_apis_management_v1_ClusterAccessList(ref common.ReferenceCallbac } } +func schema_pkg_apis_management_v1_ClusterAccessRole(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": { + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + "clusters": { + 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/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), + }, + }, + }, + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"}, + } +} + func schema_pkg_apis_management_v1_ClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -7080,12 +7361,18 @@ func schema_pkg_apis_management_v1_ClusterAgentConfig(ref common.ReferenceCallba Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig"), + }, + }, }, Required: []string{"analyticsSpec"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -7150,12 +7437,18 @@ func schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref common.Reference Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig"), + }, + }, }, Required: []string{"analyticsSpec"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig"}, } } @@ -8070,11 +8363,23 @@ func schema_pkg_apis_management_v1_ClusterSpec(ref common.ReferenceCallback) com }, }, }, + "metrics": { + SchemaProps: spec.SchemaProps{ + Description: "Metrics holds the cluster's metrics backend configuration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + }, + }, + "opencost": { + SchemaProps: spec.SchemaProps{ + Description: "OpenCost holds the cluster's OpenCost backend configuration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } @@ -8103,125 +8408,32 @@ func schema_pkg_apis_management_v1_ClusterStatus(ref common.ReferenceCallback) c Format: "", }, }, - "online": { - SchemaProps: spec.SchemaProps{ - Description: "Online is whether the cluster is currently connected to the coordination server.", - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_ClusterVirtualClusterDefaults(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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "defaultTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "DefaultTemplate is the default virtual cluster template", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplate"), - }, - }, - "latestVersion": { - SchemaProps: spec.SchemaProps{ - Description: "LatestVersion is the latest virtual cluster version", - Type: []string{"string"}, - Format: "", - }, - }, - "values": { - SchemaProps: spec.SchemaProps{ - Description: "Default values for the virtual cluster chart", - Type: []string{"string"}, - Format: "", - }, - }, - "warning": { - SchemaProps: spec.SchemaProps{ - Description: "Warning should be somehow shown to the user when there is a problem retrieving the defaults", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_management_v1_ClusterVirtualClusterDefaultsList(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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + 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/loft-sh/api/v4/pkg/apis/management/v1.ClusterVirtualClusterDefaults"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, + "online": { + SchemaProps: spec.SchemaProps{ + Description: "Online is whether the cluster is currently connected to the coordination server.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterVirtualClusterDefaults", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } @@ -8412,11 +8624,29 @@ func schema_pkg_apis_management_v1_ConfigStatus(ref common.ReferenceCallback) co 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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/management/v1.CostControl"), + }, + }, + "imageBuilder": { + SchemaProps: spec.SchemaProps{ + Description: "ImageBuilder holds the settings related to the image builder", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ImageBuilder"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud", "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ImageBuilder", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig"}, } } @@ -8701,11 +8931,197 @@ func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref common. } } -func schema_pkg_apis_management_v1_DevPodDeleteOptions(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{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "enabled": { + 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"}, + Format: "", + }, + }, + "global": { + SchemaProps: spec.SchemaProps{ + Description: "Global are settings for globally managed components", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlClusterConfig", "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig", "github.com/loft-sh/api/v4/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": { + 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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/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: "Enabled specifies whether GPU settings should be available in the UI.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "averageGPUPrice": { + SchemaProps: spec.SchemaProps{ + Description: "AvgGPUPrice specifies the average GPU price.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/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: "Metrics these settings apply to metric infrastructure used to aggregate metrics across all connected clusters", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"}, + } +} + +func schema_pkg_apis_management_v1_CostControlResourcePrice(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 { + 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/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"), + }, + }, + "averageRAMPricePerNode": { + SchemaProps: spec.SchemaProps{ + Description: "AvgRAMPricePerNode specifies the average RAM price per node.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"), + }, + }, + "gpuSettings": { + SchemaProps: spec.SchemaProps{ + Description: "GPUSettings specifies GPU related settings.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGPUSettings"), + }, + }, + "controlPlanePricePerCluster": { + SchemaProps: spec.SchemaProps{ + Description: "ControlPlanePricePerCluster specifies the price of one physical cluster.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGPUSettings", "github.com/loft-sh/api/v4/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{ @@ -8721,20 +9137,33 @@ func schema_pkg_apis_management_v1_DevPodDeleteOptions(ref common.ReferenceCallb Format: "", }, }, - "options": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodDeleteOptionsList(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{ @@ -8767,7 +9196,7 @@ func schema_pkg_apis_management_v1_DevPodDeleteOptionsList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodDeleteOptions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnector"), }, }, }, @@ -8778,7 +9207,44 @@ func schema_pkg_apis_management_v1_DevPodDeleteOptionsList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodDeleteOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnector", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DatabaseConnectorSpec holds the specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Description: "The client id of the client", + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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"}, + }, + }, } } @@ -8891,11 +9357,11 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref common.Refe Format: "", }, }, - "git": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Git holds configuration for git environment spec source", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"), + Description: "Description describes the environment template", + Type: []string{"string"}, + Format: "", }, }, "owner": { @@ -8918,6 +9384,12 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref common.Refe }, }, }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template is the inline template to use for DevPod environments", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), + }, + }, "versions": { SchemaProps: spec.SchemaProps{ Description: "Versions are different versions of the template that can be referenced as well", @@ -8936,7 +9408,7 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref common.Refe }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } @@ -8951,11 +9423,12 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref common.Re } } -func schema_pkg_apis_management_v1_DevPodSshOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevPodWorkspaceInstance holds the DevPodWorkspaceInstance information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -8971,68 +9444,33 @@ func schema_pkg_apis_management_v1_DevPodSshOptions(ref common.ReferenceCallback Format: "", }, }, - "options": { - SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_DevPodSshOptionsList(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": { + "metadata": { 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: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "metadata": { + "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec"), }, }, - "items": { + "status": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodSshOptions"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodSshOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodStatusOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancel(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9052,9 +9490,15 @@ func schema_pkg_apis_management_v1_DevPodStatusOptions(ref common.ReferenceCallb Format: "", }, }, - "options": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "taskId": { + SchemaProps: spec.SchemaProps{ + Description: "TaskID is the id of the task that should get cancelled", Type: []string{"string"}, Format: "", }, @@ -9062,10 +9506,12 @@ func schema_pkg_apis_management_v1_DevPodStatusOptions(ref common.ReferenceCallb }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodStatusOptionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9098,7 +9544,7 @@ func schema_pkg_apis_management_v1_DevPodStatusOptionsList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStatusOptions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel"), }, }, }, @@ -9109,11 +9555,11 @@ func schema_pkg_apis_management_v1_DevPodStatusOptionsList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStatusOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodStopOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownload(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9133,20 +9579,21 @@ func schema_pkg_apis_management_v1_DevPodStopOptions(ref common.ReferenceCallbac Format: "", }, }, - "options": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodStopOptionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9179,7 +9626,7 @@ func schema_pkg_apis_management_v1_DevPodStopOptionsList(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStopOptions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownload"), }, }, }, @@ -9190,11 +9637,11 @@ func schema_pkg_apis_management_v1_DevPodStopOptionsList(ref common.ReferenceCal }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStopOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownload", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodUpOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9214,30 +9661,9 @@ func schema_pkg_apis_management_v1_DevPodUpOptions(ref common.ReferenceCallback) Format: "", }, }, - "webMode": { - SchemaProps: spec.SchemaProps{ - Description: "WebMode executes the up command directly.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "cliMode": { - SchemaProps: spec.SchemaProps{ - Description: "CLIMode executes the up command directly.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "debug": { - SchemaProps: spec.SchemaProps{ - Description: "Debug includes debug logs.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "options": { + "path": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", + Description: "Path is the path to download", Type: []string{"string"}, Format: "", }, @@ -9248,7 +9674,7 @@ func schema_pkg_apis_management_v1_DevPodUpOptions(ref common.ReferenceCallback) } } -func schema_pkg_apis_management_v1_DevPodUpOptionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9281,7 +9707,7 @@ func schema_pkg_apis_management_v1_DevPodUpOptionsList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodUpOptions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance"), }, }, }, @@ -9292,16 +9718,15 @@ func schema_pkg_apis_management_v1_DevPodUpOptionsList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodUpOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLog(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstance holds the DevPodWorkspaceInstance information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -9323,27 +9748,15 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref common.ReferenceC Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus"), - }, - }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9376,7 +9789,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/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLog"), }, }, }, @@ -9387,7 +9800,47 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref common.Refere }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(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: "", + }, + }, + "taskID": { + SchemaProps: spec.SchemaProps{ + Description: "TaskID is the id of the task that is running", + Type: []string{"string"}, + Format: "", + }, + }, + "follow": { + SchemaProps: spec.SchemaProps{ + Description: "Follow the log stream of the task. Defaults to false.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, } } @@ -9418,6 +9871,12 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.Refere Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, + "presetRef": { + SchemaProps: spec.SchemaProps{ + Description: "PresetRef holds the DevPodWorkspacePreset template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef"), + }, + }, "templateRef": { SchemaProps: spec.SchemaProps{ Description: "TemplateRef holds the DevPod machine template reference", @@ -9427,7 +9886,6 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.Refere "environmentRef": { SchemaProps: spec.SchemaProps{ Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Default: map[string]interface{}{}, Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), }, }, @@ -9437,9 +9895,16 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.Refere Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"), + }, + }, "runnerRef": { SchemaProps: spec.SchemaProps{ - Description: "RunnerRef is the reference to the connected runner holding this workspace", + Description: "RunnerRef is the reference to the runner holding this workspace", Default: map[string]interface{}{}, Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef"), }, @@ -9476,11 +9941,100 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.Refere }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceState(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspaceInstanceStatus holds the status", + 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/loft-sh/api/v4/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": { + SchemaProps: spec.SchemaProps{ + Description: "Phase describes the current phase the DevPod machine 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 DevPod machine is in the current phase", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the DevPod machine might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, + "instance": { + SchemaProps: spec.SchemaProps{ + Description: "Instance is the template rendered with all the parameters", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus"), + }, + }, + "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/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStop(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9506,22 +10060,27 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceState(ref common.Refer Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "state": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "State holds the workspaces state as given by 'devpod export'", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9554,7 +10113,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStateList(ref common.R Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop"), }, }, }, @@ -9565,98 +10124,108 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStateList(ref common.R }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopSpec(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{ - "lastWorkspaceStatus": { + "options": { SchemaProps: spec.SchemaProps{ - Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", + Description: "Options are the options to pass.", Type: []string{"string"}, Format: "", }, }, - "phase": { + }, + }, + }, + } +} + +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": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the DevPod machine instance is in", + Description: "TaskID is the id of the task that is running", Type: []string{"string"}, Format: "", }, }, - "reason": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTask(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: "Reason describes the reason in machine-readable form why the cluster is in the current phase", + Description: "ID is the id of the task", Type: []string{"string"}, Format: "", }, }, - "message": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", + Description: "Type is the type of the task", Type: []string{"string"}, Format: "", }, }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the DevPod machine might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - "instance": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Instance is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Description: "Status is the status of the task", + Type: []string{"string"}, + Format: "", }, }, - "ignoreReconciliation": { + "result": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation ignores reconciliation for this object", - Type: []string{"boolean"}, - Format: "", + Description: "Result is the result of the task", + Type: []string{"string"}, + Format: "byte", }, }, - "clusterRef": { + "logs": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRef holds the runners cluster if the workspace is scheduled on kubernetes based runner", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef"), + Description: "Logs is the compressed logs of the task", + Type: []string{"string"}, + Format: "byte", }, }, - "sleepModeConfig": { + "createdAt": { 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/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + Description: "CreatedAt is the timestamp when the task was created", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasks(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplate holds the information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -9678,27 +10247,28 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref common.ReferenceC Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec"), - }, - }, - "status": { + "tasks": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTask"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTask", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9731,7 +10301,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/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks"), }, }, }, @@ -9742,81 +10312,141 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref common.Refere }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksOptions(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": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that is 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 the virtual cluster template", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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": { + "taskID": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "TaskID is the id of the task that is running", + Type: []string{"string"}, + Format: "", }, }, - "parameters": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(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: "Parameters define additional app parameters that will set provider values", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "state": { + SchemaProps: spec.SchemaProps{ + Description: "State holds the workspaces state as given by 'devpod export'", + Type: []string{"string"}, + Format: "", + }, + }, + "workspace": { + SchemaProps: spec.SchemaProps{ + Description: "Workspace holds the workspace's instance object data", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance"), + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate"), + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), + Ref: ref("k8s.io/api/core/v1.Pod"), }, }, }, }, }, - "template": { + "pvcs": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the DevPod workspace template", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + 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("k8s.io/api/core/v1.PersistentVolumeClaim"), + }, + }, + }, }, }, - "versions": { + "netmaps": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", + 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: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "access": { + "errors": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + 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: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -9826,27 +10456,63 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref common.Refere }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate", "k8s.io/api/core/v1.PersistentVolumeClaim", "k8s.io/api/core/v1.Pod", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(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{ + "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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUp(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DirectClusterEndpointToken holds the object information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -9871,24 +10537,24 @@ func schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref common.Referen "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9921,7 +10587,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/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp"), }, }, }, @@ -9932,49 +10598,47 @@ func schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref common.Ref }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpSpec(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": { + "debug": { SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access token in seconds", - Type: []string{"integer"}, - Format: "int64", + Description: "Debug includes debug logs.", + Type: []string{"boolean"}, + Format: "", }, }, - "scope": { + "options": { SchemaProps: spec.SchemaProps{ - Description: "Scope is the optional scope of the direct cluster endpoint", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + Description: "Options are the options to pass.", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"}, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpStatus(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": { + "taskId": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "TaskID is the id of the task that is running", + Type: []string{"string"}, + Format: "", }, }, }, @@ -9983,11 +10647,11 @@ func schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref common.R } } -func schema_pkg_apis_management_v1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Event holds an event", + Description: "DevPodWorkspacePreset", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10013,24 +10677,24 @@ func schema_pkg_apis_management_v1_Event(ref common.ReferenceCallback) common.Op "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_EventList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -10063,7 +10727,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/loft-sh/api/v4/pkg/apis/management/v1.Event"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset"), }, }, }, @@ -10074,183 +10738,135 @@ func schema_pkg_apis_management_v1_EventList(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Event", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -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/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_EventStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(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", + Description: "DevPodWorkspacePresetSource", 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", + Description: "Git stores path to git repo to use as workspace source", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "image": { 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: "Image stores container image to use as workspace source", Type: []string{"string"}, Format: "", }, }, - "level": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspacePresetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspacePresetSpec holds the specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "AuditLevel at which event was generated", - Default: "", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "auditID": { + "source": { SchemaProps: spec.SchemaProps{ - Description: "Unique audit ID, generated for each request.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Source stores inline path of project source", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource"), }, }, - "stage": { + "infrastructureRef": { SchemaProps: spec.SchemaProps{ - Description: "Stage of the request handling when this event instance was generated.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "InfrastructureRef stores reference to DevPodWorkspaceTemplate to use", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), }, }, - "requestURI": { + "environmentRef": { SchemaProps: spec.SchemaProps{ - Description: "RequestURI is the request URI as sent by the client to a server.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "EnvironmentRef stores reference to DevPodEnvironmentTemplate", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), }, }, - "verb": { + "useProjectGitCredentials": { 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"}, + Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment", + Type: []string{"boolean"}, Format: "", }, }, - "user": { - SchemaProps: spec.SchemaProps{ - Description: "Authenticated user information.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), - }, - }, - "impersonatedUser": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Impersonated user information.", - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "sourceIPs": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Source IPs, from where the request originated and intermediate proxies.", + Description: "Access to the DevPod 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "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/loft-sh/api/v4/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("k8s.io/apimachinery/pkg/apis/meta/v1.Status"), - }, - }, - "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("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), - }, - }, - "stageTimestamp": { - SchemaProps: spec.SchemaProps{ - Description: "Time the request reached current audit stage.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), - }, - }, - "annotations": { + "versions": { 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: "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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion"), }, }, }, }, }, }, - Required: []string{"level", "auditID", "stage", "requestURI", "verb", "user"}, + Required: []string{"source", "infrastructureRef"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference", "k8s.io/api/authentication/v1.UserInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime", "k8s.io/apimachinery/pkg/apis/meta/v1.Status", "k8s.io/apimachinery/pkg/runtime.Unknown"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_Feature(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspacePresetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Feature holds the feature information", + Description: "DevPodWorkspacePresetStatus holds the status", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspaceTemplate holds the information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10276,24 +10892,24 @@ func schema_pkg_apis_management_v1_Feature(ref common.ReferenceCallback) common. "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_FeatureList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -10326,7 +10942,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/loft-sh/api/v4/pkg/apis/management/v1.Feature"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate"), }, }, }, @@ -10337,189 +10953,252 @@ func schema_pkg_apis_management_v1_FeatureList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -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/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "FeatureStatus holds the status", + Description: "DevPodWorkspaceTemplateSpec holds the specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "displayName": { 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 Loft 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: "DisplayName is the name that is shown in the UI", Type: []string{"string"}, Format: "", }, }, - "displayName": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, "description": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Description: "Status shows the status of the feature (see type FeatureStatus)", + Description: "Description describes the virtual cluster template", Type: []string{"string"}, Format: "", }, }, - "compatibility": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Compatibility contains a series of semver compatibility constraints", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "labels": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "Labels contains a list of labels to be displayed for this feature (e.g. alpha, beta)", + 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/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), }, }, }, }, }, - "internal": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Internal marks internal features that should not be shown on the license view", - Type: []string{"boolean"}, - Format: "", + Description: "Template holds the DevPod workspace template", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), }, }, - "used": { + "versions": { SchemaProps: spec.SchemaProps{ - Description: "Used marks features that are currently used in the product", - 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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, }, - Required: []string{"name"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_GitEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GitEnvironmentTemplate stores configuration of Git environment template source", + Description: "DevPodWorkspaceTemplateStatus 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{ - "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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus"), }, }, }, - Required: []string{"repository"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_GroupResources(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{ - 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "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/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_IngressAuthToken(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{ - Description: "IngressAuthToken holds the object information", + Description: "DirectClusterEndpointTokenSpec holds the object specification", + 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": { + SchemaProps: spec.SchemaProps{ + Description: "Scope is the optional scope of the direct cluster endpoint", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"}, + } +} + +func schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DirectClusterEndpointTokenStatus holds the object status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "token": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Event holds an event", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10545,24 +11224,24 @@ func schema_pkg_apis_management_v1_IngressAuthToken(ref common.ReferenceCallback "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_IngressAuthTokenList(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{ @@ -10595,7 +11274,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/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Event"), }, }, }, @@ -10606,61 +11285,26 @@ func schema_pkg_apis_management_v1_IngressAuthTokenList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressAuthTokenSpec holds the object specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "host": { - SchemaProps: spec.SchemaProps{ - Description: "Host is the host where the UI should get redirected", - Type: []string{"string"}, - Format: "", - }, - }, - "signature": { - SchemaProps: spec.SchemaProps{ - Description: "Signature is the signature of the agent for the host", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Event", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_IngressAuthTokenStatus(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{ - Description: "IngressAuthTokenStatus holds the object status", + Description: "EventSpec holds the specification", Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "token": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, }, }, } } -func schema_pkg_apis_management_v1_Kiosk(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_EventStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Kiosk holds the kiosk types", + Description: "EventStatus holds the status, which is the parsed raw config", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10677,148 +11321,147 @@ func schema_pkg_apis_management_v1_Kiosk(ref common.ReferenceCallback) common.Op Format: "", }, }, - "metadata": { + "level": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "AuditLevel at which event was generated", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "auditID": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec"), + Description: "Unique audit ID, generated for each request.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "stage": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus"), + Description: "Stage of the request handling when this event instance was generated.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -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": { + "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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + 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/loft-sh/api/v4/pkg/apis/management/v1.Kiosk"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -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{ - "helmRelease": { + "userAgent": { SchemaProps: spec.SchemaProps{ - Description: "cluster.loft.sh", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease"), + 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: "", }, }, - "sleepModeConfig": { + "objectRef": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + Description: "Object reference this request is targeted at. Does not apply for List-type requests, or non-resource requests.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference"), }, }, - "chartInfo": { + "responseStatus": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo"), + 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("k8s.io/apimachinery/pkg/apis/meta/v1.Status"), }, }, - "storageClusterQuota": { + "requestObject": { SchemaProps: spec.SchemaProps{ - Description: "storage.loft.sh", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota"), + 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"), }, }, - "UISettings": { + "responseObject": { SchemaProps: spec.SchemaProps{ - Description: "ui.loft.sh", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings"), + 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"), }, }, - "license": { + "requestReceivedTimestamp": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.License"), + Description: "Time the request reached the apiserver.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + }, + }, + "stageTimestamp": { + SchemaProps: spec.SchemaProps{ + Description: "Time the request reached current audit stage.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + }, + }, + "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: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, + Required: []string{"level", "auditID", "stage", "requestURI", "verb", "user"}, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota", "github.com/loft-sh/api/v4/pkg/apis/management/v1.License", "github.com/loft-sh/api/v4/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"}, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference", "k8s.io/api/authentication/v1.UserInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime", "k8s.io/apimachinery/pkg/apis/meta/v1.Status", "k8s.io/apimachinery/pkg/runtime.Unknown"}, } } -func schema_pkg_apis_management_v1_License(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: "License holds the license information", + Description: "Feature holds the feature information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10844,24 +11487,24 @@ func schema_pkg_apis_management_v1_License(ref common.ReferenceCallback) common. "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_LicenseList(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{ @@ -10894,7 +11537,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/loft-sh/api/v4/pkg/apis/management/v1.License"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature"), }, }, }, @@ -10905,205 +11548,180 @@ func schema_pkg_apis_management_v1_LicenseList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.License", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_LicenseRequest(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: "LicenseRequest holds license request information", + 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: "FeatureStatus holds the status", 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 feature (FeatureName) This cannot be FeatureName because it needs to be downward compatible e.g. older Loft 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: "", }, }, - "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", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "metadata": { + "preview": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Preview represents whether the feature can be previewed if a user's license does not allow the feature", + Type: []string{"boolean"}, + Format: "", }, }, - "spec": { + "allowBefore": { SchemaProps: spec.SchemaProps{ - Description: "Spec is the admin request spec (the input for the request).", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec"), + 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 is the admin request output (the output or result of the request).", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -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{ - "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: "Status shows the status of the feature (see type FeatureStatus)", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "module": { 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 module that this feature belongs to", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "internal": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Internal marks internal features that should not be shown on the license view", + Type: []string{"boolean"}, + Format: "", }, }, - "items": { + "used": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest"), - }, - }, - }, + Description: "Used marks features that are currently used in the product", + Type: []string{"boolean"}, + Format: "", }, }, }, - Required: []string{"items"}, + Required: []string{"name"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_LicenseRequestSpec(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{ - Type: []string{"object"}, + Description: "GroupResources represents resource kinds in an API group.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "group": { SchemaProps: spec.SchemaProps{ - Description: "URL is the url for the request.", + 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: "", }, }, - "input": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Input is the input payload to send to the url.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput"), + 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: "", + }, + }, + }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput"}, - } -} - -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": { + "resourceNames": { SchemaProps: spec.SchemaProps{ - Description: "Output is where the request output is stored.", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"), + 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: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"}, - } -} - -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 { +func schema_pkg_apis_management_v1_ImageBuilder(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "license": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "License is the license data received from the license server.", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.License"), + 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: "", }, }, - "resourceUsage": { + "replicas": { 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("github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"), - }, - }, - }, + 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 buildkit containers", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.License", "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"}, + "k8s.io/api/core/v1.ResourceRequirements"}, } } -func schema_pkg_apis_management_v1_LicenseToken(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: "License Token holds the license token information", + Description: "IngressAuthToken holds the object information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -11129,24 +11747,24 @@ func schema_pkg_apis_management_v1_LicenseToken(ref common.ReferenceCallback) co "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_LicenseTokenList(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{ @@ -11179,7 +11797,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/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken"), }, }, }, @@ -11190,26 +11808,29 @@ func schema_pkg_apis_management_v1_LicenseTokenList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_LicenseTokenSpec(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{ - Type: []string{"object"}, + Description: "IngressAuthTokenSpec holds the object specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "host": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Host is the host where the UI should get redirected", + Type: []string{"string"}, + Format: "", }, }, - "payload": { + "signature": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Signature is the signature of the agent for the host", + Type: []string{"string"}, + Format: "", }, }, }, @@ -11218,30 +11839,30 @@ func schema_pkg_apis_management_v1_LicenseTokenSpec(ref common.ReferenceCallback } } -func schema_pkg_apis_management_v1_LicenseTokenStatus(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{ - Type: []string{"object"}, + Description: "IngressAuthTokenStatus holds the object status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "token": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"), + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"}, } } -func schema_pkg_apis_management_v1_LoftUpgrade(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Kiosk(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "LoftUpgrade holds the upgrade information", + Description: "Kiosk holds the kiosk types", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -11267,24 +11888,24 @@ func schema_pkg_apis_management_v1_LoftUpgrade(ref common.ReferenceCallback) com "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_LoftUpgradeList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_KioskList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -11317,7 +11938,7 @@ func schema_pkg_apis_management_v1_LoftUpgradeList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk"), }, }, }, @@ -11328,100 +11949,78 @@ func schema_pkg_apis_management_v1_LoftUpgradeList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_LoftUpgradeSpec(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{ - "namespace": { + "helmRelease": { SchemaProps: spec.SchemaProps{ - Description: "If specified, updated the release in the given namespace", - Type: []string{"string"}, - Format: "", + Description: "cluster.loft.sh", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease"), }, }, - "release": { + "sleepModeConfig": { SchemaProps: spec.SchemaProps{ - Description: "If specified, uses this as release name", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), }, }, - "version": { + "chartInfo": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo"), }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_LoftUpgradeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, - } -} - -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": { + "storageClusterQuota": { SchemaProps: spec.SchemaProps{ - Description: "If true indicates that loft will act as an OIDC server", - Type: []string{"boolean"}, - Format: "", + Description: "storage.loft.sh", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota"), }, }, - "wildcardRedirect": { + "UISettings": { SchemaProps: spec.SchemaProps{ - Description: "If true indicates that loft will allow wildcard '*' in client redirectURIs", - Type: []string{"boolean"}, - Format: "", + Description: "ui.loft.sh", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings"), }, }, - "clients": { + "license": { SchemaProps: spec.SchemaProps{ - Description: "The clients that are allowed to request loft tokens", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.License"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota", "github.com/loft-sh/api/v4/pkg/apis/management/v1.License", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings"}, } } -func schema_pkg_apis_management_v1_OIDCClient(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: "OIDCClient represents an OIDC client to use with Loft as an OIDC provider", + 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": { @@ -11447,24 +12046,24 @@ func schema_pkg_apis_management_v1_OIDCClient(ref common.ReferenceCallback) comm "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_OIDCClientList(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{ @@ -11497,7 +12096,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/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.License"), }, }, }, @@ -11508,76 +12107,15 @@ func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_OIDCClientSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "OIDCClientSpec holds the specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "The client name", - Type: []string{"string"}, - Format: "", - }, - }, - "clientId": { - SchemaProps: spec.SchemaProps{ - 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_OIDCClientStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "OIDCClientStatus holds the status", - Type: []string{"object"}, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.License", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKey(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: "OwnedAccessKey is an access key that is owned by the current user", + Description: "LicenseRequest holds license request information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -11602,25 +12140,27 @@ func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) }, "spec": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec"), + Description: "Spec is the admin request spec (the input for the request).", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus"), + Description: "Status is the admin request output (the output or result of the request).", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeyList(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{ @@ -11653,7 +12193,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/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest"), }, }, }, @@ -11664,289 +12204,109 @@ func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeySpec(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{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", - Type: []string{"string"}, - Format: "", - }, - }, - "user": { - SchemaProps: spec.SchemaProps{ - 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: "Subject is a generic subject that can be used instead of user or team", - Type: []string{"string"}, - Format: "", - }, - }, - "groups": { - SchemaProps: spec.SchemaProps{ - 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: "", - 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/loft-sh/api/v4/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 loft 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity"), - }, - }, - "identityRefresh": { - SchemaProps: spec.SchemaProps{ - Description: "The last time the identity was refreshed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "oidcProvider": { - SchemaProps: spec.SchemaProps{ - Description: "If the token is a refresh token, contains information about it", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), - }, - }, - "parent": { + "url": { 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.", + Description: "URL is the url for the request.", Type: []string{"string"}, Format: "", }, }, - "oidcLogin": { + "input": { 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), + Description: "Input is the input payload to send to the url.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeyStatus(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{ - "lastActivity": { + "output": { SchemaProps: spec.SchemaProps{ - Description: "The last time this access key was used to access the api", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "Output is where the request output is stored.", + Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"}, } } -func schema_pkg_apis_management_v1_PredefinedApp(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{ - Description: "PredefinedApp holds information about a predefined app", - 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": { - SchemaProps: spec.SchemaProps{ - Description: "InitialVersion holds the initial version of this app. This version will be selected automatically.", - Type: []string{"string"}, - Format: "", - }, - }, - "initialValues": { - 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 loft UI automatically.", - 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": { - 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: "", - }, - }, - }, + Type: []string{"object"}, }, }, } } -func schema_pkg_apis_management_v1_Project(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{ - Description: "Project holds the Project 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { + "license": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec"), + Description: "License is the license data received from the license server.", + Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.License"), }, }, - "status": { + "resourceUsage": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus"), + 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/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/admin-apis/pkg/licenseapi.License", "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfo(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{ - Type: []string{"object"}, + Description: "License Token holds the license token information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -11971,24 +12331,24 @@ func schema_pkg_apis_management_v1_ProjectChartInfo(ref common.ReferenceCallback "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoList(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{ @@ -12021,7 +12381,7 @@ func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken"), }, }, }, @@ -12032,70 +12392,59 @@ func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoSpec(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "chart": { + "url": { SchemaProps: spec.SchemaProps{ - Description: "Chart holds information about a chart that should get deployed", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"), + Type: []string{"string"}, + Format: "", + }, + }, + "payload": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoStatus(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Metadata provides information about a chart", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"), - }, - }, - "readme": { - SchemaProps: spec.SchemaProps{ - Description: "Readme is the readme of the chart", - Type: []string{"string"}, - Format: "", - }, - }, - "values": { + "token": { SchemaProps: spec.SchemaProps{ - Description: "Values are the default values of the chart", - Type: []string{"string"}, - Format: "", + Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"}, + "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"}, } } -func schema_pkg_apis_management_v1_ProjectCharts(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LoftUpgrade(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "LoftUpgrade holds the upgrade information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -12117,37 +12466,27 @@ func schema_pkg_apis_management_v1_ProjectCharts(ref common.ReferenceCallback) c Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "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/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec"), }, }, - "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/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus"), }, }, }, - Required: []string{"charts"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LoftUpgradeList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -12180,7 +12519,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/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade"), }, }, }, @@ -12191,125 +12530,125 @@ func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LoftUpgradeSpec(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: "If specified, updated the release in the given namespace", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "release": { 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: "If specified, uses this as release name", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "version": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Type: []string{"string"}, + Format: "", }, }, - "clusters": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_LoftUpgradeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_MaintenanceWindow(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "dayOfWeek": { SchemaProps: spec.SchemaProps{ - Description: "Clusters holds all the allowed clusters", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster"), - }, - }, - }, + 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: "", }, }, - "runners": { + "timeWindow": { SchemaProps: spec.SchemaProps{ - Description: "Runners holds all the allowed runners", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner"), - }, - }, - }, + 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: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectClustersList(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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + 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/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters"), - }, - }, - }, + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, } } -func schema_pkg_apis_management_v1_ProjectImportSpace(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: "ProjectImportSpace holds project space import information", + Description: "NodeClaim holds the node claim for vCluster.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -12332,23 +12671,27 @@ func schema_pkg_apis_management_v1_ProjectImportSpace(ref common.ReferenceCallba Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "sourceSpace": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "SourceSpace is the space to import into this project", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimStatus"), }, }, }, - Required: []string{"sourceSpace"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectImportSpaceList(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{ @@ -12381,7 +12724,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/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaim"), }, }, }, @@ -12392,117 +12735,168 @@ func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectImportSpaceSource(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{ - "name": { + "taints": { SchemaProps: spec.SchemaProps{ - Description: "Name of the space to import", - Type: []string{"string"}, - Format: "", + 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("k8s.io/api/core/v1.Taint"), + }, + }, + }, }, }, - "cluster": { + "startupTaints": { SchemaProps: spec.SchemaProps{ - Description: "Cluster name of the cluster the space is running on", + 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("k8s.io/api/core/v1.Taint"), + }, + }, + }, + }, + }, + "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("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + "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("k8s.io/api/core/v1.NodeSelectorRequirement"), + }, + }, + }, + }, + }, + "nodeTypeRef": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTypeRef is the name of the NodeType that this NodeClaim is based on.", Type: []string{"string"}, Format: "", }, }, - "importName": { + "vClusterRef": { SchemaProps: spec.SchemaProps{ - Description: "ImportName is an optional name to use as the spaceinstance name, if not provided the space name will be used", + Description: "VClusterRef references source vCluster. This is required.", + Default: "", Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"vClusterRef"}, }, }, + Dependencies: []string{ + "k8s.io/api/core/v1.NodeSelectorRequirement", "k8s.io/api/core/v1.Taint", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_management_v1_ProjectList(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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + 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/loft-sh/api/v4/pkg/apis/management/v1.Project"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Project", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -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{ - "info": { - SchemaProps: spec.SchemaProps{ - Description: "Info about the user or team", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), - }, - }, - }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_ProjectMembers(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{ @@ -12524,43 +12918,27 @@ func schema_pkg_apis_management_v1_ProjectMembers(ref common.ReferenceCallback) Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "teams": { + "spec": { 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/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec"), }, }, - "users": { + "status": { 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/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMembersList(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{ @@ -12593,7 +12971,7 @@ func schema_pkg_apis_management_v1_ProjectMembersList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProvider"), }, }, }, @@ -12604,117 +12982,88 @@ func schema_pkg_apis_management_v1_ProjectMembersList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProvider", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(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{ - Description: "ProjectMigrateSpaceInstance holds project spaceinstance migrate information", + 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": { + "pods": { 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: "Pods configures a node provider based on Kubernetes Pods. This can be used for simpler, pod-based node provisioning for testing or demos.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods"), }, }, - "apiVersion": { + "bcm": { 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: "BCM configures a node provider for BCM Bare Metal Cloud environments.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM"), }, }, - "metadata": { + "kubeVirt": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Kubevirt configures a node provider using KubeVirt, enabling virtual machines to be provisioned as nodes within a vCluster.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt"), }, }, - "sourceSpaceInstance": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "SourceSpaceInstance is the spaceinstance to migrate into this project", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource"), + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"sourceSpaceInstance"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(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"}, + Description: "NodeProviderStatus defines the observed state of NodeProvider.", + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + 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/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -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{ - "name": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Name of the spaceinstance to migrate", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the spaceinstance to migrate", + Description: "Phase is the current lifecycle phase of the NodeProvider.", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message is a human-readable message indicating details about why the NodeProvider is in its current state.", Type: []string{"string"}, Format: "", }, @@ -12722,14 +13071,16 @@ func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref common. }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeType(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectMigrateVirtualClusterInstance holds project vclusterinstance migrate information", + Description: "NodeType holds the information of a node type.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -12752,23 +13103,27 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref comm Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "sourceVirtualClusterInstance": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "SourceVirtualClusterInstance is the virtual cluster instance to migrate into this project", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeStatus"), }, }, }, - Required: []string{"sourceVirtualClusterInstance"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(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{ @@ -12801,7 +13156,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeType"), }, }, }, @@ -12812,142 +13167,203 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeType", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(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{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name of the virtual cluster instance to migrate", - Type: []string{"string"}, - Format: "", - }, - }, - "namespace": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the virtual cluster instance to migrate", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_ProjectRunners(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "zone": { 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: "Zone is the zone of the node type. If empty, will default to \"global\".", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "region": { 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: "Region is the region of the node type.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "properties": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + 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: "", + }, + }, + }, }, }, - "runners": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Runners holds all the allowed runners", - 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: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner"), + 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/loft-sh/api/v4/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: "", + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_management_v1_ProjectRunnersList(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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "capacity": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Capacity is the capacity of the node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"), + }, + }, + "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/loft-sh/api/v4/pkg/apis/management/v1.ProjectRunners"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRunners", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"}, } } -func schema_pkg_apis_management_v1_ProjectSecret(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{ - Description: "ProjectSecret holds the Project Secret information", + Description: "OIDC holds oidc provider relevant information", 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: "If true indicates that loft will act as an OIDC server", + Type: []string{"boolean"}, + Format: "", + }, + }, + "wildcardRedirect": { + SchemaProps: spec.SchemaProps{ + Description: "If true indicates that loft will allow wildcard '*' in client redirectURIs", + Type: []string{"boolean"}, + Format: "", + }, + }, + "clients": { + SchemaProps: spec.SchemaProps{ + Description: "The clients that are allowed to request loft tokens", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"}, + } +} + +func schema_pkg_apis_management_v1_OIDCClient(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "OIDCClient represents an OIDC client to use with Loft as an OIDC provider", + 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: "", }, @@ -12968,24 +13384,24 @@ func schema_pkg_apis_management_v1_ProjectSecret(ref common.ReferenceCallback) c "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectSecretList(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{ @@ -13018,7 +13434,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/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient"), }, }, }, @@ -13029,458 +13445,480 @@ func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectSecretSpec(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: "ProjectSecretSpec holds the specification", + Description: "OIDCClientSpec holds the specification", 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: "The client name", Type: []string{"string"}, Format: "", }, }, - "description": { + "clientId": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a Project secret", + Description: "The client id of the client", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "data": { + "clientSecret": { 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: "The client secret of the client", + Type: []string{"string"}, + Format: "", }, }, - "access": { + "redirectURIs": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + 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: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, + Required: []string{"redirectURIs"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_ProjectSecretStatus(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: "ProjectSecretStatus holds the status", + Description: "OIDCClientStatus 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/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - }, }, }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ObjectName(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectSpec holds the specification", - Type: []string{"object"}, + 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: "", }, }, - "description": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster"), - }, - }, - }, - }, - }, - "allowedRunners": { + "displayName": { 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/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner"), - }, - }, - }, + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "allowedTemplates": { + }, + }, + }, + } +} + +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: "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/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate"), - }, - }, - }, + Description: "Namespace of the referenced object", + Type: []string{"string"}, + Format: "", }, }, - "requireTemplate": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "RequireTemplate configures if a template is required for instance creation.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate"), + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", }, }, - "members": { + "displayName": { SchemaProps: spec.SchemaProps{ - 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/loft-sh/api/v4/pkg/apis/storage/v1.Member"), - }, - }, - }, + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "access": { + "verbs": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "namespacePattern": { + }, + Required: []string{"verbs"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_OwnedAccessKey(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", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "", }, }, - "argoCD": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "ArgoIntegration holds information about ArgoCD Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "", }, }, - "vault": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "VaultIntegration holds information about Vault Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "rancher": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "RancherIntegration holds information about Rancher Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec"), }, }, - "devPod": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "DevPod holds DevPod specific configuration for project", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectStatus(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{ - Description: "ProjectStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "quotas": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Quotas holds the quota status", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", - 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectTemplates(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{ 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: "The display name 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 an app", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "user": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "The user this access key refers to", + Type: []string{"string"}, + Format: "", }, }, - "defaultVirtualClusterTemplate": { + "team": { SchemaProps: spec.SchemaProps{ - Description: "DefaultVirtualClusterTemplate is the default template for the project", + Description: "The team this access key refers to", Type: []string{"string"}, Format: "", }, }, - "virtualClusterTemplates": { + "subject": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplates holds all the allowed virtual cluster templates", + Description: "Subject is a generic subject that can be used instead of user or team", + Type: []string{"string"}, + Format: "", + }, + }, + "groups": { + SchemaProps: spec.SchemaProps{ + 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/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "defaultSpaceTemplate": { + "key": { SchemaProps: spec.SchemaProps{ - Description: "DefaultSpaceTemplate", + Description: "The actual access key that will be used as a bearer token", Type: []string{"string"}, Format: "", }, }, - "spaceTemplates": { + "disabled": { 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/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate"), - }, - }, - }, + 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: "", }, }, - "defaultDevPodWorkspaceTemplate": { + "ttl": { SchemaProps: spec.SchemaProps{ - Description: "DefaultDevPodWorkspaceTemplate", + 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/loft-sh/api/v4/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 loft itself.", Type: []string{"string"}, Format: "", }, }, - "devPodWorkspaceTemplates": { + "identity": { 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/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate"), - }, - }, - }, + Description: "If available, contains information about the sso login data for this access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), }, }, - "devPodEnvironmentTemplates": { + "identityRefresh": { 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/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate"), - }, - }, - }, + Description: "The last time the identity was refreshed", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, - "defaultDevPodEnvironmentTemplate": { + "oidcProvider": { SchemaProps: spec.SchemaProps{ - Description: "DefaultDevPodEnvironmentTemplate", + Description: "If the token is a refresh token, contains information about it", + Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_ProjectTemplatesList(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "lastActivity": { 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 last time this access key was used to access the api", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_management_v1_PredefinedApp(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PredefinedApp holds information about a predefined app", + 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: "", }, }, - "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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + 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 loft 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/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates"), + 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/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_RedirectToken(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{ - Description: "RedirectToken holds the object information", + Description: "Project holds the Project information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -13506,44 +13944,70 @@ func schema_pkg_apis_management_v1_RedirectToken(ref common.ReferenceCallback) c "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_RedirectTokenClaims(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{ - Description: "RedirectTokenClaims holds the private claims of the redirect token", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "URL is the url to redirect 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: "", + }, + }, + "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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus"), + }, + }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_RedirectTokenList(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{ @@ -13576,7 +14040,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/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo"), }, }, }, @@ -13587,55 +14051,70 @@ func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_RedirectTokenSpec(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: "RedirectTokenSpec holds the object specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "chart": { SchemaProps: spec.SchemaProps{ - Description: "Token is the token that includes the redirect request", - Type: []string{"string"}, - Format: "", + Description: "Chart holds information about a chart that should get deployed", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"), }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"}, } } -func schema_pkg_apis_management_v1_RedirectTokenStatus(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: "RedirectTokenStatus holds the object status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "redirectURL": { + "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Metadata provides information about a chart", + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/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/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"}, } } -func schema_pkg_apis_management_v1_RegisterVirtualCluster(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: "RegisterVirtualCluster holds config request and response data for virtual clusters", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -13657,27 +14136,37 @@ func schema_pkg_apis_management_v1_RegisterVirtualCluster(ref common.ReferenceCa Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "spec": { + "charts": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec"), + 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/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart"), + }, + }, + }, }, }, - "status": { + "busy": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus"), + Description: "Busy will indicate if the chart parsing is still in progress.", + Type: []string{"boolean"}, + Format: "", }, }, }, + Required: []string{"charts"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_RegisterVirtualClusterList(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{ @@ -13710,7 +14199,7 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.Referen Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts"), }, }, }, @@ -13721,97 +14210,111 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.Referen }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(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: "RegisterVirtualClusterSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "serviceUID": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ServiceUID uniquely identifies the virtual cluster based on the service uid.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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 is the project name the virtual cluster should be 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: "", }, }, - "name": { + "metadata": { 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 vcluster based on the service uid and this name.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "forceName": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "ForceName specifies if the name should be used or creation will fail.", - Type: []string{"boolean"}, - Format: "", + Description: "Clusters holds all the allowed clusters", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster"), + }, + }, + }, }, }, - "chart": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +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: "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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - }, - }, - }, - } -} - -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/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ResetAccessKey(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: "ResetAccessKey is an access key that is owned by another user", + Description: "ProjectImportSpace holds project space import information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -13834,27 +14337,23 @@ func schema_pkg_apis_management_v1_ResetAccessKey(ref common.ReferenceCallback) Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec"), - }, - }, - "status": { + "sourceSpace": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus"), + Description: "SourceSpace is the space to import into this project", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource"), }, }, }, + Required: []string{"sourceSpace"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ResetAccessKeyList(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{ @@ -13887,7 +14386,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/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace"), }, }, }, @@ -13898,172 +14397,117 @@ func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ResetAccessKeySpec(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "Name of the space to import", Type: []string{"string"}, Format: "", }, }, - "description": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "Cluster name of the cluster the space is running on", Type: []string{"string"}, Format: "", }, }, - "user": { + "importName": { SchemaProps: spec.SchemaProps{ - Description: "The user this access key refers 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: "", }, }, - "team": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_ProjectList(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 team this access key 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: "", }, }, - "subject": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Subject is a generic subject that can be used instead of user or team", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "Groups specifies extra groups to apply when using this access key", - Type: []string{"array"}, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "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/loft-sh/api/v4/pkg/apis/management/v1.Project"), }, }, }, }, }, - "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/loft-sh/api/v4/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 loft 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity"), - }, - }, - "identityRefresh": { - SchemaProps: spec.SchemaProps{ - Description: "The last time the identity was refreshed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "oidcProvider": { - SchemaProps: spec.SchemaProps{ - Description: "If the token is a refresh token, contains information about it", - Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), - }, - }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Project", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ResetAccessKeyStatus(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{ - "lastActivity": { + "info": { SchemaProps: spec.SchemaProps{ - Description: "The last time this access key was used to access the api", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "Info about the user or team", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_Runner(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: "Runner holds the Runner information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -14085,32 +14529,47 @@ func schema_pkg_apis_management_v1_Runner(ref common.ReferenceCallback) common.O Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "spec": { + "teams": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerSpec"), + 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/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember"), + }, + }, + }, }, }, - "status": { + "users": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerStatus"), + 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/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_RunnerAccessKey(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{ - Description: "RunnerAccessKey holds the access key for the runner", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -14129,77 +14588,85 @@ func schema_pkg_apis_management_v1_RunnerAccessKey(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "accessKey": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "AccessKey is the access key used by the runner", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_RunnerAccessKeyList(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{ 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "role": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerAccessKey"), - }, - }, - }, + Description: "Role is the role given to the member", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole"}, } } -func schema_pkg_apis_management_v1_RunnerConfig(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: "RunnerConfig holds the config the runner retrieves from Loft", + Description: "ProjectMigrateSpaceInstance holds project spaceinstance migrate information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14222,22 +14689,23 @@ func schema_pkg_apis_management_v1_RunnerConfig(ref common.ReferenceCallback) co Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "tokenCaCert": { + "sourceSpaceInstance": { SchemaProps: spec.SchemaProps{ - Description: "TokenCaCert is the certificate authority the Loft tokens will be signed with", - Type: []string{"string"}, - Format: "byte", + Description: "SourceSpaceInstance is the spaceinstance to migrate into this project", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource"), }, }, }, + Required: []string{"sourceSpaceInstance"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_RunnerConfigList(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{ @@ -14270,7 +14738,7 @@ func schema_pkg_apis_management_v1_RunnerConfigList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerConfig"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance"), }, }, }, @@ -14281,232 +14749,80 @@ func schema_pkg_apis_management_v1_RunnerConfigList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_RunnerList(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{ - "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 spaceinstance to migrate", 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 spaceinstance to migrate", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner"), - }, - }, - }, - }, - }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_RunnerSpec(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: "RunnerSpec holds the specification", + Description: "ProjectMigrateVirtualClusterInstance holds project vclusterinstance migrate information", 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: "", }, }, - "networkPeerName": { - SchemaProps: spec.SchemaProps{ - Description: "NetworkPeerName is the network peer name used to connect directly to the runner", - Type: []string{"string"}, - Format: "", - }, - }, - "endpoint": { - SchemaProps: spec.SchemaProps{ - Description: "Endpoint is the hostname used to connect directly to the runner", - Type: []string{"string"}, - Format: "", - }, - }, - "clusterRef": { - SchemaProps: spec.SchemaProps{ - Description: "If ClusterRef is defined, Loft will schedule the runner on the given cluster.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef"), - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "unusable": { - SchemaProps: spec.SchemaProps{ - Description: "If unusable is true, no DevPod workspaces can be scheduled on this runner.", - 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_management_v1_RunnerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RunnerStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "phase": { - SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the space instance is in", - 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 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/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, - } -} - -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{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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": { + "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec"), - }, - }, - "status": { + "sourceVirtualClusterInstance": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus"), + Description: "SourceVirtualClusterInstance is the virtual cluster instance to migrate into this project", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource"), }, }, }, + Required: []string{"sourceVirtualClusterInstance"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SelfList(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{ @@ -14539,7 +14855,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/loft-sh/api/v4/pkg/apis/management/v1.Self"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance"), }, }, }, @@ -14550,293 +14866,81 @@ func schema_pkg_apis_management_v1_SelfList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -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{ - "accessKey": { - SchemaProps: spec.SchemaProps{ - Description: "AccessKey is an optional access key to use instead of the provided one", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SelfStatus(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{ 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/loft-sh/api/v4/pkg/apis/management/v1.UserInfo"), - }, - }, - "team": { - SchemaProps: spec.SchemaProps{ - Description: "The name of the currently logged in team", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), - }, - }, - "accessKey": { - SchemaProps: spec.SchemaProps{ - Description: "The name of the currently used access key", - Type: []string{"string"}, - Format: "", - }, - }, - "accessKeyScope": { - SchemaProps: spec.SchemaProps{ - Description: "The scope of the currently used access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), - }, - }, - "accessKeyType": { - SchemaProps: spec.SchemaProps{ - Description: "The type of the currently used access key", - Type: []string{"string"}, - Format: "", - }, - }, - "subject": { - SchemaProps: spec.SchemaProps{ - Description: "The subject of the currently logged in user", - Type: []string{"string"}, - Format: "", - }, - }, - "uid": { - SchemaProps: spec.SchemaProps{ - 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: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "chatAuthToken": { - SchemaProps: spec.SchemaProps{ - Description: "ChatAuthToken is the token used to authenticate with the in-product chat widget in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "instanceID": { - SchemaProps: spec.SchemaProps{ - Description: "InstanceID is the loft instance id", - 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/loft-sh/api/v4/pkg/apis/management/v1.UserInfo", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, - } -} - -func schema_pkg_apis_management_v1_SelfSubjectAccessReview(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": { + "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 instance to migrate", 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 instance to migrate", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus"), - }, - }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(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{ - "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": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "resourceAttributes": { - SchemaProps: spec.SchemaProps{ - 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: "", - }, - }, - "denied": { - 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: "", - }, - }, - "reason": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Reason is optional. It indicates why a request was allowed or denied.", + Description: "DisplayName is the name of the object to display in the UI", Type: []string{"string"}, Format: "", }, }, - "evaluationError": { + "isAdmin": { 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: "IsAdmin describes whether this is an admin project role", + Type: []string{"boolean"}, Format: "", }, }, }, - Required: []string{"allowed"}, }, }, } } -func schema_pkg_apis_management_v1_SharedSecret(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: "SharedSecret holds the secret information", + Description: "ProjectSecret holds the Project Secret information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14862,24 +14966,24 @@ func schema_pkg_apis_management_v1_SharedSecret(ref common.ReferenceCallback) co "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SharedSecretList(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{ @@ -14912,7 +15016,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/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret"), }, }, }, @@ -14923,15 +15027,15 @@ func schema_pkg_apis_management_v1_SharedSecretList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SharedSecretSpec(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{ - Description: "SharedSecretSpec holds the specification", + Description: "ProjectSecretSpec holds the specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { @@ -14943,7 +15047,7 @@ func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a shared secret", + Description: "Description describes a Project secret", Type: []string{"string"}, Format: "", }, @@ -14971,7 +15075,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{ @@ -14991,11 +15095,11 @@ func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback } } -func schema_pkg_apis_management_v1_SharedSecretStatus(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{ - Description: "SharedSecretStatus holds the status", + Description: "ProjectSecretStatus holds the status", Type: []string{"object"}, Properties: map[string]spec.Schema{ "conditions": { @@ -15020,177 +15124,184 @@ func schema_pkg_apis_management_v1_SharedSecretStatus(ref common.ReferenceCallba } } -func schema_pkg_apis_management_v1_SpaceInstance(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{ - Description: "SpaceInstance holds the SpaceInstance information", + Description: "ProjectSpec 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: "", }, }, - "metadata": { + "owner": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "spec": { + "quotas": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec"), + Description: "Quotas define the quotas inside the project", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas"), }, }, - "status": { + "allowedClusters": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus"), + 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/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster"), + }, + }, + }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_management_v1_SpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "allowedRunners": { 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: "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/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner"), + }, + }, + }, }, }, - "apiVersion": { + "allowedTemplates": { 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: "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/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate"), + }, + }, + }, }, }, - "metadata": { + "requireTemplate": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "RequireTemplate configures if a template is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate"), }, }, - "items": { + "requirePreset": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "RequirePreset configures if a preset is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset"), + }, + }, + "members": { + SchemaProps: spec.SchemaProps{ + 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/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member"), }, }, }, }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_SpaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SpaceInstanceSpec 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": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a space instance", - 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, - "owner": { + "namespacePattern": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern"), }, }, - "templateRef": { + "argoCD": { SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the space template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Description: "ArgoIntegration holds information about ArgoCD Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec"), }, }, - "template": { + "vault": { SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for space creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Description: "VaultIntegration holds information about Vault Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), }, }, - "clusterRef": { + "rancher": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRef is the reference to the connected cluster holding this space", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef"), + Description: "RancherIntegration holds information about Rancher Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), }, }, - "parameters": { + "devPod": { 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: "DevPod holds DevPod specific configuration for project", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec"), }, }, - "extraAccessRules": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, + } +} + +func schema_pkg_apis_management_v1_ProjectStatus(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: "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/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), - }, - }, - }, + Description: "Quotas holds the quota status", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"), }, }, - "access": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, @@ -15200,88 +15311,131 @@ func schema_pkg_apis_management_v1_SpaceInstanceSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"}, } } -func schema_pkg_apis_management_v1_SpaceInstanceStatus(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{ - Description: "SpaceInstanceStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the space instance is in", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "defaultVirtualClusterTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "DefaultVirtualClusterTemplate is the default template for the project", Type: []string{"string"}, Format: "", }, }, - "conditions": { + "virtualClusterTemplates": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", + 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/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate"), }, }, }, }, }, - "spaceObjects": { + "defaultSpaceTemplate": { SchemaProps: spec.SchemaProps{ - Description: "SpaceObjects are the objects that were applied within the virtual cluster space", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), + Description: "DefaultSpaceTemplate", + Type: []string{"string"}, + Format: "", }, }, - "space": { + "spaceTemplates": { SchemaProps: spec.SchemaProps{ - Description: "Space is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + 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/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate"), + }, + }, + }, }, }, - "ignoreReconciliation": { + "defaultDevPodWorkspaceTemplate": { 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: "DefaultDevPodWorkspaceTemplate", + Type: []string{"string"}, Format: "", }, }, - "sleepModeConfig": { + "devPodWorkspaceTemplates": { SchemaProps: spec.SchemaProps{ - Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + 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/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate"), + }, + }, + }, }, }, - "canUse": { + "devPodEnvironmentTemplates": { SchemaProps: spec.SchemaProps{ - Description: "CanUse specifies if the requester can use the instance", - Type: []string{"boolean"}, - Format: "", + 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/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate"), + }, + }, + }, }, }, - "canUpdate": { + "devPodWorkspacePresets": { SchemaProps: spec.SchemaProps{ - Description: "CanUpdate specifies if the requester can update the instance", - Type: []string{"boolean"}, + Description: "DevPodWorkspacePresets holds all the allowed workspace presets", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset"), + }, + }, + }, + }, + }, + "defaultDevPodEnvironmentTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "DefaultDevPodEnvironmentTemplate", + Type: []string{"string"}, Format: "", }, }, @@ -15289,16 +15443,15 @@ func schema_pkg_apis_management_v1_SpaceInstanceStatus(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SpaceTemplate(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{ - Description: "SpaceTemplate holds the information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -15317,34 +15470,37 @@ func schema_pkg_apis_management_v1_SpaceTemplate(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SpaceTemplateList(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{ - Type: []string{"object"}, + Description: "RedirectToken holds the object information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -15363,147 +15519,141 @@ func schema_pkg_apis_management_v1_SpaceTemplateList(ref common.ReferenceCallbac "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "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/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SpaceTemplateSpec(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{ - Description: "SpaceTemplateSpec holds the specification", + Description: "RedirectTokenClaims holds the private claims of the redirect token", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "url": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that is shown in the UI", + Description: "URL is the url to redirect to.", Type: []string{"string"}, Format: "", }, }, - "description": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_RedirectTokenList(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: "Description describes the space template", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "template": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the space template", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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": { + "metadata": { 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/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "versions": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different space template versions that can be referenced as well", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken"), }, }, }, }, }, - "access": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_RedirectTokenSpec(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: "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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "Token is the token that includes the redirect request", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_SpaceTemplateStatus(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{ - Description: "SpaceTemplateStatus holds the status", + Description: "RedirectTokenStatus holds the object status", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "apps": { + "redirectURL": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), - }, - }, - }, + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_SubjectAccessReview(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: "User holds the user information", + Description: "RegisterVirtualCluster holds config request and response data for virtual clusters", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -15529,24 +15679,24 @@ func schema_pkg_apis_management_v1_SubjectAccessReview(ref common.ReferenceCallb "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SubjectAccessReviewList(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{ @@ -15579,7 +15729,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/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster"), }, }, }, @@ -15590,81 +15740,62 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SubjectAccessReviewSpec(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{ - "resourceAttributes": { + "serviceUID": { SchemaProps: spec.SchemaProps{ - Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + Description: "ServiceUID uniquely identifies the virtual cluster based on the service uid.", + Type: []string{"string"}, + Format: "", }, }, - "nonResourceAttributes": { + "project": { SchemaProps: spec.SchemaProps{ - Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + Description: "Project is the project name the virtual cluster should be in.", + Type: []string{"string"}, + Format: "", }, }, - "user": { + "name": { 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: "Name is the virtual cluster instance name. If the name is already taken, the platform will construct a name for the vcluster based on the service uid and this name.", Type: []string{"string"}, Format: "", }, }, - "groups": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "forceName": { + SchemaProps: spec.SchemaProps{ + Description: "ForceName specifies if the name should be used or creation will fail.", + Type: []string{"boolean"}, + Format: "", }, + }, + "chart": { 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: "Chart specifies the vCluster chart.", + Type: []string{"string"}, + Format: "", }, }, - "extra": { + "version": { 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: "Version specifies the vCluster version.", + Type: []string{"string"}, + Format: "", }, }, - "uid": { + "values": { SchemaProps: spec.SchemaProps{ - Description: "UID information about the requesting user.", + Description: "Values specifies the vCluster config.", Type: []string{"string"}, Format: "", }, @@ -15672,58 +15803,34 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref common.ReferenceC }, }, }, - 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 { +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{ - "allowed": { - SchemaProps: spec.SchemaProps{ - Description: "Allowed is required. True if the action would be allowed, false otherwise.", - Default: false, - Type: []string{"boolean"}, - Format: "", - }, - }, - "denied": { - 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: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "Reason is optional. It indicates why a request was allowed or denied.", - Type: []string{"string"}, - Format: "", - }, - }, - "evaluationError": { + "name": { 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: "Name is the actual name of the virtual cluster instance.", Type: []string{"string"}, Format: "", }, }, }, - Required: []string{"allowed"}, }, }, } } -func schema_pkg_apis_management_v1_Task(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{ - Description: "Task holds the Task information", + Description: "ResetAccessKey is an access key that is owned by another user", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -15749,24 +15856,24 @@ func schema_pkg_apis_management_v1_Task(ref common.ReferenceCallback) common.Ope "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TaskList(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{ @@ -15799,7 +15906,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/loft-sh/api/v4/pkg/apis/management/v1.Task"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey"), }, }, }, @@ -15810,165 +15917,156 @@ func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TaskLog(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{ - "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: "The display name 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 an app", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_management_v1_TaskLogList(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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + 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/loft-sh/api/v4/pkg/apis/management/v1.TaskLog"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -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{ - "kind": { + "key": { 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 actual access key that will be used as a bearer token", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "disabled": { 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: "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: "", }, }, - "follow": { + "ttl": { SchemaProps: spec.SchemaProps{ - Description: "Follow the log stream of the pod. Defaults to false.", + 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: "", }, }, - "previous": { + "scope": { SchemaProps: spec.SchemaProps{ - Description: "Return previous terminated container logs. Defaults to false.", - Type: []string{"boolean"}, + Description: "Scope defines the scope of the access key.", + Ref: ref("github.com/loft-sh/api/v4/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 loft itself.", + Type: []string{"string"}, Format: "", }, }, - "sinceSeconds": { + "identity": { 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: "If available, contains information about the sso login data for this access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), }, }, - "sinceTime": { + "identityRefresh": { 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.", + Description: "The last time the identity was refreshed", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, - "timestamps": { + "oidcProvider": { 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: "", + Description: "If the token is a refresh token, contains information about it", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), }, }, - "tailLines": { + "parent": { 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: "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: "", }, }, - "limitBytes": { + "oidcLogin": { 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: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), }, }, - "insecureSkipTLSVerifyBackend": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +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{ + "lastActivity": { 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: "", + Description: "The last time this access key was used to access the api", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, }, @@ -15979,140 +16077,221 @@ func schema_pkg_apis_management_v1_TaskLogOptions(ref common.ReferenceCallback) } } -func schema_pkg_apis_management_v1_TaskSpec(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: "TaskSpec holds the specification", + Description: "Self holds information about the currently logged in user", 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: "", }, }, - "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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "scope": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "target": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Target where this task should get executed", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec"), }, }, - "task": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Task defines the task to execute", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TaskStatus(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{ - Description: "TaskStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "started": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Started determines if the task was started", - 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: "", }, }, - "conditions": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", - 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Self"), }, }, }, }, }, - "podPhase": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +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{ + "accessKey": { 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: "AccessKey is an optional access key to use instead of the provided one", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, }, }, - "observedGeneration": { + }, + }, + }, + } +} + +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: "ObservedGeneration is the latest generation observed by the controller.", - Type: []string{"integer"}, - Format: "int64", + Description: "The name of the currently logged in user", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserInfo"), }, }, - "containerState": { + "team": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: This is not set anymore after migrating to runners ContainerState describes the container state of the task", - Ref: ref("k8s.io/api/core/v1.ContainerStatus"), + Description: "The name of the currently logged in team", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), }, }, - "owner": { + "accessKey": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity"), + Description: "The name of the currently used access key", + Type: []string{"string"}, + Format: "", }, }, - "cluster": { + "accessKeyScope": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Description: "The scope of the currently used access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + }, + }, + "accessKeyType": { + SchemaProps: spec.SchemaProps{ + Description: "The type of the currently used access key", + Type: []string{"string"}, + Format: "", + }, + }, + "subject": { + SchemaProps: spec.SchemaProps{ + Description: "The subject of the currently logged in user", + Type: []string{"string"}, + Format: "", + }, + }, + "uid": { + SchemaProps: spec.SchemaProps{ + 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: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "chatAuthToken": { + SchemaProps: spec.SchemaProps{ + Description: "ChatAuthToken is the token used to authenticate with the in-product chat widget in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "instanceID": { + SchemaProps: spec.SchemaProps{ + Description: "InstanceID is the loft instance id", + 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/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity", "k8s.io/api/core/v1.ContainerStatus"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserInfo", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_Team(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: "Team holds the team information", + Description: "User holds the user information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -16138,24 +16317,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/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TeamAccessKeys(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{ @@ -16178,130 +16357,105 @@ func schema_pkg_apis_management_v1_TeamAccessKeys(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "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/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TeamAccessKeysList(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{ 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": { + "resourceAttributes": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "ResourceAuthorizationAttributes describes information for a resource access request", + Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), }, }, - "items": { + "nonResourceAttributes": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys"), - }, - }, - }, + Description: "NonResourceAttributes describes information for a non-resource access request", + Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, } } -func schema_pkg_apis_management_v1_TeamClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Reason is optional. It indicates why a request was allowed or denied.", + Type: []string{"string"}, + Format: "", }, }, - "clusters": { + "evaluationError": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts"), - }, - }, - }, + 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{"allowed"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TeamClustersList(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{ - Type: []string{"object"}, + Description: "SharedSecret holds the secret information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -16320,32 +16474,30 @@ func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "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/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TeamList(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{ @@ -16378,7 +16530,7 @@ func schema_pkg_apis_management_v1_TeamList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Team"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret"), }, }, }, @@ -16389,26 +16541,27 @@ func schema_pkg_apis_management_v1_TeamList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TeamSpec(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{ "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 a cluster access object", + Description: "Description describes a shared secret", Type: []string{"string"}, Format: "", }, @@ -16419,79 +16572,59 @@ func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common Ref: ref("github.com/loft-sh/api/v4/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": { + "data": { SchemaProps: spec.SchemaProps{ - Description: "The loft users that belong to a team", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + 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: "", - }, - }, - }, - }, - }, - "groups": { - 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: "", - }, - }, - }, - }, - }, - "imagePullSecrets": { - 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/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), + Type: []string{"string"}, + Format: "byte", }, }, }, }, }, - "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 which will be transformed to Roles and RoleBindings", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "access": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +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: "Access holds the access rights for users and teams", + 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, @@ -16501,25 +16634,15 @@ func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_management_v1_TeamStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_TranslateVClusterResourceName(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: "TranslateVClusterResourceName holds rename request and response data for given resource", + Description: "SpaceInstance holds the SpaceInstance information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -16545,24 +16668,24 @@ func schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref common.Refe "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(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{ @@ -16595,7 +16718,7 @@ func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance"), }, }, }, @@ -16606,215 +16729,194 @@ func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref common. }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TranslateVClusterResourceNameSpec(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{ - Description: "TranslateVClusterResourceNameSpec holds the specification", + Description: "SpaceInstanceSpec holds the specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of resource we want to rename", - Default: "", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the name of namespace in which this resource is running", - Default: "", + Description: "Description describes a space instance", Type: []string{"string"}, Format: "", }, }, - "vclusterName": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "VClusterName is the name of vCluster in which this resource is running", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - }, - Required: []string{"name", "namespace", "vclusterName"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "TranslateVClusterResourceNameStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "templateRef": { SchemaProps: spec.SchemaProps{ - Description: "Name is the converted name of resource", - Type: []string{"string"}, - Format: "", + Description: "TemplateRef holds the space template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), }, }, - }, - }, - }, - } -} - -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": { + "template": { 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: "Template is the inline template to use for space creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), }, }, - "apiVersion": { + "clusterRef": { 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: "ClusterRef is the reference to the connected cluster holding this space", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef"), }, }, - "metadata": { + "parameters": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + 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: "", }, }, - "spec": { + "extraAccessRules": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec"), + 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/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), + }, + }, + }, }, }, - "status": { + "access": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus"), + 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_UserAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SpaceInstanceStatus holds the status", + 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 describes the current phase the space instance is in", 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", }, }, - "accessKeys": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + 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/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_management_v1_UserAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "spaceObjects": { 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: "SpaceObjects are the objects that were applied within the virtual cluster space", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), }, }, - "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", - Type: []string{"string"}, + Description: "Space is the template rendered with all the parameters", + Ref: ref("github.com/loft-sh/api/v4/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: "", }, }, - "metadata": { + "sleepModeConfig": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), }, }, - "items": { + "canUse": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys"), - }, - }, - }, + Description: "CanUse specifies if the requester can use the instance", + Type: []string{"boolean"}, + Format: "", + }, + }, + "canUpdate": { + SchemaProps: spec.SchemaProps{ + Description: "CanUpdate specifies if the requester can update the instance", + Type: []string{"boolean"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"}, } } -func schema_pkg_apis_management_v1_UserClusters(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{ - Type: []string{"object"}, + Description: "SpaceTemplate holds the information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -16836,28 +16938,27 @@ func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) co Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "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/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserClustersList(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{ @@ -16890,7 +16991,7 @@ func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate"), }, }, }, @@ -16901,66 +17002,81 @@ func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserInfo(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{ - "name": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Name is the kubernetes name of the object", + Description: "DisplayName is the name that is shown in the UI", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "Description describes the space template", Type: []string{"string"}, Format: "", }, }, - "icon": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the icon of the user / team", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "username": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", - Type: []string{"string"}, - Format: "", + Description: "Template holds the space template", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), }, }, - "email": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "The users email address", - Type: []string{"string"}, - Format: "", + 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/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), + }, + }, + }, }, }, - "subject": { + "versions": { SchemaProps: spec.SchemaProps{ - Description: "The user subject", - Type: []string{"string"}, - Format: "", + 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/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion"), + }, + }, + }, }, }, - "teams": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Teams are the teams the user is part of", + 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/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, @@ -16970,63 +17086,43 @@ func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_UserList(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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "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/loft-sh/api/v4/pkg/apis/management/v1.User"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.User", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "User holds the user information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -17048,43 +17144,27 @@ func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "clusterRoles": { + "spec": { 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/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec"), }, }, - "namespaceRoles": { + "status": { 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/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserPermissionsList(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{ @@ -17117,7 +17197,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/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview"), }, }, }, @@ -17128,143 +17208,183 @@ func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserPermissionsRole(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{ - "clusterRole": { + "resourceAttributes": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the name of the cluster role assigned to this user.", - Type: []string{"string"}, - Format: "", + Description: "ResourceAuthorizationAttributes describes information for a resource access request", + Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), }, }, - "role": { + "nonResourceAttributes": { SchemaProps: spec.SchemaProps{ - Description: "Role is the name of the role assigned to this user.", - Type: []string{"string"}, - Format: "", + Description: "NonResourceAttributes describes information for a non-resource access request", + Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), }, }, - "namespace": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "Namespace where this rules are valid.", + 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: "", }, }, - "rules": { + "groups": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Rules are the roles rules", + 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("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": { + "extra": { 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": { + 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: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "UID information about the requesting user.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + }, + }, + }, + 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": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Allowed is required. True if the action would be allowed, false otherwise.", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "displayName": { + "denied": { SchemaProps: spec.SchemaProps{ - Description: "The new display name shown in the UI", - 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: "", }, }, - "username": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Username is the new username of the user", + Description: "Reason is optional. It indicates why a request was allowed or denied.", Type: []string{"string"}, Format: "", }, }, - "password": { + "evaluationError": { SchemaProps: spec.SchemaProps{ - Description: "Password is the new password of the user", + 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: "", }, }, - "currentPassword": { + }, + Required: []string{"allowed"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_Task(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Task holds the Task information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "CurrentPassword is the current password of the user", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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 the new email of 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: "", }, }, - "icon": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the new icon of the user", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "custom": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Custom is custom information that should be saved of the user", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserProfileList(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{ @@ -17297,7 +17417,7 @@ func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Task"), }, }, }, @@ -17308,11 +17428,11 @@ func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserQuotasOptions(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{ @@ -17332,28 +17452,21 @@ func schema_pkg_apis_management_v1_UserQuotasOptions(ref common.ReferenceCallbac Format: "", }, }, - "cluster": { + "metadata": { 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: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserSpacesOptions(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{ @@ -17373,260 +17486,251 @@ func schema_pkg_apis_management_v1_UserSpacesOptions(ref common.ReferenceCallbac Format: "", }, }, - "cluster": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Cluster where to retrieve spaces from", - Type: []string{"array"}, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "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/loft-sh/api/v4/pkg/apis/management/v1.TaskLog"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserSpec(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{ - "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": { + "follow": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "Follow the log stream of the pod. Defaults to false.", + Type: []string{"boolean"}, + Format: "", }, }, - "username": { + "previous": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", - Type: []string{"string"}, + Description: "Return previous terminated container logs. Defaults to false.", + Type: []string{"boolean"}, Format: "", }, }, - "icon": { + "sinceSeconds": { SchemaProps: spec.SchemaProps{ - Description: "The URL to an icon that should be shown for the user", - 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", }, }, - "email": { + "sinceTime": { SchemaProps: spec.SchemaProps{ - Description: "The users email address", - 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("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, - "subject": { + "timestamps": { SchemaProps: spec.SchemaProps{ - Description: "The user subject as presented by the token", - Type: []string{"string"}, + 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: "", }, }, - "groups": { + "tailLines": { 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: "", - }, - }, - }, + 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", }, }, - "ssoGroups": { + "limitBytes": { 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: "", - }, - }, - }, + 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", }, }, - "passwordRef": { + "insecureSkipTLSVerifyBackend": { SchemaProps: spec.SchemaProps{ - Description: "A reference to the user password", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + 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: "", }, }, - "codesRef": { + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_management_v1_TaskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TaskSpec holds the specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "A reference to the users access keys", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, }, - "imagePullSecrets": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "ImagePullSecrets holds secret references to image pull secrets the user 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/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "tokenGeneration": { + "scope": { SchemaProps: spec.SchemaProps{ - Description: "TokenGeneration can be used to invalidate all user tokens", - Type: []string{"integer"}, - Format: "int64", + Description: "Scope defines the scope of the access key.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), }, }, - "disabled": { + "owner": { 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: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "clusterRoles": { + "target": { 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/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), - }, - }, - }, + Description: "Target where this task should get executed", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target"), }, }, - "access": { + "task": { 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "Task defines the task to execute", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_UserStatus(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{ - Description: "UserStatus holds the status of an user", + Description: "TaskStatus holds the status", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "teams": { + "started": { SchemaProps: spec.SchemaProps{ - Description: "Teams the user is currently part of", + 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: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, - }, - }, - }, - } -} - -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{ - "kind": { + "podPhase": { 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: "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"}, }, }, - "apiVersion": { + "observedGeneration": { 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: "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("k8s.io/api/core/v1.ContainerStatus"), + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity"), }, }, "cluster": { 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: "", - }, - }, - }, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity", "k8s.io/api/core/v1.ContainerStatus"}, } } -func schema_pkg_apis_management_v1_VirtualClusterAccessKey(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: "VirtualClusterAccessKey holds the access key for the virtual cluster", + Description: "Team holds the team information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -17649,22 +17753,27 @@ func schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref common.ReferenceC Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "accessKey": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "AccessKey is the access key used by the agent", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(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{ @@ -17687,37 +17796,35 @@ func schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref common.Refere "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "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/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstance(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{ - Description: "VirtualClusterInstance holds the VirtualClusterInstance information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -17736,35 +17843,36 @@ func schema_pkg_apis_management_v1_VirtualClusterInstance(ref common.ReferenceCa "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(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: "VirtualClusterInstanceKubeConfig holds kube config request and response data for virtual clusters", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -17786,27 +17894,28 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref common.R Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec"), - }, - }, - "status": { + "clusters": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(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{ @@ -17839,7 +17948,7 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters"), }, }, }, @@ -17850,49 +17959,11 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref comm }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "certificateTTL": { - 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 loft 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", - }, - }, - }, - }, - }, - } -} - -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{ - "kubeConfig": { - SchemaProps: spec.SchemaProps{ - Description: "KubeConfig holds the final kubeconfig output", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceList(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{ @@ -17925,7 +17996,7 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref common.Referen Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Team"), }, }, }, @@ -17936,11 +18007,11 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref common.Referen }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceLog(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{ @@ -17966,15 +18037,28 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref common.Referenc Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, + "objectPermissions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission"), + }, + }, + }, + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(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{ @@ -18007,7 +18091,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/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions"), }, }, }, @@ -18018,11 +18102,11 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.Refe }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(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{ @@ -18042,93 +18126,154 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref common.R Format: "", }, }, - "container": { + "metadata": { 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: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "follow": { + "members": { SchemaProps: spec.SchemaProps{ - Description: "Follow the log stream of the pod. Defaults to false.", - Type: []string{"boolean"}, - 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/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), + }, + }, + }, }, }, - "previous": { + "projectMemberships": { SchemaProps: spec.SchemaProps{ - Description: "Return previous terminated container logs. Defaults to false.", - Type: []string{"boolean"}, - 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/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), + }, + }, + }, }, }, - "sinceSeconds": { + "managementRoles": { 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: "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/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), + }, + }, + }, }, }, - "sinceTime": { + "clusterAccessRoles": { 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("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + 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/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), + }, + }, + }, }, }, - "timestamps": { + "virtualClusterRoles": { 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: "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/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_TeamPermissionsList(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: "", }, }, - "tailLines": { + "apiVersion": { 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: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "", }, }, - "limitBytes": { + "metadata": { 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", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "insecureSkipTLSVerifyBackend": { + "items": { 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: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(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: "VirtualClusterInstanceSpec 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 virtual cluster instance", + Description: "Description describes a cluster access object", Type: []string{"string"}, Format: "", }, @@ -18139,41 +18284,65 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref common.Referen Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "templateRef": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the virtual cluster template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Description: "The username of the team that will be used for identification and docker registry namespace", + Type: []string{"string"}, + Format: "", }, }, - "template": { + "users": { 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/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + Description: "The loft users that belong to a team", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "clusterRef": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRef is the reference to the connected cluster holding this virtual cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef"), + 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: "", + }, + }, + }, }, }, - "parameters": { + "imagePullSecrets": { 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: "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/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), + }, + }, + }, }, }, - "extraAccessRules": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", + 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/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), }, }, }, @@ -18181,7 +18350,7 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref common.Referen }, "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{ @@ -18193,149 +18362,182 @@ 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": { - SchemaProps: spec.SchemaProps{ - Description: "External specifies if the virtual cluster is managed by the platform agent or externally.", - Type: []string{"boolean"}, - Format: "", - }, - }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(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: "VirtualClusterInstanceStatus holds the status", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TranslateVClusterResourceName holds rename request and response data for given resource", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the virtual cluster instance is in", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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 why the cluster is in the current phase", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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 why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "serviceUID": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "ServiceUID is the service uid of the virtual cluster to uniquely identify it.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(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: "", }, }, - "deployHash": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "DeployHash is the hash of the last deployed values.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "", }, }, - "conditions": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", - Type: []string{"array"}, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName"), }, }, }, }, }, - "virtualClusterObjects": { - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", - Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), - }, - }, - "virtualCluster": { - SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), - }, - }, - "ignoreReconciliation": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_TranslateVClusterResourceNameSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TranslateVClusterResourceNameSpec holds the specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { 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: "Name is the name of resource we want to rename", + Default: "", + Type: []string{"string"}, Format: "", }, }, - "sleepModeConfig": { - SchemaProps: spec.SchemaProps{ - Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), - }, - }, - "canUse": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "CanUse specifies if the requester can use the instance", - Type: []string{"boolean"}, + Description: "Namespace is the name of namespace in which this resource is running", + Default: "", + Type: []string{"string"}, Format: "", }, }, - "canUpdate": { + "vclusterName": { SchemaProps: spec.SchemaProps{ - Description: "CanUpdate specifies if the requester can update the instance", - Type: []string{"boolean"}, + Description: "VClusterName is the name of vCluster in which this resource is running", + Default: "", + Type: []string{"string"}, Format: "", }, }, - "online": { + }, + Required: []string{"name", "namespace", "vclusterName"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TranslateVClusterResourceNameStatus holds the status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "Online specifies if there is at least one network peer available for an agentless vCluster.", - Type: []string{"boolean"}, + Description: "Name is the converted name of resource", + Type: []string{"string"}, Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_management_v1_VirtualClusterTemplate(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: "VirtualClusterTemplate holds the information", + Description: "User holds the user information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -18361,24 +18563,24 @@ func schema_pkg_apis_management_v1_VirtualClusterTemplate(ref common.ReferenceCa "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterTemplateList(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{ @@ -18401,135 +18603,112 @@ func schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref common.Referen "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "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/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(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: "VirtualClusterTemplateSpec 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 is 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 the virtual cluster template", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template holds the virtual cluster template", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), - }, - }, - }, - }, - }, - "versions": { + "metadata": { 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/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys"), }, }, }, }, }, - "spaceTemplateRef": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: SpaceTemplate to use to create the virtual cluster space if it does not exist", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef"), - }, - }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(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: "VirtualClusterTemplateStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "apps": { + "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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "clusters": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts"), }, }, }, @@ -18539,220 +18718,132 @@ func schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref common.Refer }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_Access(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{ - Description: "Access describes the access to a secret", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is an optional name that is used for this access rule", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "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: "", - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "", }, }, - "users": { + "metadata": { 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: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "teams": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Teams specifies which teams should be able to access this secret with the aforementioned verbs", - 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/loft-sh/api/v4/pkg/apis/management/v1.UserClusters"), }, }, }, }, }, }, - Required: []string{"verbs"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_AccessKey(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{ - Description: "AccessKey holds the session information", - 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 kubernetes name of the object", 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: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeySpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_storage_v1_AccessKeyIdentity(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "userId": { + "icon": { SchemaProps: spec.SchemaProps{ - Description: "The subject of the user", + Description: "Icon is the icon of the user / team", 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", + Description: "The username that is used to login", Type: []string{"string"}, Format: "", }, }, "email": { SchemaProps: spec.SchemaProps{ - Description: "The user email", + Description: "The users email address", Type: []string{"string"}, Format: "", }, }, - "emailVerified": { + "subject": { SchemaProps: spec.SchemaProps{ - Description: "If the user email was verified", - Type: []string{"boolean"}, + Description: "The user subject", + Type: []string{"string"}, Format: "", }, }, - "groups": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "The groups from the identity provider", + 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/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), }, }, }, }, }, - "connector": { - SchemaProps: spec.SchemaProps{ - Description: "Connector is the name of the connector this access key was created from", - 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", - }, - }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_storage_v1_AccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserList(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": { SchemaProps: spec.SchemaProps{ @@ -18781,7 +18872,7 @@ func schema_pkg_apis_storage_v1_AccessKeyList(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.User"), }, }, }, @@ -18792,381 +18883,321 @@ func schema_pkg_apis_storage_v1_AccessKeyList(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.User", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_AccessKeyOIDC(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{ - "idToken": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The current id token that was created during login", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "byte", + Format: "", }, }, - "accessToken": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The current access token that was created during login", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "byte", + Format: "", }, }, - "refreshToken": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The current refresh token that was created during login", - Type: []string{"string"}, - Format: "byte", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "lastRefresh": { + "objectPermissions": { SchemaProps: spec.SchemaProps{ - Description: "The last time the id token was refreshed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clientId": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ClientId the token was generated for", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "", }, }, - "nonce": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Nonce 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: "", }, }, - "redirectUri": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "RedirectUri to use", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "scopes": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Scopes to use", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_AccessKeyScope(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{ - "roles": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Roles is a set of managed permissions to apply to the access key.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRole"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole"), }, }, }, }, }, - "projects": { + "namespaceRoles": { SchemaProps: spec.SchemaProps{ - Description: "Projects specifies the projects the access key should have access to.", + 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeProject"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole"), }, }, }, }, }, - "spaces": { + "teamMemberships": { SchemaProps: spec.SchemaProps{ - Description: "Spaces specifies the spaces the access key is allowed to access.", + 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeSpace"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), }, }, }, }, }, - "virtualClusters": { + "projectMemberships": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusters specifies the virtual clusters the access key is allowed to access.", + 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), }, }, }, }, }, - "clusters": { + "managementRoles": { SchemaProps: spec.SchemaProps{ - Description: "Clusters specifies the project cluster the access key is allowed to access.", + 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeCluster"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), }, }, }, }, }, - "rules": { + "clusterAccessRoles": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use Projects, Spaces and VirtualClusters instead Rules specifies the rules that should apply to the access key.", + 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRule"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), }, }, }, }, }, - "allowLoftCli": { + "virtualClusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "AllowLoftCLI allows certain read-only management requests to make sure loft 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: "", + 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/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeProject", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRole", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeSpace", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster"}, - } -} - -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: "", - }, - }, - }, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_AccessKeyScopeProject(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "project": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Project is the name of the project. You can specify * to select all projects.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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_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": { + "apiVersion": { 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 - `\"loft-cli\"`\n - `\"network-peer\"`\n - `\"runner\"`\n - `\"vcluster\"`", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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{}{"agent", "loft-cli", "network-peer", "runner", "vcluster"}, }, }, - "projects": { + "metadata": { 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: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "virtualClusters": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusters specifies the virtual clusters the access key is allowed to access.", - 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/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_AccessKeyScopeRule(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{ - Description: "AccessKeyScopeRule describes a rule for the access key", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "verbs": { - 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: "", - }, - }, - }, - }, - }, - "resources": { - 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/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources"), - }, - }, - }, - }, - }, - "namespaces": { - 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: "", - }, - }, - }, - }, - }, - "nonResourceURLs": { + "clusterRole": { 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", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "ClusterRole is the name of the cluster role assigned to this user.", + Type: []string{"string"}, + Format: "", }, }, - "requestTargets": { + "role": { SchemaProps: spec.SchemaProps{ - 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: "", - }, - }, - }, + Description: "Role is the name of the role assigned to this user.", + Type: []string{"string"}, + Format: "", }, }, - "cluster": { + "namespace": { 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.", + Description: "Namespace where this rules are valid.", Type: []string{"string"}, Format: "", }, }, - "virtualClusters": { + "rules": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusters that this rule matches. Only applies to virtual cluster requests. An empty list means no restrictions will apply.", + 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyVirtualCluster"), + Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), }, }, }, @@ -19176,256 +19207,458 @@ func schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyVirtualCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources"}, + "k8s.io/api/rbac/v1.PolicyRule"}, } } -func schema_pkg_apis_storage_v1_AccessKeyScopeSpace(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{ - "project": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Project is the name of 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: "", }, }, - "space": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Space is the name of the space. You can specify * to select all spaces.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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_AccessKeyScopeVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "project": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Project is the name of the project.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "The new display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "virtualCluster": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster is the name of the virtual cluster to access. You can specify * to select all virtual clusters.", + Description: "Username is the new username of the user", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -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": { + "password": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "Password is the new password of the user", Type: []string{"string"}, Format: "", }, }, - "description": { + "currentPassword": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "CurrentPassword is the current password of the user", Type: []string{"string"}, Format: "", }, }, - "user": { + "email": { SchemaProps: spec.SchemaProps{ - Description: "The user this access key refers to", + Description: "Email is the new email of the user", Type: []string{"string"}, Format: "", }, }, - "team": { + "icon": { SchemaProps: spec.SchemaProps{ - Description: "The team this access key refers to", + Description: "Icon is the new icon of the user", Type: []string{"string"}, Format: "", }, }, - "subject": { + "custom": { SchemaProps: spec.SchemaProps{ - Description: "Subject is a generic subject that can be used instead of user or team", + Description: "Custom is custom information that should be saved of the user", Type: []string{"string"}, Format: "", }, }, - "groups": { + "secrets": { SchemaProps: spec.SchemaProps{ - Description: "Groups specifies extra groups to apply when using this access key", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ + 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{ - Default: "", - Type: []string{"string"}, - Format: "", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret"), }, }, }, }, }, - "key": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_UserProfileList(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": { + "apiVersion": { 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: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "", }, }, - "ttl": { - SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access key", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "ttlAfterLastActivity": { + "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: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "scope": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile"), + }, + }, + }, }, }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +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": { SchemaProps: spec.SchemaProps{ - Description: "The type of an access key, which basically describes if the access key is user managed or managed by loft itself.", + Description: "Type is the type of the secret", 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity"), - }, - }, - "identityRefresh": { + "data": { SchemaProps: spec.SchemaProps{ - Description: "The last time the identity was refreshed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "Data is the data of the secret", + Type: []string{"string"}, + Format: "", }, }, - "oidcProvider": { + }, + }, + }, + } +} + +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: "If the token is a refresh token, contains information about it", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "", }, }, - "parent": { + "apiVersion": { 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.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "", }, }, - "oidcLogin": { + "cluster": { 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), + Description: "Cluster where to retrieve quotas from", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_storage_v1_AccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserSpacesOptions(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"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastActivity": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The last time this access key was used to access the api", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "", + }, + }, + }, }, }, }, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_storage_v1_AccessKeyVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "name": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Name of the virtual cluster. Empty means all virtual clusters.", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the virtual cluster. Empty means all namespaces.", + 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/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + 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{ + 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/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + }, + }, + "codesRef": { + SchemaProps: spec.SchemaProps{ + Description: "A reference to the users access keys", + Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), + }, + }, + }, + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_AllowedCluster(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{ - Type: []string{"object"}, + Description: "UserStatus holds the status of an user", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the cluster that is allowed to create an environment in.", - Type: []string{"string"}, - Format: "", + 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: "", + }, + }, + }, }, }, }, @@ -19434,34 +19667,77 @@ func schema_pkg_apis_storage_v1_AllowedCluster(ref common.ReferenceCallback) com } } -func schema_pkg_apis_storage_v1_AllowedClusterAccountTemplate(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{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of a cluster account template", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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 virtual clusters from", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, }, }, }, } } -func schema_pkg_apis_storage_v1_AllowedRunner(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{ - Type: []string{"object"}, + Description: "VirtualClusterAccessKey holds the access key for the virtual cluster", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the runner that is allowed to create an environment in.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "accessKey": { + SchemaProps: spec.SchemaProps{ + Description: "AccessKey is the access key used by the agent", Type: []string{"string"}, Format: "", }, @@ -19469,10 +19745,12 @@ func schema_pkg_apis_storage_v1_AllowedRunner(ref common.ReferenceCallback) comm }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_AllowedTemplate(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{ @@ -19480,43 +19758,51 @@ func schema_pkg_apis_storage_v1_AllowedTemplate(ref common.ReferenceCallback) co Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind of the template that is allowed. Currently only supports DevPodWorkspaceTemplate, VirtualClusterTemplate & SpaceTemplate", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "", }, }, - "group": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Group of the template that is allowed. Currently only supports storage.loft.sh", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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 template", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "isDefault": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "IsDefault specifies if the template should be used as a default", - Type: []string{"boolean"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_App(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: "App holds the app information", + Description: "VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -19542,186 +19828,4001 @@ func schema_pkg_apis_storage_v1_App(ref common.ReferenceCallback) common.OpenAPI "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_AppConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "defaultNamespace": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DefaultNamespace is the default namespace this app should installed in.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "", }, }, - "readme": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Readme is a longer markdown string that describes the 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: "", }, }, - "icon": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Icon holds an URL to the app icon", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "config": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Config is the helm config to use to deploy the helm release", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase"), + }, + }, + }, }, }, - "wait": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "connector": { SchemaProps: spec.SchemaProps{ - Description: "Wait determines if Loft should wait during deploy for the app to become ready", - Type: []string{"boolean"}, + 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: "", }, }, - "timeout": { + }, + }, + }, + } +} + +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: "Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)", + 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: "", }, }, - "parameters": { + }, + }, + }, + } +} + +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: "Parameters define additional app parameters that will set helm values", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(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"}, + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +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": { + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "certificateTTL": { + 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 loft 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", + }, + }, + "server": { + SchemaProps: spec.SchemaProps{ + Description: "Server allows user to override server in the kubeconfig.", + Type: []string{"string"}, + Format: "", + }, + }, + "clientCert": { + SchemaProps: spec.SchemaProps{ + Description: "ClientCert, if set to true, will return kube config with generated client certs instead of platform token", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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{ + "kubeConfig": { + SchemaProps: spec.SchemaProps{ + Description: "KubeConfig holds the final kubeconfig output", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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{ + "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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceLog(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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +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{ + "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: "", + }, + }, + "container": { + 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: "", + }, + }, + "follow": { + SchemaProps: spec.SchemaProps{ + Description: "Follow the log stream of the pod. Defaults to false.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "previous": { + SchemaProps: spec.SchemaProps{ + Description: "Return previous terminated container logs. Defaults to false.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "sinceSeconds": { + 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", + }, + }, + "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("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "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{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +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": { + SchemaProps: spec.SchemaProps{ + Description: "Description describes a virtual cluster instance", + Type: []string{"string"}, + Format: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "templateRef": { + SchemaProps: spec.SchemaProps{ + Description: "TemplateRef holds the virtual cluster template reference", + Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/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/loft-sh/api/v4/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": { + 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/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), + }, + }, + }, + }, + }, + "access": { + 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "networkPeer": { + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterInstanceStatus holds the status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + 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 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/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, + "virtualClusterObjects": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", + Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), + }, + }, + "virtualCluster": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualCluster is the template rendered with all the parameters", + Ref: ref("github.com/loft-sh/api/v4/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: "", + }, + }, + "sleepModeConfig": { + SchemaProps: spec.SchemaProps{ + Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + }, + }, + "canUse": { + SchemaProps: spec.SchemaProps{ + Description: "CanUse specifies if the requester can use the instance", + Type: []string{"boolean"}, + Format: "", + }, + }, + "canUpdate": { + SchemaProps: spec.SchemaProps{ + Description: "CanUpdate specifies if the requester can update the instance", + Type: []string{"boolean"}, + Format: "", + }, + }, + "online": { + SchemaProps: spec.SchemaProps{ + Description: "Online specifies if there is at least one network peer available for an agentless vCluster.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + } +} + +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: "Namespace of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + "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/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterSchema(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", + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterSchemaList(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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(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_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: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterTemplateList(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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterTemplateSpec holds the specification", + 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/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template holds the virtual cluster template", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion"), + }, + }, + }, + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "spaceTemplateRef": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: SpaceTemplate to use to create the virtual cluster space if it does not exist", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef", "github.com/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/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": { + 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_storage_v1_AccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AccessKey holds the session 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeySpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_storage_v1_AccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AccessKeyList contains a list of AccessKey", + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_storage_v1_AccessKeyOIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "idToken": { + SchemaProps: spec.SchemaProps{ + Description: "The current id token that was created during login", + Type: []string{"string"}, + Format: "byte", + }, + }, + "accessToken": { + SchemaProps: spec.SchemaProps{ + Description: "The current access token that was created during login", + Type: []string{"string"}, + Format: "byte", + }, + }, + "refreshToken": { + SchemaProps: spec.SchemaProps{ + Description: "The current refresh token that was created during login", + Type: []string{"string"}, + Format: "byte", + }, + }, + "lastRefresh": { + SchemaProps: spec.SchemaProps{ + Description: "The last time the id token was refreshed", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(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": { + SchemaProps: spec.SchemaProps{ + Description: "Nonce to use", + Type: []string{"string"}, + Format: "", + }, + }, + "redirectUri": { + SchemaProps: spec.SchemaProps{ + Description: "RedirectUri to use", + Type: []string{"string"}, + Format: "", + }, + }, + "scopes": { + SchemaProps: spec.SchemaProps{ + Description: "Scopes to use", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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{ + "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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeProject"), + }, + }, + }, + }, + }, + "spaces": { + 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeSpace"), + }, + }, + }, + }, + }, + "virtualClusters": { + 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/loft-sh/api/v4/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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRule"), + }, + }, + }, + }, + }, + "allowLoftCli": { + SchemaProps: spec.SchemaProps{ + Description: "AllowLoftCLI allows certain read-only management requests to make sure loft 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: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeProject", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRole", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeSpace", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster"}, + } +} + +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_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": { + SchemaProps: spec.SchemaProps{ + Description: "Project is the name of the project. You can specify * to select all projects.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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 - `\"loft-cli\"`\n - `\"network-peer\"`\n - `\"runner\"`\n - `\"vcluster\"`\n - `\"workspace\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"agent", "loft-cli", "network-peer", "runner", "vcluster", "workspace"}, + }, + }, + "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: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "virtualClusters": { + 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: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_AccessKeyScopeRule(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"}, + Properties: map[string]spec.Schema{ + "verbs": { + 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: "", + }, + }, + }, + }, + }, + "resources": { + 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/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources"), + }, + }, + }, + }, + }, + "namespaces": { + 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: "", + }, + }, + }, + }, + }, + "nonResourceURLs": { + 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", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "requestTargets": { + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + }, + }, + }, + "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": { + SchemaProps: spec.SchemaProps{ + 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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyVirtualCluster"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyVirtualCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources"}, + } +} + +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{ + "project": { + SchemaProps: spec.SchemaProps{ + Description: "Project is the name of the project.", + Type: []string{"string"}, + Format: "", + }, + }, + "space": { + SchemaProps: spec.SchemaProps{ + Description: "Space is the name of the space. You can specify * to select all spaces.", + 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": { + SchemaProps: spec.SchemaProps{ + Description: "Project is the name of the project.", + Type: []string{"string"}, + Format: "", + }, + }, + "virtualCluster": { + 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"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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: "The display name shown in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description describes an app", + Type: []string{"string"}, + Format: "", + }, + }, + "user": { + SchemaProps: spec.SchemaProps{ + 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: "Subject is a generic subject that can be used instead of user or team", + Type: []string{"string"}, + Format: "", + }, + }, + "groups": { + SchemaProps: spec.SchemaProps{ + 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: "", + 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/loft-sh/api/v4/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 loft 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/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), + }, + }, + "identityRefresh": { + SchemaProps: spec.SchemaProps{ + Description: "The last time the identity was refreshed", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "oidcProvider": { + SchemaProps: spec.SchemaProps{ + Description: "If the token is a refresh token, contains information about it", + Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +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("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +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{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the virtual cluster. Empty means all virtual clusters.", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the virtual cluster. Empty means all namespaces.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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{ + Description: "Name is the name of the cluster that is allowed to create an environment in.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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{ + Description: "Name is the name of a cluster account template", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind of the template that is allowed. Currently only supports DevPodWorkspaceTemplate, VirtualClusterTemplate & SpaceTemplate", + Type: []string{"string"}, + Format: "", + }, + }, + "group": { + SchemaProps: spec.SchemaProps{ + Description: "Group of the template that is allowed. Currently only supports storage.loft.sh", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the template", + Type: []string{"string"}, + Format: "", + }, + }, + "isDefault": { + SchemaProps: spec.SchemaProps{ + Description: "IsDefault specifies if the template should be used as a default", + 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": { + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +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": { + SchemaProps: spec.SchemaProps{ + Description: "DefaultNamespace is the default namespace this app should installed in.", + Type: []string{"string"}, + Format: "", + }, + }, + "readme": { + SchemaProps: spec.SchemaProps{ + Description: "Readme is a longer markdown string that describes the app.", + Type: []string{"string"}, + Format: "", + }, + }, + "icon": { + SchemaProps: spec.SchemaProps{ + Description: "Icon holds an URL to the app icon", + 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("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), + }, + }, + "wait": { + SchemaProps: spec.SchemaProps{ + Description: "Wait determines if Loft 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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/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": { + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.App"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.App", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +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": { + SchemaProps: spec.SchemaProps{ + Description: "Variable is the path of the variable. Can be foo or foo.bar for nested objects.", + Type: []string{"string"}, + Format: "", + }, + }, + "label": { + SchemaProps: spec.SchemaProps{ + Description: "Label is the label to show for this parameter", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description is the description to show for this parameter", + Type: []string{"string"}, + Format: "", + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + 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: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "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": { + SchemaProps: spec.SchemaProps{ + Description: "Required specifies if this parameter is required", + Type: []string{"boolean"}, + Format: "", + }, + }, + "defaultValue": { + SchemaProps: spec.SchemaProps{ + Description: "DefaultValue is the default value if none is specified", + Type: []string{"string"}, + Format: "", + }, + }, + "placeholder": { + SchemaProps: spec.SchemaProps{ + Description: "Placeholder shown in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "invalidation": { + SchemaProps: spec.SchemaProps{ + Description: "Invalidation regex that if matched will reject the input", + Type: []string{"string"}, + Format: "", + }, + }, + "validation": { + SchemaProps: spec.SchemaProps{ + Description: "Validation regex that if matched will allow the input", + Type: []string{"string"}, + Format: "", + }, + }, + "section": { + 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: "", + }, + }, + }, + }, + }, + } +} + +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{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the target app", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace specifies in which target namespace the app should get deployed in", + Type: []string{"string"}, + Format: "", + }, + }, + "releaseName": { + SchemaProps: spec.SchemaProps{ + Description: "ReleaseName is the name of the app release", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version of the app", + Type: []string{"string"}, + Format: "", + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters to use for the app", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_AppSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AppSpec 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/loft-sh/api/v4/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": { + 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: "", + }, + }, + }, + }, + }, + "defaultNamespace": { + SchemaProps: spec.SchemaProps{ + Description: "DefaultNamespace is the default namespace this app should installed in.", + Type: []string{"string"}, + Format: "", + }, + }, + "readme": { + SchemaProps: spec.SchemaProps{ + Description: "Readme is a longer markdown string that describes the app.", + Type: []string{"string"}, + Format: "", + }, + }, + "icon": { + SchemaProps: spec.SchemaProps{ + Description: "Icon holds an URL to the app icon", + 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("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), + }, + }, + "wait": { + SchemaProps: spec.SchemaProps{ + Description: "Wait determines if Loft 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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"), + }, + }, + "versions": { + SchemaProps: spec.SchemaProps{ + 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/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion"), + }, + }, + }, + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_storage_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_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{ + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Type is the task type. Defaults to Upgrade", + Type: []string{"string"}, + Format: "", + }, + }, + "rollbackRevision": { + SchemaProps: spec.SchemaProps{ + Description: "RollbackRevision is the revision to rollback to", + Type: []string{"string"}, + Format: "", + }, + }, + "appReference": { + SchemaProps: spec.SchemaProps{ + Description: "AppReference is the reference to the app to deploy", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"}, + } +} + +func schema_pkg_apis_storage_v1_AppVersion(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": { + SchemaProps: spec.SchemaProps{ + Description: "Readme is a longer markdown string that describes the app.", + Type: []string{"string"}, + Format: "", + }, + }, + "icon": { + SchemaProps: spec.SchemaProps{ + Description: "Icon holds an URL to the app icon", + 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("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), + }, + }, + "wait": { + SchemaProps: spec.SchemaProps{ + Description: "Wait determines if Loft 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/loft-sh/api/v4/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/loft-sh/api/v4/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{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"}, + } +} + +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{ + "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": { + SchemaProps: spec.SchemaProps{ + Description: "Cluster defines the name of the cluster that ArgoCD is deployed into -- if not provided this will default to 'loft-cluster'.", + Type: []string{"string"}, + Format: "", + }, + }, + "virtualClusterInstance": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterInstance defines the name of *virtual cluster* (instance) that ArgoCD is deployed into. If provided, Cluster will be ignored and Loft will assume that ArgoCD is running in the specified virtual cluster.", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace defines the namespace in which ArgoCD is running in the cluster.", + Type: []string{"string"}, + Format: "", + }, + }, + "sso": { + 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 Loft.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoSSOSpec"), + }, + }, + "project": { + SchemaProps: spec.SchemaProps{ + Description: "Project defines project related values for the ArgoCD Integration. Enabling Project integration will cause Loft to generate and manage an ArgoCD appProject that corresponds to the Loft Project.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoSSOSpec"}, + } +} + +func schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "action": { + SchemaProps: spec.SchemaProps{ + Description: "Action is one of \"*\", \"get\", \"create\", \"update\", \"delete\", \"sync\", or \"override\".", + Type: []string{"string"}, + Format: "", + }, + }, + "application": { + SchemaProps: spec.SchemaProps{ + Description: "Application is the ArgoCD project/repository to apply the rule to.", + Type: []string{"string"}, + Format: "", + }, + }, + "permission": { + 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: "", + }, + }, + }, + }, + }, + } +} + +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{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the ArgoCD role to attach to the project.", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description to add to the ArgoCD project.", + Type: []string{"string"}, + Format: "", + }, + }, + "rules": { + 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/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectPolicyRule"), + }, + }, + }, + }, + }, + "groups": { + SchemaProps: spec.SchemaProps{ + 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: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectPolicyRule"}, + } +} + +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{ + "enabled": { + SchemaProps: spec.SchemaProps{ + Description: "Enabled indicates if the ArgoCD Project Integration is enabled for this project. Enabling this will cause Loft to create an appProject in ArgoCD that is associated with the Loft Project. When Project integration is enabled Loft 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 loft created project in ArgoCD.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/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 loft default roles will be set. If no roles are provided *and* SSO is enabled, loft 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/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectRole"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectRole", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpecMetadata"}, + } +} + +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{ + "extraAnnotations": { + 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: "", + }, + }, + }, + }, + }, + "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: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_ArgoSSOSpec(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 Loft to configure SSO authentication via Loft 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 loft and ArgoCD. If not specified OIDC integration will be skipped, but vclusters/spaces will still be synced to ArgoCD.", + Type: []string{"string"}, + Format: "", + }, + }, + "assignedRoles": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedRoles is a list of roles to assign for users who authenticate via Loft -- 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: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +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: "", + }, + }, + "zone": { + SchemaProps: spec.SchemaProps{ + Description: "Zone is the zone of the node type. If empty, will default to \"global\".", + Type: []string{"string"}, + Format: "", + }, + }, + "region": { + SchemaProps: spec.SchemaProps{ + Description: "Region is the region of the 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/loft-sh/api/v4/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: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of this node type.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "nodes": { + SchemaProps: spec.SchemaProps{ + Description: "Nodes specifies nodes.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + 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{"name"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + } +} + +func schema_pkg_apis_storage_v1_Chart(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Chart describes a chart", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the chart name in the repository", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the chart version in the repository", + Type: []string{"string"}, + Format: "", + }, + }, + "repoURL": { + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + }, + }, + }, + } +} + +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{ + "name": { + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Cluster holds the cluster 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_storage_v1_ClusterAccess(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"}, + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_storage_v1_ClusterAccessList(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"}, + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +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{ + "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 cluster access object", + Type: []string{"string"}, + Format: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "clusters": { + 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: "", + }, + }, + }, + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "localClusterAccessTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "LocalClusterAccessTemplate holds the cluster access template", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate", "github.com/loft-sh/api/v4/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: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster"), }, }, }, }, }, - "streamContainer": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +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: "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: "", + }, + }, + }, + }, + }, + } +} + +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{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_storage_v1_ClusterRoleTemplateList(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"}, + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +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{ + "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 cluster role template object", + Type: []string{"string"}, + Format: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "clusters": { + 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: "", + }, + }, + }, + }, + }, + "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 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "clusterRoleTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRoleTemplate holds the cluster role template", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"), + }, + }, + "localClusterRoleTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use ClusterRoleTemplate instead LocalClusterRoleTemplate holds the cluster role template", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(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"}, + }, + }, + } +} + +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{ + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "rules": { + SchemaProps: spec.SchemaProps{ + 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("k8s.io/api/rbac/v1.PolicyRule"), + }, + }, + }, + }, + }, + "aggregationRule": { + 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"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/rbac/v1.AggregationRule", "k8s.io/api/rbac/v1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +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: "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/loft-sh/api/v4/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/loft-sh/api/v4/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": { + 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "metrics": { + SchemaProps: spec.SchemaProps{ + Description: "Metrics holds the cluster's metrics backend configuration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + }, + }, + "opencost": { + SchemaProps: spec.SchemaProps{ + Description: "OpenCost holds the cluster's OpenCost backend configuration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_storage_v1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterStatus holds the user status", + 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": { + 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("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + } +} + +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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DockerCredentialForwarding", "github.com/loft-sh/api/v4/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": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "gracePeriod": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_DevPodCommandStatusOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "containerStatus": { 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/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"), + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"}, } } -func schema_pkg_apis_storage_v1_AppList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodCommandStopOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppList contains a list of App", - Type: []string{"object"}, + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_DevPodCommandUpOptions(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: "up options", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "source": { 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": { + "ide": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Type: []string{"string"}, + Format: "", }, }, - "items": { + "ideOptions": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.App"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.App", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -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": { - SchemaProps: spec.SchemaProps{ - Description: "Variable is the path of the variable. Can be foo or foo.bar for nested objects.", - Type: []string{"string"}, - Format: "", - }, - }, - "label": { - SchemaProps: spec.SchemaProps{ - Description: "Label is the label to show for this parameter", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { + "prebuildRepositories": { SchemaProps: spec.SchemaProps{ - Description: "Description is the description to show for this parameter", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "type": { + "devContainerPath": { SchemaProps: spec.SchemaProps{ - Description: "Type of the parameter. Can be one of: string, multiline, boolean, number and password", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "options": { + "workspaceEnv": { SchemaProps: spec.SchemaProps{ - Description: "Options is a slice of strings, where each string represents a mutually exclusive choice.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -19733,400 +23834,343 @@ func schema_pkg_apis_storage_v1_AppParameter(ref common.ReferenceCallback) commo }, }, }, - "min": { + "recreate": { SchemaProps: spec.SchemaProps{ - Description: "Min is the minimum number if type is number", - Type: []string{"integer"}, - Format: "int32", + Type: []string{"boolean"}, + Format: "", }, }, - "max": { + "proxy": { SchemaProps: spec.SchemaProps{ - Description: "Max is the maximum number if type is number", - Type: []string{"integer"}, - Format: "int32", + Type: []string{"boolean"}, + Format: "", }, }, - "required": { + "disableDaemon": { SchemaProps: spec.SchemaProps{ - Description: "Required specifies if this parameter is required", - Type: []string{"boolean"}, - Format: "", + Type: []string{"boolean"}, + Format: "", }, }, - "defaultValue": { + "daemonInterval": { SchemaProps: spec.SchemaProps{ - Description: "DefaultValue is the default value if none is specified", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "placeholder": { + "repository": { SchemaProps: spec.SchemaProps{ - Description: "Placeholder shown in the UI", + Description: "build options", Type: []string{"string"}, Format: "", }, }, - "invalidation": { + "skipPush": { SchemaProps: spec.SchemaProps{ - Description: "Invalidation regex that if matched will reject the input", - Type: []string{"string"}, - Format: "", + Type: []string{"boolean"}, + Format: "", }, }, - "validation": { + "platform": { SchemaProps: spec.SchemaProps{ - Description: "Validation regex that if matched will allow the input", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "section": { + "forceBuild": { SchemaProps: spec.SchemaProps{ - Description: "Section where this app should be displayed. Apps with the same section name will be grouped together", - Type: []string{"string"}, + Description: "TESTING", + Type: []string{"boolean"}, Format: "", }, }, + "forceInternalBuildKit": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, } } -func schema_pkg_apis_storage_v1_AppReference(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevPodWorkspaceEnvironmentSource", + 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", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(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/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"), + }, + }, + "inline": { + SchemaProps: spec.SchemaProps{ + Description: "Inline holds an inline devcontainer.json definition", Type: []string{"string"}, Format: "", }, }, - "version": { + "workspaceRepositoryCloneStrategy": { SchemaProps: spec.SchemaProps{ - Description: "Version of the app", + 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"}, }, }, - "parameters": { + "workspaceRepositorySkipLFS": { SchemaProps: spec.SchemaProps{ - Description: "Parameters to use for the app", - Type: []string{"string"}, + Description: "WorkspaceRepositorySkipLFS specifies if git lfs will be skipped when cloning the repository into the workspace", + Type: []string{"boolean"}, Format: "", }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"}, } } -func schema_pkg_apis_storage_v1_AppSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppSpec holds the specification", + Description: "DevPodEnvironmentTemplateList contains a list of DevPodEnvironmentTemplate 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/loft-sh/api/v4/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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplate"), }, }, }, }, }, - "defaultNamespace": { - SchemaProps: spec.SchemaProps{ - Description: "DefaultNamespace is the default namespace this app should installed in.", - Type: []string{"string"}, - Format: "", - }, - }, - "readme": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(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: "Readme is a longer markdown string that describes the app.", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "icon": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Icon holds an URL to the app icon", + Description: "Description describes the environment template", 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("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), - }, - }, - "wait": { - SchemaProps: spec.SchemaProps{ - Description: "Wait determines if Loft should wait during deploy for the app to become ready", - Type: []string{"boolean"}, - Format: "", - }, - }, - "timeout": { + "owner": { 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: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "parameters": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", + 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/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "streamContainer": { + "template": { 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/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"), + Description: "Template is the inline template to use for DevPod environments", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), }, }, "versions": { SchemaProps: spec.SchemaProps{ - 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/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion"), - }, - }, - }, - }, - }, - "access": { - 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion"), }, }, }, }, }, - "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/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration"), - }, - }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_AppStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppStatus holds the status", + Description: "DevPodEnvironmentTemplateStatus holds the status", Type: []string{"object"}, }, }, } } -func schema_pkg_apis_storage_v1_AppTask(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "type": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Type is the task type. Defaults to Upgrade", - Type: []string{"string"}, - Format: "", + Description: "Template holds the environment template definition", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), }, }, - "rollbackRevision": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "RollbackRevision is the revision to rollback to", + Description: "Version is the version. Needs to be in X.X.X format.", Type: []string{"string"}, Format: "", }, }, - "appReference": { - SchemaProps: spec.SchemaProps{ - Description: "AppReference is the reference to the app to deploy", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"), - }, - }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_AppVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodProjectSpec(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": { - SchemaProps: spec.SchemaProps{ - Description: "Readme is a longer markdown string that describes the app.", - Type: []string{"string"}, - Format: "", - }, - }, - "icon": { - SchemaProps: spec.SchemaProps{ - Description: "Icon holds an URL to the app icon", - 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("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), - }, - }, - "wait": { + "git": { SchemaProps: spec.SchemaProps{ - Description: "Wait determines if Loft should wait during deploy for the app to become ready", - Type: []string{"boolean"}, - Format: "", + Description: "Git defines additional git related settings like credentials", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec"), }, }, - "timeout": { + "fallbackImage": { SchemaProps: spec.SchemaProps{ - Description: "Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)", + Description: "FallbackImage defines an image all workspace will fall back to if no devcontainer.json could be detected", 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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"), - }, - }, - "version": { + "registryPattern": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", + 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: "", }, @@ -20135,88 +24179,87 @@ func schema_pkg_apis_storage_v1_AppVersion(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec"}, } } -func schema_pkg_apis_storage_v1_ArgoIntegrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodProviderOption(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 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 'loft-cluster'.", - Type: []string{"string"}, - Format: "", - }, - }, - "virtualClusterInstance": { + "value": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstance defines the name of *virtual cluster* (instance) that ArgoCD is deployed into. If provided, Cluster will be ignored and Loft will assume that ArgoCD is running in the specified virtual cluster.", + Description: "Value of this option.", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "valueFrom": { SchemaProps: spec.SchemaProps{ - Description: "Namespace defines the namespace in which ArgoCD is running in the cluster.", - Type: []string{"string"}, - Format: "", + Description: "ValueFrom specifies a secret where this value should be taken from.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom"), }, }, - "sso": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(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{ - Description: "SSO defines single-sign-on related values for the ArgoCD Integration. Enabling SSO will allow users to authenticate to ArgoCD via Loft.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoSSOSpec"), + Description: "ProjectSecretRef is the project secret to use for this value.", + Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), }, }, - "project": { + "sharedSecretRef": { SchemaProps: spec.SchemaProps{ - Description: "Project defines project related values for the ArgoCD Integration. Enabling Project integration will cause Loft to generate and manage an ArgoCD appProject that corresponds to the Loft Project.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpec"), + Description: "SharedSecretRef is the shared secret to use for this value.", + Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoSSOSpec"}, + "k8s.io/api/core/v1.SecretKeySelector"}, } } -func schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodProviderSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "action": { + "github": { SchemaProps: spec.SchemaProps{ - Description: "Action is one of \"*\", \"get\", \"create\", \"update\", \"delete\", \"sync\", or \"override\".", + Description: "Github source for the provider", Type: []string{"string"}, Format: "", }, }, - "application": { + "file": { SchemaProps: spec.SchemaProps{ - Description: "Application is the ArgoCD project/repository to apply the rule to.", + Description: "File source for the provider", Type: []string{"string"}, Format: "", }, }, - "permission": { + "url": { 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"}, + Description: "URL where the provider was downloaded from", + Type: []string{"string"}, Format: "", }, }, @@ -20226,43 +24269,56 @@ func schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref common.ReferenceCallba } } -func schema_pkg_apis_storage_v1_ArgoProjectRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "// DevPodWorkspacePodResourceRequirements is a less restrictive corev1.Container.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the ArgoCD role to attach to the project.", + Description: "Name of the container specified as a DNS_LABEL.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "description": { + "image": { SchemaProps: spec.SchemaProps{ - Description: "Description to add to the ArgoCD project.", + Description: "Container image name.", Type: []string{"string"}, Format: "", }, }, - "rules": { + "command": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Rules ist a list of policy rules to attach to the role.", + 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/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectPolicyRule"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "groups": { + "args": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Groups is a list of OIDC group names to bind to the role.", + Description: "Arguments to the entrypoint.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -20275,249 +24331,208 @@ func schema_pkg_apis_storage_v1_ArgoProjectRole(ref common.ReferenceCallback) co }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectPolicyRule"}, - } -} - -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{ - "enabled": { + "workingDir": { SchemaProps: spec.SchemaProps{ - Description: "Enabled indicates if the ArgoCD Project Integration is enabled for this project. Enabling this will cause Loft to create an appProject in ArgoCD that is associated with the Loft Project. When Project integration is enabled Loft will override the default assigned role set in the SSO integration spec.", - Type: []string{"boolean"}, + Description: "Container's working directory.", + Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Metadata defines additional metadata to attach to the loft created project in ArgoCD.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpecMetadata"), - }, - }, - "sourceRepos": { + "ports": { 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: "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: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerPort"), }, }, }, }, }, - "roles": { + "envFrom": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Roles is a list of roles that should be attached to the ArgoCD project. If roles are provided no loft default roles will be set. If no roles are provided *and* SSO is enabled, loft will configure sane default values.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectRole"), + Ref: ref("k8s.io/api/core/v1.EnvFromSource"), }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectRole", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpecMetadata"}, - } -} - -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{ - "extraAnnotations": { + "env": { 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, + 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("k8s.io/api/core/v1.EnvVar"), }, }, }, }, }, - "extraLabels": { + "resources": { 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: "Compute Resources required by this container.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements"), + }, + }, + "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("k8s.io/api/core/v1.ContainerResizePolicy"), }, }, }, }, }, - "description": { + "restartPolicy": { SchemaProps: spec.SchemaProps{ - Description: "Description to add to the ArgoCD project.", + Description: "RestartPolicy defines the restart behavior of individual containers in a pod.", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_ArgoSSOSpec(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 Loft to configure SSO authentication via Loft 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": { + "volumeMounts": { SchemaProps: spec.SchemaProps{ - Description: "Host defines the ArgoCD host address that will be used for OIDC authentication between loft and ArgoCD. If not specified OIDC integration will be skipped, but vclusters/spaces will still be synced to ArgoCD.", - Type: []string{"string"}, - Format: "", + 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("k8s.io/api/core/v1.VolumeMount"), + }, + }, + }, }, }, - "assignedRoles": { + "volumeDevices": { SchemaProps: spec.SchemaProps{ - Description: "AssignedRoles is a list of roles to assign for users who authenticate via Loft -- by default this will be the `read-only` role. If any roles are provided this will override the default setting.", + 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("k8s.io/api/core/v1.VolumeDevice"), }, }, }, }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_Chart(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Chart describes a chart", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "livenessProbe": { SchemaProps: spec.SchemaProps{ - Description: "Name is the chart name in the repository", - Type: []string{"string"}, - Format: "", + Description: "Periodic probe of container liveness.", + Ref: ref("k8s.io/api/core/v1.Probe"), }, }, - "version": { + "readinessProbe": { SchemaProps: spec.SchemaProps{ - Description: "Version is the chart version in the repository", - Type: []string{"string"}, - Format: "", + Description: "Periodic probe of container service readiness.", + Ref: ref("k8s.io/api/core/v1.Probe"), }, }, - "repoURL": { + "startupProbe": { SchemaProps: spec.SchemaProps{ - Description: "RepoURL is the repo url where the chart can be found", + Description: "StartupProbe indicates that the Pod has successfully initialized.", + Ref: ref("k8s.io/api/core/v1.Probe"), + }, + }, + "lifecycle": { + SchemaProps: spec.SchemaProps{ + Description: "Actions that the management system should take in response to container lifecycle events.", + Ref: ref("k8s.io/api/core/v1.Lifecycle"), + }, + }, + "terminationMessagePath": { + SchemaProps: spec.SchemaProps{ + Description: "Optional: Path at which the file to which the container's termination message", Type: []string{"string"}, Format: "", }, }, - "username": { + "terminationMessagePolicy": { SchemaProps: spec.SchemaProps{ - Description: "The username that is required for this repository", + 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"}, }, }, - "password": { + "imagePullPolicy": { SchemaProps: spec.SchemaProps{ - Description: "The password that is required for this repository", + 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"}, }, }, - }, - }, - }, - } -} - -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{ - "name": { + "securityContext": { SchemaProps: spec.SchemaProps{ - Description: "Name of the chart that was applied", - Type: []string{"string"}, + Description: "SecurityContext defines the security options the container should be run with.", + Ref: ref("k8s.io/api/core/v1.SecurityContext"), + }, + }, + "stdin": { + SchemaProps: spec.SchemaProps{ + Description: "Whether this container should allocate a buffer for stdin in the container runtime.", + Type: []string{"boolean"}, Format: "", }, }, - "namespace": { + "stdinOnce": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the chart that was applied", - Type: []string{"string"}, + Description: "StdinOnce default is false", + Type: []string{"boolean"}, Format: "", }, }, - "lastAppliedChartConfigHash": { + "tty": { SchemaProps: spec.SchemaProps{ - Description: "LastAppliedChartConfigHash is the last applied configuration", - Type: []string{"string"}, + Description: "TTY default is false.", + Type: []string{"boolean"}, Format: "", }, }, }, + Required: []string{"name"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements", "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, } } -func schema_pkg_apis_storage_v1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Cluster holds the cluster information", + Description: "DevPodWorkspaceInstance", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -20543,205 +24558,130 @@ func schema_pkg_apis_storage_v1_Cluster(ref common.ReferenceCallback) common.Ope "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_ClusterAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceContainerResource(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": { + "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 the container", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec"), - }, - }, - "status": { + "resources": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus"), + Description: "Resources is the resources of the container", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "k8s.io/api/core/v1.ResourceRequirements"}, } } -func schema_pkg_apis_storage_v1_ClusterAccessList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceEvent(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": { + "reason": { 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: "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: "", }, }, - "apiVersion": { + "message": { 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: "A human-readable description of the status of this operation.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "lastTimestamp": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "The time at which the most recent occurrence of this event was recorded.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, - "items": { + "type": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess"), - }, - }, - }, + Description: "Type of this event (Normal, Warning), new types could be added in the future", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_storage_v1_ClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceKubernetesStatus(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: "DisplayName is the name that should be displayed 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/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "clusters": { + "lastTransitionTime": { 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: "Last time the condition transitioned from one status to another.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, - "access": { + "podStatus": { 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "PodStatus is the status of the pod that is running the workspace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePodStatus"), }, }, - "localClusterAccessTemplate": { + "persistentVolumeClaimStatus": { SchemaProps: spec.SchemaProps{ - Description: "LocalClusterAccessTemplate holds the cluster access template", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate"), + Description: "PersistentVolumeClaimStatus is the pvc that is used to store the workspace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus"), }, }, }, + Required: []string{"lastTransitionTime"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate", "github.com/loft-sh/api/v4/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"}, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_storage_v1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterList contains a list of Cluster", + Description: "DevPodWorkspaceInstanceList contains a list of DevPodWorkspaceInstance objects", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -20771,7 +24711,7 @@ func schema_pkg_apis_storage_v1_ClusterList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance"), }, }, }, @@ -20782,303 +24722,247 @@ func schema_pkg_apis_storage_v1_ClusterList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -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: "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: "", - }, - }, - }, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_ClusterRoleRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(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{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_storage_v1_ClusterRoleTemplateList(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"}, - 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 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"}, }, }, - "apiVersion": { + "capacity": { 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: "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("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, }, }, - "metadata": { + "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{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + 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("k8s.io/api/core/v1.PersistentVolumeClaimCondition"), + }, + }, + }, }, }, - "items": { + "events": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + 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/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent", "k8s.io/api/core/v1.PersistentVolumeClaimCondition", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePodStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ 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: "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"}, }, }, - "description": { + "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: "Description describes a cluster role template object", + 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: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.PodCondition"), + }, + }, + }, + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "A human readable message indicating details about why the pod is in this condition.", Type: []string{"string"}, Format: "", }, }, - "owner": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", + Type: []string{"string"}, + Format: "", }, }, - "clusters": { + "initContainerStatuses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Clusters are the clusters this template should be applied on.", + 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: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerStatus"), }, }, }, }, }, - "management": { - SchemaProps: spec.SchemaProps{ - Description: "Management defines if this cluster role should be created in the management instance.", - Type: []string{"boolean"}, - Format: "", + "containerStatuses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, }, - }, - "access": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + 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("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("k8s.io/api/core/v1.ContainerStatus"), }, }, }, }, }, - "clusterRoleTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplate holds the cluster role template", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"), - }, - }, - "localClusterRoleTemplate": { + "nodeName": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use ClusterRoleTemplate instead LocalClusterRoleTemplate holds the cluster role template", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate"), + Description: "NodeName is the name of the node that is running the workspace", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(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"}, - }, - }, - } -} - -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{ - "metadata": { + "events": { SchemaProps: spec.SchemaProps{ - Description: "Standard object's metadata.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + 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: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent"), + }, + }, + }, }, }, - "rules": { + "containerResources": { SchemaProps: spec.SchemaProps{ - Description: "Rules holds all the PolicyRules for this ClusterRole", + 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("k8s.io/api/rbac/v1.PolicyRule"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceContainerResource"), }, }, }, }, }, - "aggregationRule": { + "containerMetrics": { 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: "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("k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1.AggregationRule", "k8s.io/api/rbac/v1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceContainerResource", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent", "k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.PodCondition", "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"}, } } -func schema_pkg_apis_storage_v1_ClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(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": { SchemaProps: spec.SchemaProps{ - Description: "If specified this name is displayed in the UI instead of the metadata name", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "Description describes a DevPod machine instance", Type: []string{"string"}, Format: "", }, @@ -21089,44 +24973,54 @@ func schema_pkg_apis_storage_v1_ClusterSpec(ref common.ReferenceCallback) common Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "config": { + "presetRef": { 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/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + Description: "PresetRef holds the DevPodWorkspacePreset template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef"), }, }, - "local": { + "templateRef": { 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: "", + Description: "TemplateRef holds the DevPod machine template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), }, }, - "networkPeer": { + "environmentRef": { SchemaProps: spec.SchemaProps{ - Description: "NetworkPeer specifies if the cluster is connected via tailscale, when this is specified, config is optional", - Type: []string{"boolean"}, - Format: "", + Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), }, }, - "managementNamespace": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "The namespace where the cluster components will be installed in", - Type: []string{"string"}, - Format: "", + Description: "Template is the inline template to use for DevPod machine creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), }, }, - "unusable": { + "target": { SchemaProps: spec.SchemaProps{ - Description: "If unusable is true, no spaces or virtual clusters can be scheduled on this cluster.", - Type: []string{"boolean"}, + Description: "Target is the reference to the cluster holding this workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/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": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "Access to the DevPod machine instance object itself", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -21138,576 +25032,585 @@ func schema_pkg_apis_storage_v1_ClusterSpec(ref common.ReferenceCallback) common }, }, }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"}, } } -func schema_pkg_apis_storage_v1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterStatus holds the user 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/loft-sh/api/v4/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": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Phase describes the current phase the DevPod machine instance is in", + Type: []string{"string"}, + Format: "", }, }, "reason": { SchemaProps: spec.SchemaProps{ - 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: "", }, }, "message": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the DevPod machine might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, + "instance": { + SchemaProps: spec.SchemaProps{ + Description: "Instance is the template rendered with all the parameters", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, } } -func schema_pkg_apis_storage_v1_CredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(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/loft-sh/api/v4/pkg/apis/storage/v1.DockerCredentialForwarding"), - }, - }, - "git": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Git specifies controls for how workspaces created by this template forward git credentials", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding"), + Description: "The workspace instance metadata", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DockerCredentialForwarding", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, } } -func schema_pkg_apis_storage_v1_DevPodCommandDeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceKubernetesSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "ignoreNotFound": { + "pod": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "Pod holds the definition for workspace pod.\n\nDefaults will be applied for fields that aren't specified.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplate"), }, }, - "force": { + "volumeClaim": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + 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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimTemplate"), }, }, - "gracePeriod": { + "podTimeout": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "PodTimeout specifies a maximum duration to wait for the workspace pod to start up before failing. Default: 10m", + Type: []string{"string"}, + Format: "", + }, + }, + "nodeArchitecture": { + 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.", + 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/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + }, + }, + "spaceTemplate": { + 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/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + }, + }, + "virtualClusterTemplateRef": { + 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/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + }, + }, + "virtualClusterTemplate": { + 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/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_DevPodCommandStatusOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevPodWorkspacePodTemplate is a less restrictive PodTemplate", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "containerStatus": { + "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "The pods metadata", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec"), }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, } } -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_DevPodWorkspacePodTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevPodWorkspacePodTemplateSpec is a less restrictive PodSpec", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "id": { - SchemaProps: spec.SchemaProps{ - Description: "up options", - Type: []string{"string"}, - Format: "", - }, - }, - "source": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "ide": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "ideOptions": { + "volumes": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + 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: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Volume"), }, }, }, }, }, - "prebuildRepositories": { + "initContainers": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "List of initialization containers belonging to the pod.", + 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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceContainer"), }, }, }, }, }, - "devContainerPath": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "workspaceEnv": { + "containers": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "List of containers belonging to the pod.", + 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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceContainer"), }, }, }, }, }, - "recreate": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "proxy": { + "restartPolicy": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + 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"}, }, }, - "disableDaemon": { + "terminationGracePeriodSeconds": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.", + Type: []string{"integer"}, + Format: "int64", }, }, - "daemonInterval": { + "activeDeadlineSeconds": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Optional duration in seconds the pod may be active on the node relative to", + Type: []string{"integer"}, + Format: "int64", }, }, - "repository": { + "dnsPolicy": { SchemaProps: spec.SchemaProps{ - Description: "build options", + 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"}, }, }, - "skipPush": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "platform": { + "nodeSelector": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + 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: "", }, - }, - }, - }, - }, - "forceBuild": { - SchemaProps: spec.SchemaProps{ - Description: "TESTING", - Type: []string{"boolean"}, - Format: "", - }, - }, - "forceInternalBuildKit": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceEnvironmentSource", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + }, + }, + }, + }, + "serviceAccountName": { 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: "ServiceAccountName is the name of the ServiceAccount to use to run this pod.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "automountServiceAccountToken": { 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: "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "nodeName": { + SchemaProps: spec.SchemaProps{ + Description: "NodeName indicates in which node this pod is scheduled.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "hostNetwork": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Host networking requested for this pod. Use the host's network namespace.", + Type: []string{"boolean"}, + Format: "", }, }, - "spec": { + "hostPID": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec"), + Description: "Use the host's pid namespace.", + Type: []string{"boolean"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(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"}, - Properties: map[string]spec.Schema{ - "kind": { + "hostIPC": { 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: "Use the host's ipc namespace.", + Type: []string{"boolean"}, Format: "", }, }, - "apiVersion": { + "shareProcessNamespace": { 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: "Share a single process namespace between all of the containers in a pod.", + Type: []string{"boolean"}, Format: "", }, }, - "metadata": { + "securityContext": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "SecurityContext holds pod-level security attributes and common container settings.", + Ref: ref("k8s.io/api/core/v1.PodSecurityContext"), }, }, - "items": { + "imagePullSecrets": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + 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("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplate"), + Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), }, }, }, }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { + "hostname": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Specifies the hostname of the Pod", Type: []string{"string"}, Format: "", }, }, - "git": { + "subdomain": { SchemaProps: spec.SchemaProps{ - Description: "Git holds configuration for git environment spec source", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"), + Description: "If specified, the fully qualified Pod hostname will be \"...svc.\".", + Type: []string{"string"}, + Format: "", }, }, - "owner": { + "affinity": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "If specified, the pod's scheduling constraints", + Ref: ref("k8s.io/api/core/v1.Affinity"), }, }, - "access": { + "schedulerName": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", + 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: "", + }, + }, + "tolerations": { + SchemaProps: spec.SchemaProps{ + 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("k8s.io/api/core/v1.Toleration"), }, }, }, }, }, - "versions": { + "hostAliases": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", + 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("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion"), + Ref: ref("k8s.io/api/core/v1.HostAlias"), }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "git": { + "priorityClassName": { SchemaProps: spec.SchemaProps{ - Description: "Git holds the GitEnvironmentTemplate", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"), + Description: "If specified, indicates the pod's priority.", + Type: []string{"string"}, + Format: "", }, }, - "version": { + "priority": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", - Type: []string{"string"}, - Format: "", + Type: []string{"integer"}, + Format: "int32", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "git": { + "dnsConfig": { SchemaProps: spec.SchemaProps{ - Description: "Git defines additional git related settings like credentials", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec"), + Description: "Specifies the DNS parameters of a pod.", + Ref: ref("k8s.io/api/core/v1.PodDNSConfig"), }, }, - "ssh": { + "readinessGates": { SchemaProps: spec.SchemaProps{ - Description: "SSH defines additional ssh related settings like private keys, to be specified as base64 encoded strings.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSHProjectSpec"), + 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("k8s.io/api/core/v1.PodReadinessGate"), + }, + }, + }, }, }, - "fallbackImage": { + "runtimeClassName": { SchemaProps: spec.SchemaProps{ - Description: "FallbackImage defines an image all workspace will fall back to if no devcontainer.json could be detected", + 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: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSHProjectSpec"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodProviderOption(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "value": { + "enableServiceLinks": { SchemaProps: spec.SchemaProps{ - Description: "Value of this option.", - 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: "", }, }, - "valueFrom": { + "preemptionPolicy": { SchemaProps: spec.SchemaProps{ - Description: "ValueFrom specifies a secret where this value should be taken from.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom"), + 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"}, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "projectSecretRef": { + "overhead": { SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretRef is the project secret to use for this value.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + 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"), + }, + }, + }, }, }, - "sharedSecretRef": { + "topologySpreadConstraints": { SchemaProps: spec.SchemaProps{ - Description: "SharedSecretRef is the shared secret to use for this value.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + 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("k8s.io/api/core/v1.TopologySpreadConstraint"), + }, + }, + }, }, }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodProviderSource(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "github": { + "setHostnameAsFQDN": { SchemaProps: spec.SchemaProps{ - Description: "Github source for the provider", - Type: []string{"string"}, + 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: "", }, }, - "file": { + "os": { SchemaProps: spec.SchemaProps{ - Description: "File source for the provider", - Type: []string{"string"}, - Format: "", + Description: "Specifies the OS of the containers in the pod.", + Ref: ref("k8s.io/api/core/v1.PodOS"), }, }, - "url": { + "hostUsers": { SchemaProps: spec.SchemaProps{ - Description: "URL where the provider was downloaded from", - Type: []string{"string"}, + Description: "Use the host's user namespace.", + Type: []string{"boolean"}, 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("k8s.io/api/core/v1.PodSchedulingGate"), + }, + }, + }, + }, + }, + "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("k8s.io/api/core/v1.PodResourceClaim"), + }, + }, + }, + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements"), + }, + }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceContainer", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodDNSConfig", "k8s.io/api/core/v1.PodOS", "k8s.io/api/core/v1.PodReadinessGate", "k8s.io/api/core/v1.PodResourceClaim", "k8s.io/api/core/v1.PodSchedulingGate", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.TopologySpreadConstraint", "k8s.io/api/core/v1.Volume", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstance", + Description: "DevPodWorkspacePreset", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -21733,28 +25636,28 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref common.ReferenceCall "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceList contains a list of DevPodWorkspaceInstance objects", + Description: "DevPodWorkspacePresetList contains a list of DevPodWorkspacePreset objects", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -21784,7 +25687,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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePreset"), }, }, }, @@ -21795,67 +25698,78 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref common.Reference }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePreset", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspacePresetSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "git": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Git stores path to git repo to use as workspace source", Type: []string{"string"}, Format: "", }, }, - "description": { + "image": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a DevPod machine instance", + Description: "Image stores container image to use as workspace source", Type: []string{"string"}, Format: "", }, }, - "owner": { + }, + }, + }, + } +} + +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": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, }, - "templateRef": { + "source": { SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the DevPod machine template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Description: "Source stores inline path of project source", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource"), }, }, - "environmentRef": { + "infrastructureRef": { SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + Description: "InfrastructureRef stores reference to DevPodWorkspaceTemplate to use", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), }, }, - "template": { + "environmentRef": { 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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Description: "EnvironmentRef stores reference to DevPodEnvironmentTemplate", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), }, }, - "runnerRef": { + "useProjectGitCredentials": { SchemaProps: spec.SchemaProps{ - Description: "RunnerRef is the reference to the connected runner holding this workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef"), + Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment", + Type: []string{"boolean"}, + Format: "", }, }, - "parameters": { + "owner": { 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: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, "access": { @@ -21872,114 +25786,76 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref common.Reference }, }, }, - "preventWakeUpOnConnection": { + "versions": { 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: "", + 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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion"), + }, + }, + }, }, }, }, + Required: []string{"source", "infrastructureRef"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspacePresetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspacePresetStatus holds the status", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastWorkspaceStatus": { - SchemaProps: spec.SchemaProps{ - Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", - Type: []string{"string"}, - Format: "", - }, - }, - "phase": { - SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the DevPod machine 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": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", + Description: "Version is the version. Needs to be in X.X.X format.", Type: []string{"string"}, Format: "", }, }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the DevPod machine might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - "instance": { - SchemaProps: spec.SchemaProps{ - Description: "Instance is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "ignoreReconciliation": { + "source": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation ignores reconciliation for this object", - Type: []string{"boolean"}, - Format: "", + Description: "Source stores inline path of project source", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource"), }, }, - "clusterRef": { + "infrastructureRef": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRef holds the runners cluster if the workspace is scheduled on kubernetes based runner", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef"), + Description: "InfrastructureRef stores reference to DevPodWorkspaceTemplate to use", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "metadata": { + "environmentRef": { SchemaProps: spec.SchemaProps{ - Description: "The virtual cluster instance metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + Description: "EnvironmentRef stores reference to DevPodEnvironmentTemplate", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"}, } } @@ -21992,7 +25868,6 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCall "name": { SchemaProps: spec.SchemaProps{ Description: "Name is the name of the provider. This can also be an url.", - Default: "", Type: []string{"string"}, Format: "", }, @@ -22028,7 +25903,6 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCall }, }, }, - Required: []string{"name"}, }, }, Dependencies: []string{ @@ -22036,6 +25910,67 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCall } } +func schema_pkg_apis_storage_v1_DevPodWorkspaceResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspacePodResourceRequirements are less restrictive corev1.ResourceRequirements.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "limits": { + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + }, + }, + }, + "requests": { + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + }, + }, + }, + "claims": { + 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{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ResourceClaim"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ResourceClaim"}, + } +} + func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -22089,35 +26024,10 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref common.Ref SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "provider": { - SchemaProps: spec.SchemaProps{ - Description: "Provider holds the DevPod provider configuration", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider"), - }, - }, - "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/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "spaceTemplate": { - 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/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), - }, - }, - "virtualClusterTemplateRef": { - 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/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "virtualClusterTemplate": { + "kubernetes": { 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/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + Description: "Kubernetes holds the definition for kubernetes based workspaces", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceKubernetesSpec"), }, }, "workspaceEnv": { @@ -22135,21 +26045,6 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref common.Ref }, }, }, - "initEnv": { - SchemaProps: spec.SchemaProps{ - Description: "InitEnv are environment variables that should be available during the initialization phase of 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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption"), - }, - }, - }, - }, - }, "instanceTemplate": { SchemaProps: spec.SchemaProps{ Description: "InstanceTemplate holds the workspace instance template", @@ -22157,47 +26052,23 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref common.Ref Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition"), }, }, - "useProjectGitCredentials": { - SchemaProps: spec.SchemaProps{ - Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this workspace", - Type: []string{"boolean"}, - Format: "", - }, - }, - "useProjectSSHCredentials": { - SchemaProps: spec.SchemaProps{ - Description: "UseProjectSSHCredentials specifies if the project ssh credentials should be used instead of local ones for this workspace", - Type: []string{"boolean"}, - Format: "", - }, - }, - "gitCloneStrategy": { - SchemaProps: spec.SchemaProps{ - Description: "GitCloneStrategy specifies how git based workspace are being cloned. Can be \"\" (full, default), treeless, blobless or shallow\n\nPossible enum values:\n - `\"\"`\n - `\"blobless\"`\n - `\"shallow\"`\n - `\"treeless\"`", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"", "blobless", "shallow", "treeless"}, - }, - }, "credentialForwarding": { SchemaProps: spec.SchemaProps{ Description: "CredentialForwarding specifies controls for how workspaces created by this template forward credentials into the workspace", Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.CredentialForwarding"), }, }, - "preventWakeUpOnConnection": { + "provider": { 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: "", + Description: "Provider holds the legacy VM provider configuration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider"), }, }, }, - Required: []string{"provider"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.CredentialForwarding", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.CredentialForwarding", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceKubernetesSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider"}, } } @@ -22387,6 +26258,122 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref common.Refere } } +func schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimSpec(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("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "resources represents the minimum resources the volume should have.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/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("k8s.io/api/core/v1.TypedLocalObjectReference"), + }, + }, + "dataSourceRef": { + SchemaProps: spec.SchemaProps{ + Description: "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty", + Ref: ref("k8s.io/api/core/v1.TypedObjectReference"), + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements", "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/api/core/v1.TypedObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(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/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + } +} + func schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -22474,6 +26461,13 @@ func schema_pkg_apis_storage_v1_EnvironmentRef(ref common.ReferenceCallback) com Format: "", }, }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the version of DevPodEnvironmentTemplate this references", + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"name"}, }, @@ -22543,7 +26537,7 @@ func schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref common.ReferenceCallb } } -func schema_pkg_apis_storage_v1_GitProjectSpec(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{ @@ -22551,14 +26545,14 @@ func schema_pkg_apis_storage_v1_GitProjectSpec(ref common.ReferenceCallback) com Properties: map[string]spec.Schema{ "token": { SchemaProps: spec.SchemaProps{ - Description: "Token defines the token to use for authentication.", + Description: "Token defines the credentials to use for authentication, this is a base64 encoded string.", Type: []string{"string"}, Format: "", }, }, "tokenSecretRef": { SchemaProps: spec.SchemaProps{ - Description: "TokenSecretRef defines the project secret to use for token authentication. Will be used if `Token` is not provided.", + Description: "TokenSecretRef defines the project secret to use as credentials for authentication. Will be used if `Token` is not provided.", Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), }, }, @@ -22570,6 +26564,32 @@ func schema_pkg_apis_storage_v1_GitProjectSpec(ref common.ReferenceCallback) com } } +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": { + SchemaProps: spec.SchemaProps{ + Description: "HTTP defines additional http related settings like credentials, to be specified as base64 encoded strings.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"), + }, + }, + "ssh": { + SchemaProps: spec.SchemaProps{ + Description: "SSH defines additional ssh related settings like private keys, to be specified as base64 encoded strings.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"}, + } +} + func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -23277,225 +27297,146 @@ func schema_pkg_apis_storage_v1_Member(ref common.ReferenceCallback) common.Open "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_NamespacePattern(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{ - "space": { + "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Space holds the namespace pattern to use for space instances", - Type: []string{"string"}, - Format: "", + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", }, }, - "virtualCluster": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster holds the namespace pattern to use for virtual cluster instances", + Description: "Resources are compute resource required by the metrics backend", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + }, + }, + "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/loft-sh/api/v4/pkg/apis/storage/v1.Storage"), + }, + }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage", "k8s.io/api/core/v1.ResourceRequirements"}, } } -func schema_pkg_apis_storage_v1_NetworkPeer(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{ - Description: "NetworkPeer hols the information of network peers", - 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: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", - Type: []string{"string"}, - Format: "", - }, - }, - "generateName": { - SchemaProps: spec.SchemaProps{ - Description: "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", - Type: []string{"string"}, - Format: "", - }, - }, - "namespace": { - SchemaProps: spec.SchemaProps{ - Description: "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces", - Type: []string{"string"}, - Format: "", - }, - }, - "selfLink": { - SchemaProps: spec.SchemaProps{ - Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", - Type: []string{"string"}, - Format: "", - }, - }, - "uid": { + "space": { SchemaProps: spec.SchemaProps{ - Description: "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + Description: "Space holds the namespace pattern to use for space instances", Type: []string{"string"}, Format: "", }, }, - "resourceVersion": { + "virtualCluster": { SchemaProps: spec.SchemaProps{ - Description: "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + Description: "VirtualCluster holds the namespace pattern to use for virtual cluster instances", Type: []string{"string"}, Format: "", }, }, - "generation": { - SchemaProps: spec.SchemaProps{ - Description: "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "creationTimestamp": { - SchemaProps: spec.SchemaProps{ - Description: "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "deletionTimestamp": { - SchemaProps: spec.SchemaProps{ - Description: "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "deletionGracePeriodSeconds": { - SchemaProps: spec.SchemaProps{ - Description: "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "labels": { - SchemaProps: spec.SchemaProps{ - Description: "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "annotations": { + "devPodWorkspace": { SchemaProps: spec.SchemaProps{ - Description: "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "DevPodWorkspace holds the namespace pattern to use for DevPod workspaces", + Type: []string{"string"}, + Format: "", }, }, - "ownerReferences": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-map-keys": []interface{}{ - "uid", - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "uid", - "x-kubernetes-patch-strategy": "merge", - }, - }, + }, + }, + }, + } +} + +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: "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), - }, - }, - }, + Description: "Name is the name of this resource", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "finalizers": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "set", - "x-kubernetes-patch-strategy": "merge", - }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace is the namespace of this resource", + Default: "", + Type: []string{"string"}, + Format: "", }, + }, + }, + Required: []string{"name", "namespace"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_NetworkPeer(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"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", - 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: "", }, }, - "managedFields": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "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: "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, "spec": { @@ -23514,7 +27455,7 @@ func schema_pkg_apis_storage_v1_NetworkPeer(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -23678,88 +27619,259 @@ func schema_pkg_apis_storage_v1_NetworkPeerStatus(ref common.ReferenceCallback) } } -func schema_pkg_apis_storage_v1_ObjectsStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeClaim holds the node claim for vCluster.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastAppliedObjects": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "LastAppliedObjects holds the status for the objects that were applied", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "", }, }, - "charts": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Charts are the charts that were applied", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_storage_v1_NodeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeClaimList contains a list of NodeClaim", + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaim"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_storage_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": { + 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("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ChartStatus"), + Ref: ref("k8s.io/api/core/v1.Taint"), }, }, }, }, }, - "apps": { + "startupTaints": { SchemaProps: spec.SchemaProps{ - Description: "Apps are the apps that were applied", + 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("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"), + Ref: ref("k8s.io/api/core/v1.Taint"), + }, + }, + }, + }, + }, + "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("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + "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("k8s.io/api/core/v1.NodeSelectorRequirement"), }, }, }, }, }, + "nodeTypeRef": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTypeRef is the name of the NodeType that this NodeClaim is based on.", + Type: []string{"string"}, + Format: "", + }, + }, + "vClusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "VClusterRef references source vCluster. This is required.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, }, + Required: []string{"vClusterRef"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ChartStatus"}, + "k8s.io/api/core/v1.NodeSelectorRequirement", "k8s.io/api/core/v1.Taint", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_PodSelector(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{ - "podSelector": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "A label selector to select the virtual cluster pod to route incoming requests to.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Description: "Phase is the current lifecycle phase of the NodeClaim.", + Type: []string{"string"}, + Format: "", }, }, - "port": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "The port of the pod to route to", - Type: []string{"integer"}, - Format: "int32", + 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("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_storage_v1_Project(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Project", + 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": { @@ -23785,358 +27897,400 @@ func schema_pkg_apis_storage_v1_Project(ref common.ReferenceCallback) common.Ope "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_ProjectList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeProviderBCM(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectList contains a list of Project objects", + Description: "NodeProviderBCMSpec defines the configuration for a BCM node provider.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "secretRef": { 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: "SecretRef is a reference to secret with keys for BCM auth.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacedRef"), }, }, - "apiVersion": { + "endpoint": { 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: "Endpoint is a address for head node.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { + "nodeTypes": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + 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/loft-sh/api/v4/pkg/apis/storage/v1.Project"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.BCMNodeTypeSpec"), }, }, }, }, }, }, - Required: []string{"items"}, + Required: []string{"secretRef", "endpoint"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.BCMNodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacedRef"}, } } -func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeProviderKubeVirt defines the configuration for a KubeVirt node provider.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "virtualClusterRef": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "If KubeVirt is deployed inside one of the vClusters, reference this vCluster here. Otherwise it will be assumed to run in the same host cluster as platform.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef"), + }, + }, + "targetNamespace": { + SchemaProps: spec.SchemaProps{ + Description: "TargetNamespace is the namespace within the KubeVirt cluster where the VirtualMachines and their secrets will be created.", Type: []string{"string"}, Format: "", }, }, - "description": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef"}, + } +} + +func schema_pkg_apis_storage_v1_NodeProviderList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeProviderList contains a list of NodeProvider", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an 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: "", }, }, - "owner": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "", }, }, - "quotas": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Quotas define the quotas inside the project", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "allowedClusters": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "AllowedClusters are target clusters that are allowed to target with environments.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProvider"), }, }, }, }, }, - "allowedRunners": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProvider", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_storage_v1_NodeProviderPods(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeProviderPodsSpec defines the configuration for a pod-based node provider.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "image": { 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/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner"), - }, - }, - }, + Description: "Image is the container image to use for the pod-based node provider.", + Type: []string{"string"}, + Format: "", }, }, - "allowedTemplates": { + }, + }, + }, + } +} + +func schema_pkg_apis_storage_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{ + "pods": { 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/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate"), - }, - }, - }, + Description: "Pods configures a node provider based on Kubernetes Pods. This can be used for simpler, pod-based node provisioning for testing or demos.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods"), }, }, - "requireTemplate": { + "bcm": { SchemaProps: spec.SchemaProps{ - Description: "RequireTemplate configures if a template is required for instance creation.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate"), + Description: "BCM configures a node provider for BCM Bare Metal Cloud environments.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM"), }, }, - "members": { + "kubeVirt": { SchemaProps: spec.SchemaProps{ - 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/loft-sh/api/v4/pkg/apis/storage/v1.Member"), - }, - }, - }, + Description: "Kubevirt configures a node provider using KubeVirt, enabling virtual machines to be provisioned as nodes within a vCluster.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt"), }, }, - "access": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods"}, + } +} + +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 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/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, - "namespacePattern": { - SchemaProps: spec.SchemaProps{ - Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern"), - }, - }, - "argoCD": { - SchemaProps: spec.SchemaProps{ - Description: "ArgoIntegration holds information about ArgoCD Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec"), - }, - }, - "vault": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "VaultIntegration holds information about Vault Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", }, }, - "rancher": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "RancherIntegration holds information about Rancher Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), + Description: "Phase is the current lifecycle phase of the NodeProvider.", + Type: []string{"string"}, + Format: "", }, }, - "devPod": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "DevPod holds DevPod specific configuration for project", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec"), + Description: "Message is a human-readable message indicating details about why the NodeProvider is in its current state.", + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_storage_v1_ProjectStatus(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{ - "quotas": { + "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: "Quotas holds the quota status", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "conditions": { + "spec": { 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/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeStatus"), }, }, }, + Required: []string{"metadata"}, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_QuotaStatus(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "project": { + "total": { SchemaProps: spec.SchemaProps{ - Description: "Project is the quota status for the whole project", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject"), + Description: "Total is the total number of nodes of this type", + Type: []string{"integer"}, + Format: "int32", }, }, - "user": { + "available": { 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/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser"), + Description: "Available is the number of available nodes of this type", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "provisioned": { + SchemaProps: spec.SchemaProps{ + Description: "Provisioned is the number of already provisioned nodes of this type", + Type: []string{"integer"}, + Format: "int32", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser"}, } } -func schema_pkg_apis_storage_v1_QuotaStatusProject(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{ - Type: []string{"object"}, + Description: "NodeTypeList contains a list of NodeType", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "limit": { + "kind": { 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: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "", }, }, - "used": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - 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: "", - 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 holds the used amount per cluster. Maps cluster name to used resources", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeTypeOverhead(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeTypeOverhead defines the resource overhead for a node type.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "used": { + "kubeReserved": { SchemaProps: spec.SchemaProps{ - Description: "Used is the amount currently used. Maps resource name, such as pods, to their used amount.", + 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: "", - Type: []string{"string"}, - Format: "", + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), }, }, }, @@ -24145,18 +28299,41 @@ func schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref common.ReferenceCa }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_QuotaStatusUser(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "limit": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Limit is the amount limited per user / team", + Description: "ProviderRef is the node provider to use for this node type.", + Type: []string{"string"}, + Format: "", + }, + }, + "zone": { + SchemaProps: spec.SchemaProps{ + Description: "Zone is the zone of the node type. If empty, will default to \"global\".", + Type: []string{"string"}, + Format: "", + }, + }, + "region": { + SchemaProps: spec.SchemaProps{ + Description: "Region is the region of the 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, @@ -24170,85 +28347,91 @@ func schema_pkg_apis_storage_v1_QuotaStatusUser(ref common.ReferenceCallback) co }, }, }, - "used": { - SchemaProps: spec.SchemaProps{ - Description: "Used is the used amount per user / team", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"), - }, - }, - "clusters": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Clusters holds the used amount per cluster. Maps cluster name to used resources", + 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: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"), + 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/loft-sh/api/v4/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: "", + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeTypeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeTypeStatus holds the status of a node type", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "users": { + "phase": { SchemaProps: spec.SchemaProps{ - 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: "", - }, - }, - }, - }, - }, - }, + Description: "Phase is the current lifecycle phase of the NodeType.", + Type: []string{"string"}, + Format: "", }, }, - "teams": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Teams is a mapping of teams to used resources", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + 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: "", + }, + }, + "capacity": { + SchemaProps: spec.SchemaProps{ + Description: "Capacity is the capacity of the node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"), + }, + }, + "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{ - 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/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, @@ -24257,42 +28440,47 @@ func schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref common.ReferenceCallback }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"}, } } -func schema_pkg_apis_storage_v1_Quotas(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "project": { + "lastAppliedObjects": { SchemaProps: spec.SchemaProps{ - Description: "Project holds the quotas for the whole project", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + 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: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ChartStatus"), }, }, }, }, }, - "user": { + "apps": { SchemaProps: spec.SchemaProps{ - Description: "User holds the quotas per user / team", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Apps are the apps that were applied", + 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/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"), }, }, }, @@ -24301,101 +28489,99 @@ func schema_pkg_apis_storage_v1_Quotas(ref common.ReferenceCallback) common.Open }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ChartStatus"}, } } -func schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "enabled": { - SchemaProps: spec.SchemaProps{ - Description: "Enabled indicates if the Rancher Project Integration is enabled for this project.", - 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/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef"), - }, - }, - "importVirtualClusters": { + "replicas": { SchemaProps: spec.SchemaProps{ - Description: "ImportVirtualClusters defines settings to import virtual clusters to Rancher on creation", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec"), + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", }, }, - "syncMembers": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "SyncMembers defines settings to sync Rancher project members to the loft project", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec"), + Description: "Resources are compute resource required by the OpenCost backend", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec"}, + "k8s.io/api/core/v1.ResourceRequirements"}, } } -func schema_pkg_apis_storage_v1_RancherProjectRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "cluster": { + "podSelector": { SchemaProps: spec.SchemaProps{ - Description: "Cluster defines the Rancher cluster ID Needs to be the same id within Loft", - 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("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), }, }, - "project": { + "port": { SchemaProps: spec.SchemaProps{ - Description: "Project defines the Rancher project ID", - Type: []string{"string"}, - Format: "", + Description: "The port of the pod to route to", + Type: []string{"integer"}, + Format: "int32", }, }, }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, } } -func schema_pkg_apis_storage_v1_RequireTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "disabled": { + "name": { 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"}, + Description: "Name is the name of DevPodWorkspacePreset", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + 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 Loft to automatically select the latest major, minor or patch version.", + Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"name"}, }, }, } } -func schema_pkg_apis_storage_v1_Runner(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: "Runner holds the runner information", + Description: "Project", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -24421,267 +28607,385 @@ func schema_pkg_apis_storage_v1_Runner(ref common.ReferenceCallback) common.Open "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_RunnerClusterRef(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{ - Type: []string{"object"}, + Description: "ProjectList contains a list of Project objects", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cluster": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the connected cluster the space will be created in", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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 inside the connected cluster holding the space", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "", }, }, - "persistentVolumeClaimTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "PersistentVolumeClaimTemplate holds additional options for the persistent volume claim", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPersistentVolumeClaimTemplate"), - }, - }, - "podTemplate": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "PodTemplate holds additional options for the runner pod", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPodTemplate"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "serviceTemplate": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "ServiceTemplate holds additional options for the service", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplate"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPersistentVolumeClaimTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPodTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplate"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_RunnerList(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{ - Description: "RunnerList contains a list of Runner", - 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 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: "", }, }, - "metadata": { + "owner": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/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/loft-sh/api/v4/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/loft-sh/api/v4/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/loft-sh/api/v4/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/loft-sh/api/v4/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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset"), + }, + }, + "members": { + SchemaProps: spec.SchemaProps{ + 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/loft-sh/api/v4/pkg/apis/storage/v1.Member"), + }, + }, + }, + }, + }, + "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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern"), + }, + }, + "argoCD": { + SchemaProps: spec.SchemaProps{ + Description: "ArgoIntegration holds information about ArgoCD Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec"), + }, + }, + "vault": { + SchemaProps: spec.SchemaProps{ + Description: "VaultIntegration holds information about Vault Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), + }, + }, + "rancher": { + SchemaProps: spec.SchemaProps{ + Description: "RancherIntegration holds information about Rancher Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), + }, + }, + "devPod": { + SchemaProps: spec.SchemaProps{ + Description: "DevPod holds DevPod specific configuration for project", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, + } +} + +func schema_pkg_apis_storage_v1_ProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "quotas": { + SchemaProps: spec.SchemaProps{ + Description: "Quotas holds the quota status", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"), }, }, - "items": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + 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/loft-sh/api/v4/pkg/apis/storage/v1.Runner"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Runner", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"}, } } -func schema_pkg_apis_storage_v1_RunnerPersistentVolumeClaimTemplate(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{ - "metadata": { + "project": { SchemaProps: spec.SchemaProps{ - Description: "Metadata holds the template metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + Description: "Project is the quota status for the whole project", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject"), }, }, - "spec": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "Spec holds the template spec", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPersistentVolumeClaimTemplateSpec"), + 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/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPersistentVolumeClaimTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser"}, } } -func schema_pkg_apis_storage_v1_RunnerPersistentVolumeClaimTemplateSpec(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{ - "accessModes": { + "limit": { SchemaProps: spec.SchemaProps{ - Description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + 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: "", - Enum: []interface{}{"ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"}, }, }, }, }, }, - "storageClassName": { + "used": { SchemaProps: spec.SchemaProps{ - Description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - Type: []string{"string"}, - Format: "", + 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: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "storageSize": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "storageSize is the size of the storage to reserve for the pvc", - Type: []string{"string"}, - Format: "", + 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/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster"), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster"}, } } -func schema_pkg_apis_storage_v1_RunnerPodTemplate(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Metadata holds the template metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), - }, - }, - "spec": { + "used": { SchemaProps: spec.SchemaProps{ - Description: "Spec holds the template spec", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPodTemplateSpec"), + 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: "", + }, + }, + }, }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPodTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, } } -func schema_pkg_apis_storage_v1_RunnerPodTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "image": { - SchemaProps: spec.SchemaProps{ - Description: "Runner pod image to use other than default", - Type: []string{"string"}, - Format: "", - }, - }, - "resource": { - SchemaProps: spec.SchemaProps{ - Description: "Resources requirements", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), - }, - }, - "envFrom": { - SchemaProps: spec.SchemaProps{ - Description: "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvFromSource"), - }, - }, - }, - }, - }, - "env": { - SchemaProps: spec.SchemaProps{ - Description: "List of environment variables to set in the container. Cannot be updated.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvVar"), - }, - }, - }, - }, - }, - "nodeSelector": { + "limit": { SchemaProps: spec.SchemaProps{ - Description: "Set the NodeSelector for the Runner Pod", + Description: "Limit is the amount limited per user / team", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, @@ -24695,77 +28999,129 @@ func schema_pkg_apis_storage_v1_RunnerPodTemplateSpec(ref common.ReferenceCallba }, }, }, - "affinity": { + "used": { SchemaProps: spec.SchemaProps{ - Description: "Set the Affinity for the Runner Pod", - Ref: ref("k8s.io/api/core/v1.Affinity"), + Description: "Used is the used amount per user / team", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"), }, }, - "tolerations": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Set the Tolerations for the Runner Pod", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + 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("k8s.io/api/core/v1.Toleration"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"), }, }, }, }, }, - "volumeMounts": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/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": { SchemaProps: spec.SchemaProps{ - Description: "Set Volume Mounts for the Runner Pod", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Users is a mapping of users to used resources", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeMount"), + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, - "volumes": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "Set Volumes for the Runner Pod", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Teams is a mapping of teams to used resources", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Volume"), + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, - "initContainers": { + }, + }, + }, + } +} + +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": { SchemaProps: spec.SchemaProps{ - Description: "Set up Init Containers for the Runner", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + 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("k8s.io/api/core/v1.Container"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "hostAliases": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "Set host aliases for the Runner Pod", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "User holds the quotas per user / team", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.HostAlias"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -24774,70 +29130,88 @@ func schema_pkg_apis_storage_v1_RunnerPodTemplateSpec(ref common.ReferenceCallba }, }, }, - Dependencies: []string{ - "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.Volume", "k8s.io/api/core/v1.VolumeMount"}, } } -func schema_pkg_apis_storage_v1_RunnerRef(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "runner": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "Runner is the connected runner the workspace will be created in", - Type: []string{"string"}, + Description: "Enabled indicates if the Rancher Project Integration is enabled for this project.", + 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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec"), + }, + }, + "syncMembers": { + SchemaProps: spec.SchemaProps{ + Description: "SyncMembers defines settings to sync Rancher project members to the loft project", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec"), + }, + }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec"}, } } -func schema_pkg_apis_storage_v1_RunnerServiceTemplate(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "Metadata holds the template metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + Description: "Cluster defines the Rancher cluster ID Needs to be the same id within Loft", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "project": { SchemaProps: spec.SchemaProps{ - Description: "Spec holds the template spec", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplateSpec"), + Description: "Project defines the Rancher project ID", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, } } -func schema_pkg_apis_storage_v1_RunnerServiceTemplateSpec(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{ - "type": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "type determines how the Service is exposed. Defaults to ClusterIP\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"}, + 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: "", - Enum: []interface{}{"ClusterIP", "ExternalName", "LoadBalancer", "NodePort"}, }, }, }, @@ -24846,154 +29220,133 @@ func schema_pkg_apis_storage_v1_RunnerServiceTemplateSpec(ref common.ReferenceCa } } -func schema_pkg_apis_storage_v1_RunnerSpec(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{ - "displayName": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - 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: "", }, }, - "description": { + }, + }, + }, + } +} + +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": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "Runner is the connected runner the workspace will be created in", Type: []string{"string"}, Format: "", }, }, - "networkPeerName": { + }, + }, + }, + } +} + +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{ + "userId": { SchemaProps: spec.SchemaProps{ - Description: "NetworkPeerName is the network peer name used to connect directly to the runner", + Description: "The subject of the user", Type: []string{"string"}, Format: "", }, }, - "endpoint": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "Endpoint is the hostname used to connect directly to the runner", + Description: "The username", Type: []string{"string"}, Format: "", }, }, - "clusterRef": { + "preferredUsername": { SchemaProps: spec.SchemaProps{ - Description: "If ClusterRef is defined, Loft will schedule the runner on the given cluster.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef"), + Description: "The preferred username / display name", + Type: []string{"string"}, + Format: "", }, }, - "owner": { + "email": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "The user email", + Type: []string{"string"}, + Format: "", }, }, - "unusable": { + "emailVerified": { SchemaProps: spec.SchemaProps{ - Description: "If unusable is true, no DevPod workspaces can be scheduled on this runner.", + Description: "If the user email was verified", Type: []string{"boolean"}, Format: "", }, }, - "access": { + "extraClaims": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + 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: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_RunnerStatus(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{ - Description: "Phase describes the current phase the space instance is in", - 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": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", + Description: "The groups from the identity provider", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, - } -} - -func schema_pkg_apis_storage_v1_SSHProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "token": { + "connector": { SchemaProps: spec.SchemaProps{ - Description: "Token defines the private ssh key to use for authentication, this is a base64 encoded string.", + Description: "Connector is the name of the connector this access key was created from", Type: []string{"string"}, Format: "", }, }, - "tokenSecretRef": { + "connectorData": { SchemaProps: spec.SchemaProps{ - Description: "TokenSecretRef defines the project secret to use as private ssh key for authentication. Will be used if `Token` is not provided.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + 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", }, }, }, }, }, - Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, } } @@ -25793,6 +30146,32 @@ func schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref common.ReferenceCallbac } } +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{ + "storageClass": { + 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: "", + }, + }, + "size": { + SchemaProps: spec.SchemaProps{ + Description: "Size the size of the metrics backend's persistent volume", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_storage_v1_StreamContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -26908,6 +31287,22 @@ func schema_pkg_apis_storage_v1_UserSpec(ref common.ReferenceCallback) common.Op }, }, }, + "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: "", + }, + }, + }, + }, + }, }, }, }, @@ -27224,6 +31619,13 @@ func schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref common.ReferenceCall Format: "", }, }, + "insecureSkipTlsVerify": { + SchemaProps: spec.SchemaProps{ + Description: "InsecureSkipTlsVerify skips the TLS verification for the helm chart", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, @@ -28137,6 +32539,59 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref common.Referen } } +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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace"), + }, + }, + "space": { + SchemaProps: spec.SchemaProps{ + Description: "Space is the reference to the space holding this workspace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace"}, + } +} + func schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -28173,6 +32628,81 @@ func schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref common.ReferenceCallba } } +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/loft-sh/api/v4/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/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/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"}, + }, + }, + } +} + func schema_pkg_apis_ui_v1_NavBarButton(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -28280,6 +32810,13 @@ func schema_pkg_apis_ui_v1_UISettingsConfig(ref common.ReferenceCallback) common Format: "", }, }, + "smallLogoURL": { + SchemaProps: spec.SchemaProps{ + Description: "SmallLogoURL is url pointing to the small logo to use in the Loft UI. This path must be accessible for clients accessing the Loft UI!", + Type: []string{"string"}, + Format: "", + }, + }, "logoBackgroundColor": { SchemaProps: spec.SchemaProps{ Description: "LogoBackgroundColor is the color value (ex: \"#12345\") to use as the background color for the logo", @@ -28388,6 +32925,13 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O Format: "", }, }, + "smallLogoURL": { + SchemaProps: spec.SchemaProps{ + Description: "SmallLogoURL is url pointing to the small logo to use in the Loft UI. This path must be accessible for clients accessing the Loft UI!", + Type: []string{"string"}, + Format: "", + }, + }, "logoBackgroundColor": { SchemaProps: spec.SchemaProps{ Description: "LogoBackgroundColor is the color value (ex: \"#12345\") to use as the background color for the logo", @@ -28483,7 +33027,7 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O }, "hasHelmRelease": { SchemaProps: spec.SchemaProps{ - Description: "HasHelmRelease indicates whether loft has been installed via Helm", + Description: "HasHelmRelease indicates whether the vCluster Platform instance has been installed via Helm", Type: []string{"boolean"}, Format: "", }, @@ -28495,6 +33039,13 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O Format: "", }, }, + "loftHosted": { + SchemaProps: spec.SchemaProps{ + Description: "LoftHosted indicates whether the vCluster Platform instance is hosted and operated by Loft Labs Inc.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, @@ -29239,10 +33790,9 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -29404,10 +33954,9 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -29506,10 +34055,9 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -30907,10 +35455,9 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -32556,28 +37103,28 @@ func schema_k8sio_api_apps_v1_DeploymentStatus(ref common.ReferenceCallback) com }, "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", + Description: "Total number of non-terminating pods targeted by this deployment (their labels match the selector).", Type: []string{"integer"}, Format: "int32", }, }, "updatedReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", + Description: "Total number of non-terminating pods targeted by this deployment that have the desired template spec.", Type: []string{"integer"}, Format: "int32", }, }, "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.", + Description: "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.", Type: []string{"integer"}, Format: "int32", }, }, "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", + Description: "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.", Type: []string{"integer"}, Format: "int32", }, @@ -32589,6 +37136,13 @@ func schema_k8sio_api_apps_v1_DeploymentStatus(ref common.ReferenceCallback) com Format: "int32", }, }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + 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 an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", + Type: []string{"integer"}, + Format: "int32", + }, + }, "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -32789,7 +37343,7 @@ func schema_k8sio_api_apps_v1_ReplicaSetList(ref common.ReferenceCallback) commo }, "items": { SchemaProps: spec.SchemaProps{ - Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -32819,7 +37373,7 @@ func schema_k8sio_api_apps_v1_ReplicaSetSpec(ref common.ReferenceCallback) commo Properties: map[string]spec.Schema{ "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + 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", }, @@ -32839,7 +37393,7 @@ func schema_k8sio_api_apps_v1_ReplicaSetSpec(ref common.ReferenceCallback) commo }, "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/replicationcontroller#pod-template", + 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("k8s.io/api/core/v1.PodTemplateSpec"), }, @@ -32862,7 +37416,7 @@ func schema_k8sio_api_apps_v1_ReplicaSetStatus(ref common.ReferenceCallback) com Properties: map[string]spec.Schema{ "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + 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", @@ -32870,21 +37424,28 @@ func schema_k8sio_api_apps_v1_ReplicaSetStatus(ref common.ReferenceCallback) com }, "fullyLabeledReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of pods that have labels matching the labels of the pod template of the replicaset.", + 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", }, }, "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.", + Description: "The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.", Type: []string{"integer"}, Format: "int32", }, }, "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + Description: "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + 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 an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", Type: []string{"integer"}, Format: "int32", }, @@ -33297,7 +37858,7 @@ func schema_k8sio_api_apps_v1_StatefulSetSpec(ref common.ReferenceCallback) comm }, "persistentVolumeClaimRetentionPolicy": { SchemaProps: spec.SchemaProps{ - 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. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.", + 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("k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy"), }, }, @@ -33308,7 +37869,7 @@ func schema_k8sio_api_apps_v1_StatefulSetSpec(ref common.ReferenceCallback) comm }, }, }, - Required: []string{"selector", "template", "serviceName"}, + Required: []string{"selector", "template"}, }, }, Dependencies: []string{ @@ -33863,42 +38424,49 @@ func schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref common.ReferenceCallback Properties: map[string]spec.Schema{ "observedGeneration": { SchemaProps: spec.SchemaProps{ - Description: "observedGeneration is the generation observed by the deployment controller.", + Description: "The generation observed by the deployment controller.", Type: []string{"integer"}, Format: "int64", }, }, "replicas": { SchemaProps: spec.SchemaProps{ - Description: "replicas is the total number of non-terminated pods targeted by this deployment (their labels match the selector).", + Description: "Total number of non-terminating pods targeted by this deployment (their labels match the selector).", Type: []string{"integer"}, Format: "int32", }, }, "updatedReplicas": { SchemaProps: spec.SchemaProps{ - Description: "updatedReplicas is the total number of non-terminated pods targeted by this deployment that have the desired template spec.", + Description: "Total number of non-terminating pods targeted by this deployment that have the desired template spec.", Type: []string{"integer"}, Format: "int32", }, }, "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition.", + Description: "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.", Type: []string{"integer"}, Format: "int32", }, }, "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", + Description: "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.", Type: []string{"integer"}, Format: "int32", }, }, "unavailableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "unavailableReplicas is the 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.", + 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", + }, + }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + 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 an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", Type: []string{"integer"}, Format: "int32", }, @@ -33915,7 +38483,7 @@ func schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref common.ReferenceCallback }, }, SchemaProps: spec.SchemaProps{ - Description: "Conditions represent the latest available observations of a deployment's current state.", + Description: "Represents the latest available observations of a deployment's current state.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -34442,7 +39010,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref common.ReferenceCallback) }, "persistentVolumeClaimRetentionPolicy": { SchemaProps: spec.SchemaProps{ - Description: "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha.", + Description: "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", Ref: ref("k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy"), }, }, @@ -34453,7 +39021,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref common.ReferenceCallback) }, }, }, - Required: []string{"template", "serviceName"}, + Required: []string{"template"}, }, }, Dependencies: []string{ @@ -35285,28 +39853,28 @@ func schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref common.ReferenceCallback }, "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", + Description: "Total number of non-terminating pods targeted by this deployment (their labels match the selector).", Type: []string{"integer"}, Format: "int32", }, }, "updatedReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", + Description: "Total number of non-terminating pods targeted by this deployment that have the desired template spec.", Type: []string{"integer"}, Format: "int32", }, }, "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition.", + Description: "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.", Type: []string{"integer"}, Format: "int32", }, }, "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", + Description: "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.", Type: []string{"integer"}, Format: "int32", }, @@ -35318,6 +39886,13 @@ func schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref common.ReferenceCallback Format: "int32", }, }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + 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 an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", + Type: []string{"integer"}, + Format: "int32", + }, + }, "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -35517,7 +40092,7 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref common.ReferenceCallback) }, "items": { SchemaProps: spec.SchemaProps{ - Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -35547,7 +40122,7 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + 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", }, @@ -35567,7 +40142,7 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref common.ReferenceCallback) }, "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/replicationcontroller#pod-template", + 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("k8s.io/api/core/v1.PodTemplateSpec"), }, @@ -35590,7 +40165,7 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref common.ReferenceCallback Properties: map[string]spec.Schema{ "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + 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", @@ -35598,21 +40173,28 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref common.ReferenceCallback }, "fullyLabeledReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of pods that have labels matching the labels of the pod template of the replicaset.", + 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", }, }, "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "readyReplicas is the number of pods targeted by this ReplicaSet controller with a Ready Condition.", + Description: "The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.", Type: []string{"integer"}, Format: "int32", }, }, "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + Description: "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + 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 an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", Type: []string{"integer"}, Format: "int32", }, @@ -36141,7 +40723,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref common.ReferenceCallback) }, "persistentVolumeClaimRetentionPolicy": { SchemaProps: spec.SchemaProps{ - Description: "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha.", + Description: "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", Ref: ref("k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy"), }, }, @@ -36152,7 +40734,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref common.ReferenceCallback) }, }, }, - Required: []string{"selector", "template", "serviceName"}, + Required: []string{"selector", "template"}, }, }, Dependencies: []string{ @@ -38981,7 +43563,7 @@ func schema_k8sio_api_autoscaling_v1_MetricSpec(ref common.ReferenceCallback) co Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ - Description: "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled\n\nPossible enum values:\n - `\"ContainerResource\"` is a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the \"pods\" source).\n - `\"External\"` is a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).\n - `\"Object\"` is a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).\n - `\"Pods\"` is a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.\n - `\"Resource\"` is a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the \"pods\" source).", + Description: "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.\n\nPossible enum values:\n - `\"ContainerResource\"` is a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the \"pods\" source).\n - `\"External\"` is a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).\n - `\"Object\"` is a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).\n - `\"Pods\"` is a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.\n - `\"Resource\"` is a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the \"pods\" source).", Default: "", Type: []string{"string"}, Format: "", @@ -39008,7 +43590,7 @@ func schema_k8sio_api_autoscaling_v1_MetricSpec(ref common.ReferenceCallback) co }, "containerResource": { SchemaProps: spec.SchemaProps{ - Description: "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.", + Description: "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", Ref: ref("k8s.io/api/autoscaling/v1.ContainerResourceMetricSource"), }, }, @@ -39036,7 +43618,7 @@ func schema_k8sio_api_autoscaling_v1_MetricStatus(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ - Description: "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled\n\nPossible enum values:\n - `\"ContainerResource\"` is a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the \"pods\" source).\n - `\"External\"` is a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).\n - `\"Object\"` is a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).\n - `\"Pods\"` is a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.\n - `\"Resource\"` is a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the \"pods\" source).", + Description: "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.\n\nPossible enum values:\n - `\"ContainerResource\"` is a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the \"pods\" source).\n - `\"External\"` is a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).\n - `\"Object\"` is a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).\n - `\"Pods\"` is a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.\n - `\"Resource\"` is a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the \"pods\" source).", Default: "", Type: []string{"string"}, Format: "", @@ -39938,7 +44520,7 @@ func schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref common.ReferenceCallbac Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ - Description: "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + Description: "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.", Default: "", Type: []string{"string"}, Format: "", @@ -39964,7 +44546,7 @@ func schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref common.ReferenceCallbac }, "containerResource": { SchemaProps: spec.SchemaProps{ - Description: "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.", + Description: "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", Ref: ref("k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource"), }, }, @@ -39992,7 +44574,7 @@ func schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref common.ReferenceCallb Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ - Description: "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + Description: "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.", Default: "", Type: []string{"string"}, Format: "", @@ -40907,7 +45489,7 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref common.ReferenceCallbac Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ - Description: "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + Description: "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.", Default: "", Type: []string{"string"}, Format: "", @@ -40933,7 +45515,7 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref common.ReferenceCallbac }, "containerResource": { SchemaProps: spec.SchemaProps{ - Description: "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.", + Description: "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", Ref: ref("k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource"), }, }, @@ -40961,7 +45543,7 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref common.ReferenceCallb Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ - Description: "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + Description: "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.", Default: "", Type: []string{"string"}, Format: "", @@ -41693,7 +46275,7 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open }, "successPolicy": { SchemaProps: spec.SchemaProps{ - 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.\n\nThis field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).", + 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("k8s.io/api/batch/v1.SuccessPolicy"), }, }, @@ -41706,14 +46288,14 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open }, "backoffLimitPerIndex": { SchemaProps: spec.SchemaProps{ - 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. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + 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", }, }, "maxFailedIndexes": { SchemaProps: spec.SchemaProps{ - 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. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + 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", }, @@ -41770,7 +46352,7 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open }, "managedBy": { SchemaProps: spec.SchemaProps{ - 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.\n\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).", + 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.\n\nThis field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).", Type: []string{"string"}, Format: "", }, @@ -41861,7 +46443,7 @@ func schema_k8sio_api_batch_v1_JobStatus(ref common.ReferenceCallback) common.Op }, "failedIndexes": { SchemaProps: spec.SchemaProps{ - 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.\n\nThis field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + 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: "", }, @@ -42040,7 +46622,7 @@ func schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref common.ReferenceCallback Properties: map[string]spec.Schema{ "action": { SchemaProps: spec.SchemaProps{ - 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 This value is beta-level. It can be used when the\n `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\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. This value is beta-level.\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.", + 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: "", @@ -42765,6 +47347,130 @@ func schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref c } } +func schema_k8sio_api_certificates_v1beta1_ClusterTrustBundle(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.\n\nIt can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.", + 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: "metadata contains the object metadata.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec contains the signer (if any) and trust anchors.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/certificates/v1beta1.ClusterTrustBundleSpec"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/certificates/v1beta1.ClusterTrustBundleSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterTrustBundleList is a collection of ClusterTrustBundle 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: "metadata contains the list metadata.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is a collection of ClusterTrustBundle objects", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/certificates/v1beta1.ClusterTrustBundle"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/certificates/v1beta1.ClusterTrustBundle", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterTrustBundleSpec contains the signer and trust anchors.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "signerName": { + SchemaProps: spec.SchemaProps{ + Description: "signerName indicates the associated signer, if any.\n\nIn order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest.\n\nIf signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.\n\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\n\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.", + Type: []string{"string"}, + Format: "", + }, + }, + "trustBundle": { + SchemaProps: spec.SchemaProps{ + Description: "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\n\nThe data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.\n\nUsers of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"trustBundle"}, + }, + }, + } +} + func schema_k8sio_api_coordination_v1_Lease(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -42953,14 +47659,166 @@ func schema_k8sio_api_coordination_v1beta1_Lease(ref common.ReferenceCallback) c SchemaProps: spec.SchemaProps{ Description: "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/coordination/v1beta1.LeaseSpec"), + Ref: ref("k8s.io/api/coordination/v1beta1.LeaseSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/coordination/v1beta1.LeaseSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_coordination_v1beta1_LeaseCandidate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.", + 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: "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/coordination/v1beta1.LeaseCandidateSpec"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/coordination/v1beta1.LeaseSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "k8s.io/api/coordination/v1beta1.LeaseCandidateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_coordination_v1beta1_LeaseCandidateList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "LeaseCandidateList is a list of Lease 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#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + 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("k8s.io/api/coordination/v1beta1.LeaseCandidate"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/coordination/v1beta1.LeaseCandidate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_k8sio_api_coordination_v1beta1_LeaseCandidateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "LeaseCandidateSpec is a specification of a Lease.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "leaseName": { + SchemaProps: spec.SchemaProps{ + Description: "LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "pingTime": { + SchemaProps: spec.SchemaProps{ + Description: "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + }, + }, + "renewTime": { + SchemaProps: spec.SchemaProps{ + Description: "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + }, + }, + "binaryVersion": { + SchemaProps: spec.SchemaProps{ + Description: "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "emulationVersion": { + SchemaProps: spec.SchemaProps{ + Description: "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + Type: []string{"string"}, + Format: "", + }, + }, + "strategy": { + SchemaProps: spec.SchemaProps{ + Description: "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"leaseName", "binaryVersion", "strategy"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, } } @@ -43408,7 +48266,7 @@ func schema_k8sio_api_core_v1_Binding(ref common.ReferenceCallback) common.OpenA return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.", + Description: "Binding ties one object to another; for example, a pod is bound to a node by a scheduler.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -43452,7 +48310,7 @@ func schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref common.ReferenceCall return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Represents storage that is managed by an external CSI volume driver (Beta feature)", + Description: "Represents storage that is managed by an external CSI volume driver", Type: []string{"object"}, Properties: map[string]spec.Schema{ "driver": { @@ -45176,6 +50034,14 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm }, }, }, + "stopSignal": { + SchemaProps: spec.SchemaProps{ + Description: "StopSignal reports the effective stop signal for this container\n\nPossible enum values:\n - `\"SIGABRT\"`\n - `\"SIGALRM\"`\n - `\"SIGBUS\"`\n - `\"SIGCHLD\"`\n - `\"SIGCLD\"`\n - `\"SIGCONT\"`\n - `\"SIGFPE\"`\n - `\"SIGHUP\"`\n - `\"SIGILL\"`\n - `\"SIGINT\"`\n - `\"SIGIO\"`\n - `\"SIGIOT\"`\n - `\"SIGKILL\"`\n - `\"SIGPIPE\"`\n - `\"SIGPOLL\"`\n - `\"SIGPROF\"`\n - `\"SIGPWR\"`\n - `\"SIGQUIT\"`\n - `\"SIGRTMAX\"`\n - `\"SIGRTMAX-1\"`\n - `\"SIGRTMAX-10\"`\n - `\"SIGRTMAX-11\"`\n - `\"SIGRTMAX-12\"`\n - `\"SIGRTMAX-13\"`\n - `\"SIGRTMAX-14\"`\n - `\"SIGRTMAX-2\"`\n - `\"SIGRTMAX-3\"`\n - `\"SIGRTMAX-4\"`\n - `\"SIGRTMAX-5\"`\n - `\"SIGRTMAX-6\"`\n - `\"SIGRTMAX-7\"`\n - `\"SIGRTMAX-8\"`\n - `\"SIGRTMAX-9\"`\n - `\"SIGRTMIN\"`\n - `\"SIGRTMIN+1\"`\n - `\"SIGRTMIN+10\"`\n - `\"SIGRTMIN+11\"`\n - `\"SIGRTMIN+12\"`\n - `\"SIGRTMIN+13\"`\n - `\"SIGRTMIN+14\"`\n - `\"SIGRTMIN+15\"`\n - `\"SIGRTMIN+2\"`\n - `\"SIGRTMIN+3\"`\n - `\"SIGRTMIN+4\"`\n - `\"SIGRTMIN+5\"`\n - `\"SIGRTMIN+6\"`\n - `\"SIGRTMIN+7\"`\n - `\"SIGRTMIN+8\"`\n - `\"SIGRTMIN+9\"`\n - `\"SIGSEGV\"`\n - `\"SIGSTKFLT\"`\n - `\"SIGSTOP\"`\n - `\"SIGSYS\"`\n - `\"SIGTERM\"`\n - `\"SIGTRAP\"`\n - `\"SIGTSTP\"`\n - `\"SIGTTIN\"`\n - `\"SIGTTOU\"`\n - `\"SIGURG\"`\n - `\"SIGUSR1\"`\n - `\"SIGUSR2\"`\n - `\"SIGVTALRM\"`\n - `\"SIGWINCH\"`\n - `\"SIGXCPU\"`\n - `\"SIGXFSZ\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"SIGABRT", "SIGALRM", "SIGBUS", "SIGCHLD", "SIGCLD", "SIGCONT", "SIGFPE", "SIGHUP", "SIGILL", "SIGINT", "SIGIO", "SIGIOT", "SIGKILL", "SIGPIPE", "SIGPOLL", "SIGPROF", "SIGPWR", "SIGQUIT", "SIGRTMAX", "SIGRTMAX-1", "SIGRTMAX-10", "SIGRTMAX-11", "SIGRTMAX-12", "SIGRTMAX-13", "SIGRTMAX-14", "SIGRTMAX-2", "SIGRTMAX-3", "SIGRTMAX-4", "SIGRTMAX-5", "SIGRTMAX-6", "SIGRTMAX-7", "SIGRTMAX-8", "SIGRTMAX-9", "SIGRTMIN", "SIGRTMIN+1", "SIGRTMIN+10", "SIGRTMIN+11", "SIGRTMIN+12", "SIGRTMIN+13", "SIGRTMIN+14", "SIGRTMIN+15", "SIGRTMIN+2", "SIGRTMIN+3", "SIGRTMIN+4", "SIGRTMIN+5", "SIGRTMIN+6", "SIGRTMIN+7", "SIGRTMIN+8", "SIGRTMIN+9", "SIGSEGV", "SIGSTKFLT", "SIGSTOP", "SIGSYS", "SIGTERM", "SIGTRAP", "SIGTSTP", "SIGTTIN", "SIGTTOU", "SIGURG", "SIGUSR1", "SIGUSR2", "SIGVTALRM", "SIGWINCH", "SIGXCPU", "SIGXFSZ"}, + }, + }, }, Required: []string{"name", "ready", "restartCount", "image", "imageID"}, }, @@ -45378,7 +50244,7 @@ func schema_k8sio_api_core_v1_EndpointAddress(ref common.ReferenceCallback) comm return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "EndpointAddress is a tuple that describes single IP address.", + Description: "EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "ip": { @@ -45427,7 +50293,7 @@ func schema_k8sio_api_core_v1_EndpointPort(ref common.ReferenceCallback) common. return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "EndpointPort is a tuple that describes a single port.", + Description: "EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { @@ -45476,7 +50342,7 @@ func schema_k8sio_api_core_v1_EndpointSubset(ref common.ReferenceCallback) commo return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]", + Description: "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]\n\nDeprecated: This API is deprecated in v1.33+.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "addresses": { @@ -45548,7 +50414,7 @@ func schema_k8sio_api_core_v1_Endpoints(ref common.ReferenceCallback) common.Ope return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]", + Description: "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]\n\nEndpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints.\n\nDeprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -45603,7 +50469,7 @@ func schema_k8sio_api_core_v1_EndpointsList(ref common.ReferenceCallback) common return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "EndpointsList is a list of endpoints.", + Description: "EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -45654,12 +50520,12 @@ func schema_k8sio_api_core_v1_EnvFromSource(ref common.ReferenceCallback) common return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "EnvFromSource represents the source of a set of ConfigMaps", + Description: "EnvFromSource represents the source of a set of ConfigMaps or Secrets", Type: []string{"object"}, Properties: map[string]spec.Schema{ "prefix": { SchemaProps: spec.SchemaProps{ - Description: "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + Description: "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.", Type: []string{"string"}, Format: "", }, @@ -46929,7 +51795,8 @@ func schema_k8sio_api_core_v1_GRPCAction(ref common.ReferenceCallback) common.Op return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "GRPCAction specifies an action involving a GRPC service.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "port": { SchemaProps: spec.SchemaProps{ @@ -47560,6 +52427,14 @@ func schema_k8sio_api_core_v1_Lifecycle(ref common.ReferenceCallback) common.Ope Ref: ref("k8s.io/api/core/v1.LifecycleHandler"), }, }, + "stopSignal": { + SchemaProps: spec.SchemaProps{ + Description: "StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name\n\nPossible enum values:\n - `\"SIGABRT\"`\n - `\"SIGALRM\"`\n - `\"SIGBUS\"`\n - `\"SIGCHLD\"`\n - `\"SIGCLD\"`\n - `\"SIGCONT\"`\n - `\"SIGFPE\"`\n - `\"SIGHUP\"`\n - `\"SIGILL\"`\n - `\"SIGINT\"`\n - `\"SIGIO\"`\n - `\"SIGIOT\"`\n - `\"SIGKILL\"`\n - `\"SIGPIPE\"`\n - `\"SIGPOLL\"`\n - `\"SIGPROF\"`\n - `\"SIGPWR\"`\n - `\"SIGQUIT\"`\n - `\"SIGRTMAX\"`\n - `\"SIGRTMAX-1\"`\n - `\"SIGRTMAX-10\"`\n - `\"SIGRTMAX-11\"`\n - `\"SIGRTMAX-12\"`\n - `\"SIGRTMAX-13\"`\n - `\"SIGRTMAX-14\"`\n - `\"SIGRTMAX-2\"`\n - `\"SIGRTMAX-3\"`\n - `\"SIGRTMAX-4\"`\n - `\"SIGRTMAX-5\"`\n - `\"SIGRTMAX-6\"`\n - `\"SIGRTMAX-7\"`\n - `\"SIGRTMAX-8\"`\n - `\"SIGRTMAX-9\"`\n - `\"SIGRTMIN\"`\n - `\"SIGRTMIN+1\"`\n - `\"SIGRTMIN+10\"`\n - `\"SIGRTMIN+11\"`\n - `\"SIGRTMIN+12\"`\n - `\"SIGRTMIN+13\"`\n - `\"SIGRTMIN+14\"`\n - `\"SIGRTMIN+15\"`\n - `\"SIGRTMIN+2\"`\n - `\"SIGRTMIN+3\"`\n - `\"SIGRTMIN+4\"`\n - `\"SIGRTMIN+5\"`\n - `\"SIGRTMIN+6\"`\n - `\"SIGRTMIN+7\"`\n - `\"SIGRTMIN+8\"`\n - `\"SIGRTMIN+9\"`\n - `\"SIGSEGV\"`\n - `\"SIGSTKFLT\"`\n - `\"SIGSTOP\"`\n - `\"SIGSYS\"`\n - `\"SIGTERM\"`\n - `\"SIGTRAP\"`\n - `\"SIGTSTP\"`\n - `\"SIGTTIN\"`\n - `\"SIGTTOU\"`\n - `\"SIGURG\"`\n - `\"SIGUSR1\"`\n - `\"SIGUSR2\"`\n - `\"SIGVTALRM\"`\n - `\"SIGWINCH\"`\n - `\"SIGXCPU\"`\n - `\"SIGXFSZ\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"SIGABRT", "SIGALRM", "SIGBUS", "SIGCHLD", "SIGCLD", "SIGCONT", "SIGFPE", "SIGHUP", "SIGILL", "SIGINT", "SIGIO", "SIGIOT", "SIGKILL", "SIGPIPE", "SIGPOLL", "SIGPROF", "SIGPWR", "SIGQUIT", "SIGRTMAX", "SIGRTMAX-1", "SIGRTMAX-10", "SIGRTMAX-11", "SIGRTMAX-12", "SIGRTMAX-13", "SIGRTMAX-14", "SIGRTMAX-2", "SIGRTMAX-3", "SIGRTMAX-4", "SIGRTMAX-5", "SIGRTMAX-6", "SIGRTMAX-7", "SIGRTMAX-8", "SIGRTMAX-9", "SIGRTMIN", "SIGRTMIN+1", "SIGRTMIN+10", "SIGRTMIN+11", "SIGRTMIN+12", "SIGRTMIN+13", "SIGRTMIN+14", "SIGRTMIN+15", "SIGRTMIN+2", "SIGRTMIN+3", "SIGRTMIN+4", "SIGRTMIN+5", "SIGRTMIN+6", "SIGRTMIN+7", "SIGRTMIN+8", "SIGRTMIN+9", "SIGSEGV", "SIGSTKFLT", "SIGSTOP", "SIGSYS", "SIGTERM", "SIGTRAP", "SIGTSTP", "SIGTTIN", "SIGTTOU", "SIGURG", "SIGUSR1", "SIGUSR2", "SIGVTALRM", "SIGWINCH", "SIGXCPU", "SIGXFSZ"}, + }, + }, }, }, }, @@ -47577,25 +52452,25 @@ func schema_k8sio_api_core_v1_LifecycleHandler(ref common.ReferenceCallback) com Properties: map[string]spec.Schema{ "exec": { SchemaProps: spec.SchemaProps{ - Description: "Exec specifies the action to take.", + Description: "Exec specifies a command to execute in the container.", Ref: ref("k8s.io/api/core/v1.ExecAction"), }, }, "httpGet": { SchemaProps: spec.SchemaProps{ - Description: "HTTPGet specifies the http request to perform.", + Description: "HTTPGet specifies an HTTP GET request to perform.", Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), }, }, "tcpSocket": { SchemaProps: spec.SchemaProps{ - Description: "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.", + Description: "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.", Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), }, }, "sleep": { SchemaProps: spec.SchemaProps{ - Description: "Sleep represents the duration that the container should sleep before being terminated.", + Description: "Sleep represents a duration that the container should sleep.", Ref: ref("k8s.io/api/core/v1.SleepAction"), }, }, @@ -48049,7 +52924,7 @@ func schema_k8sio_api_core_v1_LocalVolumeSource(ref common.ReferenceCallback) co return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Local represents directly-attached storage with node affinity (Beta feature)", + Description: "Local represents directly-attached storage with node affinity", Type: []string{"object"}, Properties: map[string]spec.Schema{ "path": { @@ -48216,19 +53091,22 @@ func schema_k8sio_api_core_v1_NamespaceCondition(ref common.ReferenceCallback) c }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "Last time the condition transitioned from one status to another.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, "reason": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Unique, one-word, CamelCase reason for the condition's last transition.", + Type: []string{"string"}, + Format: "", }, }, "message": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Human-readable message indicating details about last transition.", + Type: []string{"string"}, + Format: "", }, }, }, @@ -49086,7 +53964,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, }, SchemaProps: spec.SchemaProps{ - Description: "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", + Description: "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -49110,7 +53988,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, }, SchemaProps: spec.SchemaProps{ - Description: "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", + Description: "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -49131,7 +54009,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, "nodeInfo": { SchemaProps: spec.SchemaProps{ - Description: "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info", + Description: "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/reference/node/node-status/#info", Default: map[string]interface{}{}, Ref: ref("k8s.io/api/core/v1.NodeSystemInfo"), }, @@ -49233,6 +54111,26 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op } } +func schema_k8sio_api_core_v1_NodeSwapStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeSwapStatus represents swap memory information.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "capacity": { + SchemaProps: spec.SchemaProps{ + Description: "Total amount of swap memory in bytes.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + }, + }, + }, + } +} + func schema_k8sio_api_core_v1_NodeSystemInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -49320,10 +54218,18 @@ func schema_k8sio_api_core_v1_NodeSystemInfo(ref common.ReferenceCallback) commo Format: "", }, }, + "swap": { + SchemaProps: spec.SchemaProps{ + Description: "Swap Info reported by the node.", + Ref: ref("k8s.io/api/core/v1.NodeSwapStatus"), + }, + }, }, Required: []string{"machineID", "systemUUID", "bootID", "kernelVersion", "osImage", "containerRuntimeVersion", "kubeletVersion", "kubeProxyVersion", "operatingSystem", "architecture"}, }, }, + Dependencies: []string{ + "k8s.io/api/core/v1.NodeSwapStatus"}, } } @@ -49537,16 +54443,18 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref common.Referenc Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "status": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lastProbeTime": { @@ -49975,13 +54883,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac Properties: map[string]spec.Schema{ "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. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. 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("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), }, }, "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. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + 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("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), }, }, @@ -49993,7 +54901,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + Description: "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), }, }, @@ -50005,7 +54913,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", + 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. More info: https://examples.k8s.io/volumes/rbd/README.md", Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), }, }, @@ -50017,13 +54925,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + 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("k8s.io/api/core/v1.CinderPersistentVolumeSource"), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + 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("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), }, }, @@ -50035,55 +54943,55 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "flocker": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running", + Description: "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. 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("k8s.io/api/core/v1.FlockerVolumeSource"), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + 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("k8s.io/api/core/v1.FlexPersistentVolumeSource"), }, }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", + 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("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), }, }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + 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("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + 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("k8s.io/api/core/v1.QuobyteVolumeSource"), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + 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("k8s.io/api/core/v1.AzureDiskVolumeSource"), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + 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("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), }, }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", + 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("k8s.io/api/core/v1.PortworxVolumeSource"), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + 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("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), }, }, @@ -50095,13 +55003,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md", + Description: "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. More info: https://examples.k8s.io/volumes/storageos/README.md", Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", + Description: "csi represents storage that is handled by an external CSI driver.", Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), }, }, @@ -50136,13 +55044,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "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. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. 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("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), }, }, "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. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + 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("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), }, }, @@ -50154,7 +55062,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + Description: "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), }, }, @@ -50166,7 +55074,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", + 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. More info: https://examples.k8s.io/volumes/rbd/README.md", Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), }, }, @@ -50178,13 +55086,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + 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("k8s.io/api/core/v1.CinderPersistentVolumeSource"), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + 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("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), }, }, @@ -50196,55 +55104,55 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "flocker": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running", + Description: "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. 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("k8s.io/api/core/v1.FlockerVolumeSource"), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + 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("k8s.io/api/core/v1.FlexPersistentVolumeSource"), }, }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", + 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("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), }, }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + 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("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + 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("k8s.io/api/core/v1.QuobyteVolumeSource"), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + 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("k8s.io/api/core/v1.AzureDiskVolumeSource"), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + 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("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), }, }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", + 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("k8s.io/api/core/v1.PortworxVolumeSource"), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + 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("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), }, }, @@ -50256,13 +55164,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md", + Description: "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. More info: https://examples.k8s.io/volumes/storageos/README.md", Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", + Description: "csi represents storage that is handled by an external CSI driver.", Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), }, }, @@ -50591,7 +55499,7 @@ func schema_k8sio_api_core_v1_PodAffinityTerm(ref common.ReferenceCallback) comm }, }, SchemaProps: spec.SchemaProps{ - Description: "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + Description: "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -50611,7 +55519,7 @@ func schema_k8sio_api_core_v1_PodAffinityTerm(ref common.ReferenceCallback) comm }, }, SchemaProps: spec.SchemaProps{ - Description: "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + Description: "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -50763,6 +55671,13 @@ func schema_k8sio_api_core_v1_PodCondition(ref common.ReferenceCallback) common. Format: "", }, }, + "observedGeneration": { + SchemaProps: spec.SchemaProps{ + Description: "If set, this represents the .metadata.generation that the pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.", + Type: []string{"integer"}, + Format: "int64", + }, + }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", @@ -50889,15 +55804,16 @@ func schema_k8sio_api_core_v1_PodDNSConfigOption(ref common.ReferenceCallback) c Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Required.", + Description: "Name is this DNS resolver option's name. Required.", Type: []string{"string"}, Format: "", }, }, "value": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Value is this DNS resolver option's value.", + Type: []string{"string"}, + Format: "", }, }, }, @@ -51126,7 +56042,7 @@ func schema_k8sio_api_core_v1_PodLogOptions(ref common.ReferenceCallback) common }, "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", + 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. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".", Type: []string{"integer"}, Format: "int64", }, @@ -51145,6 +56061,13 @@ func schema_k8sio_api_core_v1_PodLogOptions(ref common.ReferenceCallback) common Format: "", }, }, + "stream": { + SchemaProps: spec.SchemaProps{ + Description: "Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -51479,6 +56402,13 @@ func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) c Ref: ref("k8s.io/api/core/v1.AppArmorProfile"), }, }, + "seLinuxChangePolicy": { + SchemaProps: spec.SchemaProps{ + Description: "seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\".\n\n\"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.\n\n\"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. \"MountOption\" value is allowed only when SELinuxMount feature gate is enabled.\n\nIf not specified and SELinuxMount feature gate is enabled, \"MountOption\" is used. If not specified and SELinuxMount feature gate is disabled, \"MountOption\" is used for ReadWriteOncePod volumes and \"Recursive\" for all other volumes.\n\nThis field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\nAll Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -51551,7 +56481,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, }, SchemaProps: spec.SchemaProps{ - Description: "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", + Description: "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -51986,12 +56916,18 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, }, }, + "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.\n\nThis field enables fine-grained control over resource allocation for the entire pod, allowing resource sharing among containers in a pod.\n\nThis is an alpha field and requires enabling the PodLevelResources feature gate.", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + }, + }, }, Required: []string{"containers"}, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.EphemeralContainer", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodDNSConfig", "k8s.io/api/core/v1.PodOS", "k8s.io/api/core/v1.PodReadinessGate", "k8s.io/api/core/v1.PodResourceClaim", "k8s.io/api/core/v1.PodSchedulingGate", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.TopologySpreadConstraint", "k8s.io/api/core/v1.Volume", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.EphemeralContainer", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodDNSConfig", "k8s.io/api/core/v1.PodOS", "k8s.io/api/core/v1.PodReadinessGate", "k8s.io/api/core/v1.PodResourceClaim", "k8s.io/api/core/v1.PodSchedulingGate", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.TopologySpreadConstraint", "k8s.io/api/core/v1.Volume", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } @@ -52002,6 +56938,13 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope Description: "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", Type: []string{"object"}, Properties: map[string]spec.Schema{ + "observedGeneration": { + SchemaProps: spec.SchemaProps{ + Description: "If set, this represents the .metadata.generation that the pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.", + Type: []string{"integer"}, + Format: "int64", + }, + }, "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)", @@ -52127,7 +57070,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, SchemaProps: spec.SchemaProps{ - Description: "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + 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{ @@ -52146,7 +57089,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, SchemaProps: spec.SchemaProps{ - Description: "The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + 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{ @@ -52173,7 +57116,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, SchemaProps: spec.SchemaProps{ - Description: "Status for any ephemeral containers that have run in this pod.", + Description: "Statuses for any ephemeral containers that have run in this pod. Each ephemeral 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{ @@ -52187,7 +57130,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, "resize": { SchemaProps: spec.SchemaProps{ - Description: "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"", + Description: "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources.", Type: []string{"string"}, Format: "", }, @@ -52394,7 +57337,8 @@ func schema_k8sio_api_core_v1_PortStatus(ref common.ReferenceCallback) common.Op return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "PortStatus represents the error condition of a service port", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "port": { SchemaProps: spec.SchemaProps{ @@ -52546,25 +57490,25 @@ func schema_k8sio_api_core_v1_Probe(ref common.ReferenceCallback) common.OpenAPI Properties: map[string]spec.Schema{ "exec": { SchemaProps: spec.SchemaProps{ - Description: "Exec specifies the action to take.", + Description: "Exec specifies a command to execute in the container.", Ref: ref("k8s.io/api/core/v1.ExecAction"), }, }, "httpGet": { SchemaProps: spec.SchemaProps{ - Description: "HTTPGet specifies the http request to perform.", + Description: "HTTPGet specifies an HTTP GET request to perform.", Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), }, }, "tcpSocket": { SchemaProps: spec.SchemaProps{ - Description: "TCPSocket specifies an action involving a TCP port.", + Description: "TCPSocket specifies a connection to a TCP port.", Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), }, }, "grpc": { SchemaProps: spec.SchemaProps{ - Description: "GRPC specifies an action involving a GRPC port.", + Description: "GRPC specifies a GRPC HealthCheckRequest.", Ref: ref("k8s.io/api/core/v1.GRPCAction"), }, }, @@ -52627,25 +57571,25 @@ func schema_k8sio_api_core_v1_ProbeHandler(ref common.ReferenceCallback) common. Properties: map[string]spec.Schema{ "exec": { SchemaProps: spec.SchemaProps{ - Description: "Exec specifies the action to take.", + Description: "Exec specifies a command to execute in the container.", Ref: ref("k8s.io/api/core/v1.ExecAction"), }, }, "httpGet": { SchemaProps: spec.SchemaProps{ - Description: "HTTPGet specifies the http request to perform.", + Description: "HTTPGet specifies an HTTP GET request to perform.", Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), }, }, "tcpSocket": { SchemaProps: spec.SchemaProps{ - Description: "TCPSocket specifies an action involving a TCP port.", + Description: "TCPSocket specifies a connection to a TCP port.", Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), }, }, "grpc": { SchemaProps: spec.SchemaProps{ - Description: "GRPC specifies an action involving a GRPC port.", + Description: "GRPC specifies a GRPC HealthCheckRequest.", Ref: ref("k8s.io/api/core/v1.GRPCAction"), }, }, @@ -53147,6 +58091,7 @@ func schema_k8sio_api_core_v1_ReplicationControllerSpec(ref common.ReferenceCall "replicas": { SchemaProps: spec.SchemaProps{ Description: "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + Default: 1, Type: []string{"integer"}, Format: "int32", }, @@ -53154,6 +58099,7 @@ func schema_k8sio_api_core_v1_ReplicationControllerSpec(ref common.ReferenceCall "minReadySeconds": { SchemaProps: spec.SchemaProps{ 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)", + Default: 0, Type: []string{"integer"}, Format: "int32", }, @@ -53344,7 +58290,7 @@ func schema_k8sio_api_core_v1_ResourceHealth(ref common.ReferenceCallback) commo 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 and historical health changes are planned to be added in future iterations of a KEP.", + 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": { @@ -53506,7 +58452,7 @@ func schema_k8sio_api_core_v1_ResourceQuotaSpec(ref common.ReferenceCallback) co Default: "", Type: []string{"string"}, Format: "", - Enum: []interface{}{"BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating"}, + Enum: []interface{}{"BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating", "VolumeAttributesClass"}, }, }, }, @@ -53638,11 +58584,12 @@ func schema_k8sio_api_core_v1_ResourceStatus(ref common.ReferenceCallback) commo return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + 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 match one of the resources from the pod spec.", + 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: "", @@ -53658,7 +58605,7 @@ func schema_k8sio_api_core_v1_ResourceStatus(ref common.ReferenceCallback) commo }, }, SchemaProps: spec.SchemaProps{ - Description: "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.", + 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{ @@ -53946,11 +58893,11 @@ func schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref common.Refer 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", + 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"}, + Enum: []interface{}{"BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating", "VolumeAttributesClass"}, }, }, "operator": { @@ -54590,7 +59537,7 @@ func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) commo }, }, 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\". 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: "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{ @@ -55099,7 +60046,7 @@ func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.O }, "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 topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature.", + 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: "", }, @@ -55582,7 +60529,7 @@ func schema_k8sio_api_core_v1_TopologySpreadConstraint(ref common.ReferenceCallb }, "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. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.\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: "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"}, @@ -55590,7 +60537,7 @@ func schema_k8sio_api_core_v1_TopologySpreadConstraint(ref common.ReferenceCallb }, "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. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.\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: "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"}, @@ -55671,7 +60618,8 @@ func schema_k8sio_api_core_v1_TypedObjectReference(ref common.ReferenceCallback) return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + 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{ @@ -55739,19 +60687,19 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "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. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + 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("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), }, }, "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. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + 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("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), }, }, "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.", + 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("k8s.io/api/core/v1.GitRepoVolumeSource"), }, }, @@ -55775,7 +60723,7 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + 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. More info: https://examples.k8s.io/volumes/glusterfs/README.md", Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), }, }, @@ -55787,31 +60735,31 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", + 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. More info: https://examples.k8s.io/volumes/rbd/README.md", Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + 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("k8s.io/api/core/v1.FlexVolumeSource"), }, }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + 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("k8s.io/api/core/v1.CinderVolumeSource"), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + 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("k8s.io/api/core/v1.CephFSVolumeSource"), }, }, "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", + 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("k8s.io/api/core/v1.FlockerVolumeSource"), }, }, @@ -55829,7 +60777,7 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", + 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("k8s.io/api/core/v1.AzureFileVolumeSource"), }, }, @@ -55841,25 +60789,25 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + 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("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + 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("k8s.io/api/core/v1.QuobyteVolumeSource"), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + 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("k8s.io/api/core/v1.AzureDiskVolumeSource"), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + 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("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), }, }, @@ -55871,25 +60819,25 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", + 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("k8s.io/api/core/v1.PortworxVolumeSource"), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + 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("k8s.io/api/core/v1.ScaleIOVolumeSource"), }, }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", + 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("k8s.io/api/core/v1.StorageOSVolumeSource"), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", + Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.", Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), }, }, @@ -55901,7 +60849,7 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "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). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", + 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("k8s.io/api/core/v1.ImageVolumeSource"), }, }, @@ -56184,19 +61132,19 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "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. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + 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("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), }, }, "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. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + 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("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), }, }, "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.", + 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("k8s.io/api/core/v1.GitRepoVolumeSource"), }, }, @@ -56220,7 +61168,7 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + 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. More info: https://examples.k8s.io/volumes/glusterfs/README.md", Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), }, }, @@ -56232,31 +61180,31 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", + 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. More info: https://examples.k8s.io/volumes/rbd/README.md", Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + 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("k8s.io/api/core/v1.FlexVolumeSource"), }, }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + 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("k8s.io/api/core/v1.CinderVolumeSource"), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + 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("k8s.io/api/core/v1.CephFSVolumeSource"), }, }, "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", + 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("k8s.io/api/core/v1.FlockerVolumeSource"), }, }, @@ -56274,7 +61222,7 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", + 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("k8s.io/api/core/v1.AzureFileVolumeSource"), }, }, @@ -56286,25 +61234,25 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + 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("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + 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("k8s.io/api/core/v1.QuobyteVolumeSource"), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + 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("k8s.io/api/core/v1.AzureDiskVolumeSource"), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + 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("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), }, }, @@ -56316,25 +61264,25 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", + 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("k8s.io/api/core/v1.PortworxVolumeSource"), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + 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("k8s.io/api/core/v1.ScaleIOVolumeSource"), }, }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", + 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("k8s.io/api/core/v1.StorageOSVolumeSource"), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", + Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.", Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), }, }, @@ -56346,7 +61294,7 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "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). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", + 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("k8s.io/api/core/v1.ImageVolumeSource"), }, }, @@ -57347,28 +62295,28 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentStatus(ref common.ReferenceCa }, "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", + Description: "Total number of non-terminating pods targeted by this deployment (their labels match the selector).", Type: []string{"integer"}, Format: "int32", }, }, "updatedReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", + Description: "Total number of non-terminating pods targeted by this deployment that have the desired template spec.", Type: []string{"integer"}, Format: "int32", }, }, "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Total number of ready pods targeted by this deployment.", + Description: "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.", Type: []string{"integer"}, Format: "int32", }, }, "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", + Description: "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.", Type: []string{"integer"}, Format: "int32", }, @@ -57380,6 +62328,13 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentStatus(ref common.ReferenceCa Format: "int32", }, }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + 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 an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", + Type: []string{"integer"}, + Format: "int32", + }, + }, "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -58475,7 +63430,7 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetList(ref common.ReferenceCall }, "items": { SchemaProps: spec.SchemaProps{ - Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -58505,7 +63460,7 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetSpec(ref common.ReferenceCall Properties: map[string]spec.Schema{ "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + 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", }, @@ -58525,7 +63480,7 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetSpec(ref common.ReferenceCall }, "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/replicationcontroller#pod-template", + 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("k8s.io/api/core/v1.PodTemplateSpec"), }, @@ -58547,7 +63502,7 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetStatus(ref common.ReferenceCa Properties: map[string]spec.Schema{ "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + 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", @@ -58555,21 +63510,28 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetStatus(ref common.ReferenceCa }, "fullyLabeledReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of pods that have labels matching the labels of the pod template of the replicaset.", + 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", }, }, "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of ready replicas for this replica set.", + Description: "The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.", Type: []string{"integer"}, Format: "int32", }, }, "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + Description: "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + 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 an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", Type: []string{"integer"}, Format: "int32", }, @@ -58802,82 +63764,198 @@ func schema_k8sio_api_extensions_v1beta1_ScaleStatus(ref common.ReferenceCallbac }, }, }, - Required: []string{"replicas"}, + Required: []string{"replicas"}, + }, + }, + } +} + +func schema_k8sio_api_networking_v1_HTTPIngressPath(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + 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{ + "path": { + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + "pathType": { + SchemaProps: spec.SchemaProps{ + 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"}, + }, + }, + "backend": { + SchemaProps: spec.SchemaProps{ + Description: "backend defines the referenced service endpoint to which the traffic will be forwarded to.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/networking/v1.IngressBackend"), + }, + }, + }, + Required: []string{"pathType", "backend"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.IngressBackend"}, + } +} + +func schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + 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{ + "paths": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + 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("k8s.io/api/networking/v1.HTTPIngressPath"), + }, + }, + }, + }, + }, + }, + Required: []string{"paths"}, }, }, + Dependencies: []string{ + "k8s.io/api/networking/v1.HTTPIngressPath"}, } } -func schema_k8sio_api_networking_v1_HTTPIngressPath(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: "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", + 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{ - "path": { + "kind": { SchemaProps: spec.SchemaProps{ - 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\".", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "", }, }, - "pathType": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - 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.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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{}{"Exact", "ImplementationSpecific", "Prefix"}, }, }, - "backend": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "backend defines the referenced service endpoint to which the traffic will be forwarded to.", + 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("k8s.io/api/networking/v1.IngressBackend"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + 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("k8s.io/api/networking/v1.IPAddressSpec"), }, }, }, - Required: []string{"pathType", "backend"}, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.IngressBackend"}, + "k8s.io/api/networking/v1.IPAddressSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_k8sio_api_networking_v1_HTTPIngressRuleValue(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: "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 '#'.", + Description: "IPAddressList contains a list of IPAddress.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "paths": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "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: "paths is a collection of paths that map requests to backends.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + 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("k8s.io/api/networking/v1.HTTPIngressPath"), + Ref: ref("k8s.io/api/networking/v1.IPAddress"), }, }, }, }, }, }, - Required: []string{"paths"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.HTTPIngressPath"}, + "k8s.io/api/networking/v1.IPAddress", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_k8sio_api_networking_v1_IPAddressSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IPAddressSpec describe the attributes in an IP Address.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "parentRef": { + SchemaProps: spec.SchemaProps{ + Description: "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.", + Ref: ref("k8s.io/api/networking/v1.ParentReference"), + }, + }, + }, + Required: []string{"parentRef"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.ParentReference"}, } } @@ -59580,130 +64658,456 @@ func schema_k8sio_api_networking_v1_NetworkPolicy(ref common.ReferenceCallback) }, "spec": { SchemaProps: spec.SchemaProps{ - Description: "spec represents the specification of the desired behavior for this NetworkPolicy.", + Description: "spec represents the specification of the desired behavior for this NetworkPolicy.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/networking/v1.NetworkPolicySpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.NetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +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: "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("k8s.io/api/networking/v1.NetworkPolicyPort"), + }, + }, + }, + }, + }, + "to": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + 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("k8s.io/api/networking/v1.NetworkPolicyPeer"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.NetworkPolicyPeer", "k8s.io/api/networking/v1.NetworkPolicyPort"}, + } +} + +func schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + 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{ + "ports": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + 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("k8s.io/api/networking/v1.NetworkPolicyPort"), + }, + }, + }, + }, + }, + "from": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + 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("k8s.io/api/networking/v1.NetworkPolicyPeer"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.NetworkPolicyPeer", "k8s.io/api/networking/v1.NetworkPolicyPort"}, + } +} + +func schema_k8sio_api_networking_v1_NetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NetworkPolicyList is a list of NetworkPolicy 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#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + 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("k8s.io/api/networking/v1.NetworkPolicy"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.NetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + 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{ + "podSelector": { + SchemaProps: spec.SchemaProps{ + 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("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "namespaceSelector": { + SchemaProps: spec.SchemaProps{ + 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("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "ipBlock": { + SchemaProps: spec.SchemaProps{ + Description: "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.", + Ref: ref("k8s.io/api/networking/v1.IPBlock"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.IPBlock", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + } +} + +func schema_k8sio_api_networking_v1_NetworkPolicyPort(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NetworkPolicyPort describes a port to allow traffic on", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "protocol": { + SchemaProps: spec.SchemaProps{ + 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"}, + }, + }, + "port": { + SchemaProps: spec.SchemaProps{ + 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("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + }, + }, + "endPort": { + SchemaProps: spec.SchemaProps{ + 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{ + "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + } +} + +func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NetworkPolicySpec provides the specification of a NetworkPolicy", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "podSelector": { + SchemaProps: spec.SchemaProps{ + Description: "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "ingress": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + 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: map[string]interface{}{}, + Ref: ref("k8s.io/api/networking/v1.NetworkPolicyIngressRule"), + }, + }, + }, + }, + }, + "egress": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + 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: map[string]interface{}{}, + Ref: ref("k8s.io/api/networking/v1.NetworkPolicyEgressRule"), + }, + }, + }, + }, + }, + "policyTypes": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + 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{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Egress", "Ingress"}, + }, + }, + }, + }, + }, + }, + Required: []string{"podSelector"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.NetworkPolicyEgressRule", "k8s.io/api/networking/v1.NetworkPolicyIngressRule", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + } +} + +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: "Group is the group of the object being referenced.", + Type: []string{"string"}, + Format: "", + }, + }, + "resource": { + SchemaProps: spec.SchemaProps{ + Description: "Resource is the resource of the object being referenced.", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace is the namespace of the object being referenced.", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of the object being referenced.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + 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: "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", + Type: []string{"string"}, + Format: "", + }, + }, + "number": { + SchemaProps: spec.SchemaProps{ + 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", + }, + }, + }, + }, + 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: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + 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("k8s.io/api/networking/v1.NetworkPolicySpec"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/networking/v1.NetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -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: "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("k8s.io/api/networking/v1.NetworkPolicyPort"), - }, - }, - }, + Ref: ref("k8s.io/api/networking/v1.ServiceCIDRSpec"), }, }, - "to": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, - SchemaProps: spec.SchemaProps{ - 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("k8s.io/api/networking/v1.NetworkPolicyPeer"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/networking/v1.NetworkPolicyPeer", "k8s.io/api/networking/v1.NetworkPolicyPort"}, - } -} - -func schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - 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{ - "ports": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, - SchemaProps: spec.SchemaProps{ - 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("k8s.io/api/networking/v1.NetworkPolicyPort"), - }, - }, - }, - }, - }, - "from": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, + "status": { SchemaProps: spec.SchemaProps{ - 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("k8s.io/api/networking/v1.NetworkPolicyPeer"), - }, - }, - }, + 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("k8s.io/api/networking/v1.ServiceCIDRStatus"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.NetworkPolicyPeer", "k8s.io/api/networking/v1.NetworkPolicyPort"}, + "k8s.io/api/networking/v1.ServiceCIDRSpec", "k8s.io/api/networking/v1.ServiceCIDRStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_k8sio_api_networking_v1_NetworkPolicyList(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: "NetworkPolicyList is a list of NetworkPolicy objects.", + Description: "ServiceCIDRList contains a list of ServiceCIDR objects.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -59722,20 +65126,20 @@ func schema_k8sio_api_networking_v1_NetworkPolicyList(ref common.ReferenceCallba }, "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, "items": { SchemaProps: spec.SchemaProps{ - Description: "items is a list of schema objects.", + 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("k8s.io/api/networking/v1.NetworkPolicy"), + Ref: ref("k8s.io/api/networking/v1.ServiceCIDR"), }, }, }, @@ -59746,139 +65150,25 @@ func schema_k8sio_api_networking_v1_NetworkPolicyList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.NetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - 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{ - "podSelector": { - SchemaProps: spec.SchemaProps{ - 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("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), - }, - }, - "namespaceSelector": { - SchemaProps: spec.SchemaProps{ - 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("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), - }, - }, - "ipBlock": { - SchemaProps: spec.SchemaProps{ - Description: "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.", - Ref: ref("k8s.io/api/networking/v1.IPBlock"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/networking/v1.IPBlock", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, - } -} - -func schema_k8sio_api_networking_v1_NetworkPolicyPort(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NetworkPolicyPort describes a port to allow traffic on", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "protocol": { - SchemaProps: spec.SchemaProps{ - 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"}, - }, - }, - "port": { - SchemaProps: spec.SchemaProps{ - 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("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), - }, - }, - "endPort": { - SchemaProps: spec.SchemaProps{ - 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{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + "k8s.io/api/networking/v1.ServiceCIDR", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_k8sio_api_networking_v1_NetworkPolicySpec(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: "NetworkPolicySpec provides the specification of a NetworkPolicy", + Description: "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "podSelector": { - SchemaProps: spec.SchemaProps{ - Description: "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), - }, - }, - "ingress": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, - SchemaProps: spec.SchemaProps{ - 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: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.NetworkPolicyIngressRule"), - }, - }, - }, - }, - }, - "egress": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, - SchemaProps: spec.SchemaProps{ - 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: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.NetworkPolicyEgressRule"), - }, - }, - }, - }, - }, - "policyTypes": { + "cidrs": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - 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", + 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{ @@ -59886,50 +65176,53 @@ func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallba Default: "", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Egress", "Ingress"}, }, }, }, }, }, }, - Required: []string{"podSelector"}, }, }, - Dependencies: []string{ - "k8s.io/api/networking/v1.NetworkPolicyEgressRule", "k8s.io/api/networking/v1.NetworkPolicyIngressRule", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, } } -func schema_k8sio_api_networking_v1_ServiceBackendPort(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: "ServiceBackendPort is the service port being referenced.", + Description: "ServiceCIDRStatus describes the current state of the ServiceCIDR.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", - 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", + }, }, - }, - "number": { SchemaProps: spec.SchemaProps{ - 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", + 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("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), + }, + }, + }, }, }, }, }, - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-map-type": "atomic", - }, - }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, } } @@ -61516,7 +66809,7 @@ func schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetSpec(ref common.Referenc }, "unhealthyPodEvictionPolicy": { SchemaProps: spec.SchemaProps{ - Description: "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).\n\nPossible enum values:\n - `\"AlwaysAllow\"` policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n - `\"IfHealthyBudget\"` policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.", + Description: "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nPossible enum values:\n - `\"AlwaysAllow\"` policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n - `\"IfHealthyBudget\"` policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.", Type: []string{"string"}, Format: "", Enum: []interface{}{"AlwaysAllow", "IfHealthyBudget"}, @@ -64198,6 +69491,13 @@ func schema_k8sio_api_storage_v1_CSIDriverSpec(ref common.ReferenceCallback) com Format: "", }, }, + "nodeAllocatableUpdatePeriodSeconds": { + SchemaProps: spec.SchemaProps{ + 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 an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + Type: []string{"integer"}, + Format: "int64", + }, + }, }, }, }, @@ -64822,7 +70122,7 @@ func schema_k8sio_api_storage_v1_VolumeAttachmentSource(ref common.ReferenceCall return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", + 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": { @@ -64957,6 +70257,13 @@ func schema_k8sio_api_storage_v1_VolumeError(ref common.ReferenceCallback) commo Format: "", }, }, + "errorCode": { + SchemaProps: spec.SchemaProps{ + Description: "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.\n\nThis is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, }, }, }, @@ -65205,7 +70512,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSource(ref common.Referen return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", + 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": { @@ -65452,6 +70759,13 @@ func schema_k8sio_api_storage_v1alpha1_VolumeError(ref common.ReferenceCallback) Format: "", }, }, + "errorCode": { + SchemaProps: spec.SchemaProps{ + Description: "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.\n\nThis is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, }, }, }, @@ -65643,6 +70957,13 @@ func schema_k8sio_api_storage_v1beta1_CSIDriverSpec(ref common.ReferenceCallback Format: "", }, }, + "nodeAllocatableUpdatePeriodSeconds": { + SchemaProps: spec.SchemaProps{ + 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 an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + Type: []string{"integer"}, + Format: "int64", + }, + }, }, }, }, @@ -66266,7 +71587,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttachmentSource(ref common.Referenc return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", + 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": { @@ -66513,6 +71834,13 @@ func schema_k8sio_api_storage_v1beta1_VolumeError(ref common.ReferenceCallback) Format: "", }, }, + "errorCode": { + SchemaProps: spec.SchemaProps{ + Description: "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.\n\nThis is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, }, }, }, @@ -67223,6 +72551,13 @@ func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common. }, }, }, + "ignoreStoreReadErrorWithClusterBreakingPotential": { + SchemaProps: spec.SchemaProps{ + Description: "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, @@ -69130,16 +74465,46 @@ func schema_k8sio_apimachinery_pkg_version_Info(ref common.ReferenceCallback) co Properties: map[string]spec.Schema{ "major": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Major is the major version of the binary version", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "minor": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Minor is the minor version of the binary version", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "emulationMajor": { + SchemaProps: spec.SchemaProps{ + Description: "EmulationMajor is the major version of the emulation version", + Type: []string{"string"}, + Format: "", + }, + }, + "emulationMinor": { + SchemaProps: spec.SchemaProps{ + Description: "EmulationMinor is the minor version of the emulation version", + Type: []string{"string"}, + Format: "", + }, + }, + "minCompatibilityMajor": { + SchemaProps: spec.SchemaProps{ + Description: "MinCompatibilityMajor is the major version of the minimum compatibility version", + Type: []string{"string"}, + Format: "", + }, + }, + "minCompatibilityMinor": { + SchemaProps: spec.SchemaProps{ + Description: "MinCompatibilityMinor is the minor version of the minimum compatibility version", + Type: []string{"string"}, + Format: "", }, }, "gitVersion": { @@ -69381,3 +74746,272 @@ func schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialStatus(ref commo "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } + +func schema_pkg_apis_metrics_v1beta1_ContainerMetrics(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ContainerMetrics sets resource usage metrics of a container.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Container name corresponding to the one from pod.spec.containers.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "usage": { + 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"), + }, + }, + }, + }, + }, + }, + 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 { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeMetrics sets resource usage metrics of a node.", + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "timestamp": { + SchemaProps: spec.SchemaProps{ + Description: "The following fields define time interval from which metrics were collected from the interval [Timestamp-Window, Timestamp].", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "window": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "usage": { + 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"), + }, + }, + }, + }, + }, + }, + Required: []string{"timestamp", "window", "usage"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_metrics_v1beta1_NodeMetricsList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeMetricsList is a list of NodeMetrics.", + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + 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"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "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": { + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "timestamp": { + SchemaProps: spec.SchemaProps{ + Description: "The following fields define time interval from which metrics were collected from the interval [Timestamp-Window, Timestamp].", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "window": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "containers": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + 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"), + }, + }, + }, + }, + }, + }, + Required: []string{"timestamp", "window", "containers"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.Time", "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": { + 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + 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"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetrics"}, + } +} diff --git a/pkg/product/strings.go b/pkg/product/strings.go index a04d9e09..0bfeeadc 100644 --- a/pkg/product/strings.go +++ b/pkg/product/strings.go @@ -12,7 +12,7 @@ func LoginCmd() string { case licenseapi.DevPodPro: return "devpod login" case licenseapi.VClusterPro: - return "vcluster login" + return "vcluster platform login" case licenseapi.Loft: } diff --git a/pkg/token/token.go b/pkg/token/token.go index c4915f9f..57030d90 100644 --- a/pkg/token/token.go +++ b/pkg/token/token.go @@ -1,6 +1,9 @@ package token -import storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + "k8s.io/apiserver/pkg/authentication/user" +) type PrivateClaims struct { Loft Loft `json:"loft.sh,omitempty"` @@ -17,6 +20,8 @@ type Loft struct { Kind string `json:"kind,omitempty"` // The generation of the token Gen int64 `json:"gen,omitempty"` + // The requester name of the token + OriginalRequester *user.DefaultInfo `json:"originalRequester,omitempty"` // The scope of the token if there is any Scope *storagev1.AccessKeyScope `json:"scope,omitempty"` }