diff --git a/go.mod b/go.mod index 84109912..5156ca11 100644 --- a/go.mod +++ b/go.mod @@ -1,26 +1,29 @@ 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-20260107140926-51c6ca9ce68d + github.com/loft-sh/agentapi/v4 v4.7.0-next.internal.3 + github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 + k8s.io/api v0.34.0 + k8s.io/apimachinery v0.34.0 + k8s.io/apiserver v0.34.0 + k8s.io/client-go v0.34.0 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-20250710124328-f3f2b991d03b + sigs.k8s.io/controller-runtime v0.21.0 + sigs.k8s.io/controller-tools v0.16.4 ) require ( + cel.dev/expr v0.24.0 // indirect + github.com/Masterminds/semver/v3 v3.4.0 // 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 @@ -28,85 +31,88 @@ require ( github.com/coreos/go-semver v0.3.1 // indirect github.com/coreos/go-systemd/v22 v22.5.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect - github.com/emicklei/go-restful/v3 v3.12.1 // indirect - github.com/evanphx/json-patch/v5 v5.9.0 // indirect + github.com/emicklei/go-restful/v3 v3.12.2 // indirect + github.com/evanphx/json-patch/v5 v5.9.11 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect - github.com/fsnotify/fsnotify v1.7.0 // indirect - github.com/fxamacker/cbor/v2 v2.7.0 // indirect - github.com/go-logr/logr v1.4.2 // indirect + github.com/fsnotify/fsnotify v1.9.0 // indirect + github.com/fxamacker/cbor/v2 v2.9.0 // indirect + github.com/go-logr/logr v1.4.3 // 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.26.0 // indirect + github.com/google/gnostic-models v0.7.0 // 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.26.3 // 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/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // 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_model v0.6.1 // indirect - github.com/prometheus/common v0.60.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/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/prometheus/client_golang v1.23.2 // indirect + github.com/prometheus/client_model v0.6.2 // indirect + github.com/prometheus/common v0.66.1 // indirect + github.com/prometheus/procfs v0.16.1 // 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.6.4 // indirect + go.etcd.io/etcd/client/pkg/v3 v3.6.4 // indirect + go.etcd.io/etcd/client/v3 v3.6.4 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/sdk v1.34.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect + go.opentelemetry.io/proto/otlp v1.5.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 + go.yaml.in/yaml/v2 v2.4.2 // indirect + go.yaml.in/yaml/v3 v3.0.4 // indirect + golang.org/x/crypto v0.41.0 // indirect + golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect + golang.org/x/mod v0.27.0 // indirect + golang.org/x/net v0.43.0 // indirect + golang.org/x/oauth2 v0.30.0 // indirect + golang.org/x/sync v0.16.0 // indirect + golang.org/x/sys v0.35.0 // indirect + golang.org/x/term v0.34.0 // indirect + golang.org/x/text v0.28.0 // indirect + golang.org/x/time v0.9.0 // indirect + golang.org/x/tools v0.36.0 // indirect + golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb // indirect + google.golang.org/grpc v1.72.1 // indirect + google.golang.org/protobuf v1.36.8 // 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 - sigs.k8s.io/yaml v1.4.0 // indirect + k8s.io/apiextensions-apiserver v0.34.0 // indirect + k8s.io/component-base v0.34.0 // indirect + k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 // indirect + sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 // indirect + sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect + sigs.k8s.io/randfill v1.0.0 // indirect + sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect + sigs.k8s.io/yaml v1.6.0 // indirect ) diff --git a/go.sum b/go.sum index 7e4f65bc..7a756848 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,11 @@ +cel.dev/expr v0.24.0 h1:56OvJKSH3hDGL0ml5uSxZmz3/3Pq4tJ+fb1unVLAFcY= +cel.dev/expr v0.24.0/go.mod h1:hLPLo1W4QUmuYdA72RBX06QTs6MXw941piREPl3Yfiw= +github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1Xbatp0= +github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= 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,28 +18,28 @@ 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= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= -github.com/emicklei/go-restful/v3 v3.12.1 h1:PJMDIM/ak7btuL8Ex0iYET9hxM3CI2sjZtzpL63nKAU= -github.com/emicklei/go-restful/v3 v3.12.1/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= -github.com/evanphx/json-patch/v5 v5.9.0 h1:kcBlZQbplgElYIlo/n1hJbls2z/1awpXxpRi0/FOJfg= -github.com/evanphx/json-patch/v5 v5.9.0/go.mod h1:VNkHZ/282BpEyt/tObQO8s5CMPmYYq14uClGH4abBuQ= +github.com/emicklei/go-restful/v3 v3.12.2 h1:DhwDP0vY3k8ZzE0RunuJy8GhNpPL6zqLkDf9B/a0/xU= +github.com/emicklei/go-restful/v3 v3.12.2/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +github.com/evanphx/json-patch/v5 v5.9.11 h1:/8HVnzMq13/3x9TPvjG08wUGqBTmZBsCWzjTM0wiaDU= +github.com/evanphx/json-patch/v5 v5.9.11/go.mod h1:3j+LviiESTElxA4p3EMKAB9HXj3/XEtnUf6OZxqIQTM= 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/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= -github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= +github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= +github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= +github.com/fxamacker/cbor/v2 v2.9.0 h1:NpKPmjDBgUfBms6tr6JZkTHtfFGcMKsw3eGcmD/sapM= +github.com/fxamacker/cbor/v2 v2.9.0/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= -github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ= @@ -50,228 +52,234 @@ 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/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9vvo= +github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= 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/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/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.26.0 h1:DPGjXackMpJWH680oGY4lZhYjIameYmR+/6RBdDGmaI= +github.com/google/cel-go v0.26.0/go.mod h1:A9O8OU9rdvrK5MQyrqfIxo1a0u4g3sF8KB6PUIaryMM= +github.com/google/gnostic-models v0.7.0 h1:qwTtogB15McXDaNqTZdzPJRHvaVJlAl+HVQnLmJEJxo= +github.com/google/gnostic-models v0.7.0/go.mod h1:whL5G0m6dmc5cPxKc5bdKdEN3UjI7OUGxBlw57miDrQ= +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/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/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/providers/prometheus v1.0.1 h1:qnpSQwGEnkcRpTqNOIR6bJbR0gAorgP9CSALpRcKoAA= +github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1/go.mod h1:lXGCsh6c22WGtjr+qGHj1otzZpV/1kwTMAqkwZsnWRU= +github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.0 h1:FbSCl+KggFl+Ocym490i/EyXF4lPgLoUtcSWquBM0Rs= +github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.0/go.mod h1:qOchhhIlmRcqk/O9uCo/puJlyo07YINaIqdZfZG3Jkc= 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.26.3 h1:5ZPtiqj0JL5oKWmcsq4VMaAW5ukBEgSGXEN89zeH1Jo= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3/go.mod h1:ndYquD05frm2vACXE1nsccT4oJzjhw2arTS2cpUD1PI= 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= -github.com/jonboulle/clockwork v0.4.0/go.mod h1:xgRqUGwRcjKCO1vbZUEtSLrqKoPSsUpK7fnezOII0kc= +github.com/jonboulle/clockwork v0.5.0 h1:Hyh9A8u51kptdkR+cqRpT1EebBwTn1oK9YfGYbdFz6I= +github.com/jonboulle/clockwork v0.5.0/go.mod h1:3mZlmanh0g2NDKO5TWZVJAfofYk64M7XN3SzBPjZF60= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= 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-20260107140926-51c6ca9ce68d h1:MUdqpgrq6hme8nsxx5WqYmU/g/AIY4m6H5onn8sJfGw= +github.com/loft-sh/admin-apis v0.0.0-20260107140926-51c6ca9ce68d/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= +github.com/loft-sh/agentapi/v4 v4.7.0-next.internal.3 h1:A0dSjWWemb8hsdJHKwzRzRRd5wAT86WDh7VEzkKL51Y= +github.com/loft-sh/agentapi/v4 v4.7.0-next.internal.3/go.mod h1:k7lisx8w4PXilSbgiW4CvpU2mVhC10k0PzYMUDG7wlo= +github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 h1:ZWOAMcsIZN4GKESwZBWU1+uepe+L8owmrkJDe5j4KlE= +github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646/go.mod h1:hLlplUgCm+KDLoTVfSNTGQSBx/fhsTxu5m8d1LBUXKA= 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= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFdJifH4BDsTlE89Zl93FEloxaWZfGcifgq8= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= 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.27.2 h1:LzwLj0b89qtIy6SSASkzlNvX6WktqurSHwkk2ipF/Ns= +github.com/onsi/ginkgo/v2 v2.27.2/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo= +github.com/onsi/gomega v1.38.2 h1:eZCjf2xjZAqe+LeWvKb5weQ+NcPwX84kqJ0cZNxok2A= +github.com/onsi/gomega v1.38.2/go.mod h1:W2MJcYxRGV63b418Ai34Ud0hEdTVXq9NW9+Sx6uXf3k= 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_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/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/prometheus/client_golang v1.23.2 h1:Je96obch5RDVy3FDMndoUsjAhG5Edi49h0RJWRi/o0o= +github.com/prometheus/client_golang v1.23.2/go.mod h1:Tb1a6LWHB3/SPIzCoaDXI4I8UHKeFTEQ1YCr+0Gyqmg= +github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= +github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE= +github.com/prometheus/common v0.66.1 h1:h5E0h5/Y8niHc5DlaLlWLArTQI7tMrsfQjHV+d9ZoGs= +github.com/prometheus/common v0.66.1/go.mod h1:gcaUsgf3KfRSwHY4dIMXLPV0K/Wg1oZ8+SbZk/HH/dA= +github.com/prometheus/procfs v0.16.1 h1:hZ15bTNuirocR6u0JZ6BAHHmwS1p8B4P6MRqxtzMyRg= +github.com/prometheus/procfs v0.16.1/go.mod h1:teAbpZRB1iIAJYREa1LsoWUXykVXA1KlTmWl8x/U+Is= +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.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75 h1:6fotK7otjonDflCTK0BCfls4SPy3NcCVb5dqqmbRknE= github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75/go.mod h1:KO6IkyS8Y3j8OdNO85qEYBsRPuteD+YciPomcXdrMnk= github.com/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.4.2 h1:IrUHp260R8c+zYx/Tm8QZr04CX+qWS5PGfPdevhdm1I= +go.etcd.io/bbolt v1.4.2/go.mod h1:Is8rSHO/b4f3XigBC0lL0+4FwAQv3HXEEIgFMuKHceM= +go.etcd.io/etcd/api/v3 v3.6.4 h1:7F6N7toCKcV72QmoUKa23yYLiiljMrT4xCeBL9BmXdo= +go.etcd.io/etcd/api/v3 v3.6.4/go.mod h1:eFhhvfR8Px1P6SEuLT600v+vrhdDTdcfMzmnxVXXSbk= +go.etcd.io/etcd/client/pkg/v3 v3.6.4 h1:9HBYrjppeOfFjBjaMTRxT3R7xT0GLK8EJMVC4xg6ok0= +go.etcd.io/etcd/client/pkg/v3 v3.6.4/go.mod h1:sbdzr2cl3HzVmxNw//PH7aLGVtY4QySjQFuaCgcRFAI= +go.etcd.io/etcd/client/v3 v3.6.4 h1:YOMrCfMhRzY8NgtzUsHl8hC2EBSnuqbR3dh84Uryl7A= +go.etcd.io/etcd/client/v3 v3.6.4/go.mod h1:jaNNHCyg2FdALyKWnd7hxZXZxZANb0+KGY+YQaEMISo= +go.etcd.io/etcd/pkg/v3 v3.6.4 h1:fy8bmXIec1Q35/jRZ0KOes8vuFxbvdN0aAFqmEfJZWA= +go.etcd.io/etcd/pkg/v3 v3.6.4/go.mod h1:kKcYWP8gHuBRcteyv6MXWSN0+bVMnfgqiHueIZnKMtE= +go.etcd.io/etcd/server/v3 v3.6.4 h1:LsCA7CzjVt+8WGrdsnh6RhC0XqCsLkBly3ve5rTxMAU= +go.etcd.io/etcd/server/v3 v3.6.4/go.mod h1:aYCL/h43yiONOv0QIR82kH/2xZ7m+IWYjzRmyQfnCAg= +go.etcd.io/raft/v3 v3.6.0 h1:5NtvbDVYpnfZWcIHgGRk9DyzkBIXOi8j+DDp1IcnUWQ= +go.etcd.io/raft/v3 v3.6.0/go.mod h1:nLvLevg6+xrVtHUmVaTcTz603gQPHfh7kUAwV6YpfGo= +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.60.0 h1:x7wzEgXfnzJcHDwStJT+mxOz4etr2EcexjqhBvmoakw= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0/go.mod h1:rg+RlpR5dKwaS95IyyZqj5Wd4E13lk/msnTS0Xl9lJM= +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.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 h1:OeNbIYk/2C15ckl7glBlOBp5+WlYsOElzTNmiPW/x60= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0/go.mod h1:7Bept48yIeqxP2OZ9/AqIpYS94h2or0aB4FypJTc8ZM= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 h1:tgJ0uaNS4c98WRNUEx5U3aDlrDOI5Rs+1Vifcw4DJ8U= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0/go.mod h1:U7HYyW0zt/a9x5J1Kjs+r1f/d4ZHnYFclhYY2+YbeoE= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= +go.opentelemetry.io/otel/sdk v1.34.0 h1:95zS4k/2GOy069d321O8jWgYsW3MzVV+KuSPKp7Wr1A= +go.opentelemetry.io/otel/sdk v1.34.0/go.mod h1:0e/pNiaMAqaykJGKbi+tSjWfNNHMTxoC9qANsCzbyxU= +go.opentelemetry.io/otel/sdk/metric v1.34.0 h1:5CeK9ujjbFVL5c1PhLuStg1wxA7vQv7ce1EK0Gyvahk= +go.opentelemetry.io/otel/sdk/metric v1.34.0/go.mod h1:jQ/r8Ze28zRKoNRdkjCZxfs6YvBTG1+YIqyFVFYec5w= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= +go.opentelemetry.io/proto/otlp v1.5.0 h1:xJvq7gMzB31/d406fB8U5CBdyQGw4P399D1aQWU/3i4= +go.opentelemetry.io/proto/otlp v1.5.0/go.mod h1:keN8WnHxOy8PG0rQZjJJ5A2ebUoafqWp0eVQ4yIXvJ4= 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= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI= +go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU= +go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= 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.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4= +golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc= +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.27.0 h1:kb+q2PyFnEADO2IEF935ehFUXlWiNjJWtRNgBLSfbxQ= +golang.org/x/mod v0.27.0/go.mod h1:rWI627Fq0DEoudcK+MBkNkCe0EetEaDSwJJkCcjpazc= 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.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= +golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= +golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI= +golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU= 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.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw= +golang.org/x/sync v0.16.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.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI= +golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/term v0.34.0 h1:O/2T7POpk0ZZ7MAzMeWFSg6S5IpWd/RXDlM9hgM3DR4= +golang.org/x/term v0.34.0/go.mod h1:5jC53AEywhIVebHgPVeg0mj8OD3VO9OzclacVrqpaAw= 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.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng= +golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU= +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.36.0 h1:kWS0uv/zsvHEle1LbV5LE8QujrxB3wfQyxHfhOk0Qkg= +golang.org/x/tools v0.36.0/go.mod h1:WBDiHKJK8YgLHlcQPYQzNCkUxUypCaa5ZegCVutKm+s= +golang.org/x/tools/go/expect v0.1.0-deprecated h1:jY2C5HGYR5lqex3gEniOQL0r7Dq5+VGVgY1nudX5lXY= +golang.org/x/tools/go/expect v0.1.0-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY= +golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated h1:1h2MnaIAIXISqTFKdENegdpAgUXz6NrPEsbIeWaBRvM= +golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated/go.mod h1:RVAQXBGNv1ib0J382/DPCRS/BPnsGebyM1Gj5VSDpG8= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 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/googleapis/api v0.0.0-20250303144028-a0af3efb3deb h1:p31xT4yrYrSM/G4Sn2+TNUkVhFCbG9y8itM2S6Th950= +google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb/go.mod h1:jbe3Bkdp+Dh2IrslsFCklNhweNTBgSYanP1UXhJDhKg= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb h1:TLPQVbx1GJ8VKZxz52VAxl1EBgKXXbTiU9Fc5fZeLn4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb/go.mod h1:LuRYeWDFV6WOn90g357N17oMCaxpgCnbi/44qJvDn2I= +google.golang.org/grpc v1.72.1 h1:HR03wO6eyZ7lknl75XlxABNVLLFc2PAb6mHlYh756mA= +google.golang.org/grpc v1.72.1/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM= +google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc= +google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= 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 +291,40 @@ 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.34.0 h1:L+JtP2wDbEYPUeNGbeSa/5GwFtIA662EmT2YSLOkAVE= +k8s.io/api v0.34.0/go.mod h1:YzgkIzOOlhl9uwWCZNqpw6RJy9L2FK4dlJeayUoydug= +k8s.io/apiextensions-apiserver v0.34.0 h1:B3hiB32jV7BcyKcMU5fDaDxk882YrJ1KU+ZSkA9Qxoc= +k8s.io/apiextensions-apiserver v0.34.0/go.mod h1:hLI4GxE1BDBy9adJKxUxCEHBGZtGfIg98Q+JmTD7+g0= +k8s.io/apimachinery v0.34.0 h1:eR1WO5fo0HyoQZt1wdISpFDffnWOvFLOOeJ7MgIv4z0= +k8s.io/apimachinery v0.34.0/go.mod h1:/GwIlEcWuTX9zKIg2mbw0LRFIsXwrfoVxn+ef0X13lw= +k8s.io/apiserver v0.34.0 h1:Z51fw1iGMqN7uJ1kEaynf2Aec1Y774PqU+FVWCFV3Jg= +k8s.io/apiserver v0.34.0/go.mod h1:52ti5YhxAvewmmpVRqlASvaqxt0gKJxvCeW7ZrwgazQ= +k8s.io/client-go v0.34.0 h1:YoWv5r7bsBfb0Hs2jh8SOvFbKzzxyNo0nSb0zC19KZo= +k8s.io/client-go v0.34.0/go.mod h1:ozgMnEKXkRjeMvBZdV1AijMHLTh3pbACPvK7zFR+QQY= +k8s.io/component-base v0.34.0 h1:bS8Ua3zlJzapklsB1dZgjEJuJEeHjj8yTu1gxE2zQX8= +k8s.io/component-base v0.34.0/go.mod h1:RSCqUdvIjjrEm81epPcjQ/DS+49fADvGSCkIP3IC6vg= 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= -sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= -sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= +k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b h1:MloQ9/bdJyIu9lb1PzujOPolHyvO06MXG5TUIj2mNAA= +k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b/go.mod h1:UZ2yyWbFTpuhSbFhv24aGNOdoRdJZgsIObGBUaYVsts= +k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 h1:hwvWFiBzdWw1FhfY1FooPn3kzWuJ8tmbZBHi4zVsl1Y= +k8s.io/utils v0.0.0-20250604170112-4c0f3b243397/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.21.0 h1:CYfjpEuicjUecRk+KAeyYh+ouUBn4llGyDYytIGcJS8= +sigs.k8s.io/controller-runtime v0.21.0/go.mod h1:OSg14+F65eWqIu4DceX7k/+QRAbTTvxeQSNSOQpukWM= +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-20241014173422-cfa47c3a1cc8 h1:gBQPwqORJ8d8/YNZWEjoZs7npUVDpVXUUOFfW6CgAqE= +sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg= +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/v6 v6.3.0 h1:jTijUJbW353oVOd9oTlifJqOGEkUw2jB/fXCbTiQEco= +sigs.k8s.io/structured-merge-diff/v6 v6.3.0/go.mod h1:M3W8sfWvn2HhQDIbGWj3S099YozAsymCo/wrT5ohRUE= +sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= +sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= diff --git a/pkg/apis/management/install/install.go b/pkg/apis/management/install/install.go index 1afbb0d7..dd6b7499 100644 --- a/pkg/apis/management/install/install.go +++ b/pkg/apis/management/install/install.go @@ -27,11 +27,6 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &management.UserSpacesOptions{}, &management.UserVirtualClustersOptions{}, &management.UserQuotasOptions{}, - &management.DevPodUpOptions{}, - &management.DevPodDeleteOptions{}, - &management.DevPodStopOptions{}, - &management.DevPodStatusOptions{}, - &management.DevPodSshOptions{}, ) 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..d2d6bcb5 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,18 +49,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.ConfigList{}, &management.ConvertVirtualClusterConfig{}, &management.ConvertVirtualClusterConfigList{}, - &management.DevPodEnvironmentTemplate{}, - &management.DevPodEnvironmentTemplateList{}, - &management.DevPodWorkspaceInstance{}, - &management.DevPodWorkspaceInstanceList{}, - &management.DevPodDeleteOptions{}, - &management.DevPodStatusOptions{}, - &management.DevPodSshOptions{}, - &management.DevPodWorkspaceInstanceState{}, - &management.DevPodStopOptions{}, - &management.DevPodUpOptions{}, - &management.DevPodWorkspaceTemplate{}, - &management.DevPodWorkspaceTemplateList{}, + &management.DatabaseConnector{}, + &management.DatabaseConnectorList{}, &management.DirectClusterEndpointToken{}, &management.DirectClusterEndpointTokenList{}, &management.Event{}, @@ -75,10 +64,17 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.License{}, &management.LicenseList{}, &management.LicenseRequest{}, - &management.LicenseToken{}, - &management.LicenseTokenList{}, &management.LoftUpgrade{}, &management.LoftUpgradeList{}, + &management.NodeClaim{}, + &management.NodeClaimList{}, + &management.NodeEnvironment{}, + &management.NodeEnvironmentList{}, + &management.NodeProvider{}, + &management.NodeProviderList{}, + &management.NodeProviderExec{}, + &management.NodeType{}, + &management.NodeTypeList{}, &management.OIDCClient{}, &management.OIDCClientList{}, &management.OwnedAccessKey{}, @@ -92,7 +88,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.ProjectMembers{}, &management.ProjectMigrateSpaceInstance{}, &management.ProjectMigrateVirtualClusterInstance{}, - &management.ProjectRunners{}, + &management.ProjectNodeTypes{}, &management.ProjectTemplates{}, &management.ProjectSecret{}, &management.ProjectSecretList{}, @@ -102,10 +98,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 +117,32 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.TeamList{}, &management.TeamAccessKeys{}, &management.TeamClusters{}, + &management.TeamObjectPermissions{}, + &management.TeamPermissions{}, &management.TranslateVClusterResourceName{}, &management.TranslateVClusterResourceNameList{}, + &management.UsageDownload{}, + &management.UsageDownloadList{}, &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.VirtualClusterNodeAccessKey{}, + &management.VirtualClusterResourceUsage{}, + &management.VirtualClusterInstanceShell{}, + &management.VirtualClusterInstanceSnapshot{}, + &management.VirtualClusterStandalone{}, + &management.VirtualClusterSchema{}, + &management.VirtualClusterSchemaList{}, &management.VirtualClusterTemplate{}, &management.VirtualClusterTemplateList{}, ) diff --git a/pkg/apis/management/v1/cluster_agentconfig_types.go b/pkg/apis/management/v1/cluster_agentconfig_types.go index 05ad1f11..437dac0d 100644 --- a/pkg/apis/management/v1/cluster_agentconfig_types.go +++ b/pkg/apis/management/v1/cluster_agentconfig_types.go @@ -47,6 +47,12 @@ 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"` + + // AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later + AuthenticateVersionEndpoint bool `json:"authenticateVersionEndpoint,omitempty"` } type AgentAuditConfig struct { @@ -100,3 +106,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..13c4d8fb 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" ) @@ -55,6 +56,7 @@ type ConfigStatus struct { // +optional ProjectNamespacePrefix *string `json:"projectNamespacePrefix,omitempty"` + // DEPRECATED: DevPodSubDomain holds a subdomain in the following form *.workspace.my-domain.com // DevPodSubDomain holds a subdomain in the following form *.workspace.my-domain.com // +optional DevPodSubDomain string `json:"devPodSubDomain,omitempty"` @@ -69,6 +71,22 @@ type ConfigStatus struct { // DisableLoftConfigEndpoint will disable setting config via the UI and config.management.loft.sh endpoint DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` + + // AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later + AuthenticateVersionEndpoint bool `json:"authenticateVersionEndpoint,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"` + + // PlatformDB holds the settings related to the postgres database that platform uses to store data + PlatformDB *PlatformDB `json:"platformDB,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 +676,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 @@ -691,4 +713,110 @@ type AuthenticationOIDC struct { // Type of the OIDC to show in the UI. Only for displaying purposes // +optional Type string `json:"type,omitempty"` + + // Resource, if specified, is the value that is set for the "resource" URL parameter when making a request to the /token endpoint of the + // OIDC provider. + // +optional + Resource string `json:"resource,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 PlatformDB struct { + // StorageClass sets the storage class for the PersistentVolumeClaim used by the platform database statefulSet. + StorageClass string `json:"storageClass,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 deleted file mode 100644 index c61f3360..00000000 --- a/pkg/apis/management/v1/devpodenvironmenttemplate_types.go +++ /dev/null @@ -1,60 +0,0 @@ -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 -// +genclient:noStatus -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DevPodEnvironmentTemplate holds the DevPodEnvironmentTemplate information -// +k8s:openapi-gen=true -// +resource:path=devpodenvironmenttemplates,rest=DevPodEnvironmentTemplateREST -type DevPodEnvironmentTemplate struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodEnvironmentTemplateSpec `json:"spec,omitempty"` - Status DevPodEnvironmentTemplateStatus `json:"status,omitempty"` -} - -// DevPodEnvironmentTemplateSpec holds the specification -type DevPodEnvironmentTemplateSpec struct { - storagev1.DevPodEnvironmentTemplateSpec `json:",inline"` -} - -// 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"` -} - -func (a *DevPodEnvironmentTemplate) GetOwner() *storagev1.UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodEnvironmentTemplate) SetOwner(userOrTeam *storagev1.UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodEnvironmentTemplate) GetAccess() []storagev1.Access { - return a.Spec.Access -} - -func (a *DevPodEnvironmentTemplate) SetAccess(access []storagev1.Access) { - a.Spec.Access = access -} - -// DevPodEnvironmentTemplateStatus holds the status -type DevPodEnvironmentTemplateStatus struct{} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_state_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_state_types.go deleted file mode 100644 index 49074dd1..00000000 --- a/pkg/apis/management/v1/devpodworkspaceinstance_state_types.go +++ /dev/null @@ -1,17 +0,0 @@ -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// +subresource-request -type DevPodWorkspaceInstanceState 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"` -} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_types.go deleted file mode 100644 index a77b5498..00000000 --- a/pkg/apis/management/v1/devpodworkspaceinstance_types.go +++ /dev/null @@ -1,70 +0,0 @@ -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" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +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 -// +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 -type DevPodWorkspaceInstance struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspaceInstanceSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStatus `json:"status,omitempty"` -} - -// DevPodWorkspaceInstanceSpec holds the specification -type DevPodWorkspaceInstanceSpec struct { - storagev1.DevPodWorkspaceInstanceSpec `json:",inline"` -} - -// DevPodWorkspaceInstanceStatus holds the status -type DevPodWorkspaceInstanceStatus struct { - storagev1.DevPodWorkspaceInstanceStatus `json:",inline"` - - // SleepModeConfig is the sleep mode config of the workspace. This will only be shown - // in the front end. - // +optional - SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` -} - -func (a *DevPodWorkspaceInstance) GetConditions() agentstoragev1.Conditions { - return a.Status.Conditions -} - -func (a *DevPodWorkspaceInstance) SetConditions(conditions agentstoragev1.Conditions) { - a.Status.Conditions = conditions -} - -func (a *DevPodWorkspaceInstance) GetOwner() *storagev1.UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodWorkspaceInstance) SetOwner(userOrTeam *storagev1.UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodWorkspaceInstance) GetAccess() []storagev1.Access { - return a.Spec.Access -} - -func (a *DevPodWorkspaceInstance) SetAccess(access []storagev1.Access) { - a.Spec.Access = access -} diff --git a/pkg/apis/management/v1/devpodworkspacetemplate_types.go b/pkg/apis/management/v1/devpodworkspacetemplate_types.go deleted file mode 100644 index d3409096..00000000 --- a/pkg/apis/management/v1/devpodworkspacetemplate_types.go +++ /dev/null @@ -1,57 +0,0 @@ -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 - -// DevPodWorkspaceTemplate holds the information -// +k8s:openapi-gen=true -// +resource:path=devpodworkspacetemplates,rest=DevPodWorkspaceTemplateREST -type DevPodWorkspaceTemplate struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspaceTemplateSpec `json:"spec,omitempty"` - Status DevPodWorkspaceTemplateStatus `json:"status,omitempty"` -} - -// DevPodWorkspaceTemplateSpec holds the specification -type DevPodWorkspaceTemplateSpec struct { - storagev1.DevPodWorkspaceTemplateSpec `json:",inline"` -} - -// DevPodWorkspaceTemplateStatus holds the status -type DevPodWorkspaceTemplateStatus struct { - storagev1.DevPodWorkspaceTemplateStatus `json:",inline"` -} - -func (a *DevPodWorkspaceTemplate) GetVersions() []storagev1.VersionAccessor { - var retVersions []storagev1.VersionAccessor - for _, v := range a.Spec.Versions { - b := v - retVersions = append(retVersions, &b) - } - - return retVersions -} - -func (a *DevPodWorkspaceTemplate) GetOwner() *storagev1.UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodWorkspaceTemplate) SetOwner(userOrTeam *storagev1.UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodWorkspaceTemplate) GetAccess() []storagev1.Access { - return a.Spec.Access -} - -func (a *DevPodWorkspaceTemplate) SetAccess(access []storagev1.Access) { - a.Spec.Access = access -} diff --git a/pkg/apis/management/v1/kiosk_types.go b/pkg/apis/management/v1/kiosk_types.go index b6d3e12c..366b5197 100644 --- a/pkg/apis/management/v1/kiosk_types.go +++ b/pkg/apis/management/v1/kiosk_types.go @@ -35,6 +35,16 @@ type KioskSpec struct { UISettings uiv1.UISettings `json:"UISettings,omitempty"` License License `json:"license,omitempty"` + + // autoscaling + NodeProviderBCMNodeWithResources NodeProviderBCMNodeWithResources `json:"nodeProviderBCMNodeWithResources,omitempty"` + NodeProviderBCMGetResourcesResult NodeProviderBCMGetResourcesResult `json:"nodeProviderBCMGetResourcesResult,omitempty"` + NodeProviderBCMTestConnectionResult NodeProviderBCMTestConnectionResult `json:"nodeProviderBCMTestConnectionResult,omitempty"` + NodeProviderCalculateCostResult NodeProviderCalculateCostResult `json:"nodeProviderCalculateCostResult,omitempty"` + NodeProviderTerraformValidateResult NodeProviderTerraformValidateResult `json:"nodeProviderTerraformValidateResult,omitempty"` + NodeProviderExecResult NodeProviderExecResult `json:"nodeProviderExecResult,omitempty"` + NodeClaimData NodeClaimData `json:"nodeClaimData,omitempty"` + NodeEnvironmentData NodeEnvironmentData `json:"nodeEnvironmentData,omitempty"` } type KioskStatus struct { diff --git a/pkg/apis/management/v1/license_token_types.go b/pkg/apis/management/v1/license_token_types.go deleted file mode 100644 index e4911b82..00000000 --- a/pkg/apis/management/v1/license_token_types.go +++ /dev/null @@ -1,30 +0,0 @@ -package v1 - -import ( - "github.com/loft-sh/admin-apis/pkg/licenseapi" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// License Token holds the license token information -// +k8s:openapi-gen=true -// +resource:path=licensetokens,rest=LicenseTokenREST -type LicenseToken struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec LicenseTokenSpec `json:"spec,omitempty"` - Status LicenseTokenStatus `json:"status,omitempty"` -} - -type LicenseTokenSpec struct { - URL string `json:"url,omitempty"` - Payload string `json:"payload,omitempty"` -} - -type LicenseTokenStatus struct { - Token *licenseapi.InstanceTokenAuth `json:"token,omitempty"` -} diff --git a/pkg/apis/management/v1/license_types.go b/pkg/apis/management/v1/license_types.go index 914f39bc..9283b557 100644 --- a/pkg/apis/management/v1/license_types.go +++ b/pkg/apis/management/v1/license_types.go @@ -33,4 +33,7 @@ type LicenseStatus struct { // ResourceUsage shows the current usage of license limit. // +optional ResourceUsage map[string]licenseapi.ResourceCount `json:"resourceUsage,omitempty"` + + // PlatformDatabase shows information about the platform database installation + PlatformDatabase *licenseapi.PlatformDatabase `json:"platformDatabase,omitempty"` } diff --git a/pkg/apis/management/v1/licenserequest_types.go b/pkg/apis/management/v1/licenserequest_types.go index 2199f71b..9df63a1a 100644 --- a/pkg/apis/management/v1/licenserequest_types.go +++ b/pkg/apis/management/v1/licenserequest_types.go @@ -1,7 +1,6 @@ package v1 import ( - "github.com/loft-sh/admin-apis/pkg/licenseapi" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -25,11 +24,11 @@ type LicenseRequestSpec struct { URL string `json:"url,omitempty"` // Input is the input payload to send to the url. - Input licenseapi.GenericRequestInput `json:"input,omitempty"` + Input string `json:"input,omitempty"` } type LicenseRequestStatus struct { // Output is where the request output is stored. // +optional - Output *licenseapi.GenericRequestOutput `json:"output,omitempty"` + Output string `json:"output,omitempty"` } 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/nodeenvironment_types.go b/pkg/apis/management/v1/nodeenvironment_types.go new file mode 100644 index 00000000..dc281c48 --- /dev/null +++ b/pkg/apis/management/v1/nodeenvironment_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="NodeProvider",type="string",JSONPath=".spec.nodeProviderRef" +// +kubebuilder:subresource:status + +// NodeEnvironment holds the node environment for vCluster. +// +k8s:openapi-gen=true +// +resource:path=nodeenvironments,rest=NodeEnvironmentREST,statusRest=NodeEnvironmentStatusREST +type NodeEnvironment struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeEnvironmentSpec `json:"spec,omitempty"` + Status NodeEnvironmentStatus `json:"status,omitempty"` +} + +// NodeEnvironmentSpec defines spec of node environment. +type NodeEnvironmentSpec struct { + storagev1.NodeEnvironmentSpec `json:",inline"` +} + +type NodeEnvironmentStatus struct { + storagev1.NodeEnvironmentStatus `json:",inline"` +} diff --git a/pkg/apis/management/v1/nodeprovider_exec_types.go b/pkg/apis/management/v1/nodeprovider_exec_types.go new file mode 100644 index 00000000..710d562b --- /dev/null +++ b/pkg/apis/management/v1/nodeprovider_exec_types.go @@ -0,0 +1,120 @@ +package v1 + +import ( + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type NodeProviderExec struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec NodeProviderExecSpec `json:"spec"` + Status NodeProviderExecStatus `json:"status,omitempty"` +} + +type NodeProviderExecSpec struct { + // Command is the action to perform. + // +kubebuilder:validation:Enum=bcmTestConnection;bcmGetResources + Command string `json:"command"` + Args runtime.RawExtension `json:"args,omitempty"` +} + +type NodeProviderExecStatus struct { + // Result is the output of the executed command. + Result runtime.RawExtension `json:"result,omitempty"` +} + +type NodeProviderBCMNodeWithResources struct { + Name string `json:"name"` + Resources *corev1.ResourceList `json:"resources,omitempty"` +} + +type NodeProviderBCMGetResourcesResult struct { + Nodes []NodeProviderBCMNodeWithResources `json:"nodes"` + NodeGroups []NodeProviderBCMNodeGroup `json:"nodeGroups"` +} + +type NodeProviderBCMNodeGroup struct { + Name string `json:"name"` + Nodes []string `json:"nodes"` +} + +type NodeProviderBCMTestConnectionResult struct { + Success bool `json:"success"` + Message string `json:"message"` +} + +type NodeProviderCalculateCostResult struct { + Cost int64 `json:"cost"` +} + +type NodeProviderTerraformValidateResult struct { + Success bool `json:"success"` + Output string `json:"output"` +} + +type NamespacedNameArgs struct { + Namespace string `json:"namespace"` + Name string `json:"name"` +} + +type NodeProviderExecResult struct { + Success bool `json:"success"` + Message string `json:"message"` +} +type NodeClaimData struct { + // UserData that should be used to start the node. + UserData string `json:"userData,omitempty"` + + // Terraform state of the node claim. + State []byte `json:"state,omitempty"` + + // Operations that were applied to the node claim. + Operations map[string]*Operation `json:"operations,omitempty"` +} + +type NodeEnvironmentData struct { + // Outputs of the node environment. + Outputs []byte `json:"outputs,omitempty"` + + // Terraform state of the node environment. + State []byte `json:"state,omitempty"` + + // Operations that were applied to the node environment. + Operations map[string]*Operation `json:"operations,omitempty"` +} + +const ( + OperationDrift = "drift" + OperationApply = "apply" + OperationDestroy = "destroy" +) + +type OperationPhase string + +const ( + OperationPhaseRunning OperationPhase = "Running" + OperationPhaseSuccess OperationPhase = "Success" + OperationPhaseFailed OperationPhase = "Failed" +) + +type Operation struct { + // StartTimestamp of the operation. + StartTimestamp metav1.Time `json:"startTimestamp,omitempty"` + + // EndTimestamp of the operation. + EndTimestamp metav1.Time `json:"endTimestamp,omitempty"` + + // Phase of the operation. + Phase OperationPhase `json:"phase,omitempty"` + + // Logs of the operation. + Logs []byte `json:"logs,omitempty"` + + // Error of the operation. + Error string `json:"error,omitempty"` +} diff --git a/pkg/apis/management/v1/nodeprovider_types.go b/pkg/apis/management/v1/nodeprovider_types.go new file mode 100644 index 00000000..d08c222b --- /dev/null +++ b/pkg/apis/management/v1/nodeprovider_types.go @@ -0,0 +1,34 @@ +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 +// +subresource:request=NodeProviderExec,path=exec,kind=NodeProviderExec,rest=NodeProviderExecREST +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..5216960a --- /dev/null +++ b/pkg/apis/management/v1/nodetype_types.go @@ -0,0 +1,32 @@ +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 +// +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"` +} + +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..db97be37 100644 --- a/pkg/apis/management/v1/options.go +++ b/pkg/apis/management/v1/options.go @@ -140,78 +140,6 @@ 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 { - 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 { - metav1.TypeMeta `json:",inline"` - - // 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 DevPodStopOptions struct { - metav1.TypeMeta `json:",inline"` - - // 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 DevPodStatusOptions struct { - metav1.TypeMeta `json:",inline"` - - // 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 DevPodSshOptions struct { - metav1.TypeMeta `json:",inline"` - - // 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 - type BackupApplyOptions struct { metav1.TypeMeta `json:",inline"` } @@ -229,11 +157,6 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &UserSpacesOptions{}, &UserVirtualClustersOptions{}, &UserQuotasOptions{}, - &DevPodUpOptions{}, - &DevPodDeleteOptions{}, - &DevPodStopOptions{}, - &DevPodStatusOptions{}, - &DevPodSshOptions{}, &BackupApplyOptions{}, ) 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_nodetypes_types.go b/pkg/apis/management/v1/project_nodetypes_types.go new file mode 100644 index 00000000..bef7ecff --- /dev/null +++ b/pkg/apis/management/v1/project_nodetypes_types.go @@ -0,0 +1,20 @@ +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 ProjectNodeTypes struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + // NodeProviders holds all the allowed node providers for the project + NodeProviders []storagev1.NodeProvider `json:"nodeProviders,omitempty"` + + // NodeTypes holds all the allowed node types for the project + NodeTypes []storagev1.NodeType `json:"nodeTypes,omitempty"` +} diff --git a/pkg/apis/management/v1/project_templates_types.go b/pkg/apis/management/v1/project_templates_types.go index 5c894109..94f92e74 100644 --- a/pkg/apis/management/v1/project_templates_types.go +++ b/pkg/apis/management/v1/project_templates_types.go @@ -22,16 +22,4 @@ type ProjectTemplates struct { // SpaceTemplates holds all the allowed space templates SpaceTemplates []SpaceTemplate `json:"spaceTemplates,omitempty"` - - // DefaultDevPodWorkspaceTemplate - DefaultDevPodWorkspaceTemplate string `json:"defaultDevPodWorkspaceTemplate,omitempty"` - - // DevPodWorkspaceTemplates holds all the allowed space templates - DevPodWorkspaceTemplates []DevPodWorkspaceTemplate `json:"devPodWorkspaceTemplates,omitempty"` - - // DevPodEnvironmentTemplates holds all the allowed environment templates - DevPodEnvironmentTemplates []DevPodEnvironmentTemplate `json:"devPodEnvironmentTemplates,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..17104112 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,13 +20,13 @@ 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 // +subresource:request=ProjectMigrateVirtualClusterInstance,path=migratevirtualclusterinstance,kind=ProjectMigrateVirtualClusterInstance,rest=ProjectMigrateVirtualClusterInstanceREST // +subresource:request=ProjectImportSpace,path=importspace,kind=ProjectImportSpace,rest=ProjectImportSpaceREST // +subresource:request=ProjectMigrateSpaceInstance,path=migratespaceinstance,kind=ProjectMigrateSpaceInstance,rest=ProjectMigrateSpaceInstanceREST +// +subresource:request=ProjectNodeTypes,path=nodetypes,kind=ProjectNodeTypes,rest=ProjectNodeTypesREST type Project struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/runner_accesskey_types.go b/pkg/apis/management/v1/runner_accesskey_types.go deleted file mode 100644 index 8fb0a8b2..00000000 --- a/pkg/apis/management/v1/runner_accesskey_types.go +++ /dev/null @@ -1,18 +0,0 @@ -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// RunnerAccessKey holds the access key for the runner -// +subresource-request -type RunnerAccessKey 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/runner_config_types.go deleted file mode 100644 index f92a05f4..00000000 --- a/pkg/apis/management/v1/runner_config_types.go +++ /dev/null @@ -1,19 +0,0 @@ -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// RunnerConfig holds the config the runner retrieves from Loft -// +subresource-request -type RunnerConfig 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/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/self_types.go b/pkg/apis/management/v1/self_types.go index ec1bff6b..28bdcb75 100644 --- a/pkg/apis/management/v1/self_types.go +++ b/pkg/apis/management/v1/self_types.go @@ -67,6 +67,10 @@ type SelfStatus struct { // +optional InstanceID string `json:"instanceID,omitempty"` + // LoftHost is the host of the loft instance + // +optional + LoftHost string `json:"loftHost,omitempty"` + // ProjectNamespacePrefix is the prefix used to name project namespaces after defaulting has been applied // +optional ProjectNamespacePrefix *string `json:"projectNamespacePrefix,omitempty"` 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/usagesnapshot_types.go b/pkg/apis/management/v1/usagesnapshot_types.go new file mode 100644 index 00000000..c7b9e295 --- /dev/null +++ b/pkg/apis/management/v1/usagesnapshot_types.go @@ -0,0 +1,27 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// UsageDownload returns a zip of CSV files containing table data from the usage +// postgres database +// +k8s:openapi-gen=true +// +resource:path=usagedownload,rest=UsageDownloadREST +type UsageDownload struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec UsageDownloadSpec `json:"spec,omitempty"` + Status UsageDownloadStatus `json:"status,omitempty"` +} + +type UsageDownloadSpec struct { +} + +type UsageDownloadStatus struct { +} 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_register_types.go b/pkg/apis/management/v1/virtualcluster_register_types.go index 1c489f90..a89bfb27 100644 --- a/pkg/apis/management/v1/virtualcluster_register_types.go +++ b/pkg/apis/management/v1/virtualcluster_register_types.go @@ -25,6 +25,10 @@ type RegisterVirtualClusterSpec struct { // +optional ServiceUID string `json:"serviceUID,omitempty"` + // KubernetesVersion is the Kubernetes version of the virtual cluster. + // +optional + KubernetesVersion string `json:"kubernetesVersion,omitempty"` + // Project is the project name the virtual cluster should be in. // +optional Project string `json:"project,omitempty"` @@ -56,4 +60,8 @@ type RegisterVirtualClusterStatus struct { // Name is the actual name of the virtual cluster instance. // +optional Name string `json:"name,omitempty"` + + // Namespace is the namespace of the virtual cluster instance. + // +optional + Namespace string `json:"namespace,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..0fdb8164 --- /dev/null +++ b/pkg/apis/management/v1/virtualclusterinstance_externaldatabase_types.go @@ -0,0 +1,38 @@ +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"` + + // IdentityProvider is the kine identity provider to use when generating temporary authentication tokens for + // enhanced security. + IdentityProvider string `json:"identityProvider,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_nodeaccesskey_types.go b/pkg/apis/management/v1/virtualclusterinstance_nodeaccesskey_types.go new file mode 100644 index 00000000..43950a10 --- /dev/null +++ b/pkg/apis/management/v1/virtualclusterinstance_nodeaccesskey_types.go @@ -0,0 +1,25 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VirtualClusterNodeAccessKey holds the access key for the virtual cluster +// +subresource-request +type VirtualClusterNodeAccessKey struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec VirtualClusterNodeAccessKeySpec `json:"spec,omitempty"` + Status VirtualClusterNodeAccessKeyStatus `json:"status,omitempty"` +} + +type VirtualClusterNodeAccessKeySpec struct{} + +type VirtualClusterNodeAccessKeyStatus struct { + // AccessKey is the access key used by the agent + // +optional + AccessKey string `json:"accessKey,omitempty"` +} diff --git a/pkg/apis/management/v1/virtualclusterinstance_resourceusage_types.go b/pkg/apis/management/v1/virtualclusterinstance_resourceusage_types.go new file mode 100644 index 00000000..0db25797 --- /dev/null +++ b/pkg/apis/management/v1/virtualclusterinstance_resourceusage_types.go @@ -0,0 +1,29 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VirtualClusterResourceUsage holds information about a virtual cluster's +// usage of node resources. +// +subresource-request +type VirtualClusterResourceUsage struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Status VirtualClusterResourceUsageStatus `json:"status,omitempty"` +} + +type VirtualClusterResourceUsageStatus struct { + // ResourceUsage contains the aggregated result of the queries to the virtual cluster's nodes. + ResourceUsage VirtualClusterResourceUsageMap `json:"resourceUsage,omitempty"` +} + +type VirtualClusterResourceUsageMap struct { + // Nodes is the total count of nodes attached to the virtual cluster. + Nodes int `json:"nodes"` + // Capacity is a map of resources to their total amounts across all attached nodes. + Capacity map[string]int `json:"capacity,omitempty"` +} diff --git a/pkg/apis/management/v1/virtualclusterinstance_shell.go b/pkg/apis/management/v1/virtualclusterinstance_shell.go new file mode 100644 index 00000000..2b68ddc0 --- /dev/null +++ b/pkg/apis/management/v1/virtualclusterinstance_shell.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 + +// VirtualClusterInstanceShell creates a pod for the requesting user +// +subresource-request +type VirtualClusterInstanceShell struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec VirtualClusterShellSpec `json:"spec,omitempty"` + Status VirtualClusterShellStatus `json:"status,omitempty"` +} + +type VirtualClusterShellSpec struct { +} + +type VirtualClusterShellStatus struct { + // PodName is the name of the shell pod that was created + PodName string `json:"podName,omitempty"` + // PodNamespace is the namespace of the shell pod that was created + PodNamespace string `json:"podNamespace,omitempty"` +} diff --git a/pkg/apis/management/v1/virtualclusterinstance_snapshot_types.go b/pkg/apis/management/v1/virtualclusterinstance_snapshot_types.go new file mode 100644 index 00000000..495b20f8 --- /dev/null +++ b/pkg/apis/management/v1/virtualclusterinstance_snapshot_types.go @@ -0,0 +1,88 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type VirtualClusterInstanceSnapshot struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Status VirtualClusterInstanceSnapshotStatus `json:"status,omitempty"` +} + +type VirtualClusterInstanceSnapshotStatus struct { + SnapshotsTaken []SnapshotTaken `json:"snapshotTaken,omitempty"` +} + +const ( + // SnapshotStored status will be deprecated in favor of SnapshotCompleted to match the vcluster snapshot status + SnapshotStored SnapshotTakenStatus = "Stored" + SnapshotCompleted SnapshotTakenStatus = "Completed" + SnapshotScheduled SnapshotTakenStatus = "Scheduled" + SnapshotFailed SnapshotTakenStatus = "Failed" + SnapshotPartiallyFailed SnapshotTakenStatus = "PartiallyFailed" + SnapshotInProgress SnapshotTakenStatus = "InProgress" + SnapshotNotFound SnapshotTakenStatus = "NotFound" + + SnapshotRequestPhaseCompleted SnapshotRequestPhase = "Completed" + SnapshotRequestPhasePartiallyFailed SnapshotRequestPhase = "PartiallyFailed" + SnapshotRequestPhaseFailed SnapshotRequestPhase = "Failed" +) + +type SnapshotTakenStatus string +type SnapshotRequestPhase string + +// SnapshotTaken is the auto snapshot metadata of a snapshot taken from the vcluster. +type SnapshotTaken struct { + Id string `json:"id,omitempty"` + Url string `json:"url,omitempty"` + Timestamp string `json:"timestamp,omitempty"` + Reason string `json:"reason,omitempty"` + Request SnapshotRequest `json:"snapshotRequest,omitempty"` + TotalPV int `json:"totalPV"` + Status SnapshotTakenStatus `json:"status,omitempty"` +} + +// SnapshotRequest is the request to take a snapshot from vcluster +// this struct is a copy from the vcluster snapshot request object + +// SnapshotRequest is the request to take a snapshot of a volume. +type SnapshotRequest struct { + Metadata SnapshotRequestMetadata `json:"metadata,omitempty"` + Status SnapshotRequestStatus `json:"status"` +} + +// SnapshotRequestMetadata is the metadata of the snapshot request. +type SnapshotRequestMetadata struct { + Name string `json:"name"` + CreationTimestamp metav1.Time `json:"creationTimestamp"` +} + +// SnapshotRequestStatus shows the overall status of the snapshot request. +type SnapshotRequestStatus struct { + Phase SnapshotRequestPhase `json:"phase,omitempty"` + VolumeSnapshots VolumeSnapshotsRequestStatus `json:"volumeSnapshots"` + Error SnapshotRequestError `json:"error,omitempty"` +} + +// VolumeSnapshotsRequestStatus shows the current status of the snapshot request. +type VolumeSnapshotsRequestStatus struct { + Phase string `json:"phase,omitempty"` + Snapshots map[string]VolumeSnapshotRequestStatus `json:"snapshots,omitempty"` + Error SnapshotRequestError `json:"error"` +} + +// SnapshotStatus shows the current status of a single PVC snapshot. +type VolumeSnapshotRequestStatus struct { + Phase string `json:"phase,omitempty"` + Error SnapshotRequestError `json:"error"` +} + +// SnapshotError describes the error that occurred while taking the snapshot. +type SnapshotRequestError struct { + Message string `json:"message,omitempty"` +} diff --git a/pkg/apis/management/v1/virtualclusterinstance_standalone_types.go b/pkg/apis/management/v1/virtualclusterinstance_standalone_types.go new file mode 100644 index 00000000..36f31af2 --- /dev/null +++ b/pkg/apis/management/v1/virtualclusterinstance_standalone_types.go @@ -0,0 +1,56 @@ +package v1 + +import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VirtualClusterStandalone holds kube config request and response data for virtual clusters +// +subresource-request +type VirtualClusterStandalone struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec VirtualClusterStandaloneSpec `json:"spec,omitempty"` + Status VirtualClusterStandaloneStatus `json:"status,omitempty"` +} + +type VirtualClusterStandaloneSpec struct { + // CurrentPeer is the current peer that calls this API. The API will make sure this peer is added to the etcd peers list. + // If this is the first peer, it will be the coordinator. + CurrentPeer StandaloneEtcdPeer `json:"currentPeer"` + + // CurrentPKI contains certs bundle for vCluster + CurrentPKI StandalonePKI `json:"currentPKI"` +} + +type VirtualClusterStandaloneStatus struct { + // ETCDPeers holds the comma separated list of etcd peers addresses. + // It is used as a peer cache for vCluster Standalone deployed in HA mode via NodeProvider. + ETCDPeers []StandaloneEtcdPeerCoordinator `json:"etcdPeers"` + + // PKI returns certs bundle for vCluster + PKI StandalonePKI `json:"currentPKI"` +} + +type StandaloneEtcdPeerCoordinator struct { + StandaloneEtcdPeer `json:",inline"` + + // IsCoordinator is true if the peer is the coordinator. + IsCoordinator bool `json:"isCoordinator"` +} + +type StandaloneEtcdPeer struct { + // Name is the name of the peer. + Name string `json:"name"` + + // NodeClaim is the name of the node claim. + NodeClaim string `json:"nodeClaim,omitempty"` + + // Address is the address of the peer. + Address string `json:"address"` +} + +// StandalonePKI is a map of certificates filenames and certs +type StandalonePKI struct { + Certificates map[string][]byte `json:"certificates"` +} diff --git a/pkg/apis/management/v1/virtualclusterinstance_types.go b/pkg/apis/management/v1/virtualclusterinstance_types.go index 3dc28a2f..996af48f 100644 --- a/pkg/apis/management/v1/virtualclusterinstance_types.go +++ b/pkg/apis/management/v1/virtualclusterinstance_types.go @@ -11,6 +11,10 @@ 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 +// +genclient:method=GetNodeAccessKey,verb=create,subresource=nodeaccesskey,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKey,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKey +// +genclient:method=GetStandaloneETCDPeers,verb=create,subresource=standalone,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandalone,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandalone +// +genclient:method=GetShellPod,verb=create,subresource=shell,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceShell,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceShell // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // VirtualClusterInstance holds the VirtualClusterInstance information @@ -19,6 +23,12 @@ 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=VirtualClusterNodeAccessKey,path=nodeaccesskey,kind=VirtualClusterNodeAccessKey,rest=VirtualClusterNodeAccessKeyREST +// +subresource:request=VirtualClusterExternalDatabase,path=externaldatabase,kind=VirtualClusterExternalDatabase,rest=VirtualClusterExternalDatabaseREST +// +subresource:request=VirtualClusterStandalone,path=standalone,kind=VirtualClusterStandalone,rest=VirtualClusterStandaloneREST +// +subresource:request=VirtualClusterInstanceSnapshot,path=snapshot,kind=VirtualClusterInstanceSnapshot,rest=VirtualClusterInstanceSnapshotREST +// +subresource:request=VirtualClusterInstanceShell,path=shell,kind=VirtualClusterInstanceShell,rest=VirtualClusterInstanceShellREST +// +subresource:request=VirtualClusterResourceUsage,path=resourceusage,kind=VirtualClusterResourceUsage,rest=VirtualClusterResourceUsageREST 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..54751e4a 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,18 +40,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ConfigList{}, &ConvertVirtualClusterConfig{}, &ConvertVirtualClusterConfigList{}, - &DevPodEnvironmentTemplate{}, - &DevPodEnvironmentTemplateList{}, - &DevPodWorkspaceInstance{}, - &DevPodWorkspaceInstanceList{}, - &DevPodDeleteOptions{}, - &DevPodStatusOptions{}, - &DevPodSshOptions{}, - &DevPodWorkspaceInstanceState{}, - &DevPodStopOptions{}, - &DevPodUpOptions{}, - &DevPodWorkspaceTemplate{}, - &DevPodWorkspaceTemplateList{}, + &DatabaseConnector{}, + &DatabaseConnectorList{}, &DirectClusterEndpointToken{}, &DirectClusterEndpointTokenList{}, &Event{}, @@ -66,10 +55,17 @@ func addKnownTypes(scheme *runtime.Scheme) error { &License{}, &LicenseList{}, &LicenseRequest{}, - &LicenseToken{}, - &LicenseTokenList{}, &LoftUpgrade{}, &LoftUpgradeList{}, + &NodeClaim{}, + &NodeClaimList{}, + &NodeEnvironment{}, + &NodeEnvironmentList{}, + &NodeProvider{}, + &NodeProviderList{}, + &NodeProviderExec{}, + &NodeType{}, + &NodeTypeList{}, &OIDCClient{}, &OIDCClientList{}, &OwnedAccessKey{}, @@ -83,7 +79,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ProjectMembers{}, &ProjectMigrateSpaceInstance{}, &ProjectMigrateVirtualClusterInstance{}, - &ProjectRunners{}, + &ProjectNodeTypes{}, &ProjectTemplates{}, &ProjectSecret{}, &ProjectSecretList{}, @@ -93,10 +89,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &RegisterVirtualClusterList{}, &ResetAccessKey{}, &ResetAccessKeyList{}, - &Runner{}, - &RunnerList{}, - &RunnerAccessKey{}, - &RunnerConfig{}, &Self{}, &SelfList{}, &SelfSubjectAccessReview{}, @@ -116,19 +108,32 @@ func addKnownTypes(scheme *runtime.Scheme) error { &TeamList{}, &TeamAccessKeys{}, &TeamClusters{}, + &TeamObjectPermissions{}, + &TeamPermissions{}, &TranslateVClusterResourceName{}, &TranslateVClusterResourceNameList{}, + &UsageDownload{}, + &UsageDownloadList{}, &User{}, &UserList{}, &UserAccessKeys{}, &UserClusters{}, + &UserObjectPermissions{}, &UserPermissions{}, &UserProfile{}, &VirtualClusterInstance{}, &VirtualClusterInstanceList{}, &VirtualClusterAccessKey{}, + &VirtualClusterExternalDatabase{}, &VirtualClusterInstanceKubeConfig{}, &VirtualClusterInstanceLog{}, + &VirtualClusterNodeAccessKey{}, + &VirtualClusterResourceUsage{}, + &VirtualClusterInstanceShell{}, + &VirtualClusterInstanceSnapshot{}, + &VirtualClusterStandalone{}, + &VirtualClusterSchema{}, + &VirtualClusterSchemaList{}, &VirtualClusterTemplate{}, &VirtualClusterTemplateList{}, ) @@ -144,91 +149,68 @@ 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.ManagementDevPodEnvironmentTemplateStorage, - management.ManagementDevPodWorkspaceInstanceStorage, - builders.NewApiResourceWithStorage( - management.InternalDevPodDeleteOptionsREST, - func() runtime.Object { return &DevPodDeleteOptions{} }, // Register versioned resource - nil, - management.NewDevPodDeleteOptionsREST), - builders.NewApiResourceWithStorage( - management.InternalDevPodStatusOptionsREST, - func() runtime.Object { return &DevPodStatusOptions{} }, // Register versioned resource - nil, - management.NewDevPodStatusOptionsREST), - builders.NewApiResourceWithStorage( - management.InternalDevPodSshOptionsREST, - func() runtime.Object { return &DevPodSshOptions{} }, // Register versioned resource - nil, - management.NewDevPodSshOptionsREST), - builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceStateREST, - func() runtime.Object { return &DevPodWorkspaceInstanceState{} }, // Register versioned resource - nil, - management.NewDevPodWorkspaceInstanceStateREST), - builders.NewApiResourceWithStorage( - management.InternalDevPodStopOptionsREST, - func() runtime.Object { return &DevPodStopOptions{} }, // Register versioned resource - nil, - management.NewDevPodStopOptionsREST), - builders.NewApiResourceWithStorage( - management.InternalDevPodUpOptionsREST, - func() runtime.Object { return &DevPodUpOptions{} }, // Register versioned resource - nil, - management.NewDevPodUpOptionsREST), - management.ManagementDevPodWorkspaceTemplateStorage, + management.ManagementDatabaseConnectorStorage, management.ManagementDirectClusterEndpointTokenStorage, management.ManagementEventStorage, management.ManagementFeatureStorage, @@ -244,9 +226,39 @@ var ( management.InternalLicenseRequestREST, func() runtime.Object { return &LicenseRequest{} }, // Register versioned resource nil, - management.NewLicenseRequestREST), - management.ManagementLicenseTokenStorage, + management.NewLicenseRequestREST, + ), 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.ManagementNodeEnvironmentStorage, + builders.NewApiResourceWithStorage( + management.InternalNodeEnvironmentStatus, + func() runtime.Object { return &NodeEnvironment{} }, // Register versioned resource + func() runtime.Object { return &NodeEnvironmentList{} }, // Register versioned resource list + management.NewNodeEnvironmentStatusREST), + 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), + builders.NewApiResourceWithStorage( + management.InternalNodeProviderExecREST, + func() runtime.Object { return &NodeProviderExec{} }, // Register versioned resource + nil, + management.NewNodeProviderExecREST, + ), + 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 +271,60 @@ 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), + management.NewProjectMigrateVirtualClusterInstanceREST, + ), builders.NewApiResourceWithStorage( - management.InternalProjectRunnersREST, - func() runtime.Object { return &ProjectRunners{} }, // Register versioned resource + management.InternalProjectNodeTypesREST, + func() runtime.Object { return &ProjectNodeTypes{} }, // Register versioned resource nil, - management.NewProjectRunnersREST), + management.NewProjectNodeTypesREST, + ), 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 +336,122 @@ 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.ManagementUsageDownloadStorage, 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, + ), + builders.NewApiResourceWithStorage( + management.InternalVirtualClusterNodeAccessKeyREST, + func() runtime.Object { return &VirtualClusterNodeAccessKey{} }, // Register versioned resource + nil, + management.NewVirtualClusterNodeAccessKeyREST, + ), + builders.NewApiResourceWithStorage( + management.InternalVirtualClusterResourceUsageREST, + func() runtime.Object { return &VirtualClusterResourceUsage{} }, // Register versioned resource + nil, + management.NewVirtualClusterResourceUsageREST, + ), + builders.NewApiResourceWithStorage( + management.InternalVirtualClusterInstanceShellREST, + func() runtime.Object { return &VirtualClusterInstanceShell{} }, // Register versioned resource + nil, + management.NewVirtualClusterInstanceShellREST, + ), + builders.NewApiResourceWithStorage( + management.InternalVirtualClusterInstanceSnapshotREST, + func() runtime.Object { return &VirtualClusterInstanceSnapshot{} }, // Register versioned resource + nil, + management.NewVirtualClusterInstanceSnapshotREST, + ), + builders.NewApiResourceWithStorage( + management.InternalVirtualClusterStandaloneREST, + func() runtime.Object { return &VirtualClusterStandalone{} }, // Register versioned resource + nil, + management.NewVirtualClusterStandaloneREST, + ), + management.ManagementVirtualClusterSchemaStorage, management.ManagementVirtualClusterTemplateStorage, ) @@ -527,14 +598,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,146 +630,114 @@ type ConvertVirtualClusterConfigList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodEnvironmentTemplateList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodEnvironmentTemplate `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstance `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodDeleteOptionsList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodDeleteOptions `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodStatusOptionsList struct { +type DatabaseConnectorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodStatusOptions `json:"items"` + Items []DatabaseConnector `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodSshOptionsList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodSshOptions `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceStateList struct { +type DirectClusterEndpointTokenList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceState `json:"items"` + Items []DirectClusterEndpointToken `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodStopOptionsList struct { +type EventList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodStopOptions `json:"items"` + Items []Event `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodUpOptionsList struct { +type FeatureList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodUpOptions `json:"items"` + Items []Feature `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceTemplateList struct { +type IngressAuthTokenList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceTemplate `json:"items"` + Items []IngressAuthToken `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DirectClusterEndpointTokenList struct { +type KioskList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DirectClusterEndpointToken `json:"items"` + Items []Kiosk `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type EventList struct { +type LicenseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Event `json:"items"` + Items []License `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type FeatureList struct { +type LicenseRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Feature `json:"items"` + Items []LicenseRequest `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type IngressAuthTokenList struct { +type LoftUpgradeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []IngressAuthToken `json:"items"` + Items []LoftUpgrade `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type KioskList struct { +type NodeClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Kiosk `json:"items"` + Items []NodeClaim `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseList struct { +type NodeEnvironmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []License `json:"items"` + Items []NodeEnvironment `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseRequestList struct { +type NodeProviderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LicenseRequest `json:"items"` + Items []NodeProvider `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseTokenList struct { +type NodeProviderExecList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LicenseToken `json:"items"` + Items []NodeProviderExec `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LoftUpgradeList struct { +type NodeTypeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LoftUpgrade `json:"items"` + Items []NodeType `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -791,10 +822,10 @@ type ProjectMigrateVirtualClusterInstanceList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type ProjectRunnersList struct { +type ProjectNodeTypesList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ProjectRunners `json:"items"` + Items []ProjectNodeTypes `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -839,30 +870,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 +958,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"` @@ -959,6 +982,14 @@ type TranslateVClusterResourceNameList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type UsageDownloadList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []UsageDownload `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type UserList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -983,6 +1014,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 +1054,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 +1078,54 @@ type VirtualClusterInstanceLogList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type VirtualClusterNodeAccessKeyList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterNodeAccessKey `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterResourceUsageList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterResourceUsage `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterInstanceShellList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterInstanceShell `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterInstanceSnapshotList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterInstanceSnapshot `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterStandaloneList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterStandalone `json:"items"` +} + +// +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..86ee6cd8 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,243 +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) - }); 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) - }); 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) - }); 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) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodEnvironmentTemplate)(nil), (*management.DevPodEnvironmentTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(a.(*DevPodEnvironmentTemplate), b.(*management.DevPodEnvironmentTemplate), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodEnvironmentTemplate)(nil), (*DevPodEnvironmentTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(a.(*management.DevPodEnvironmentTemplate), b.(*DevPodEnvironmentTemplate), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodEnvironmentTemplateList)(nil), (*management.DevPodEnvironmentTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(a.(*DevPodEnvironmentTemplateList), b.(*management.DevPodEnvironmentTemplateList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodEnvironmentTemplateList)(nil), (*DevPodEnvironmentTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(a.(*management.DevPodEnvironmentTemplateList), b.(*DevPodEnvironmentTemplateList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodEnvironmentTemplateSpec)(nil), (*management.DevPodEnvironmentTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(a.(*DevPodEnvironmentTemplateSpec), b.(*management.DevPodEnvironmentTemplateSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodEnvironmentTemplateSpec)(nil), (*DevPodEnvironmentTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(a.(*management.DevPodEnvironmentTemplateSpec), b.(*DevPodEnvironmentTemplateSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodEnvironmentTemplateStatus)(nil), (*management.DevPodEnvironmentTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(a.(*DevPodEnvironmentTemplateStatus), b.(*management.DevPodEnvironmentTemplateStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodEnvironmentTemplateStatus)(nil), (*DevPodEnvironmentTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(a.(*management.DevPodEnvironmentTemplateStatus), b.(*DevPodEnvironmentTemplateStatus), scope) - }); 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) - }); 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) - }); 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) - }); 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) - }); 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) - }); 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) - }); 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) - }); 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) - }); 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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*DevPodWorkspaceInstanceSpec)(nil), (*management.DevPodWorkspaceInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(a.(*DevPodWorkspaceInstanceSpec), b.(*management.DevPodWorkspaceInstanceSpec), scope) + if err := s.AddGeneratedConversionFunc((*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.DevPodWorkspaceInstanceSpec)(nil), (*DevPodWorkspaceInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(a.(*management.DevPodWorkspaceInstanceSpec), b.(*DevPodWorkspaceInstanceSpec), scope) + if err := s.AddGeneratedConversionFunc((*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((*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((*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.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((*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((*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((*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.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((*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((*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((*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.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((*DevPodWorkspaceTemplate)(nil), (*management.DevPodWorkspaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(a.(*DevPodWorkspaceTemplate), b.(*management.DevPodWorkspaceTemplate), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceTemplate)(nil), (*DevPodWorkspaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate(a.(*management.DevPodWorkspaceTemplate), b.(*DevPodWorkspaceTemplate), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplateList)(nil), (*management.DevPodWorkspaceTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList(a.(*DevPodWorkspaceTemplateList), b.(*management.DevPodWorkspaceTemplateList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceTemplateList)(nil), (*DevPodWorkspaceTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList(a.(*management.DevPodWorkspaceTemplateList), b.(*DevPodWorkspaceTemplateList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplateSpec)(nil), (*management.DevPodWorkspaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(a.(*DevPodWorkspaceTemplateSpec), b.(*management.DevPodWorkspaceTemplateSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceTemplateSpec)(nil), (*DevPodWorkspaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(a.(*management.DevPodWorkspaceTemplateSpec), b.(*DevPodWorkspaceTemplateSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplateStatus)(nil), (*management.DevPodWorkspaceTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(a.(*DevPodWorkspaceTemplateStatus), b.(*management.DevPodWorkspaceTemplateStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceTemplateStatus)(nil), (*DevPodWorkspaceTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(a.(*management.DevPodWorkspaceTemplateStatus), b.(*DevPodWorkspaceTemplateStatus), scope) + if err := s.AddGeneratedConversionFunc((*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 } @@ -1179,6 +1060,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 { @@ -1339,46 +1230,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*LicenseToken)(nil), (*management.LicenseToken)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_LicenseToken_To_management_LicenseToken(a.(*LicenseToken), b.(*management.LicenseToken), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.LicenseToken)(nil), (*LicenseToken)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_LicenseToken_To_v1_LicenseToken(a.(*management.LicenseToken), b.(*LicenseToken), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*LicenseTokenList)(nil), (*management.LicenseTokenList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_LicenseTokenList_To_management_LicenseTokenList(a.(*LicenseTokenList), b.(*management.LicenseTokenList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.LicenseTokenList)(nil), (*LicenseTokenList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_LicenseTokenList_To_v1_LicenseTokenList(a.(*management.LicenseTokenList), b.(*LicenseTokenList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*LicenseTokenSpec)(nil), (*management.LicenseTokenSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_LicenseTokenSpec_To_management_LicenseTokenSpec(a.(*LicenseTokenSpec), b.(*management.LicenseTokenSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.LicenseTokenSpec)(nil), (*LicenseTokenSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_LicenseTokenSpec_To_v1_LicenseTokenSpec(a.(*management.LicenseTokenSpec), b.(*LicenseTokenSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*LicenseTokenStatus)(nil), (*management.LicenseTokenStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_LicenseTokenStatus_To_management_LicenseTokenStatus(a.(*LicenseTokenStatus), b.(*management.LicenseTokenStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.LicenseTokenStatus)(nil), (*LicenseTokenStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_LicenseTokenStatus_To_v1_LicenseTokenStatus(a.(*management.LicenseTokenStatus), b.(*LicenseTokenStatus), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*LoftUpgrade)(nil), (*management.LoftUpgrade)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_LoftUpgrade_To_management_LoftUpgrade(a.(*LoftUpgrade), b.(*management.LoftUpgrade), scope) }); err != nil { @@ -1419,8465 +1270,10727 @@ 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((*NodeClaimData)(nil), (*management.NodeClaimData)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeClaimData_To_management_NodeClaimData(a.(*NodeClaimData), b.(*management.NodeClaimData), 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.NodeClaimData)(nil), (*NodeClaimData)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeClaimData_To_v1_NodeClaimData(a.(*management.NodeClaimData), b.(*NodeClaimData), 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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*NodeEnvironment)(nil), (*management.NodeEnvironment)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeEnvironment_To_management_NodeEnvironment(a.(*NodeEnvironment), b.(*management.NodeEnvironment), 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.NodeEnvironment)(nil), (*NodeEnvironment)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeEnvironment_To_v1_NodeEnvironment(a.(*management.NodeEnvironment), b.(*NodeEnvironment), 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((*NodeEnvironmentData)(nil), (*management.NodeEnvironmentData)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeEnvironmentData_To_management_NodeEnvironmentData(a.(*NodeEnvironmentData), b.(*management.NodeEnvironmentData), 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.NodeEnvironmentData)(nil), (*NodeEnvironmentData)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeEnvironmentData_To_v1_NodeEnvironmentData(a.(*management.NodeEnvironmentData), b.(*NodeEnvironmentData), 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((*NodeEnvironmentList)(nil), (*management.NodeEnvironmentList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeEnvironmentList_To_management_NodeEnvironmentList(a.(*NodeEnvironmentList), b.(*management.NodeEnvironmentList), 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.NodeEnvironmentList)(nil), (*NodeEnvironmentList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeEnvironmentList_To_v1_NodeEnvironmentList(a.(*management.NodeEnvironmentList), b.(*NodeEnvironmentList), 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((*NodeEnvironmentSpec)(nil), (*management.NodeEnvironmentSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeEnvironmentSpec_To_management_NodeEnvironmentSpec(a.(*NodeEnvironmentSpec), b.(*management.NodeEnvironmentSpec), 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.NodeEnvironmentSpec)(nil), (*NodeEnvironmentSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeEnvironmentSpec_To_v1_NodeEnvironmentSpec(a.(*management.NodeEnvironmentSpec), b.(*NodeEnvironmentSpec), 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((*NodeEnvironmentStatus)(nil), (*management.NodeEnvironmentStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeEnvironmentStatus_To_management_NodeEnvironmentStatus(a.(*NodeEnvironmentStatus), b.(*management.NodeEnvironmentStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectChartInfo)(nil), (*ProjectChartInfo)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectChartInfo_To_v1_ProjectChartInfo(a.(*management.ProjectChartInfo), b.(*ProjectChartInfo), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeEnvironmentStatus)(nil), (*NodeEnvironmentStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeEnvironmentStatus_To_v1_NodeEnvironmentStatus(a.(*management.NodeEnvironmentStatus), b.(*NodeEnvironmentStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectChartInfoList)(nil), (*management.ProjectChartInfoList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectChartInfoList_To_management_ProjectChartInfoList(a.(*ProjectChartInfoList), b.(*management.ProjectChartInfoList), 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.ProjectChartInfoList)(nil), (*ProjectChartInfoList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectChartInfoList_To_v1_ProjectChartInfoList(a.(*management.ProjectChartInfoList), b.(*ProjectChartInfoList), 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((*ProjectChartInfoSpec)(nil), (*management.ProjectChartInfoSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(a.(*ProjectChartInfoSpec), b.(*management.ProjectChartInfoSpec), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderBCMGetResourcesResult)(nil), (*management.NodeProviderBCMGetResourcesResult)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderBCMGetResourcesResult_To_management_NodeProviderBCMGetResourcesResult(a.(*NodeProviderBCMGetResourcesResult), b.(*management.NodeProviderBCMGetResourcesResult), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectChartInfoSpec)(nil), (*ProjectChartInfoSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(a.(*management.ProjectChartInfoSpec), b.(*ProjectChartInfoSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderBCMGetResourcesResult)(nil), (*NodeProviderBCMGetResourcesResult)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderBCMGetResourcesResult_To_v1_NodeProviderBCMGetResourcesResult(a.(*management.NodeProviderBCMGetResourcesResult), b.(*NodeProviderBCMGetResourcesResult), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectChartInfoStatus)(nil), (*management.ProjectChartInfoStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(a.(*ProjectChartInfoStatus), b.(*management.ProjectChartInfoStatus), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderBCMNodeGroup)(nil), (*management.NodeProviderBCMNodeGroup)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderBCMNodeGroup_To_management_NodeProviderBCMNodeGroup(a.(*NodeProviderBCMNodeGroup), b.(*management.NodeProviderBCMNodeGroup), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectChartInfoStatus)(nil), (*ProjectChartInfoStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(a.(*management.ProjectChartInfoStatus), b.(*ProjectChartInfoStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderBCMNodeGroup)(nil), (*NodeProviderBCMNodeGroup)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderBCMNodeGroup_To_v1_NodeProviderBCMNodeGroup(a.(*management.NodeProviderBCMNodeGroup), b.(*NodeProviderBCMNodeGroup), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectCharts)(nil), (*management.ProjectCharts)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectCharts_To_management_ProjectCharts(a.(*ProjectCharts), b.(*management.ProjectCharts), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderBCMNodeWithResources)(nil), (*management.NodeProviderBCMNodeWithResources)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderBCMNodeWithResources_To_management_NodeProviderBCMNodeWithResources(a.(*NodeProviderBCMNodeWithResources), b.(*management.NodeProviderBCMNodeWithResources), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectCharts)(nil), (*ProjectCharts)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectCharts_To_v1_ProjectCharts(a.(*management.ProjectCharts), b.(*ProjectCharts), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderBCMNodeWithResources)(nil), (*NodeProviderBCMNodeWithResources)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderBCMNodeWithResources_To_v1_NodeProviderBCMNodeWithResources(a.(*management.NodeProviderBCMNodeWithResources), b.(*NodeProviderBCMNodeWithResources), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectChartsList)(nil), (*management.ProjectChartsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectChartsList_To_management_ProjectChartsList(a.(*ProjectChartsList), b.(*management.ProjectChartsList), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderBCMTestConnectionResult)(nil), (*management.NodeProviderBCMTestConnectionResult)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderBCMTestConnectionResult_To_management_NodeProviderBCMTestConnectionResult(a.(*NodeProviderBCMTestConnectionResult), b.(*management.NodeProviderBCMTestConnectionResult), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectChartsList)(nil), (*ProjectChartsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectChartsList_To_v1_ProjectChartsList(a.(*management.ProjectChartsList), b.(*ProjectChartsList), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderBCMTestConnectionResult)(nil), (*NodeProviderBCMTestConnectionResult)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderBCMTestConnectionResult_To_v1_NodeProviderBCMTestConnectionResult(a.(*management.NodeProviderBCMTestConnectionResult), b.(*NodeProviderBCMTestConnectionResult), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectClusters)(nil), (*management.ProjectClusters)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectClusters_To_management_ProjectClusters(a.(*ProjectClusters), b.(*management.ProjectClusters), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderCalculateCostResult)(nil), (*management.NodeProviderCalculateCostResult)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderCalculateCostResult_To_management_NodeProviderCalculateCostResult(a.(*NodeProviderCalculateCostResult), b.(*management.NodeProviderCalculateCostResult), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectClusters)(nil), (*ProjectClusters)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectClusters_To_v1_ProjectClusters(a.(*management.ProjectClusters), b.(*ProjectClusters), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderCalculateCostResult)(nil), (*NodeProviderCalculateCostResult)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderCalculateCostResult_To_v1_NodeProviderCalculateCostResult(a.(*management.NodeProviderCalculateCostResult), b.(*NodeProviderCalculateCostResult), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectClustersList)(nil), (*management.ProjectClustersList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectClustersList_To_management_ProjectClustersList(a.(*ProjectClustersList), b.(*management.ProjectClustersList), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderExec)(nil), (*management.NodeProviderExec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderExec_To_management_NodeProviderExec(a.(*NodeProviderExec), b.(*management.NodeProviderExec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectClustersList)(nil), (*ProjectClustersList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectClustersList_To_v1_ProjectClustersList(a.(*management.ProjectClustersList), b.(*ProjectClustersList), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderExec)(nil), (*NodeProviderExec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderExec_To_v1_NodeProviderExec(a.(*management.NodeProviderExec), b.(*NodeProviderExec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectImportSpace)(nil), (*management.ProjectImportSpace)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectImportSpace_To_management_ProjectImportSpace(a.(*ProjectImportSpace), b.(*management.ProjectImportSpace), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderExecList)(nil), (*management.NodeProviderExecList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderExecList_To_management_NodeProviderExecList(a.(*NodeProviderExecList), b.(*management.NodeProviderExecList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectImportSpace)(nil), (*ProjectImportSpace)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectImportSpace_To_v1_ProjectImportSpace(a.(*management.ProjectImportSpace), b.(*ProjectImportSpace), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderExecList)(nil), (*NodeProviderExecList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderExecList_To_v1_NodeProviderExecList(a.(*management.NodeProviderExecList), b.(*NodeProviderExecList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectImportSpaceList)(nil), (*management.ProjectImportSpaceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectImportSpaceList_To_management_ProjectImportSpaceList(a.(*ProjectImportSpaceList), b.(*management.ProjectImportSpaceList), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderExecResult)(nil), (*management.NodeProviderExecResult)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderExecResult_To_management_NodeProviderExecResult(a.(*NodeProviderExecResult), b.(*management.NodeProviderExecResult), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectImportSpaceList)(nil), (*ProjectImportSpaceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectImportSpaceList_To_v1_ProjectImportSpaceList(a.(*management.ProjectImportSpaceList), b.(*ProjectImportSpaceList), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderExecResult)(nil), (*NodeProviderExecResult)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderExecResult_To_v1_NodeProviderExecResult(a.(*management.NodeProviderExecResult), b.(*NodeProviderExecResult), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectImportSpaceSource)(nil), (*management.ProjectImportSpaceSource)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(a.(*ProjectImportSpaceSource), b.(*management.ProjectImportSpaceSource), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderExecSpec)(nil), (*management.NodeProviderExecSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderExecSpec_To_management_NodeProviderExecSpec(a.(*NodeProviderExecSpec), b.(*management.NodeProviderExecSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectImportSpaceSource)(nil), (*ProjectImportSpaceSource)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(a.(*management.ProjectImportSpaceSource), b.(*ProjectImportSpaceSource), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderExecSpec)(nil), (*NodeProviderExecSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderExecSpec_To_v1_NodeProviderExecSpec(a.(*management.NodeProviderExecSpec), b.(*NodeProviderExecSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectList)(nil), (*management.ProjectList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectList_To_management_ProjectList(a.(*ProjectList), b.(*management.ProjectList), scope) + if err := s.AddGeneratedConversionFunc((*NodeProviderExecStatus)(nil), (*management.NodeProviderExecStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderExecStatus_To_management_NodeProviderExecStatus(a.(*NodeProviderExecStatus), b.(*management.NodeProviderExecStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectList)(nil), (*ProjectList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectList_To_v1_ProjectList(a.(*management.ProjectList), b.(*ProjectList), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderExecStatus)(nil), (*NodeProviderExecStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderExecStatus_To_v1_NodeProviderExecStatus(a.(*management.NodeProviderExecStatus), b.(*NodeProviderExecStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectMember)(nil), (*management.ProjectMember)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectMember_To_management_ProjectMember(a.(*ProjectMember), b.(*management.ProjectMember), 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.ProjectMember)(nil), (*ProjectMember)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectMember_To_v1_ProjectMember(a.(*management.ProjectMember), b.(*ProjectMember), 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((*ProjectMembers)(nil), (*management.ProjectMembers)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectMembers_To_management_ProjectMembers(a.(*ProjectMembers), b.(*management.ProjectMembers), 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.ProjectMembers)(nil), (*ProjectMembers)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectMembers_To_v1_ProjectMembers(a.(*management.ProjectMembers), b.(*ProjectMembers), 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((*ProjectMembersList)(nil), (*management.ProjectMembersList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectMembersList_To_management_ProjectMembersList(a.(*ProjectMembersList), b.(*management.ProjectMembersList), 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.ProjectMembersList)(nil), (*ProjectMembersList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectMembersList_To_v1_ProjectMembersList(a.(*management.ProjectMembersList), b.(*ProjectMembersList), 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((*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) + if err := s.AddGeneratedConversionFunc((*NodeProviderTerraformValidateResult)(nil), (*management.NodeProviderTerraformValidateResult)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeProviderTerraformValidateResult_To_management_NodeProviderTerraformValidateResult(a.(*NodeProviderTerraformValidateResult), b.(*management.NodeProviderTerraformValidateResult), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectMigrateSpaceInstance)(nil), (*ProjectMigrateSpaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectMigrateSpaceInstance_To_v1_ProjectMigrateSpaceInstance(a.(*management.ProjectMigrateSpaceInstance), b.(*ProjectMigrateSpaceInstance), scope) + if err := s.AddGeneratedConversionFunc((*management.NodeProviderTerraformValidateResult)(nil), (*NodeProviderTerraformValidateResult)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeProviderTerraformValidateResult_To_v1_NodeProviderTerraformValidateResult(a.(*management.NodeProviderTerraformValidateResult), b.(*NodeProviderTerraformValidateResult), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectMigrateSpaceInstanceList)(nil), (*management.ProjectMigrateSpaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectMigrateSpaceInstanceList_To_management_ProjectMigrateSpaceInstanceList(a.(*ProjectMigrateSpaceInstanceList), b.(*management.ProjectMigrateSpaceInstanceList), 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.ProjectMigrateSpaceInstanceList)(nil), (*ProjectMigrateSpaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectMigrateSpaceInstanceList_To_v1_ProjectMigrateSpaceInstanceList(a.(*management.ProjectMigrateSpaceInstanceList), b.(*ProjectMigrateSpaceInstanceList), 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((*ProjectMigrateSpaceInstanceSource)(nil), (*management.ProjectMigrateSpaceInstanceSource)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource(a.(*ProjectMigrateSpaceInstanceSource), b.(*management.ProjectMigrateSpaceInstanceSource), 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.ProjectMigrateSpaceInstanceSource)(nil), (*ProjectMigrateSpaceInstanceSource)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource(a.(*management.ProjectMigrateSpaceInstanceSource), b.(*ProjectMigrateSpaceInstanceSource), scope) + 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((*ProjectMigrateVirtualClusterInstance)(nil), (*management.ProjectMigrateVirtualClusterInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectMigrateVirtualClusterInstance_To_management_ProjectMigrateVirtualClusterInstance(a.(*ProjectMigrateVirtualClusterInstance), b.(*management.ProjectMigrateVirtualClusterInstance), scope) + 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.ProjectMigrateVirtualClusterInstance)(nil), (*ProjectMigrateVirtualClusterInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectMigrateVirtualClusterInstance_To_v1_ProjectMigrateVirtualClusterInstance(a.(*management.ProjectMigrateVirtualClusterInstance), b.(*ProjectMigrateVirtualClusterInstance), scope) + 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((*ProjectMigrateVirtualClusterInstanceList)(nil), (*management.ProjectMigrateVirtualClusterInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectMigrateVirtualClusterInstanceList_To_management_ProjectMigrateVirtualClusterInstanceList(a.(*ProjectMigrateVirtualClusterInstanceList), b.(*management.ProjectMigrateVirtualClusterInstanceList), scope) + 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.ProjectMigrateVirtualClusterInstanceList)(nil), (*ProjectMigrateVirtualClusterInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectMigrateVirtualClusterInstanceList_To_v1_ProjectMigrateVirtualClusterInstanceList(a.(*management.ProjectMigrateVirtualClusterInstanceList), b.(*ProjectMigrateVirtualClusterInstanceList), scope) + 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((*ProjectMigrateVirtualClusterInstanceSource)(nil), (*management.ProjectMigrateVirtualClusterInstanceSource)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource(a.(*ProjectMigrateVirtualClusterInstanceSource), b.(*management.ProjectMigrateVirtualClusterInstanceSource), scope) + 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.ProjectMigrateVirtualClusterInstanceSource)(nil), (*ProjectMigrateVirtualClusterInstanceSource)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(a.(*management.ProjectMigrateVirtualClusterInstanceSource), b.(*ProjectMigrateVirtualClusterInstanceSource), scope) + 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((*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) + 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.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) + 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((*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((*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.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.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((*ProjectSecret)(nil), (*management.ProjectSecret)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectSecret_To_management_ProjectSecret(a.(*ProjectSecret), b.(*management.ProjectSecret), scope) + 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.ProjectSecret)(nil), (*ProjectSecret)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectSecret_To_v1_ProjectSecret(a.(*management.ProjectSecret), b.(*ProjectSecret), scope) + 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((*ProjectSecretList)(nil), (*management.ProjectSecretList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectSecretList_To_management_ProjectSecretList(a.(*ProjectSecretList), b.(*management.ProjectSecretList), scope) + 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.ProjectSecretList)(nil), (*ProjectSecretList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectSecretList_To_v1_ProjectSecretList(a.(*management.ProjectSecretList), b.(*ProjectSecretList), scope) + 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((*ProjectSecretSpec)(nil), (*management.ProjectSecretSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec(a.(*ProjectSecretSpec), b.(*management.ProjectSecretSpec), scope) + 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.ProjectSecretSpec)(nil), (*ProjectSecretSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectSecretSpec_To_v1_ProjectSecretSpec(a.(*management.ProjectSecretSpec), b.(*ProjectSecretSpec), scope) + 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((*ProjectSecretStatus)(nil), (*management.ProjectSecretStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectSecretStatus_To_management_ProjectSecretStatus(a.(*ProjectSecretStatus), b.(*management.ProjectSecretStatus), scope) + 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.ProjectSecretStatus)(nil), (*ProjectSecretStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectSecretStatus_To_v1_ProjectSecretStatus(a.(*management.ProjectSecretStatus), b.(*ProjectSecretStatus), scope) + 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((*ProjectSpec)(nil), (*management.ProjectSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectSpec_To_management_ProjectSpec(a.(*ProjectSpec), b.(*management.ProjectSpec), scope) + if err := s.AddGeneratedConversionFunc((*Operation)(nil), (*management.Operation)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_Operation_To_management_Operation(a.(*Operation), b.(*management.Operation), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ProjectSpec)(nil), (*ProjectSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectSpec_To_v1_ProjectSpec(a.(*management.ProjectSpec), b.(*ProjectSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.Operation)(nil), (*Operation)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_Operation_To_v1_Operation(a.(*management.Operation), b.(*Operation), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectStatus)(nil), (*management.ProjectStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectStatus_To_management_ProjectStatus(a.(*ProjectStatus), b.(*management.ProjectStatus), scope) + 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.ProjectStatus)(nil), (*ProjectStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectStatus_To_v1_ProjectStatus(a.(*management.ProjectStatus), b.(*ProjectStatus), scope) + 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((*ProjectTemplates)(nil), (*management.ProjectTemplates)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectTemplates_To_management_ProjectTemplates(a.(*ProjectTemplates), b.(*management.ProjectTemplates), scope) + 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.ProjectTemplates)(nil), (*ProjectTemplates)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectTemplates_To_v1_ProjectTemplates(a.(*management.ProjectTemplates), b.(*ProjectTemplates), scope) + 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((*ProjectTemplatesList)(nil), (*management.ProjectTemplatesList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectTemplatesList_To_management_ProjectTemplatesList(a.(*ProjectTemplatesList), b.(*management.ProjectTemplatesList), scope) + 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.ProjectTemplatesList)(nil), (*ProjectTemplatesList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectTemplatesList_To_v1_ProjectTemplatesList(a.(*management.ProjectTemplatesList), b.(*ProjectTemplatesList), scope) + 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((*RedirectToken)(nil), (*management.RedirectToken)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RedirectToken_To_management_RedirectToken(a.(*RedirectToken), b.(*management.RedirectToken), scope) + 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.RedirectToken)(nil), (*RedirectToken)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RedirectToken_To_v1_RedirectToken(a.(*management.RedirectToken), b.(*RedirectToken), scope) + 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((*RedirectTokenList)(nil), (*management.RedirectTokenList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RedirectTokenList_To_management_RedirectTokenList(a.(*RedirectTokenList), b.(*management.RedirectTokenList), scope) + if err := s.AddGeneratedConversionFunc((*PlatformDB)(nil), (*management.PlatformDB)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_PlatformDB_To_management_PlatformDB(a.(*PlatformDB), b.(*management.PlatformDB), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.RedirectTokenList)(nil), (*RedirectTokenList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RedirectTokenList_To_v1_RedirectTokenList(a.(*management.RedirectTokenList), b.(*RedirectTokenList), scope) + if err := s.AddGeneratedConversionFunc((*management.PlatformDB)(nil), (*PlatformDB)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_PlatformDB_To_v1_PlatformDB(a.(*management.PlatformDB), b.(*PlatformDB), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*RedirectTokenSpec)(nil), (*management.RedirectTokenSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec(a.(*RedirectTokenSpec), b.(*management.RedirectTokenSpec), scope) + 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.RedirectTokenSpec)(nil), (*RedirectTokenSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec(a.(*management.RedirectTokenSpec), b.(*RedirectTokenSpec), scope) + 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((*RedirectTokenStatus)(nil), (*management.RedirectTokenStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus(a.(*RedirectTokenStatus), b.(*management.RedirectTokenStatus), scope) + 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.RedirectTokenStatus)(nil), (*RedirectTokenStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus(a.(*management.RedirectTokenStatus), b.(*RedirectTokenStatus), scope) + 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((*RegisterVirtualCluster)(nil), (*management.RegisterVirtualCluster)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RegisterVirtualCluster_To_management_RegisterVirtualCluster(a.(*RegisterVirtualCluster), b.(*management.RegisterVirtualCluster), scope) + 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 } - if err := s.AddGeneratedConversionFunc((*management.RegisterVirtualCluster)(nil), (*RegisterVirtualCluster)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RegisterVirtualCluster_To_v1_RegisterVirtualCluster(a.(*management.RegisterVirtualCluster), b.(*RegisterVirtualCluster), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectChartInfo)(nil), (*ProjectChartInfo)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectChartInfo_To_v1_ProjectChartInfo(a.(*management.ProjectChartInfo), b.(*ProjectChartInfo), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*RegisterVirtualClusterList)(nil), (*management.RegisterVirtualClusterList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RegisterVirtualClusterList_To_management_RegisterVirtualClusterList(a.(*RegisterVirtualClusterList), b.(*management.RegisterVirtualClusterList), scope) + if err := s.AddGeneratedConversionFunc((*ProjectChartInfoList)(nil), (*management.ProjectChartInfoList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectChartInfoList_To_management_ProjectChartInfoList(a.(*ProjectChartInfoList), b.(*management.ProjectChartInfoList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.RegisterVirtualClusterList)(nil), (*RegisterVirtualClusterList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterList(a.(*management.RegisterVirtualClusterList), b.(*RegisterVirtualClusterList), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectChartInfoList)(nil), (*ProjectChartInfoList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectChartInfoList_To_v1_ProjectChartInfoList(a.(*management.ProjectChartInfoList), b.(*ProjectChartInfoList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*RegisterVirtualClusterSpec)(nil), (*management.RegisterVirtualClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec(a.(*RegisterVirtualClusterSpec), b.(*management.RegisterVirtualClusterSpec), scope) + if err := s.AddGeneratedConversionFunc((*ProjectChartInfoSpec)(nil), (*management.ProjectChartInfoSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(a.(*ProjectChartInfoSpec), b.(*management.ProjectChartInfoSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.RegisterVirtualClusterSpec)(nil), (*RegisterVirtualClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec(a.(*management.RegisterVirtualClusterSpec), b.(*RegisterVirtualClusterSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectChartInfoSpec)(nil), (*ProjectChartInfoSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(a.(*management.ProjectChartInfoSpec), b.(*ProjectChartInfoSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*RegisterVirtualClusterStatus)(nil), (*management.RegisterVirtualClusterStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(a.(*RegisterVirtualClusterStatus), b.(*management.RegisterVirtualClusterStatus), scope) + if err := s.AddGeneratedConversionFunc((*ProjectChartInfoStatus)(nil), (*management.ProjectChartInfoStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(a.(*ProjectChartInfoStatus), b.(*management.ProjectChartInfoStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.RegisterVirtualClusterStatus)(nil), (*RegisterVirtualClusterStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(a.(*management.RegisterVirtualClusterStatus), b.(*RegisterVirtualClusterStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectChartInfoStatus)(nil), (*ProjectChartInfoStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(a.(*management.ProjectChartInfoStatus), b.(*ProjectChartInfoStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ResetAccessKey)(nil), (*management.ResetAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ResetAccessKey_To_management_ResetAccessKey(a.(*ResetAccessKey), b.(*management.ResetAccessKey), scope) + if err := s.AddGeneratedConversionFunc((*ProjectCharts)(nil), (*management.ProjectCharts)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectCharts_To_management_ProjectCharts(a.(*ProjectCharts), b.(*management.ProjectCharts), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ResetAccessKey)(nil), (*ResetAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ResetAccessKey_To_v1_ResetAccessKey(a.(*management.ResetAccessKey), b.(*ResetAccessKey), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectCharts)(nil), (*ProjectCharts)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectCharts_To_v1_ProjectCharts(a.(*management.ProjectCharts), b.(*ProjectCharts), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ResetAccessKeyList)(nil), (*management.ResetAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList(a.(*ResetAccessKeyList), b.(*management.ResetAccessKeyList), scope) + if err := s.AddGeneratedConversionFunc((*ProjectChartsList)(nil), (*management.ProjectChartsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectChartsList_To_management_ProjectChartsList(a.(*ProjectChartsList), b.(*management.ProjectChartsList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ResetAccessKeyList)(nil), (*ResetAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList(a.(*management.ResetAccessKeyList), b.(*ResetAccessKeyList), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectChartsList)(nil), (*ProjectChartsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectChartsList_To_v1_ProjectChartsList(a.(*management.ProjectChartsList), b.(*ProjectChartsList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ResetAccessKeySpec)(nil), (*management.ResetAccessKeySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(a.(*ResetAccessKeySpec), b.(*management.ResetAccessKeySpec), scope) + if err := s.AddGeneratedConversionFunc((*ProjectClusters)(nil), (*management.ProjectClusters)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectClusters_To_management_ProjectClusters(a.(*ProjectClusters), b.(*management.ProjectClusters), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ResetAccessKeySpec)(nil), (*ResetAccessKeySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(a.(*management.ResetAccessKeySpec), b.(*ResetAccessKeySpec), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectClusters)(nil), (*ProjectClusters)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectClusters_To_v1_ProjectClusters(a.(*management.ProjectClusters), b.(*ProjectClusters), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ResetAccessKeyStatus)(nil), (*management.ResetAccessKeyStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(a.(*ResetAccessKeyStatus), b.(*management.ResetAccessKeyStatus), scope) + if err := s.AddGeneratedConversionFunc((*ProjectClustersList)(nil), (*management.ProjectClustersList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectClustersList_To_management_ProjectClustersList(a.(*ProjectClustersList), b.(*management.ProjectClustersList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.ResetAccessKeyStatus)(nil), (*ResetAccessKeyStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(a.(*management.ResetAccessKeyStatus), b.(*ResetAccessKeyStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectClustersList)(nil), (*ProjectClustersList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectClustersList_To_v1_ProjectClustersList(a.(*management.ProjectClustersList), b.(*ProjectClustersList), scope) }); 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) + if err := s.AddGeneratedConversionFunc((*ProjectImportSpace)(nil), (*management.ProjectImportSpace)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectImportSpace_To_management_ProjectImportSpace(a.(*ProjectImportSpace), b.(*management.ProjectImportSpace), 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) + if err := s.AddGeneratedConversionFunc((*management.ProjectImportSpace)(nil), (*ProjectImportSpace)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectImportSpace_To_v1_ProjectImportSpace(a.(*management.ProjectImportSpace), b.(*ProjectImportSpace), 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) + if err := s.AddGeneratedConversionFunc((*ProjectImportSpaceList)(nil), (*management.ProjectImportSpaceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectImportSpaceList_To_management_ProjectImportSpaceList(a.(*ProjectImportSpaceList), b.(*management.ProjectImportSpaceList), 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) + if err := s.AddGeneratedConversionFunc((*management.ProjectImportSpaceList)(nil), (*ProjectImportSpaceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectImportSpaceList_To_v1_ProjectImportSpaceList(a.(*management.ProjectImportSpaceList), b.(*ProjectImportSpaceList), 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) + if err := s.AddGeneratedConversionFunc((*ProjectImportSpaceSource)(nil), (*management.ProjectImportSpaceSource)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(a.(*ProjectImportSpaceSource), b.(*management.ProjectImportSpaceSource), 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) + if err := s.AddGeneratedConversionFunc((*management.ProjectImportSpaceSource)(nil), (*ProjectImportSpaceSource)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(a.(*management.ProjectImportSpaceSource), b.(*ProjectImportSpaceSource), 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) + if err := s.AddGeneratedConversionFunc((*ProjectList)(nil), (*management.ProjectList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectList_To_management_ProjectList(a.(*ProjectList), b.(*management.ProjectList), 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) + if err := s.AddGeneratedConversionFunc((*management.ProjectList)(nil), (*ProjectList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectList_To_v1_ProjectList(a.(*management.ProjectList), b.(*ProjectList), 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) + if err := s.AddGeneratedConversionFunc((*ProjectMember)(nil), (*management.ProjectMember)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectMember_To_management_ProjectMember(a.(*ProjectMember), b.(*management.ProjectMember), 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) + if err := s.AddGeneratedConversionFunc((*management.ProjectMember)(nil), (*ProjectMember)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectMember_To_v1_ProjectMember(a.(*management.ProjectMember), b.(*ProjectMember), 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) + if err := s.AddGeneratedConversionFunc((*ProjectMembers)(nil), (*management.ProjectMembers)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectMembers_To_management_ProjectMembers(a.(*ProjectMembers), b.(*management.ProjectMembers), 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) + if err := s.AddGeneratedConversionFunc((*management.ProjectMembers)(nil), (*ProjectMembers)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectMembers_To_v1_ProjectMembers(a.(*management.ProjectMembers), b.(*ProjectMembers), 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) + if err := s.AddGeneratedConversionFunc((*ProjectMembersList)(nil), (*management.ProjectMembersList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectMembersList_To_management_ProjectMembersList(a.(*ProjectMembersList), b.(*management.ProjectMembersList), 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) + if err := s.AddGeneratedConversionFunc((*management.ProjectMembersList)(nil), (*ProjectMembersList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectMembersList_To_v1_ProjectMembersList(a.(*management.ProjectMembersList), b.(*ProjectMembersList), 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) + 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.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) + 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((*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) + 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 { return err } - if err := s.AddGeneratedConversionFunc((*management.Self)(nil), (*Self)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_Self_To_v1_Self(a.(*management.Self), b.(*Self), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectMigrateSpaceInstance)(nil), (*ProjectMigrateSpaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectMigrateSpaceInstance_To_v1_ProjectMigrateSpaceInstance(a.(*management.ProjectMigrateSpaceInstance), b.(*ProjectMigrateSpaceInstance), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SelfList)(nil), (*management.SelfList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SelfList_To_management_SelfList(a.(*SelfList), b.(*management.SelfList), scope) + if err := s.AddGeneratedConversionFunc((*ProjectMigrateSpaceInstanceList)(nil), (*management.ProjectMigrateSpaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectMigrateSpaceInstanceList_To_management_ProjectMigrateSpaceInstanceList(a.(*ProjectMigrateSpaceInstanceList), b.(*management.ProjectMigrateSpaceInstanceList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SelfList)(nil), (*SelfList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SelfList_To_v1_SelfList(a.(*management.SelfList), b.(*SelfList), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectMigrateSpaceInstanceList)(nil), (*ProjectMigrateSpaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectMigrateSpaceInstanceList_To_v1_ProjectMigrateSpaceInstanceList(a.(*management.ProjectMigrateSpaceInstanceList), b.(*ProjectMigrateSpaceInstanceList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SelfSpec)(nil), (*management.SelfSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SelfSpec_To_management_SelfSpec(a.(*SelfSpec), b.(*management.SelfSpec), scope) + if err := s.AddGeneratedConversionFunc((*ProjectMigrateSpaceInstanceSource)(nil), (*management.ProjectMigrateSpaceInstanceSource)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource(a.(*ProjectMigrateSpaceInstanceSource), b.(*management.ProjectMigrateSpaceInstanceSource), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SelfSpec)(nil), (*SelfSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SelfSpec_To_v1_SelfSpec(a.(*management.SelfSpec), b.(*SelfSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectMigrateSpaceInstanceSource)(nil), (*ProjectMigrateSpaceInstanceSource)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource(a.(*management.ProjectMigrateSpaceInstanceSource), b.(*ProjectMigrateSpaceInstanceSource), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SelfStatus)(nil), (*management.SelfStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SelfStatus_To_management_SelfStatus(a.(*SelfStatus), b.(*management.SelfStatus), scope) + if err := s.AddGeneratedConversionFunc((*ProjectMigrateVirtualClusterInstance)(nil), (*management.ProjectMigrateVirtualClusterInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectMigrateVirtualClusterInstance_To_management_ProjectMigrateVirtualClusterInstance(a.(*ProjectMigrateVirtualClusterInstance), b.(*management.ProjectMigrateVirtualClusterInstance), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SelfStatus)(nil), (*SelfStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SelfStatus_To_v1_SelfStatus(a.(*management.SelfStatus), b.(*SelfStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectMigrateVirtualClusterInstance)(nil), (*ProjectMigrateVirtualClusterInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectMigrateVirtualClusterInstance_To_v1_ProjectMigrateVirtualClusterInstance(a.(*management.ProjectMigrateVirtualClusterInstance), b.(*ProjectMigrateVirtualClusterInstance), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SelfSubjectAccessReview)(nil), (*management.SelfSubjectAccessReview)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SelfSubjectAccessReview_To_management_SelfSubjectAccessReview(a.(*SelfSubjectAccessReview), b.(*management.SelfSubjectAccessReview), scope) + if err := s.AddGeneratedConversionFunc((*ProjectMigrateVirtualClusterInstanceList)(nil), (*management.ProjectMigrateVirtualClusterInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectMigrateVirtualClusterInstanceList_To_management_ProjectMigrateVirtualClusterInstanceList(a.(*ProjectMigrateVirtualClusterInstanceList), b.(*management.ProjectMigrateVirtualClusterInstanceList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SelfSubjectAccessReview)(nil), (*SelfSubjectAccessReview)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SelfSubjectAccessReview_To_v1_SelfSubjectAccessReview(a.(*management.SelfSubjectAccessReview), b.(*SelfSubjectAccessReview), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectMigrateVirtualClusterInstanceList)(nil), (*ProjectMigrateVirtualClusterInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectMigrateVirtualClusterInstanceList_To_v1_ProjectMigrateVirtualClusterInstanceList(a.(*management.ProjectMigrateVirtualClusterInstanceList), b.(*ProjectMigrateVirtualClusterInstanceList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SelfSubjectAccessReviewList)(nil), (*management.SelfSubjectAccessReviewList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SelfSubjectAccessReviewList_To_management_SelfSubjectAccessReviewList(a.(*SelfSubjectAccessReviewList), b.(*management.SelfSubjectAccessReviewList), scope) + if err := s.AddGeneratedConversionFunc((*ProjectMigrateVirtualClusterInstanceSource)(nil), (*management.ProjectMigrateVirtualClusterInstanceSource)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource(a.(*ProjectMigrateVirtualClusterInstanceSource), b.(*management.ProjectMigrateVirtualClusterInstanceSource), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SelfSubjectAccessReviewList)(nil), (*SelfSubjectAccessReviewList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SelfSubjectAccessReviewList_To_v1_SelfSubjectAccessReviewList(a.(*management.SelfSubjectAccessReviewList), b.(*SelfSubjectAccessReviewList), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectMigrateVirtualClusterInstanceSource)(nil), (*ProjectMigrateVirtualClusterInstanceSource)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(a.(*management.ProjectMigrateVirtualClusterInstanceSource), b.(*ProjectMigrateVirtualClusterInstanceSource), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SelfSubjectAccessReviewSpec)(nil), (*management.SelfSubjectAccessReviewSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(a.(*SelfSubjectAccessReviewSpec), b.(*management.SelfSubjectAccessReviewSpec), scope) + if err := s.AddGeneratedConversionFunc((*ProjectNodeTypes)(nil), (*management.ProjectNodeTypes)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectNodeTypes_To_management_ProjectNodeTypes(a.(*ProjectNodeTypes), b.(*management.ProjectNodeTypes), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SelfSubjectAccessReviewSpec)(nil), (*SelfSubjectAccessReviewSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(a.(*management.SelfSubjectAccessReviewSpec), b.(*SelfSubjectAccessReviewSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectNodeTypes)(nil), (*ProjectNodeTypes)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectNodeTypes_To_v1_ProjectNodeTypes(a.(*management.ProjectNodeTypes), b.(*ProjectNodeTypes), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SelfSubjectAccessReviewStatus)(nil), (*management.SelfSubjectAccessReviewStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(a.(*SelfSubjectAccessReviewStatus), b.(*management.SelfSubjectAccessReviewStatus), scope) + if err := s.AddGeneratedConversionFunc((*ProjectNodeTypesList)(nil), (*management.ProjectNodeTypesList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectNodeTypesList_To_management_ProjectNodeTypesList(a.(*ProjectNodeTypesList), b.(*management.ProjectNodeTypesList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SelfSubjectAccessReviewStatus)(nil), (*SelfSubjectAccessReviewStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(a.(*management.SelfSubjectAccessReviewStatus), b.(*SelfSubjectAccessReviewStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectNodeTypesList)(nil), (*ProjectNodeTypesList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectNodeTypesList_To_v1_ProjectNodeTypesList(a.(*management.ProjectNodeTypesList), b.(*ProjectNodeTypesList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SharedSecret)(nil), (*management.SharedSecret)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SharedSecret_To_management_SharedSecret(a.(*SharedSecret), b.(*management.SharedSecret), 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.SharedSecret)(nil), (*SharedSecret)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SharedSecret_To_v1_SharedSecret(a.(*management.SharedSecret), b.(*SharedSecret), 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 } - if err := s.AddGeneratedConversionFunc((*SharedSecretList)(nil), (*management.SharedSecretList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SharedSecretList_To_management_SharedSecretList(a.(*SharedSecretList), b.(*management.SharedSecretList), scope) + if err := s.AddGeneratedConversionFunc((*ProjectSecret)(nil), (*management.ProjectSecret)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectSecret_To_management_ProjectSecret(a.(*ProjectSecret), b.(*management.ProjectSecret), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SharedSecretList)(nil), (*SharedSecretList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SharedSecretList_To_v1_SharedSecretList(a.(*management.SharedSecretList), b.(*SharedSecretList), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectSecret)(nil), (*ProjectSecret)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectSecret_To_v1_ProjectSecret(a.(*management.ProjectSecret), b.(*ProjectSecret), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SharedSecretSpec)(nil), (*management.SharedSecretSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SharedSecretSpec_To_management_SharedSecretSpec(a.(*SharedSecretSpec), b.(*management.SharedSecretSpec), scope) + if err := s.AddGeneratedConversionFunc((*ProjectSecretList)(nil), (*management.ProjectSecretList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectSecretList_To_management_ProjectSecretList(a.(*ProjectSecretList), b.(*management.ProjectSecretList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SharedSecretSpec)(nil), (*SharedSecretSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SharedSecretSpec_To_v1_SharedSecretSpec(a.(*management.SharedSecretSpec), b.(*SharedSecretSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectSecretList)(nil), (*ProjectSecretList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectSecretList_To_v1_ProjectSecretList(a.(*management.ProjectSecretList), b.(*ProjectSecretList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SharedSecretStatus)(nil), (*management.SharedSecretStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SharedSecretStatus_To_management_SharedSecretStatus(a.(*SharedSecretStatus), b.(*management.SharedSecretStatus), scope) + if err := s.AddGeneratedConversionFunc((*ProjectSecretSpec)(nil), (*management.ProjectSecretSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec(a.(*ProjectSecretSpec), b.(*management.ProjectSecretSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SharedSecretStatus)(nil), (*SharedSecretStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SharedSecretStatus_To_v1_SharedSecretStatus(a.(*management.SharedSecretStatus), b.(*SharedSecretStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectSecretSpec)(nil), (*ProjectSecretSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectSecretSpec_To_v1_ProjectSecretSpec(a.(*management.ProjectSecretSpec), b.(*ProjectSecretSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SpaceInstance)(nil), (*management.SpaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SpaceInstance_To_management_SpaceInstance(a.(*SpaceInstance), b.(*management.SpaceInstance), scope) + if err := s.AddGeneratedConversionFunc((*ProjectSecretStatus)(nil), (*management.ProjectSecretStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectSecretStatus_To_management_ProjectSecretStatus(a.(*ProjectSecretStatus), b.(*management.ProjectSecretStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SpaceInstance)(nil), (*SpaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SpaceInstance_To_v1_SpaceInstance(a.(*management.SpaceInstance), b.(*SpaceInstance), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectSecretStatus)(nil), (*ProjectSecretStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectSecretStatus_To_v1_ProjectSecretStatus(a.(*management.ProjectSecretStatus), b.(*ProjectSecretStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SpaceInstanceList)(nil), (*management.SpaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SpaceInstanceList_To_management_SpaceInstanceList(a.(*SpaceInstanceList), b.(*management.SpaceInstanceList), scope) + if err := s.AddGeneratedConversionFunc((*ProjectSpec)(nil), (*management.ProjectSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectSpec_To_management_ProjectSpec(a.(*ProjectSpec), b.(*management.ProjectSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SpaceInstanceList)(nil), (*SpaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SpaceInstanceList_To_v1_SpaceInstanceList(a.(*management.SpaceInstanceList), b.(*SpaceInstanceList), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectSpec)(nil), (*ProjectSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectSpec_To_v1_ProjectSpec(a.(*management.ProjectSpec), b.(*ProjectSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SpaceInstanceSpec)(nil), (*management.SpaceInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SpaceInstanceSpec_To_management_SpaceInstanceSpec(a.(*SpaceInstanceSpec), b.(*management.SpaceInstanceSpec), scope) + if err := s.AddGeneratedConversionFunc((*ProjectStatus)(nil), (*management.ProjectStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectStatus_To_management_ProjectStatus(a.(*ProjectStatus), b.(*management.ProjectStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SpaceInstanceSpec)(nil), (*SpaceInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SpaceInstanceSpec_To_v1_SpaceInstanceSpec(a.(*management.SpaceInstanceSpec), b.(*SpaceInstanceSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectStatus)(nil), (*ProjectStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectStatus_To_v1_ProjectStatus(a.(*management.ProjectStatus), b.(*ProjectStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SpaceInstanceStatus)(nil), (*management.SpaceInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SpaceInstanceStatus_To_management_SpaceInstanceStatus(a.(*SpaceInstanceStatus), b.(*management.SpaceInstanceStatus), scope) + if err := s.AddGeneratedConversionFunc((*ProjectTemplates)(nil), (*management.ProjectTemplates)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectTemplates_To_management_ProjectTemplates(a.(*ProjectTemplates), b.(*management.ProjectTemplates), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SpaceInstanceStatus)(nil), (*SpaceInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SpaceInstanceStatus_To_v1_SpaceInstanceStatus(a.(*management.SpaceInstanceStatus), b.(*SpaceInstanceStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectTemplates)(nil), (*ProjectTemplates)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectTemplates_To_v1_ProjectTemplates(a.(*management.ProjectTemplates), b.(*ProjectTemplates), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SpaceTemplate)(nil), (*management.SpaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SpaceTemplate_To_management_SpaceTemplate(a.(*SpaceTemplate), b.(*management.SpaceTemplate), scope) + if err := s.AddGeneratedConversionFunc((*ProjectTemplatesList)(nil), (*management.ProjectTemplatesList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectTemplatesList_To_management_ProjectTemplatesList(a.(*ProjectTemplatesList), b.(*management.ProjectTemplatesList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SpaceTemplate)(nil), (*SpaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SpaceTemplate_To_v1_SpaceTemplate(a.(*management.SpaceTemplate), b.(*SpaceTemplate), scope) + if err := s.AddGeneratedConversionFunc((*management.ProjectTemplatesList)(nil), (*ProjectTemplatesList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectTemplatesList_To_v1_ProjectTemplatesList(a.(*management.ProjectTemplatesList), b.(*ProjectTemplatesList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SpaceTemplateList)(nil), (*management.SpaceTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SpaceTemplateList_To_management_SpaceTemplateList(a.(*SpaceTemplateList), b.(*management.SpaceTemplateList), scope) + if err := s.AddGeneratedConversionFunc((*RedirectToken)(nil), (*management.RedirectToken)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_RedirectToken_To_management_RedirectToken(a.(*RedirectToken), b.(*management.RedirectToken), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SpaceTemplateList)(nil), (*SpaceTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SpaceTemplateList_To_v1_SpaceTemplateList(a.(*management.SpaceTemplateList), b.(*SpaceTemplateList), scope) + if err := s.AddGeneratedConversionFunc((*management.RedirectToken)(nil), (*RedirectToken)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_RedirectToken_To_v1_RedirectToken(a.(*management.RedirectToken), b.(*RedirectToken), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SpaceTemplateSpec)(nil), (*management.SpaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec(a.(*SpaceTemplateSpec), b.(*management.SpaceTemplateSpec), scope) + if err := s.AddGeneratedConversionFunc((*RedirectTokenList)(nil), (*management.RedirectTokenList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_RedirectTokenList_To_management_RedirectTokenList(a.(*RedirectTokenList), b.(*management.RedirectTokenList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SpaceTemplateSpec)(nil), (*SpaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SpaceTemplateSpec_To_v1_SpaceTemplateSpec(a.(*management.SpaceTemplateSpec), b.(*SpaceTemplateSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.RedirectTokenList)(nil), (*RedirectTokenList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_RedirectTokenList_To_v1_RedirectTokenList(a.(*management.RedirectTokenList), b.(*RedirectTokenList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SpaceTemplateStatus)(nil), (*management.SpaceTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SpaceTemplateStatus_To_management_SpaceTemplateStatus(a.(*SpaceTemplateStatus), b.(*management.SpaceTemplateStatus), scope) + if err := s.AddGeneratedConversionFunc((*RedirectTokenSpec)(nil), (*management.RedirectTokenSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec(a.(*RedirectTokenSpec), b.(*management.RedirectTokenSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SpaceTemplateStatus)(nil), (*SpaceTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SpaceTemplateStatus_To_v1_SpaceTemplateStatus(a.(*management.SpaceTemplateStatus), b.(*SpaceTemplateStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.RedirectTokenSpec)(nil), (*RedirectTokenSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec(a.(*management.RedirectTokenSpec), b.(*RedirectTokenSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SubjectAccessReview)(nil), (*management.SubjectAccessReview)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SubjectAccessReview_To_management_SubjectAccessReview(a.(*SubjectAccessReview), b.(*management.SubjectAccessReview), scope) + if err := s.AddGeneratedConversionFunc((*RedirectTokenStatus)(nil), (*management.RedirectTokenStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus(a.(*RedirectTokenStatus), b.(*management.RedirectTokenStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SubjectAccessReview)(nil), (*SubjectAccessReview)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SubjectAccessReview_To_v1_SubjectAccessReview(a.(*management.SubjectAccessReview), b.(*SubjectAccessReview), scope) + if err := s.AddGeneratedConversionFunc((*management.RedirectTokenStatus)(nil), (*RedirectTokenStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus(a.(*management.RedirectTokenStatus), b.(*RedirectTokenStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SubjectAccessReviewList)(nil), (*management.SubjectAccessReviewList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SubjectAccessReviewList_To_management_SubjectAccessReviewList(a.(*SubjectAccessReviewList), b.(*management.SubjectAccessReviewList), scope) + if err := s.AddGeneratedConversionFunc((*RegisterVirtualCluster)(nil), (*management.RegisterVirtualCluster)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_RegisterVirtualCluster_To_management_RegisterVirtualCluster(a.(*RegisterVirtualCluster), b.(*management.RegisterVirtualCluster), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SubjectAccessReviewList)(nil), (*SubjectAccessReviewList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SubjectAccessReviewList_To_v1_SubjectAccessReviewList(a.(*management.SubjectAccessReviewList), b.(*SubjectAccessReviewList), scope) + if err := s.AddGeneratedConversionFunc((*management.RegisterVirtualCluster)(nil), (*RegisterVirtualCluster)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_RegisterVirtualCluster_To_v1_RegisterVirtualCluster(a.(*management.RegisterVirtualCluster), b.(*RegisterVirtualCluster), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SubjectAccessReviewSpec)(nil), (*management.SubjectAccessReviewSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec(a.(*SubjectAccessReviewSpec), b.(*management.SubjectAccessReviewSpec), scope) + if err := s.AddGeneratedConversionFunc((*RegisterVirtualClusterList)(nil), (*management.RegisterVirtualClusterList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_RegisterVirtualClusterList_To_management_RegisterVirtualClusterList(a.(*RegisterVirtualClusterList), b.(*management.RegisterVirtualClusterList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SubjectAccessReviewSpec)(nil), (*SubjectAccessReviewSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec(a.(*management.SubjectAccessReviewSpec), b.(*SubjectAccessReviewSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.RegisterVirtualClusterList)(nil), (*RegisterVirtualClusterList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterList(a.(*management.RegisterVirtualClusterList), b.(*RegisterVirtualClusterList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*SubjectAccessReviewStatus)(nil), (*management.SubjectAccessReviewStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus(a.(*SubjectAccessReviewStatus), b.(*management.SubjectAccessReviewStatus), scope) + if err := s.AddGeneratedConversionFunc((*RegisterVirtualClusterSpec)(nil), (*management.RegisterVirtualClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec(a.(*RegisterVirtualClusterSpec), b.(*management.RegisterVirtualClusterSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.SubjectAccessReviewStatus)(nil), (*SubjectAccessReviewStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus(a.(*management.SubjectAccessReviewStatus), b.(*SubjectAccessReviewStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.RegisterVirtualClusterSpec)(nil), (*RegisterVirtualClusterSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec(a.(*management.RegisterVirtualClusterSpec), b.(*RegisterVirtualClusterSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*Task)(nil), (*management.Task)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_Task_To_management_Task(a.(*Task), b.(*management.Task), scope) + if err := s.AddGeneratedConversionFunc((*RegisterVirtualClusterStatus)(nil), (*management.RegisterVirtualClusterStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(a.(*RegisterVirtualClusterStatus), b.(*management.RegisterVirtualClusterStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.Task)(nil), (*Task)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_Task_To_v1_Task(a.(*management.Task), b.(*Task), scope) + if err := s.AddGeneratedConversionFunc((*management.RegisterVirtualClusterStatus)(nil), (*RegisterVirtualClusterStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(a.(*management.RegisterVirtualClusterStatus), b.(*RegisterVirtualClusterStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TaskList)(nil), (*management.TaskList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TaskList_To_management_TaskList(a.(*TaskList), b.(*management.TaskList), scope) + if err := s.AddGeneratedConversionFunc((*ResetAccessKey)(nil), (*management.ResetAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ResetAccessKey_To_management_ResetAccessKey(a.(*ResetAccessKey), b.(*management.ResetAccessKey), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TaskList)(nil), (*TaskList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TaskList_To_v1_TaskList(a.(*management.TaskList), b.(*TaskList), scope) + if err := s.AddGeneratedConversionFunc((*management.ResetAccessKey)(nil), (*ResetAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ResetAccessKey_To_v1_ResetAccessKey(a.(*management.ResetAccessKey), b.(*ResetAccessKey), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TaskLog)(nil), (*management.TaskLog)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TaskLog_To_management_TaskLog(a.(*TaskLog), b.(*management.TaskLog), scope) + if err := s.AddGeneratedConversionFunc((*ResetAccessKeyList)(nil), (*management.ResetAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList(a.(*ResetAccessKeyList), b.(*management.ResetAccessKeyList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TaskLog)(nil), (*TaskLog)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TaskLog_To_v1_TaskLog(a.(*management.TaskLog), b.(*TaskLog), scope) + if err := s.AddGeneratedConversionFunc((*management.ResetAccessKeyList)(nil), (*ResetAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList(a.(*management.ResetAccessKeyList), b.(*ResetAccessKeyList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TaskLogList)(nil), (*management.TaskLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TaskLogList_To_management_TaskLogList(a.(*TaskLogList), b.(*management.TaskLogList), scope) + if err := s.AddGeneratedConversionFunc((*ResetAccessKeySpec)(nil), (*management.ResetAccessKeySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(a.(*ResetAccessKeySpec), b.(*management.ResetAccessKeySpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TaskLogList)(nil), (*TaskLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TaskLogList_To_v1_TaskLogList(a.(*management.TaskLogList), b.(*TaskLogList), scope) + if err := s.AddGeneratedConversionFunc((*management.ResetAccessKeySpec)(nil), (*ResetAccessKeySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(a.(*management.ResetAccessKeySpec), b.(*ResetAccessKeySpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TaskLogOptions)(nil), (*management.TaskLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TaskLogOptions_To_management_TaskLogOptions(a.(*TaskLogOptions), b.(*management.TaskLogOptions), scope) + if err := s.AddGeneratedConversionFunc((*ResetAccessKeyStatus)(nil), (*management.ResetAccessKeyStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(a.(*ResetAccessKeyStatus), b.(*management.ResetAccessKeyStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TaskLogOptions)(nil), (*TaskLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TaskLogOptions_To_v1_TaskLogOptions(a.(*management.TaskLogOptions), b.(*TaskLogOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.ResetAccessKeyStatus)(nil), (*ResetAccessKeyStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(a.(*management.ResetAccessKeyStatus), b.(*ResetAccessKeyStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TaskSpec)(nil), (*management.TaskSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TaskSpec_To_management_TaskSpec(a.(*TaskSpec), b.(*management.TaskSpec), scope) + 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 { return err } - if err := s.AddGeneratedConversionFunc((*management.TaskSpec)(nil), (*TaskSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TaskSpec_To_v1_TaskSpec(a.(*management.TaskSpec), b.(*TaskSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.Self)(nil), (*Self)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_Self_To_v1_Self(a.(*management.Self), b.(*Self), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TaskStatus)(nil), (*management.TaskStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TaskStatus_To_management_TaskStatus(a.(*TaskStatus), b.(*management.TaskStatus), scope) + if err := s.AddGeneratedConversionFunc((*SelfList)(nil), (*management.SelfList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SelfList_To_management_SelfList(a.(*SelfList), b.(*management.SelfList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TaskStatus)(nil), (*TaskStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TaskStatus_To_v1_TaskStatus(a.(*management.TaskStatus), b.(*TaskStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.SelfList)(nil), (*SelfList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SelfList_To_v1_SelfList(a.(*management.SelfList), b.(*SelfList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*Team)(nil), (*management.Team)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_Team_To_management_Team(a.(*Team), b.(*management.Team), scope) + if err := s.AddGeneratedConversionFunc((*SelfSpec)(nil), (*management.SelfSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SelfSpec_To_management_SelfSpec(a.(*SelfSpec), b.(*management.SelfSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.Team)(nil), (*Team)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_Team_To_v1_Team(a.(*management.Team), b.(*Team), scope) + if err := s.AddGeneratedConversionFunc((*management.SelfSpec)(nil), (*SelfSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SelfSpec_To_v1_SelfSpec(a.(*management.SelfSpec), b.(*SelfSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TeamAccessKeys)(nil), (*management.TeamAccessKeys)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TeamAccessKeys_To_management_TeamAccessKeys(a.(*TeamAccessKeys), b.(*management.TeamAccessKeys), scope) + if err := s.AddGeneratedConversionFunc((*SelfStatus)(nil), (*management.SelfStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SelfStatus_To_management_SelfStatus(a.(*SelfStatus), b.(*management.SelfStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TeamAccessKeys)(nil), (*TeamAccessKeys)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TeamAccessKeys_To_v1_TeamAccessKeys(a.(*management.TeamAccessKeys), b.(*TeamAccessKeys), scope) + if err := s.AddGeneratedConversionFunc((*management.SelfStatus)(nil), (*SelfStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SelfStatus_To_v1_SelfStatus(a.(*management.SelfStatus), b.(*SelfStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TeamAccessKeysList)(nil), (*management.TeamAccessKeysList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TeamAccessKeysList_To_management_TeamAccessKeysList(a.(*TeamAccessKeysList), b.(*management.TeamAccessKeysList), scope) + if err := s.AddGeneratedConversionFunc((*SelfSubjectAccessReview)(nil), (*management.SelfSubjectAccessReview)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SelfSubjectAccessReview_To_management_SelfSubjectAccessReview(a.(*SelfSubjectAccessReview), b.(*management.SelfSubjectAccessReview), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TeamAccessKeysList)(nil), (*TeamAccessKeysList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TeamAccessKeysList_To_v1_TeamAccessKeysList(a.(*management.TeamAccessKeysList), b.(*TeamAccessKeysList), scope) + if err := s.AddGeneratedConversionFunc((*management.SelfSubjectAccessReview)(nil), (*SelfSubjectAccessReview)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SelfSubjectAccessReview_To_v1_SelfSubjectAccessReview(a.(*management.SelfSubjectAccessReview), b.(*SelfSubjectAccessReview), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TeamClusters)(nil), (*management.TeamClusters)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TeamClusters_To_management_TeamClusters(a.(*TeamClusters), b.(*management.TeamClusters), scope) + if err := s.AddGeneratedConversionFunc((*SelfSubjectAccessReviewList)(nil), (*management.SelfSubjectAccessReviewList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SelfSubjectAccessReviewList_To_management_SelfSubjectAccessReviewList(a.(*SelfSubjectAccessReviewList), b.(*management.SelfSubjectAccessReviewList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TeamClusters)(nil), (*TeamClusters)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TeamClusters_To_v1_TeamClusters(a.(*management.TeamClusters), b.(*TeamClusters), scope) + if err := s.AddGeneratedConversionFunc((*management.SelfSubjectAccessReviewList)(nil), (*SelfSubjectAccessReviewList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SelfSubjectAccessReviewList_To_v1_SelfSubjectAccessReviewList(a.(*management.SelfSubjectAccessReviewList), b.(*SelfSubjectAccessReviewList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TeamClustersList)(nil), (*management.TeamClustersList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TeamClustersList_To_management_TeamClustersList(a.(*TeamClustersList), b.(*management.TeamClustersList), scope) + if err := s.AddGeneratedConversionFunc((*SelfSubjectAccessReviewSpec)(nil), (*management.SelfSubjectAccessReviewSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(a.(*SelfSubjectAccessReviewSpec), b.(*management.SelfSubjectAccessReviewSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TeamClustersList)(nil), (*TeamClustersList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TeamClustersList_To_v1_TeamClustersList(a.(*management.TeamClustersList), b.(*TeamClustersList), scope) + if err := s.AddGeneratedConversionFunc((*management.SelfSubjectAccessReviewSpec)(nil), (*SelfSubjectAccessReviewSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(a.(*management.SelfSubjectAccessReviewSpec), b.(*SelfSubjectAccessReviewSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TeamList)(nil), (*management.TeamList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TeamList_To_management_TeamList(a.(*TeamList), b.(*management.TeamList), scope) + if err := s.AddGeneratedConversionFunc((*SelfSubjectAccessReviewStatus)(nil), (*management.SelfSubjectAccessReviewStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(a.(*SelfSubjectAccessReviewStatus), b.(*management.SelfSubjectAccessReviewStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TeamList)(nil), (*TeamList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TeamList_To_v1_TeamList(a.(*management.TeamList), b.(*TeamList), scope) + if err := s.AddGeneratedConversionFunc((*management.SelfSubjectAccessReviewStatus)(nil), (*SelfSubjectAccessReviewStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(a.(*management.SelfSubjectAccessReviewStatus), b.(*SelfSubjectAccessReviewStatus), 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) + if err := s.AddGeneratedConversionFunc((*SharedSecret)(nil), (*management.SharedSecret)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SharedSecret_To_management_SharedSecret(a.(*SharedSecret), b.(*management.SharedSecret), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TeamSpec)(nil), (*TeamSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TeamSpec_To_v1_TeamSpec(a.(*management.TeamSpec), b.(*TeamSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.SharedSecret)(nil), (*SharedSecret)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SharedSecret_To_v1_SharedSecret(a.(*management.SharedSecret), b.(*SharedSecret), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TeamStatus)(nil), (*management.TeamStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TeamStatus_To_management_TeamStatus(a.(*TeamStatus), b.(*management.TeamStatus), scope) + if err := s.AddGeneratedConversionFunc((*SharedSecretList)(nil), (*management.SharedSecretList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SharedSecretList_To_management_SharedSecretList(a.(*SharedSecretList), b.(*management.SharedSecretList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TeamStatus)(nil), (*TeamStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TeamStatus_To_v1_TeamStatus(a.(*management.TeamStatus), b.(*TeamStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.SharedSecretList)(nil), (*SharedSecretList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SharedSecretList_To_v1_SharedSecretList(a.(*management.SharedSecretList), b.(*SharedSecretList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TranslateVClusterResourceName)(nil), (*management.TranslateVClusterResourceName)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TranslateVClusterResourceName_To_management_TranslateVClusterResourceName(a.(*TranslateVClusterResourceName), b.(*management.TranslateVClusterResourceName), scope) + if err := s.AddGeneratedConversionFunc((*SharedSecretSpec)(nil), (*management.SharedSecretSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SharedSecretSpec_To_management_SharedSecretSpec(a.(*SharedSecretSpec), b.(*management.SharedSecretSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TranslateVClusterResourceName)(nil), (*TranslateVClusterResourceName)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TranslateVClusterResourceName_To_v1_TranslateVClusterResourceName(a.(*management.TranslateVClusterResourceName), b.(*TranslateVClusterResourceName), scope) + if err := s.AddGeneratedConversionFunc((*management.SharedSecretSpec)(nil), (*SharedSecretSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SharedSecretSpec_To_v1_SharedSecretSpec(a.(*management.SharedSecretSpec), b.(*SharedSecretSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TranslateVClusterResourceNameList)(nil), (*management.TranslateVClusterResourceNameList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TranslateVClusterResourceNameList_To_management_TranslateVClusterResourceNameList(a.(*TranslateVClusterResourceNameList), b.(*management.TranslateVClusterResourceNameList), scope) + if err := s.AddGeneratedConversionFunc((*SharedSecretStatus)(nil), (*management.SharedSecretStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SharedSecretStatus_To_management_SharedSecretStatus(a.(*SharedSecretStatus), b.(*management.SharedSecretStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TranslateVClusterResourceNameList)(nil), (*TranslateVClusterResourceNameList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TranslateVClusterResourceNameList_To_v1_TranslateVClusterResourceNameList(a.(*management.TranslateVClusterResourceNameList), b.(*TranslateVClusterResourceNameList), scope) + if err := s.AddGeneratedConversionFunc((*management.SharedSecretStatus)(nil), (*SharedSecretStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SharedSecretStatus_To_v1_SharedSecretStatus(a.(*management.SharedSecretStatus), b.(*SharedSecretStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TranslateVClusterResourceNameSpec)(nil), (*management.TranslateVClusterResourceNameSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(a.(*TranslateVClusterResourceNameSpec), b.(*management.TranslateVClusterResourceNameSpec), scope) + if err := s.AddGeneratedConversionFunc((*SnapshotRequest)(nil), (*management.SnapshotRequest)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SnapshotRequest_To_management_SnapshotRequest(a.(*SnapshotRequest), b.(*management.SnapshotRequest), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TranslateVClusterResourceNameSpec)(nil), (*TranslateVClusterResourceNameSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(a.(*management.TranslateVClusterResourceNameSpec), b.(*TranslateVClusterResourceNameSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.SnapshotRequest)(nil), (*SnapshotRequest)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SnapshotRequest_To_v1_SnapshotRequest(a.(*management.SnapshotRequest), b.(*SnapshotRequest), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*TranslateVClusterResourceNameStatus)(nil), (*management.TranslateVClusterResourceNameStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(a.(*TranslateVClusterResourceNameStatus), b.(*management.TranslateVClusterResourceNameStatus), scope) + if err := s.AddGeneratedConversionFunc((*SnapshotRequestError)(nil), (*management.SnapshotRequestError)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SnapshotRequestError_To_management_SnapshotRequestError(a.(*SnapshotRequestError), b.(*management.SnapshotRequestError), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.TranslateVClusterResourceNameStatus)(nil), (*TranslateVClusterResourceNameStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(a.(*management.TranslateVClusterResourceNameStatus), b.(*TranslateVClusterResourceNameStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.SnapshotRequestError)(nil), (*SnapshotRequestError)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SnapshotRequestError_To_v1_SnapshotRequestError(a.(*management.SnapshotRequestError), b.(*SnapshotRequestError), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*User)(nil), (*management.User)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_User_To_management_User(a.(*User), b.(*management.User), scope) + if err := s.AddGeneratedConversionFunc((*SnapshotRequestMetadata)(nil), (*management.SnapshotRequestMetadata)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SnapshotRequestMetadata_To_management_SnapshotRequestMetadata(a.(*SnapshotRequestMetadata), b.(*management.SnapshotRequestMetadata), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.User)(nil), (*User)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_User_To_v1_User(a.(*management.User), b.(*User), scope) + if err := s.AddGeneratedConversionFunc((*management.SnapshotRequestMetadata)(nil), (*SnapshotRequestMetadata)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SnapshotRequestMetadata_To_v1_SnapshotRequestMetadata(a.(*management.SnapshotRequestMetadata), b.(*SnapshotRequestMetadata), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserAccessKeys)(nil), (*management.UserAccessKeys)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserAccessKeys_To_management_UserAccessKeys(a.(*UserAccessKeys), b.(*management.UserAccessKeys), scope) + if err := s.AddGeneratedConversionFunc((*SnapshotRequestStatus)(nil), (*management.SnapshotRequestStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SnapshotRequestStatus_To_management_SnapshotRequestStatus(a.(*SnapshotRequestStatus), b.(*management.SnapshotRequestStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserAccessKeys)(nil), (*UserAccessKeys)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserAccessKeys_To_v1_UserAccessKeys(a.(*management.UserAccessKeys), b.(*UserAccessKeys), scope) + if err := s.AddGeneratedConversionFunc((*management.SnapshotRequestStatus)(nil), (*SnapshotRequestStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SnapshotRequestStatus_To_v1_SnapshotRequestStatus(a.(*management.SnapshotRequestStatus), b.(*SnapshotRequestStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserAccessKeysList)(nil), (*management.UserAccessKeysList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserAccessKeysList_To_management_UserAccessKeysList(a.(*UserAccessKeysList), b.(*management.UserAccessKeysList), scope) + if err := s.AddGeneratedConversionFunc((*SnapshotTaken)(nil), (*management.SnapshotTaken)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SnapshotTaken_To_management_SnapshotTaken(a.(*SnapshotTaken), b.(*management.SnapshotTaken), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserAccessKeysList)(nil), (*UserAccessKeysList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserAccessKeysList_To_v1_UserAccessKeysList(a.(*management.UserAccessKeysList), b.(*UserAccessKeysList), scope) + if err := s.AddGeneratedConversionFunc((*management.SnapshotTaken)(nil), (*SnapshotTaken)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SnapshotTaken_To_v1_SnapshotTaken(a.(*management.SnapshotTaken), b.(*SnapshotTaken), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserClusters)(nil), (*management.UserClusters)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserClusters_To_management_UserClusters(a.(*UserClusters), b.(*management.UserClusters), scope) + if err := s.AddGeneratedConversionFunc((*SpaceInstance)(nil), (*management.SpaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SpaceInstance_To_management_SpaceInstance(a.(*SpaceInstance), b.(*management.SpaceInstance), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserClusters)(nil), (*UserClusters)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserClusters_To_v1_UserClusters(a.(*management.UserClusters), b.(*UserClusters), scope) + if err := s.AddGeneratedConversionFunc((*management.SpaceInstance)(nil), (*SpaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SpaceInstance_To_v1_SpaceInstance(a.(*management.SpaceInstance), b.(*SpaceInstance), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserClustersList)(nil), (*management.UserClustersList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserClustersList_To_management_UserClustersList(a.(*UserClustersList), b.(*management.UserClustersList), scope) + if err := s.AddGeneratedConversionFunc((*SpaceInstanceList)(nil), (*management.SpaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SpaceInstanceList_To_management_SpaceInstanceList(a.(*SpaceInstanceList), b.(*management.SpaceInstanceList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserClustersList)(nil), (*UserClustersList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserClustersList_To_v1_UserClustersList(a.(*management.UserClustersList), b.(*UserClustersList), scope) + if err := s.AddGeneratedConversionFunc((*management.SpaceInstanceList)(nil), (*SpaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SpaceInstanceList_To_v1_SpaceInstanceList(a.(*management.SpaceInstanceList), b.(*SpaceInstanceList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserInfo)(nil), (*management.UserInfo)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserInfo_To_management_UserInfo(a.(*UserInfo), b.(*management.UserInfo), scope) + if err := s.AddGeneratedConversionFunc((*SpaceInstanceSpec)(nil), (*management.SpaceInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SpaceInstanceSpec_To_management_SpaceInstanceSpec(a.(*SpaceInstanceSpec), b.(*management.SpaceInstanceSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserInfo)(nil), (*UserInfo)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserInfo_To_v1_UserInfo(a.(*management.UserInfo), b.(*UserInfo), scope) + if err := s.AddGeneratedConversionFunc((*management.SpaceInstanceSpec)(nil), (*SpaceInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SpaceInstanceSpec_To_v1_SpaceInstanceSpec(a.(*management.SpaceInstanceSpec), b.(*SpaceInstanceSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserList)(nil), (*management.UserList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserList_To_management_UserList(a.(*UserList), b.(*management.UserList), scope) + if err := s.AddGeneratedConversionFunc((*SpaceInstanceStatus)(nil), (*management.SpaceInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SpaceInstanceStatus_To_management_SpaceInstanceStatus(a.(*SpaceInstanceStatus), b.(*management.SpaceInstanceStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserList)(nil), (*UserList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserList_To_v1_UserList(a.(*management.UserList), b.(*UserList), scope) + if err := s.AddGeneratedConversionFunc((*management.SpaceInstanceStatus)(nil), (*SpaceInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SpaceInstanceStatus_To_v1_SpaceInstanceStatus(a.(*management.SpaceInstanceStatus), b.(*SpaceInstanceStatus), 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) + if err := s.AddGeneratedConversionFunc((*SpaceTemplate)(nil), (*management.SpaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SpaceTemplate_To_management_SpaceTemplate(a.(*SpaceTemplate), b.(*management.SpaceTemplate), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserPermissions)(nil), (*UserPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserPermissions_To_v1_UserPermissions(a.(*management.UserPermissions), b.(*UserPermissions), scope) + if err := s.AddGeneratedConversionFunc((*management.SpaceTemplate)(nil), (*SpaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SpaceTemplate_To_v1_SpaceTemplate(a.(*management.SpaceTemplate), b.(*SpaceTemplate), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserPermissionsList)(nil), (*management.UserPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserPermissionsList_To_management_UserPermissionsList(a.(*UserPermissionsList), b.(*management.UserPermissionsList), scope) + if err := s.AddGeneratedConversionFunc((*SpaceTemplateList)(nil), (*management.SpaceTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SpaceTemplateList_To_management_SpaceTemplateList(a.(*SpaceTemplateList), b.(*management.SpaceTemplateList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserPermissionsList)(nil), (*UserPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserPermissionsList_To_v1_UserPermissionsList(a.(*management.UserPermissionsList), b.(*UserPermissionsList), scope) + if err := s.AddGeneratedConversionFunc((*management.SpaceTemplateList)(nil), (*SpaceTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SpaceTemplateList_To_v1_SpaceTemplateList(a.(*management.SpaceTemplateList), b.(*SpaceTemplateList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserPermissionsRole)(nil), (*management.UserPermissionsRole)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserPermissionsRole_To_management_UserPermissionsRole(a.(*UserPermissionsRole), b.(*management.UserPermissionsRole), scope) + if err := s.AddGeneratedConversionFunc((*SpaceTemplateSpec)(nil), (*management.SpaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec(a.(*SpaceTemplateSpec), b.(*management.SpaceTemplateSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserPermissionsRole)(nil), (*UserPermissionsRole)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserPermissionsRole_To_v1_UserPermissionsRole(a.(*management.UserPermissionsRole), b.(*UserPermissionsRole), scope) + if err := s.AddGeneratedConversionFunc((*management.SpaceTemplateSpec)(nil), (*SpaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SpaceTemplateSpec_To_v1_SpaceTemplateSpec(a.(*management.SpaceTemplateSpec), b.(*SpaceTemplateSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserProfile)(nil), (*management.UserProfile)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserProfile_To_management_UserProfile(a.(*UserProfile), b.(*management.UserProfile), scope) + if err := s.AddGeneratedConversionFunc((*SpaceTemplateStatus)(nil), (*management.SpaceTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SpaceTemplateStatus_To_management_SpaceTemplateStatus(a.(*SpaceTemplateStatus), b.(*management.SpaceTemplateStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserProfile)(nil), (*UserProfile)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserProfile_To_v1_UserProfile(a.(*management.UserProfile), b.(*UserProfile), scope) + if err := s.AddGeneratedConversionFunc((*management.SpaceTemplateStatus)(nil), (*SpaceTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SpaceTemplateStatus_To_v1_SpaceTemplateStatus(a.(*management.SpaceTemplateStatus), b.(*SpaceTemplateStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserProfileList)(nil), (*management.UserProfileList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserProfileList_To_management_UserProfileList(a.(*UserProfileList), b.(*management.UserProfileList), scope) + if err := s.AddGeneratedConversionFunc((*StandaloneEtcdPeer)(nil), (*management.StandaloneEtcdPeer)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_StandaloneEtcdPeer_To_management_StandaloneEtcdPeer(a.(*StandaloneEtcdPeer), b.(*management.StandaloneEtcdPeer), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserProfileList)(nil), (*UserProfileList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserProfileList_To_v1_UserProfileList(a.(*management.UserProfileList), b.(*UserProfileList), scope) + if err := s.AddGeneratedConversionFunc((*management.StandaloneEtcdPeer)(nil), (*StandaloneEtcdPeer)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_StandaloneEtcdPeer_To_v1_StandaloneEtcdPeer(a.(*management.StandaloneEtcdPeer), b.(*StandaloneEtcdPeer), 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) + if err := s.AddGeneratedConversionFunc((*StandaloneEtcdPeerCoordinator)(nil), (*management.StandaloneEtcdPeerCoordinator)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_StandaloneEtcdPeerCoordinator_To_management_StandaloneEtcdPeerCoordinator(a.(*StandaloneEtcdPeerCoordinator), b.(*management.StandaloneEtcdPeerCoordinator), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserQuotasOptions)(nil), (*UserQuotasOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserQuotasOptions_To_v1_UserQuotasOptions(a.(*management.UserQuotasOptions), b.(*UserQuotasOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.StandaloneEtcdPeerCoordinator)(nil), (*StandaloneEtcdPeerCoordinator)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_StandaloneEtcdPeerCoordinator_To_v1_StandaloneEtcdPeerCoordinator(a.(*management.StandaloneEtcdPeerCoordinator), b.(*StandaloneEtcdPeerCoordinator), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserSpacesOptions)(nil), (*management.UserSpacesOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserSpacesOptions_To_management_UserSpacesOptions(a.(*UserSpacesOptions), b.(*management.UserSpacesOptions), scope) + if err := s.AddGeneratedConversionFunc((*StandalonePKI)(nil), (*management.StandalonePKI)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_StandalonePKI_To_management_StandalonePKI(a.(*StandalonePKI), b.(*management.StandalonePKI), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserSpacesOptions)(nil), (*UserSpacesOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserSpacesOptions_To_v1_UserSpacesOptions(a.(*management.UserSpacesOptions), b.(*UserSpacesOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.StandalonePKI)(nil), (*StandalonePKI)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_StandalonePKI_To_v1_StandalonePKI(a.(*management.StandalonePKI), b.(*StandalonePKI), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserSpec)(nil), (*management.UserSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserSpec_To_management_UserSpec(a.(*UserSpec), b.(*management.UserSpec), scope) + if err := s.AddGeneratedConversionFunc((*SubjectAccessReview)(nil), (*management.SubjectAccessReview)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SubjectAccessReview_To_management_SubjectAccessReview(a.(*SubjectAccessReview), b.(*management.SubjectAccessReview), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserSpec)(nil), (*UserSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserSpec_To_v1_UserSpec(a.(*management.UserSpec), b.(*UserSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.SubjectAccessReview)(nil), (*SubjectAccessReview)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SubjectAccessReview_To_v1_SubjectAccessReview(a.(*management.SubjectAccessReview), b.(*SubjectAccessReview), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserStatus)(nil), (*management.UserStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserStatus_To_management_UserStatus(a.(*UserStatus), b.(*management.UserStatus), scope) + if err := s.AddGeneratedConversionFunc((*SubjectAccessReviewList)(nil), (*management.SubjectAccessReviewList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SubjectAccessReviewList_To_management_SubjectAccessReviewList(a.(*SubjectAccessReviewList), b.(*management.SubjectAccessReviewList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserStatus)(nil), (*UserStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserStatus_To_v1_UserStatus(a.(*management.UserStatus), b.(*UserStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.SubjectAccessReviewList)(nil), (*SubjectAccessReviewList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SubjectAccessReviewList_To_v1_SubjectAccessReviewList(a.(*management.SubjectAccessReviewList), b.(*SubjectAccessReviewList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserVirtualClustersOptions)(nil), (*management.UserVirtualClustersOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserVirtualClustersOptions_To_management_UserVirtualClustersOptions(a.(*UserVirtualClustersOptions), b.(*management.UserVirtualClustersOptions), scope) + if err := s.AddGeneratedConversionFunc((*SubjectAccessReviewSpec)(nil), (*management.SubjectAccessReviewSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec(a.(*SubjectAccessReviewSpec), b.(*management.SubjectAccessReviewSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.UserVirtualClustersOptions)(nil), (*UserVirtualClustersOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserVirtualClustersOptions_To_v1_UserVirtualClustersOptions(a.(*management.UserVirtualClustersOptions), b.(*UserVirtualClustersOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.SubjectAccessReviewSpec)(nil), (*SubjectAccessReviewSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec(a.(*management.SubjectAccessReviewSpec), b.(*SubjectAccessReviewSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterAccessKey)(nil), (*management.VirtualClusterAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterAccessKey_To_management_VirtualClusterAccessKey(a.(*VirtualClusterAccessKey), b.(*management.VirtualClusterAccessKey), scope) + if err := s.AddGeneratedConversionFunc((*SubjectAccessReviewStatus)(nil), (*management.SubjectAccessReviewStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus(a.(*SubjectAccessReviewStatus), b.(*management.SubjectAccessReviewStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterAccessKey)(nil), (*VirtualClusterAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterAccessKey_To_v1_VirtualClusterAccessKey(a.(*management.VirtualClusterAccessKey), b.(*VirtualClusterAccessKey), scope) + if err := s.AddGeneratedConversionFunc((*management.SubjectAccessReviewStatus)(nil), (*SubjectAccessReviewStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus(a.(*management.SubjectAccessReviewStatus), b.(*SubjectAccessReviewStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterAccessKeyList)(nil), (*management.VirtualClusterAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterAccessKeyList_To_management_VirtualClusterAccessKeyList(a.(*VirtualClusterAccessKeyList), b.(*management.VirtualClusterAccessKeyList), scope) + if err := s.AddGeneratedConversionFunc((*Task)(nil), (*management.Task)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_Task_To_management_Task(a.(*Task), b.(*management.Task), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterAccessKeyList)(nil), (*VirtualClusterAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKeyList(a.(*management.VirtualClusterAccessKeyList), b.(*VirtualClusterAccessKeyList), scope) + if err := s.AddGeneratedConversionFunc((*management.Task)(nil), (*Task)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_Task_To_v1_Task(a.(*management.Task), b.(*Task), 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) + if err := s.AddGeneratedConversionFunc((*TaskList)(nil), (*management.TaskList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TaskList_To_management_TaskList(a.(*TaskList), b.(*management.TaskList), 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.TaskList)(nil), (*TaskList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TaskList_To_v1_TaskList(a.(*management.TaskList), b.(*TaskList), 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((*TaskLog)(nil), (*management.TaskLog)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TaskLog_To_management_TaskLog(a.(*TaskLog), b.(*management.TaskLog), 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.TaskLog)(nil), (*TaskLog)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TaskLog_To_v1_TaskLog(a.(*management.TaskLog), b.(*TaskLog), 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((*TaskLogList)(nil), (*management.TaskLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TaskLogList_To_management_TaskLogList(a.(*TaskLogList), b.(*management.TaskLogList), 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.TaskLogList)(nil), (*TaskLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TaskLogList_To_v1_TaskLogList(a.(*management.TaskLogList), b.(*TaskLogList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceKubeConfigSpec)(nil), (*management.VirtualClusterInstanceKubeConfigSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec(a.(*VirtualClusterInstanceKubeConfigSpec), b.(*management.VirtualClusterInstanceKubeConfigSpec), scope) + if err := s.AddGeneratedConversionFunc((*TaskLogOptions)(nil), (*management.TaskLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TaskLogOptions_To_management_TaskLogOptions(a.(*TaskLogOptions), b.(*management.TaskLogOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceKubeConfigSpec)(nil), (*VirtualClusterInstanceKubeConfigSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec(a.(*management.VirtualClusterInstanceKubeConfigSpec), b.(*VirtualClusterInstanceKubeConfigSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.TaskLogOptions)(nil), (*TaskLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TaskLogOptions_To_v1_TaskLogOptions(a.(*management.TaskLogOptions), b.(*TaskLogOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceKubeConfigStatus)(nil), (*management.VirtualClusterInstanceKubeConfigStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus(a.(*VirtualClusterInstanceKubeConfigStatus), b.(*management.VirtualClusterInstanceKubeConfigStatus), scope) + if err := s.AddGeneratedConversionFunc((*TaskSpec)(nil), (*management.TaskSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TaskSpec_To_management_TaskSpec(a.(*TaskSpec), b.(*management.TaskSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceKubeConfigStatus)(nil), (*VirtualClusterInstanceKubeConfigStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus(a.(*management.VirtualClusterInstanceKubeConfigStatus), b.(*VirtualClusterInstanceKubeConfigStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.TaskSpec)(nil), (*TaskSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TaskSpec_To_v1_TaskSpec(a.(*management.TaskSpec), b.(*TaskSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceList)(nil), (*management.VirtualClusterInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterInstanceList_To_management_VirtualClusterInstanceList(a.(*VirtualClusterInstanceList), b.(*management.VirtualClusterInstanceList), scope) + if err := s.AddGeneratedConversionFunc((*TaskStatus)(nil), (*management.TaskStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TaskStatus_To_management_TaskStatus(a.(*TaskStatus), b.(*management.TaskStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceList)(nil), (*VirtualClusterInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterInstanceList_To_v1_VirtualClusterInstanceList(a.(*management.VirtualClusterInstanceList), b.(*VirtualClusterInstanceList), scope) + if err := s.AddGeneratedConversionFunc((*management.TaskStatus)(nil), (*TaskStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TaskStatus_To_v1_TaskStatus(a.(*management.TaskStatus), b.(*TaskStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceLog)(nil), (*management.VirtualClusterInstanceLog)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterInstanceLog_To_management_VirtualClusterInstanceLog(a.(*VirtualClusterInstanceLog), b.(*management.VirtualClusterInstanceLog), scope) + if err := s.AddGeneratedConversionFunc((*Team)(nil), (*management.Team)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_Team_To_management_Team(a.(*Team), b.(*management.Team), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceLog)(nil), (*VirtualClusterInstanceLog)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterInstanceLog_To_v1_VirtualClusterInstanceLog(a.(*management.VirtualClusterInstanceLog), b.(*VirtualClusterInstanceLog), scope) + if err := s.AddGeneratedConversionFunc((*management.Team)(nil), (*Team)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_Team_To_v1_Team(a.(*management.Team), b.(*Team), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceLogList)(nil), (*management.VirtualClusterInstanceLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterInstanceLogList_To_management_VirtualClusterInstanceLogList(a.(*VirtualClusterInstanceLogList), b.(*management.VirtualClusterInstanceLogList), scope) + if err := s.AddGeneratedConversionFunc((*TeamAccessKeys)(nil), (*management.TeamAccessKeys)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamAccessKeys_To_management_TeamAccessKeys(a.(*TeamAccessKeys), b.(*management.TeamAccessKeys), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceLogList)(nil), (*VirtualClusterInstanceLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterInstanceLogList_To_v1_VirtualClusterInstanceLogList(a.(*management.VirtualClusterInstanceLogList), b.(*VirtualClusterInstanceLogList), scope) + if err := s.AddGeneratedConversionFunc((*management.TeamAccessKeys)(nil), (*TeamAccessKeys)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamAccessKeys_To_v1_TeamAccessKeys(a.(*management.TeamAccessKeys), b.(*TeamAccessKeys), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceLogOptions)(nil), (*management.VirtualClusterInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterInstanceLogOptions_To_management_VirtualClusterInstanceLogOptions(a.(*VirtualClusterInstanceLogOptions), b.(*management.VirtualClusterInstanceLogOptions), scope) + if err := s.AddGeneratedConversionFunc((*TeamAccessKeysList)(nil), (*management.TeamAccessKeysList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamAccessKeysList_To_management_TeamAccessKeysList(a.(*TeamAccessKeysList), b.(*management.TeamAccessKeysList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceLogOptions)(nil), (*VirtualClusterInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterInstanceLogOptions_To_v1_VirtualClusterInstanceLogOptions(a.(*management.VirtualClusterInstanceLogOptions), b.(*VirtualClusterInstanceLogOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.TeamAccessKeysList)(nil), (*TeamAccessKeysList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamAccessKeysList_To_v1_TeamAccessKeysList(a.(*management.TeamAccessKeysList), b.(*TeamAccessKeysList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceSpec)(nil), (*management.VirtualClusterInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec(a.(*VirtualClusterInstanceSpec), b.(*management.VirtualClusterInstanceSpec), scope) + if err := s.AddGeneratedConversionFunc((*TeamClusters)(nil), (*management.TeamClusters)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamClusters_To_management_TeamClusters(a.(*TeamClusters), b.(*management.TeamClusters), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceSpec)(nil), (*VirtualClusterInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterInstanceSpec_To_v1_VirtualClusterInstanceSpec(a.(*management.VirtualClusterInstanceSpec), b.(*VirtualClusterInstanceSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.TeamClusters)(nil), (*TeamClusters)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamClusters_To_v1_TeamClusters(a.(*management.TeamClusters), b.(*TeamClusters), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceStatus)(nil), (*management.VirtualClusterInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterInstanceStatus(a.(*VirtualClusterInstanceStatus), b.(*management.VirtualClusterInstanceStatus), scope) + if err := s.AddGeneratedConversionFunc((*TeamClustersList)(nil), (*management.TeamClustersList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamClustersList_To_management_TeamClustersList(a.(*TeamClustersList), b.(*management.TeamClustersList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceStatus)(nil), (*VirtualClusterInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(a.(*management.VirtualClusterInstanceStatus), b.(*VirtualClusterInstanceStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.TeamClustersList)(nil), (*TeamClustersList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamClustersList_To_v1_TeamClustersList(a.(*management.TeamClustersList), b.(*TeamClustersList), 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) + if err := s.AddGeneratedConversionFunc((*TeamList)(nil), (*management.TeamList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamList_To_management_TeamList(a.(*TeamList), b.(*management.TeamList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.VirtualClusterTemplate)(nil), (*VirtualClusterTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterTemplate_To_v1_VirtualClusterTemplate(a.(*management.VirtualClusterTemplate), b.(*VirtualClusterTemplate), scope) + if err := s.AddGeneratedConversionFunc((*management.TeamList)(nil), (*TeamList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamList_To_v1_TeamList(a.(*management.TeamList), b.(*TeamList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*VirtualClusterTemplateList)(nil), (*management.VirtualClusterTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterTemplateList_To_management_VirtualClusterTemplateList(a.(*VirtualClusterTemplateList), b.(*management.VirtualClusterTemplateList), scope) + 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.VirtualClusterTemplateList)(nil), (*VirtualClusterTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterTemplateList_To_v1_VirtualClusterTemplateList(a.(*management.VirtualClusterTemplateList), b.(*VirtualClusterTemplateList), scope) + 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((*VirtualClusterTemplateSpec)(nil), (*management.VirtualClusterTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterTemplateSpec_To_management_VirtualClusterTemplateSpec(a.(*VirtualClusterTemplateSpec), b.(*management.VirtualClusterTemplateSpec), scope) + 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.VirtualClusterTemplateSpec)(nil), (*VirtualClusterTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterTemplateSpec_To_v1_VirtualClusterTemplateSpec(a.(*management.VirtualClusterTemplateSpec), b.(*VirtualClusterTemplateSpec), scope) + 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((*VirtualClusterTemplateStatus)(nil), (*management.VirtualClusterTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_VirtualClusterTemplateStatus_To_management_VirtualClusterTemplateStatus(a.(*VirtualClusterTemplateStatus), b.(*management.VirtualClusterTemplateStatus), scope) + 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.VirtualClusterTemplateStatus)(nil), (*VirtualClusterTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_VirtualClusterTemplateStatus_To_v1_VirtualClusterTemplateStatus(a.(*management.VirtualClusterTemplateStatus), b.(*VirtualClusterTemplateStatus), scope) + 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((*url.Values)(nil), (*BackupApplyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_BackupApplyOptions(a.(*url.Values), b.(*BackupApplyOptions), scope) + 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((*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) + 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((*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) + 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 { 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((*management.TeamSpec)(nil), (*TeamSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamSpec_To_v1_TeamSpec(a.(*management.TeamSpec), b.(*TeamSpec), 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((*TeamStatus)(nil), (*management.TeamStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamStatus_To_management_TeamStatus(a.(*TeamStatus), b.(*management.TeamStatus), 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((*management.TeamStatus)(nil), (*TeamStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamStatus_To_v1_TeamStatus(a.(*management.TeamStatus), b.(*TeamStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*TaskLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_TaskLogOptions(a.(*url.Values), b.(*TaskLogOptions), scope) + if err := s.AddGeneratedConversionFunc((*TranslateVClusterResourceName)(nil), (*management.TranslateVClusterResourceName)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TranslateVClusterResourceName_To_management_TranslateVClusterResourceName(a.(*TranslateVClusterResourceName), b.(*management.TranslateVClusterResourceName), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*UserQuotasOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_UserQuotasOptions(a.(*url.Values), b.(*UserQuotasOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.TranslateVClusterResourceName)(nil), (*TranslateVClusterResourceName)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TranslateVClusterResourceName_To_v1_TranslateVClusterResourceName(a.(*management.TranslateVClusterResourceName), b.(*TranslateVClusterResourceName), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*UserSpacesOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_UserSpacesOptions(a.(*url.Values), b.(*UserSpacesOptions), scope) + if err := s.AddGeneratedConversionFunc((*TranslateVClusterResourceNameList)(nil), (*management.TranslateVClusterResourceNameList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TranslateVClusterResourceNameList_To_management_TranslateVClusterResourceNameList(a.(*TranslateVClusterResourceNameList), b.(*management.TranslateVClusterResourceNameList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*UserVirtualClustersOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_UserVirtualClustersOptions(a.(*url.Values), b.(*UserVirtualClustersOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.TranslateVClusterResourceNameList)(nil), (*TranslateVClusterResourceNameList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TranslateVClusterResourceNameList_To_v1_TranslateVClusterResourceNameList(a.(*management.TranslateVClusterResourceNameList), b.(*TranslateVClusterResourceNameList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*VirtualClusterInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_VirtualClusterInstanceLogOptions(a.(*url.Values), b.(*VirtualClusterInstanceLogOptions), scope) + if err := s.AddGeneratedConversionFunc((*TranslateVClusterResourceNameSpec)(nil), (*management.TranslateVClusterResourceNameSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(a.(*TranslateVClusterResourceNameSpec), b.(*management.TranslateVClusterResourceNameSpec), scope) }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*management.TranslateVClusterResourceNameSpec)(nil), (*TranslateVClusterResourceNameSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(a.(*management.TranslateVClusterResourceNameSpec), b.(*TranslateVClusterResourceNameSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*TranslateVClusterResourceNameStatus)(nil), (*management.TranslateVClusterResourceNameStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(a.(*TranslateVClusterResourceNameStatus), b.(*management.TranslateVClusterResourceNameStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TranslateVClusterResourceNameStatus)(nil), (*TranslateVClusterResourceNameStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(a.(*management.TranslateVClusterResourceNameStatus), b.(*TranslateVClusterResourceNameStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UsageDownload)(nil), (*management.UsageDownload)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UsageDownload_To_management_UsageDownload(a.(*UsageDownload), b.(*management.UsageDownload), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UsageDownload)(nil), (*UsageDownload)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UsageDownload_To_v1_UsageDownload(a.(*management.UsageDownload), b.(*UsageDownload), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UsageDownloadList)(nil), (*management.UsageDownloadList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UsageDownloadList_To_management_UsageDownloadList(a.(*UsageDownloadList), b.(*management.UsageDownloadList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UsageDownloadList)(nil), (*UsageDownloadList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UsageDownloadList_To_v1_UsageDownloadList(a.(*management.UsageDownloadList), b.(*UsageDownloadList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UsageDownloadSpec)(nil), (*management.UsageDownloadSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UsageDownloadSpec_To_management_UsageDownloadSpec(a.(*UsageDownloadSpec), b.(*management.UsageDownloadSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UsageDownloadSpec)(nil), (*UsageDownloadSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UsageDownloadSpec_To_v1_UsageDownloadSpec(a.(*management.UsageDownloadSpec), b.(*UsageDownloadSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UsageDownloadStatus)(nil), (*management.UsageDownloadStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UsageDownloadStatus_To_management_UsageDownloadStatus(a.(*UsageDownloadStatus), b.(*management.UsageDownloadStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UsageDownloadStatus)(nil), (*UsageDownloadStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UsageDownloadStatus_To_v1_UsageDownloadStatus(a.(*management.UsageDownloadStatus), b.(*UsageDownloadStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*User)(nil), (*management.User)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_User_To_management_User(a.(*User), b.(*management.User), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.User)(nil), (*User)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_User_To_v1_User(a.(*management.User), b.(*User), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserAccessKeys)(nil), (*management.UserAccessKeys)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserAccessKeys_To_management_UserAccessKeys(a.(*UserAccessKeys), b.(*management.UserAccessKeys), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserAccessKeys)(nil), (*UserAccessKeys)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserAccessKeys_To_v1_UserAccessKeys(a.(*management.UserAccessKeys), b.(*UserAccessKeys), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserAccessKeysList)(nil), (*management.UserAccessKeysList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserAccessKeysList_To_management_UserAccessKeysList(a.(*UserAccessKeysList), b.(*management.UserAccessKeysList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserAccessKeysList)(nil), (*UserAccessKeysList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserAccessKeysList_To_v1_UserAccessKeysList(a.(*management.UserAccessKeysList), b.(*UserAccessKeysList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserClusters)(nil), (*management.UserClusters)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserClusters_To_management_UserClusters(a.(*UserClusters), b.(*management.UserClusters), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserClusters)(nil), (*UserClusters)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserClusters_To_v1_UserClusters(a.(*management.UserClusters), b.(*UserClusters), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserClustersList)(nil), (*management.UserClustersList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserClustersList_To_management_UserClustersList(a.(*UserClustersList), b.(*management.UserClustersList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserClustersList)(nil), (*UserClustersList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserClustersList_To_v1_UserClustersList(a.(*management.UserClustersList), b.(*UserClustersList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserInfo)(nil), (*management.UserInfo)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserInfo_To_management_UserInfo(a.(*UserInfo), b.(*management.UserInfo), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserInfo)(nil), (*UserInfo)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserInfo_To_v1_UserInfo(a.(*management.UserInfo), b.(*UserInfo), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserList)(nil), (*management.UserList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserList_To_management_UserList(a.(*UserList), b.(*management.UserList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserList)(nil), (*UserList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserList_To_v1_UserList(a.(*management.UserList), b.(*UserList), scope) + }); 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 { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserPermissions)(nil), (*UserPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserPermissions_To_v1_UserPermissions(a.(*management.UserPermissions), b.(*UserPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserPermissionsList)(nil), (*management.UserPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserPermissionsList_To_management_UserPermissionsList(a.(*UserPermissionsList), b.(*management.UserPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserPermissionsList)(nil), (*UserPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserPermissionsList_To_v1_UserPermissionsList(a.(*management.UserPermissionsList), b.(*UserPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserPermissionsRole)(nil), (*management.UserPermissionsRole)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserPermissionsRole_To_management_UserPermissionsRole(a.(*UserPermissionsRole), b.(*management.UserPermissionsRole), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserPermissionsRole)(nil), (*UserPermissionsRole)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserPermissionsRole_To_v1_UserPermissionsRole(a.(*management.UserPermissionsRole), b.(*UserPermissionsRole), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserProfile)(nil), (*management.UserProfile)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserProfile_To_management_UserProfile(a.(*UserProfile), b.(*management.UserProfile), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserProfile)(nil), (*UserProfile)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserProfile_To_v1_UserProfile(a.(*management.UserProfile), b.(*UserProfile), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserProfileList)(nil), (*management.UserProfileList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserProfileList_To_management_UserProfileList(a.(*UserProfileList), b.(*management.UserProfileList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserProfileList)(nil), (*UserProfileList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserProfileList_To_v1_UserProfileList(a.(*management.UserProfileList), b.(*UserProfileList), scope) + }); 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 { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserQuotasOptions)(nil), (*UserQuotasOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserQuotasOptions_To_v1_UserQuotasOptions(a.(*management.UserQuotasOptions), b.(*UserQuotasOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserSpacesOptions)(nil), (*management.UserSpacesOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserSpacesOptions_To_management_UserSpacesOptions(a.(*UserSpacesOptions), b.(*management.UserSpacesOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserSpacesOptions)(nil), (*UserSpacesOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserSpacesOptions_To_v1_UserSpacesOptions(a.(*management.UserSpacesOptions), b.(*UserSpacesOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserSpec)(nil), (*management.UserSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserSpec_To_management_UserSpec(a.(*UserSpec), b.(*management.UserSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserSpec)(nil), (*UserSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserSpec_To_v1_UserSpec(a.(*management.UserSpec), b.(*UserSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserStatus)(nil), (*management.UserStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserStatus_To_management_UserStatus(a.(*UserStatus), b.(*management.UserStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserStatus)(nil), (*UserStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserStatus_To_v1_UserStatus(a.(*management.UserStatus), b.(*UserStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserVirtualClustersOptions)(nil), (*management.UserVirtualClustersOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserVirtualClustersOptions_To_management_UserVirtualClustersOptions(a.(*UserVirtualClustersOptions), b.(*management.UserVirtualClustersOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserVirtualClustersOptions)(nil), (*UserVirtualClustersOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserVirtualClustersOptions_To_v1_UserVirtualClustersOptions(a.(*management.UserVirtualClustersOptions), b.(*UserVirtualClustersOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterAccessKey)(nil), (*management.VirtualClusterAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterAccessKey_To_management_VirtualClusterAccessKey(a.(*VirtualClusterAccessKey), b.(*management.VirtualClusterAccessKey), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterAccessKey)(nil), (*VirtualClusterAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterAccessKey_To_v1_VirtualClusterAccessKey(a.(*management.VirtualClusterAccessKey), b.(*VirtualClusterAccessKey), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterAccessKeyList)(nil), (*management.VirtualClusterAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterAccessKeyList_To_management_VirtualClusterAccessKeyList(a.(*VirtualClusterAccessKeyList), b.(*management.VirtualClusterAccessKeyList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterAccessKeyList)(nil), (*VirtualClusterAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKeyList(a.(*management.VirtualClusterAccessKeyList), b.(*VirtualClusterAccessKeyList), scope) + }); err != nil { + return err + } + 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.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((*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.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((*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.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 + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceKubeConfigSpec)(nil), (*management.VirtualClusterInstanceKubeConfigSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec(a.(*VirtualClusterInstanceKubeConfigSpec), b.(*management.VirtualClusterInstanceKubeConfigSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceKubeConfigSpec)(nil), (*VirtualClusterInstanceKubeConfigSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec(a.(*management.VirtualClusterInstanceKubeConfigSpec), b.(*VirtualClusterInstanceKubeConfigSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceKubeConfigStatus)(nil), (*management.VirtualClusterInstanceKubeConfigStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus(a.(*VirtualClusterInstanceKubeConfigStatus), b.(*management.VirtualClusterInstanceKubeConfigStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceKubeConfigStatus)(nil), (*VirtualClusterInstanceKubeConfigStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus(a.(*management.VirtualClusterInstanceKubeConfigStatus), b.(*VirtualClusterInstanceKubeConfigStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceList)(nil), (*management.VirtualClusterInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceList_To_management_VirtualClusterInstanceList(a.(*VirtualClusterInstanceList), b.(*management.VirtualClusterInstanceList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceList)(nil), (*VirtualClusterInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceList_To_v1_VirtualClusterInstanceList(a.(*management.VirtualClusterInstanceList), b.(*VirtualClusterInstanceList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceLog)(nil), (*management.VirtualClusterInstanceLog)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceLog_To_management_VirtualClusterInstanceLog(a.(*VirtualClusterInstanceLog), b.(*management.VirtualClusterInstanceLog), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceLog)(nil), (*VirtualClusterInstanceLog)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceLog_To_v1_VirtualClusterInstanceLog(a.(*management.VirtualClusterInstanceLog), b.(*VirtualClusterInstanceLog), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceLogList)(nil), (*management.VirtualClusterInstanceLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceLogList_To_management_VirtualClusterInstanceLogList(a.(*VirtualClusterInstanceLogList), b.(*management.VirtualClusterInstanceLogList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceLogList)(nil), (*VirtualClusterInstanceLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceLogList_To_v1_VirtualClusterInstanceLogList(a.(*management.VirtualClusterInstanceLogList), b.(*VirtualClusterInstanceLogList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceLogOptions)(nil), (*management.VirtualClusterInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceLogOptions_To_management_VirtualClusterInstanceLogOptions(a.(*VirtualClusterInstanceLogOptions), b.(*management.VirtualClusterInstanceLogOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceLogOptions)(nil), (*VirtualClusterInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceLogOptions_To_v1_VirtualClusterInstanceLogOptions(a.(*management.VirtualClusterInstanceLogOptions), b.(*VirtualClusterInstanceLogOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceShell)(nil), (*management.VirtualClusterInstanceShell)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceShell_To_management_VirtualClusterInstanceShell(a.(*VirtualClusterInstanceShell), b.(*management.VirtualClusterInstanceShell), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceShell)(nil), (*VirtualClusterInstanceShell)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceShell_To_v1_VirtualClusterInstanceShell(a.(*management.VirtualClusterInstanceShell), b.(*VirtualClusterInstanceShell), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceShellList)(nil), (*management.VirtualClusterInstanceShellList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceShellList_To_management_VirtualClusterInstanceShellList(a.(*VirtualClusterInstanceShellList), b.(*management.VirtualClusterInstanceShellList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceShellList)(nil), (*VirtualClusterInstanceShellList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceShellList_To_v1_VirtualClusterInstanceShellList(a.(*management.VirtualClusterInstanceShellList), b.(*VirtualClusterInstanceShellList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceSnapshot)(nil), (*management.VirtualClusterInstanceSnapshot)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceSnapshot_To_management_VirtualClusterInstanceSnapshot(a.(*VirtualClusterInstanceSnapshot), b.(*management.VirtualClusterInstanceSnapshot), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceSnapshot)(nil), (*VirtualClusterInstanceSnapshot)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceSnapshot_To_v1_VirtualClusterInstanceSnapshot(a.(*management.VirtualClusterInstanceSnapshot), b.(*VirtualClusterInstanceSnapshot), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceSnapshotList)(nil), (*management.VirtualClusterInstanceSnapshotList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceSnapshotList_To_management_VirtualClusterInstanceSnapshotList(a.(*VirtualClusterInstanceSnapshotList), b.(*management.VirtualClusterInstanceSnapshotList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceSnapshotList)(nil), (*VirtualClusterInstanceSnapshotList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceSnapshotList_To_v1_VirtualClusterInstanceSnapshotList(a.(*management.VirtualClusterInstanceSnapshotList), b.(*VirtualClusterInstanceSnapshotList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceSnapshotStatus)(nil), (*management.VirtualClusterInstanceSnapshotStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceSnapshotStatus_To_management_VirtualClusterInstanceSnapshotStatus(a.(*VirtualClusterInstanceSnapshotStatus), b.(*management.VirtualClusterInstanceSnapshotStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceSnapshotStatus)(nil), (*VirtualClusterInstanceSnapshotStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceSnapshotStatus_To_v1_VirtualClusterInstanceSnapshotStatus(a.(*management.VirtualClusterInstanceSnapshotStatus), b.(*VirtualClusterInstanceSnapshotStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceSpec)(nil), (*management.VirtualClusterInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec(a.(*VirtualClusterInstanceSpec), b.(*management.VirtualClusterInstanceSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceSpec)(nil), (*VirtualClusterInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceSpec_To_v1_VirtualClusterInstanceSpec(a.(*management.VirtualClusterInstanceSpec), b.(*VirtualClusterInstanceSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceStatus)(nil), (*management.VirtualClusterInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterInstanceStatus(a.(*VirtualClusterInstanceStatus), b.(*management.VirtualClusterInstanceStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceStatus)(nil), (*VirtualClusterInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(a.(*management.VirtualClusterInstanceStatus), b.(*VirtualClusterInstanceStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterNodeAccessKey)(nil), (*management.VirtualClusterNodeAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterNodeAccessKey_To_management_VirtualClusterNodeAccessKey(a.(*VirtualClusterNodeAccessKey), b.(*management.VirtualClusterNodeAccessKey), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterNodeAccessKey)(nil), (*VirtualClusterNodeAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterNodeAccessKey_To_v1_VirtualClusterNodeAccessKey(a.(*management.VirtualClusterNodeAccessKey), b.(*VirtualClusterNodeAccessKey), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterNodeAccessKeyList)(nil), (*management.VirtualClusterNodeAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterNodeAccessKeyList_To_management_VirtualClusterNodeAccessKeyList(a.(*VirtualClusterNodeAccessKeyList), b.(*management.VirtualClusterNodeAccessKeyList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterNodeAccessKeyList)(nil), (*VirtualClusterNodeAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterNodeAccessKeyList_To_v1_VirtualClusterNodeAccessKeyList(a.(*management.VirtualClusterNodeAccessKeyList), b.(*VirtualClusterNodeAccessKeyList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterNodeAccessKeySpec)(nil), (*management.VirtualClusterNodeAccessKeySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterNodeAccessKeySpec_To_management_VirtualClusterNodeAccessKeySpec(a.(*VirtualClusterNodeAccessKeySpec), b.(*management.VirtualClusterNodeAccessKeySpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterNodeAccessKeySpec)(nil), (*VirtualClusterNodeAccessKeySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterNodeAccessKeySpec_To_v1_VirtualClusterNodeAccessKeySpec(a.(*management.VirtualClusterNodeAccessKeySpec), b.(*VirtualClusterNodeAccessKeySpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterNodeAccessKeyStatus)(nil), (*management.VirtualClusterNodeAccessKeyStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterNodeAccessKeyStatus_To_management_VirtualClusterNodeAccessKeyStatus(a.(*VirtualClusterNodeAccessKeyStatus), b.(*management.VirtualClusterNodeAccessKeyStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterNodeAccessKeyStatus)(nil), (*VirtualClusterNodeAccessKeyStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterNodeAccessKeyStatus_To_v1_VirtualClusterNodeAccessKeyStatus(a.(*management.VirtualClusterNodeAccessKeyStatus), b.(*VirtualClusterNodeAccessKeyStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterResourceUsage)(nil), (*management.VirtualClusterResourceUsage)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterResourceUsage_To_management_VirtualClusterResourceUsage(a.(*VirtualClusterResourceUsage), b.(*management.VirtualClusterResourceUsage), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterResourceUsage)(nil), (*VirtualClusterResourceUsage)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterResourceUsage_To_v1_VirtualClusterResourceUsage(a.(*management.VirtualClusterResourceUsage), b.(*VirtualClusterResourceUsage), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterResourceUsageList)(nil), (*management.VirtualClusterResourceUsageList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterResourceUsageList_To_management_VirtualClusterResourceUsageList(a.(*VirtualClusterResourceUsageList), b.(*management.VirtualClusterResourceUsageList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterResourceUsageList)(nil), (*VirtualClusterResourceUsageList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterResourceUsageList_To_v1_VirtualClusterResourceUsageList(a.(*management.VirtualClusterResourceUsageList), b.(*VirtualClusterResourceUsageList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterResourceUsageMap)(nil), (*management.VirtualClusterResourceUsageMap)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterResourceUsageMap_To_management_VirtualClusterResourceUsageMap(a.(*VirtualClusterResourceUsageMap), b.(*management.VirtualClusterResourceUsageMap), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterResourceUsageMap)(nil), (*VirtualClusterResourceUsageMap)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterResourceUsageMap_To_v1_VirtualClusterResourceUsageMap(a.(*management.VirtualClusterResourceUsageMap), b.(*VirtualClusterResourceUsageMap), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterResourceUsageStatus)(nil), (*management.VirtualClusterResourceUsageStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterResourceUsageStatus_To_management_VirtualClusterResourceUsageStatus(a.(*VirtualClusterResourceUsageStatus), b.(*management.VirtualClusterResourceUsageStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterResourceUsageStatus)(nil), (*VirtualClusterResourceUsageStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterResourceUsageStatus_To_v1_VirtualClusterResourceUsageStatus(a.(*management.VirtualClusterResourceUsageStatus), b.(*VirtualClusterResourceUsageStatus), scope) + }); 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((*VirtualClusterShellSpec)(nil), (*management.VirtualClusterShellSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterShellSpec_To_management_VirtualClusterShellSpec(a.(*VirtualClusterShellSpec), b.(*management.VirtualClusterShellSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterShellSpec)(nil), (*VirtualClusterShellSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterShellSpec_To_v1_VirtualClusterShellSpec(a.(*management.VirtualClusterShellSpec), b.(*VirtualClusterShellSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterShellStatus)(nil), (*management.VirtualClusterShellStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterShellStatus_To_management_VirtualClusterShellStatus(a.(*VirtualClusterShellStatus), b.(*management.VirtualClusterShellStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterShellStatus)(nil), (*VirtualClusterShellStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterShellStatus_To_v1_VirtualClusterShellStatus(a.(*management.VirtualClusterShellStatus), b.(*VirtualClusterShellStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterStandalone)(nil), (*management.VirtualClusterStandalone)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterStandalone_To_management_VirtualClusterStandalone(a.(*VirtualClusterStandalone), b.(*management.VirtualClusterStandalone), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterStandalone)(nil), (*VirtualClusterStandalone)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterStandalone_To_v1_VirtualClusterStandalone(a.(*management.VirtualClusterStandalone), b.(*VirtualClusterStandalone), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterStandaloneList)(nil), (*management.VirtualClusterStandaloneList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterStandaloneList_To_management_VirtualClusterStandaloneList(a.(*VirtualClusterStandaloneList), b.(*management.VirtualClusterStandaloneList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterStandaloneList)(nil), (*VirtualClusterStandaloneList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterStandaloneList_To_v1_VirtualClusterStandaloneList(a.(*management.VirtualClusterStandaloneList), b.(*VirtualClusterStandaloneList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterStandaloneSpec)(nil), (*management.VirtualClusterStandaloneSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterStandaloneSpec_To_management_VirtualClusterStandaloneSpec(a.(*VirtualClusterStandaloneSpec), b.(*management.VirtualClusterStandaloneSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterStandaloneSpec)(nil), (*VirtualClusterStandaloneSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterStandaloneSpec_To_v1_VirtualClusterStandaloneSpec(a.(*management.VirtualClusterStandaloneSpec), b.(*VirtualClusterStandaloneSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterStandaloneStatus)(nil), (*management.VirtualClusterStandaloneStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterStandaloneStatus_To_management_VirtualClusterStandaloneStatus(a.(*VirtualClusterStandaloneStatus), b.(*management.VirtualClusterStandaloneStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterStandaloneStatus)(nil), (*VirtualClusterStandaloneStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterStandaloneStatus_To_v1_VirtualClusterStandaloneStatus(a.(*management.VirtualClusterStandaloneStatus), b.(*VirtualClusterStandaloneStatus), 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 { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterTemplate)(nil), (*VirtualClusterTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterTemplate_To_v1_VirtualClusterTemplate(a.(*management.VirtualClusterTemplate), b.(*VirtualClusterTemplate), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterTemplateList)(nil), (*management.VirtualClusterTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterTemplateList_To_management_VirtualClusterTemplateList(a.(*VirtualClusterTemplateList), b.(*management.VirtualClusterTemplateList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterTemplateList)(nil), (*VirtualClusterTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterTemplateList_To_v1_VirtualClusterTemplateList(a.(*management.VirtualClusterTemplateList), b.(*VirtualClusterTemplateList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterTemplateSpec)(nil), (*management.VirtualClusterTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterTemplateSpec_To_management_VirtualClusterTemplateSpec(a.(*VirtualClusterTemplateSpec), b.(*management.VirtualClusterTemplateSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterTemplateSpec)(nil), (*VirtualClusterTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterTemplateSpec_To_v1_VirtualClusterTemplateSpec(a.(*management.VirtualClusterTemplateSpec), b.(*VirtualClusterTemplateSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterTemplateStatus)(nil), (*management.VirtualClusterTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterTemplateStatus_To_management_VirtualClusterTemplateStatus(a.(*VirtualClusterTemplateStatus), b.(*management.VirtualClusterTemplateStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterTemplateStatus)(nil), (*VirtualClusterTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterTemplateStatus_To_v1_VirtualClusterTemplateStatus(a.(*management.VirtualClusterTemplateStatus), b.(*VirtualClusterTemplateStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VolumeSnapshotRequestStatus)(nil), (*management.VolumeSnapshotRequestStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VolumeSnapshotRequestStatus_To_management_VolumeSnapshotRequestStatus(a.(*VolumeSnapshotRequestStatus), b.(*management.VolumeSnapshotRequestStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VolumeSnapshotRequestStatus)(nil), (*VolumeSnapshotRequestStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VolumeSnapshotRequestStatus_To_v1_VolumeSnapshotRequestStatus(a.(*management.VolumeSnapshotRequestStatus), b.(*VolumeSnapshotRequestStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VolumeSnapshotsRequestStatus)(nil), (*management.VolumeSnapshotsRequestStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VolumeSnapshotsRequestStatus_To_management_VolumeSnapshotsRequestStatus(a.(*VolumeSnapshotsRequestStatus), b.(*management.VolumeSnapshotsRequestStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VolumeSnapshotsRequestStatus)(nil), (*VolumeSnapshotsRequestStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VolumeSnapshotsRequestStatus_To_v1_VolumeSnapshotsRequestStatus(a.(*management.VolumeSnapshotsRequestStatus), b.(*VolumeSnapshotsRequestStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*BackupApplyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_BackupApplyOptions(a.(*url.Values), b.(*BackupApplyOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*TaskLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_TaskLogOptions(a.(*url.Values), b.(*TaskLogOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*UserQuotasOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_UserQuotasOptions(a.(*url.Values), b.(*UserQuotasOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*UserSpacesOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_UserSpacesOptions(a.(*url.Values), b.(*UserSpacesOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*UserVirtualClustersOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_UserVirtualClustersOptions(a.(*url.Values), b.(*UserVirtualClustersOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*VirtualClusterInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_VirtualClusterInstanceLogOptions(a.(*url.Values), b.(*VirtualClusterInstanceLogOptions), scope) + }); err != nil { + return err + } + return nil +} + +func autoConvert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec(in *AgentAnalyticsSpec, out *management.AgentAnalyticsSpec, s conversion.Scope) error { + out.AnalyticsEndpoint = in.AnalyticsEndpoint + return nil +} + +// Convert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec is an autogenerated conversion function. +func Convert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec(in *AgentAnalyticsSpec, out *management.AgentAnalyticsSpec, s conversion.Scope) error { + return autoConvert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec(in, out, s) +} + +func autoConvert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec(in *management.AgentAnalyticsSpec, out *AgentAnalyticsSpec, s conversion.Scope) error { + out.AnalyticsEndpoint = in.AnalyticsEndpoint + return nil +} + +// Convert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec is an autogenerated conversion function. +func Convert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec(in *management.AgentAnalyticsSpec, out *AgentAnalyticsSpec, s conversion.Scope) error { + return autoConvert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec(in, out, s) +} + +func autoConvert_v1_AgentAuditConfig_To_management_AgentAuditConfig(in *AgentAuditConfig, out *management.AgentAuditConfig, s conversion.Scope) error { + out.Enabled = in.Enabled + out.DisableAgentSyncBack = in.DisableAgentSyncBack + out.Level = in.Level + if err := Convert_v1_AuditPolicy_To_management_AuditPolicy(&in.Policy, &out.Policy, s); err != nil { + return err + } + out.Path = in.Path + out.MaxAge = in.MaxAge + out.MaxBackups = in.MaxBackups + out.MaxSize = in.MaxSize + out.Compress = in.Compress + return nil +} + +// Convert_v1_AgentAuditConfig_To_management_AgentAuditConfig is an autogenerated conversion function. +func Convert_v1_AgentAuditConfig_To_management_AgentAuditConfig(in *AgentAuditConfig, out *management.AgentAuditConfig, s conversion.Scope) error { + return autoConvert_v1_AgentAuditConfig_To_management_AgentAuditConfig(in, out, s) +} + +func autoConvert_management_AgentAuditConfig_To_v1_AgentAuditConfig(in *management.AgentAuditConfig, out *AgentAuditConfig, s conversion.Scope) error { + out.Enabled = in.Enabled + out.DisableAgentSyncBack = in.DisableAgentSyncBack + out.Level = in.Level + if err := Convert_management_AuditPolicy_To_v1_AuditPolicy(&in.Policy, &out.Policy, s); err != nil { + return err + } + out.Path = in.Path + out.MaxAge = in.MaxAge + out.MaxBackups = in.MaxBackups + out.MaxSize = in.MaxSize + out.Compress = in.Compress + return nil +} + +// Convert_management_AgentAuditConfig_To_v1_AgentAuditConfig is an autogenerated conversion function. +func Convert_management_AgentAuditConfig_To_v1_AgentAuditConfig(in *management.AgentAuditConfig, out *AgentAuditConfig, s conversion.Scope) error { + return autoConvert_management_AgentAuditConfig_To_v1_AgentAuditConfig(in, out, s) +} + +func autoConvert_v1_AgentAuditEvent_To_management_AgentAuditEvent(in *AgentAuditEvent, out *management.AgentAuditEvent, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_AgentAuditEventSpec_To_management_AgentAuditEventSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_AgentAuditEventStatus_To_management_AgentAuditEventStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_AgentAuditEvent_To_management_AgentAuditEvent is an autogenerated conversion function. +func Convert_v1_AgentAuditEvent_To_management_AgentAuditEvent(in *AgentAuditEvent, out *management.AgentAuditEvent, s conversion.Scope) error { + return autoConvert_v1_AgentAuditEvent_To_management_AgentAuditEvent(in, out, s) +} + +func autoConvert_management_AgentAuditEvent_To_v1_AgentAuditEvent(in *management.AgentAuditEvent, out *AgentAuditEvent, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_AgentAuditEventSpec_To_v1_AgentAuditEventSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_AgentAuditEvent_To_v1_AgentAuditEvent is an autogenerated conversion function. +func Convert_management_AgentAuditEvent_To_v1_AgentAuditEvent(in *management.AgentAuditEvent, out *AgentAuditEvent, s conversion.Scope) error { + return autoConvert_management_AgentAuditEvent_To_v1_AgentAuditEvent(in, out, s) +} + +func autoConvert_v1_AgentAuditEventList_To_management_AgentAuditEventList(in *AgentAuditEventList, out *management.AgentAuditEventList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.AgentAuditEvent)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_AgentAuditEventList_To_management_AgentAuditEventList is an autogenerated conversion function. +func Convert_v1_AgentAuditEventList_To_management_AgentAuditEventList(in *AgentAuditEventList, out *management.AgentAuditEventList, s conversion.Scope) error { + return autoConvert_v1_AgentAuditEventList_To_management_AgentAuditEventList(in, out, s) +} + +func autoConvert_management_AgentAuditEventList_To_v1_AgentAuditEventList(in *management.AgentAuditEventList, out *AgentAuditEventList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]AgentAuditEvent)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_AgentAuditEventList_To_v1_AgentAuditEventList is an autogenerated conversion function. +func Convert_management_AgentAuditEventList_To_v1_AgentAuditEventList(in *management.AgentAuditEventList, out *AgentAuditEventList, s conversion.Scope) error { + return autoConvert_management_AgentAuditEventList_To_v1_AgentAuditEventList(in, out, s) +} + +func autoConvert_v1_AgentAuditEventSpec_To_management_AgentAuditEventSpec(in *AgentAuditEventSpec, out *management.AgentAuditEventSpec, s conversion.Scope) error { + out.Events = *(*[]*auditv1.Event)(unsafe.Pointer(&in.Events)) + return nil +} + +// Convert_v1_AgentAuditEventSpec_To_management_AgentAuditEventSpec is an autogenerated conversion function. +func Convert_v1_AgentAuditEventSpec_To_management_AgentAuditEventSpec(in *AgentAuditEventSpec, out *management.AgentAuditEventSpec, s conversion.Scope) error { + return autoConvert_v1_AgentAuditEventSpec_To_management_AgentAuditEventSpec(in, out, s) +} + +func autoConvert_management_AgentAuditEventSpec_To_v1_AgentAuditEventSpec(in *management.AgentAuditEventSpec, out *AgentAuditEventSpec, s conversion.Scope) error { + out.Events = *(*[]*auditv1.Event)(unsafe.Pointer(&in.Events)) + return nil +} + +// Convert_management_AgentAuditEventSpec_To_v1_AgentAuditEventSpec is an autogenerated conversion function. +func Convert_management_AgentAuditEventSpec_To_v1_AgentAuditEventSpec(in *management.AgentAuditEventSpec, out *AgentAuditEventSpec, s conversion.Scope) error { + return autoConvert_management_AgentAuditEventSpec_To_v1_AgentAuditEventSpec(in, out, s) +} + +func autoConvert_v1_AgentAuditEventStatus_To_management_AgentAuditEventStatus(in *AgentAuditEventStatus, out *management.AgentAuditEventStatus, s conversion.Scope) error { + return nil +} + +// Convert_v1_AgentAuditEventStatus_To_management_AgentAuditEventStatus is an autogenerated conversion function. +func Convert_v1_AgentAuditEventStatus_To_management_AgentAuditEventStatus(in *AgentAuditEventStatus, out *management.AgentAuditEventStatus, s conversion.Scope) error { + return autoConvert_v1_AgentAuditEventStatus_To_management_AgentAuditEventStatus(in, out, s) +} + +func autoConvert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(in *management.AgentAuditEventStatus, out *AgentAuditEventStatus, s conversion.Scope) error { + return nil +} + +// Convert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus is an autogenerated conversion function. +func Convert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(in *management.AgentAuditEventStatus, out *AgentAuditEventStatus, s conversion.Scope) error { + 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 { + return err + } + if err := Convert_v1_AnnouncementStatus_To_management_AnnouncementStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_Announcement_To_management_Announcement is an autogenerated conversion function. +func Convert_v1_Announcement_To_management_Announcement(in *Announcement, out *management.Announcement, s conversion.Scope) error { + return autoConvert_v1_Announcement_To_management_Announcement(in, out, s) +} + +func autoConvert_management_Announcement_To_v1_Announcement(in *management.Announcement, out *Announcement, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_AnnouncementSpec_To_v1_AnnouncementSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_AnnouncementStatus_To_v1_AnnouncementStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_Announcement_To_v1_Announcement is an autogenerated conversion function. +func Convert_management_Announcement_To_v1_Announcement(in *management.Announcement, out *Announcement, s conversion.Scope) error { + return autoConvert_management_Announcement_To_v1_Announcement(in, out, s) +} + +func autoConvert_v1_AnnouncementList_To_management_AnnouncementList(in *AnnouncementList, out *management.AnnouncementList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.Announcement)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_AnnouncementList_To_management_AnnouncementList is an autogenerated conversion function. +func Convert_v1_AnnouncementList_To_management_AnnouncementList(in *AnnouncementList, out *management.AnnouncementList, s conversion.Scope) error { + return autoConvert_v1_AnnouncementList_To_management_AnnouncementList(in, out, s) +} + +func autoConvert_management_AnnouncementList_To_v1_AnnouncementList(in *management.AnnouncementList, out *AnnouncementList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]Announcement)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_AnnouncementList_To_v1_AnnouncementList is an autogenerated conversion function. +func Convert_management_AnnouncementList_To_v1_AnnouncementList(in *management.AnnouncementList, out *AnnouncementList, s conversion.Scope) error { + return autoConvert_management_AnnouncementList_To_v1_AnnouncementList(in, out, s) +} + +func autoConvert_v1_AnnouncementSpec_To_management_AnnouncementSpec(in *AnnouncementSpec, out *management.AnnouncementSpec, s conversion.Scope) error { + return nil +} + +// Convert_v1_AnnouncementSpec_To_management_AnnouncementSpec is an autogenerated conversion function. +func Convert_v1_AnnouncementSpec_To_management_AnnouncementSpec(in *AnnouncementSpec, out *management.AnnouncementSpec, s conversion.Scope) error { + return autoConvert_v1_AnnouncementSpec_To_management_AnnouncementSpec(in, out, s) +} + +func autoConvert_management_AnnouncementSpec_To_v1_AnnouncementSpec(in *management.AnnouncementSpec, out *AnnouncementSpec, s conversion.Scope) error { + return nil +} + +// Convert_management_AnnouncementSpec_To_v1_AnnouncementSpec is an autogenerated conversion function. +func Convert_management_AnnouncementSpec_To_v1_AnnouncementSpec(in *management.AnnouncementSpec, out *AnnouncementSpec, s conversion.Scope) error { + return autoConvert_management_AnnouncementSpec_To_v1_AnnouncementSpec(in, out, s) +} + +func autoConvert_v1_AnnouncementStatus_To_management_AnnouncementStatus(in *AnnouncementStatus, out *management.AnnouncementStatus, s conversion.Scope) error { + out.Announcement = in.Announcement + return nil +} + +// Convert_v1_AnnouncementStatus_To_management_AnnouncementStatus is an autogenerated conversion function. +func Convert_v1_AnnouncementStatus_To_management_AnnouncementStatus(in *AnnouncementStatus, out *management.AnnouncementStatus, s conversion.Scope) error { + return autoConvert_v1_AnnouncementStatus_To_management_AnnouncementStatus(in, out, s) +} + +func autoConvert_management_AnnouncementStatus_To_v1_AnnouncementStatus(in *management.AnnouncementStatus, out *AnnouncementStatus, s conversion.Scope) error { + out.Announcement = in.Announcement + return nil +} + +// Convert_management_AnnouncementStatus_To_v1_AnnouncementStatus is an autogenerated conversion function. +func Convert_management_AnnouncementStatus_To_v1_AnnouncementStatus(in *management.AnnouncementStatus, out *AnnouncementStatus, s conversion.Scope) error { + return autoConvert_management_AnnouncementStatus_To_v1_AnnouncementStatus(in, out, s) +} + +func autoConvert_v1_App_To_management_App(in *App, out *management.App, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_AppSpec_To_management_AppSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_AppStatus_To_management_AppStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_App_To_management_App is an autogenerated conversion function. +func Convert_v1_App_To_management_App(in *App, out *management.App, s conversion.Scope) error { + return autoConvert_v1_App_To_management_App(in, out, s) +} + +func autoConvert_management_App_To_v1_App(in *management.App, out *App, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_AppSpec_To_v1_AppSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_AppStatus_To_v1_AppStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_App_To_v1_App is an autogenerated conversion function. +func Convert_management_App_To_v1_App(in *management.App, out *App, s conversion.Scope) error { + return autoConvert_management_App_To_v1_App(in, out, s) +} + +func autoConvert_v1_AppCredentials_To_management_AppCredentials(in *AppCredentials, out *management.AppCredentials, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ProjectSecretRefs = *(*map[string]string)(unsafe.Pointer(&in.ProjectSecretRefs)) + return nil +} + +// Convert_v1_AppCredentials_To_management_AppCredentials is an autogenerated conversion function. +func Convert_v1_AppCredentials_To_management_AppCredentials(in *AppCredentials, out *management.AppCredentials, s conversion.Scope) error { + return autoConvert_v1_AppCredentials_To_management_AppCredentials(in, out, s) +} + +func autoConvert_management_AppCredentials_To_v1_AppCredentials(in *management.AppCredentials, out *AppCredentials, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ProjectSecretRefs = *(*map[string]string)(unsafe.Pointer(&in.ProjectSecretRefs)) + return nil +} + +// Convert_management_AppCredentials_To_v1_AppCredentials is an autogenerated conversion function. +func Convert_management_AppCredentials_To_v1_AppCredentials(in *management.AppCredentials, out *AppCredentials, s conversion.Scope) error { + return autoConvert_management_AppCredentials_To_v1_AppCredentials(in, out, s) +} + +func autoConvert_v1_AppCredentialsList_To_management_AppCredentialsList(in *AppCredentialsList, out *management.AppCredentialsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.AppCredentials)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_AppCredentialsList_To_management_AppCredentialsList is an autogenerated conversion function. +func Convert_v1_AppCredentialsList_To_management_AppCredentialsList(in *AppCredentialsList, out *management.AppCredentialsList, s conversion.Scope) error { + return autoConvert_v1_AppCredentialsList_To_management_AppCredentialsList(in, out, s) +} + +func autoConvert_management_AppCredentialsList_To_v1_AppCredentialsList(in *management.AppCredentialsList, out *AppCredentialsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]AppCredentials)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_AppCredentialsList_To_v1_AppCredentialsList is an autogenerated conversion function. +func Convert_management_AppCredentialsList_To_v1_AppCredentialsList(in *management.AppCredentialsList, out *AppCredentialsList, s conversion.Scope) error { + return autoConvert_management_AppCredentialsList_To_v1_AppCredentialsList(in, out, s) +} + +func autoConvert_v1_AppList_To_management_AppList(in *AppList, out *management.AppList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.App)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_AppList_To_management_AppList is an autogenerated conversion function. +func Convert_v1_AppList_To_management_AppList(in *AppList, out *management.AppList, s conversion.Scope) error { + return autoConvert_v1_AppList_To_management_AppList(in, out, s) +} + +func autoConvert_management_AppList_To_v1_AppList(in *management.AppList, out *AppList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]App)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_AppList_To_v1_AppList is an autogenerated conversion function. +func Convert_management_AppList_To_v1_AppList(in *management.AppList, out *AppList, s conversion.Scope) error { + return autoConvert_management_AppList_To_v1_AppList(in, out, s) +} + +func autoConvert_v1_AppSpec_To_management_AppSpec(in *AppSpec, out *management.AppSpec, s conversion.Scope) error { + out.AppSpec = in.AppSpec + return nil +} + +// Convert_v1_AppSpec_To_management_AppSpec is an autogenerated conversion function. +func Convert_v1_AppSpec_To_management_AppSpec(in *AppSpec, out *management.AppSpec, s conversion.Scope) error { + return autoConvert_v1_AppSpec_To_management_AppSpec(in, out, s) +} + +func autoConvert_management_AppSpec_To_v1_AppSpec(in *management.AppSpec, out *AppSpec, s conversion.Scope) error { + out.AppSpec = in.AppSpec + return nil +} + +// Convert_management_AppSpec_To_v1_AppSpec is an autogenerated conversion function. +func Convert_management_AppSpec_To_v1_AppSpec(in *management.AppSpec, out *AppSpec, s conversion.Scope) error { + return autoConvert_management_AppSpec_To_v1_AppSpec(in, out, s) +} + +func autoConvert_v1_AppStatus_To_management_AppStatus(in *AppStatus, out *management.AppStatus, s conversion.Scope) error { + out.AppStatus = in.AppStatus + return nil +} + +// Convert_v1_AppStatus_To_management_AppStatus is an autogenerated conversion function. +func Convert_v1_AppStatus_To_management_AppStatus(in *AppStatus, out *management.AppStatus, s conversion.Scope) error { + return autoConvert_v1_AppStatus_To_management_AppStatus(in, out, s) +} + +func autoConvert_management_AppStatus_To_v1_AppStatus(in *management.AppStatus, out *AppStatus, s conversion.Scope) error { + out.AppStatus = in.AppStatus + return nil +} + +// Convert_management_AppStatus_To_v1_AppStatus is an autogenerated conversion function. +func Convert_management_AppStatus_To_v1_AppStatus(in *management.AppStatus, out *AppStatus, s conversion.Scope) error { + return autoConvert_management_AppStatus_To_v1_AppStatus(in, out, s) +} + +func autoConvert_v1_Apps_To_management_Apps(in *Apps, out *management.Apps, s conversion.Scope) error { + out.NoDefault = in.NoDefault + out.Repositories = *(*[]storagev1.HelmChartRepository)(unsafe.Pointer(&in.Repositories)) + out.PredefinedApps = *(*[]management.PredefinedApp)(unsafe.Pointer(&in.PredefinedApps)) + return nil +} + +// Convert_v1_Apps_To_management_Apps is an autogenerated conversion function. +func Convert_v1_Apps_To_management_Apps(in *Apps, out *management.Apps, s conversion.Scope) error { + return autoConvert_v1_Apps_To_management_Apps(in, out, s) +} + +func autoConvert_management_Apps_To_v1_Apps(in *management.Apps, out *Apps, s conversion.Scope) error { + out.NoDefault = in.NoDefault + out.Repositories = *(*[]storagev1.HelmChartRepository)(unsafe.Pointer(&in.Repositories)) + out.PredefinedApps = *(*[]PredefinedApp)(unsafe.Pointer(&in.PredefinedApps)) + return nil +} + +// Convert_management_Apps_To_v1_Apps is an autogenerated conversion function. +func Convert_management_Apps_To_v1_Apps(in *management.Apps, out *Apps, s conversion.Scope) error { + 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 + out.Level = in.Level + if err := Convert_v1_AuditPolicy_To_management_AuditPolicy(&in.Policy, &out.Policy, s); err != nil { + return err + } + out.DataStoreEndpoint = in.DataStoreEndpoint + out.DataStoreMaxAge = (*int)(unsafe.Pointer(in.DataStoreMaxAge)) + out.Path = in.Path + out.MaxAge = in.MaxAge + out.MaxBackups = in.MaxBackups + out.MaxSize = in.MaxSize + out.Compress = in.Compress + return nil +} + +// Convert_v1_Audit_To_management_Audit is an autogenerated conversion function. +func Convert_v1_Audit_To_management_Audit(in *Audit, out *management.Audit, s conversion.Scope) error { + return autoConvert_v1_Audit_To_management_Audit(in, out, s) +} + +func autoConvert_management_Audit_To_v1_Audit(in *management.Audit, out *Audit, s conversion.Scope) error { + out.Enabled = in.Enabled + out.DisableAgentSyncBack = in.DisableAgentSyncBack + out.Level = in.Level + if err := Convert_management_AuditPolicy_To_v1_AuditPolicy(&in.Policy, &out.Policy, s); err != nil { + return err + } + out.DataStoreEndpoint = in.DataStoreEndpoint + out.DataStoreMaxAge = (*int)(unsafe.Pointer(in.DataStoreMaxAge)) + out.Path = in.Path + out.MaxAge = in.MaxAge + out.MaxBackups = in.MaxBackups + out.MaxSize = in.MaxSize + out.Compress = in.Compress + return nil +} + +// Convert_management_Audit_To_v1_Audit is an autogenerated conversion function. +func Convert_management_Audit_To_v1_Audit(in *management.Audit, out *Audit, s conversion.Scope) error { + return autoConvert_management_Audit_To_v1_Audit(in, out, s) +} + +func autoConvert_v1_AuditPolicy_To_management_AuditPolicy(in *AuditPolicy, out *management.AuditPolicy, s conversion.Scope) error { + out.Rules = *(*[]management.AuditPolicyRule)(unsafe.Pointer(&in.Rules)) + out.OmitStages = *(*[]auditv1.Stage)(unsafe.Pointer(&in.OmitStages)) + return nil +} + +// Convert_v1_AuditPolicy_To_management_AuditPolicy is an autogenerated conversion function. +func Convert_v1_AuditPolicy_To_management_AuditPolicy(in *AuditPolicy, out *management.AuditPolicy, s conversion.Scope) error { + return autoConvert_v1_AuditPolicy_To_management_AuditPolicy(in, out, s) +} + +func autoConvert_management_AuditPolicy_To_v1_AuditPolicy(in *management.AuditPolicy, out *AuditPolicy, s conversion.Scope) error { + out.Rules = *(*[]AuditPolicyRule)(unsafe.Pointer(&in.Rules)) + out.OmitStages = *(*[]auditv1.Stage)(unsafe.Pointer(&in.OmitStages)) + return nil +} + +// Convert_management_AuditPolicy_To_v1_AuditPolicy is an autogenerated conversion function. +func Convert_management_AuditPolicy_To_v1_AuditPolicy(in *management.AuditPolicy, out *AuditPolicy, s conversion.Scope) error { + return autoConvert_management_AuditPolicy_To_v1_AuditPolicy(in, out, s) +} + +func autoConvert_v1_AuditPolicyRule_To_management_AuditPolicyRule(in *AuditPolicyRule, out *management.AuditPolicyRule, s conversion.Scope) error { + out.Level = auditv1.Level(in.Level) + out.Users = *(*[]string)(unsafe.Pointer(&in.Users)) + out.UserGroups = *(*[]string)(unsafe.Pointer(&in.UserGroups)) + out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) + out.Resources = *(*[]management.GroupResources)(unsafe.Pointer(&in.Resources)) + out.Namespaces = *(*[]string)(unsafe.Pointer(&in.Namespaces)) + out.NonResourceURLs = *(*[]string)(unsafe.Pointer(&in.NonResourceURLs)) + out.OmitStages = *(*[]auditv1.Stage)(unsafe.Pointer(&in.OmitStages)) + out.RequestTargets = *(*[]auditv1.RequestTarget)(unsafe.Pointer(&in.RequestTargets)) + out.Clusters = *(*[]string)(unsafe.Pointer(&in.Clusters)) + return nil +} + +// Convert_v1_AuditPolicyRule_To_management_AuditPolicyRule is an autogenerated conversion function. +func Convert_v1_AuditPolicyRule_To_management_AuditPolicyRule(in *AuditPolicyRule, out *management.AuditPolicyRule, s conversion.Scope) error { + return autoConvert_v1_AuditPolicyRule_To_management_AuditPolicyRule(in, out, s) +} + +func autoConvert_management_AuditPolicyRule_To_v1_AuditPolicyRule(in *management.AuditPolicyRule, out *AuditPolicyRule, s conversion.Scope) error { + out.Level = auditv1.Level(in.Level) + out.Users = *(*[]string)(unsafe.Pointer(&in.Users)) + out.UserGroups = *(*[]string)(unsafe.Pointer(&in.UserGroups)) + out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) + out.Resources = *(*[]GroupResources)(unsafe.Pointer(&in.Resources)) + out.Namespaces = *(*[]string)(unsafe.Pointer(&in.Namespaces)) + out.NonResourceURLs = *(*[]string)(unsafe.Pointer(&in.NonResourceURLs)) + out.OmitStages = *(*[]auditv1.Stage)(unsafe.Pointer(&in.OmitStages)) + out.RequestTargets = *(*[]auditv1.RequestTarget)(unsafe.Pointer(&in.RequestTargets)) + out.Clusters = *(*[]string)(unsafe.Pointer(&in.Clusters)) + return nil +} + +// Convert_management_AuditPolicyRule_To_v1_AuditPolicyRule is an autogenerated conversion function. +func Convert_management_AuditPolicyRule_To_v1_AuditPolicyRule(in *management.AuditPolicyRule, out *AuditPolicyRule, s conversion.Scope) error { + return autoConvert_management_AuditPolicyRule_To_v1_AuditPolicyRule(in, out, s) +} + +func autoConvert_v1_Authentication_To_management_Authentication(in *Authentication, out *management.Authentication, s conversion.Scope) error { + if err := Convert_v1_Connector_To_management_Connector(&in.Connector, &out.Connector, s); err != nil { + return err + } + out.Rancher = (*management.AuthenticationRancher)(unsafe.Pointer(in.Rancher)) + out.Password = (*management.AuthenticationPassword)(unsafe.Pointer(in.Password)) + out.Connectors = *(*[]management.ConnectorWithName)(unsafe.Pointer(&in.Connectors)) + out.DisableTeamCreation = in.DisableTeamCreation + out.DisableUserCreation = in.DisableUserCreation + out.AccessKeyMaxTTLSeconds = in.AccessKeyMaxTTLSeconds + out.LoginAccessKeyTTLSeconds = (*int64)(unsafe.Pointer(in.LoginAccessKeyTTLSeconds)) + out.CustomHttpHeaders = *(*map[string]string)(unsafe.Pointer(&in.CustomHttpHeaders)) + out.GroupsFilters = *(*[]string)(unsafe.Pointer(&in.GroupsFilters)) + return nil +} + +// Convert_v1_Authentication_To_management_Authentication is an autogenerated conversion function. +func Convert_v1_Authentication_To_management_Authentication(in *Authentication, out *management.Authentication, s conversion.Scope) error { + return autoConvert_v1_Authentication_To_management_Authentication(in, out, s) +} + +func autoConvert_management_Authentication_To_v1_Authentication(in *management.Authentication, out *Authentication, s conversion.Scope) error { + if err := Convert_management_Connector_To_v1_Connector(&in.Connector, &out.Connector, s); err != nil { + return err + } + out.Rancher = (*AuthenticationRancher)(unsafe.Pointer(in.Rancher)) + out.Password = (*AuthenticationPassword)(unsafe.Pointer(in.Password)) + out.Connectors = *(*[]ConnectorWithName)(unsafe.Pointer(&in.Connectors)) + out.DisableTeamCreation = in.DisableTeamCreation + out.DisableUserCreation = in.DisableUserCreation + out.AccessKeyMaxTTLSeconds = in.AccessKeyMaxTTLSeconds + out.LoginAccessKeyTTLSeconds = (*int64)(unsafe.Pointer(in.LoginAccessKeyTTLSeconds)) + out.CustomHttpHeaders = *(*map[string]string)(unsafe.Pointer(&in.CustomHttpHeaders)) + out.GroupsFilters = *(*[]string)(unsafe.Pointer(&in.GroupsFilters)) + return nil +} + +// Convert_management_Authentication_To_v1_Authentication is an autogenerated conversion function. +func Convert_management_Authentication_To_v1_Authentication(in *management.Authentication, out *Authentication, s conversion.Scope) error { + return autoConvert_management_Authentication_To_v1_Authentication(in, out, s) +} + +func autoConvert_v1_AuthenticationGithub_To_management_AuthenticationGithub(in *AuthenticationGithub, out *management.AuthenticationGithub, s conversion.Scope) error { + out.ClientID = in.ClientID + out.ClientSecret = in.ClientSecret + out.RedirectURI = in.RedirectURI + out.Orgs = *(*[]management.AuthenticationGithubOrg)(unsafe.Pointer(&in.Orgs)) + out.HostName = in.HostName + out.RootCA = in.RootCA + return nil +} + +// Convert_v1_AuthenticationGithub_To_management_AuthenticationGithub is an autogenerated conversion function. +func Convert_v1_AuthenticationGithub_To_management_AuthenticationGithub(in *AuthenticationGithub, out *management.AuthenticationGithub, s conversion.Scope) error { + return autoConvert_v1_AuthenticationGithub_To_management_AuthenticationGithub(in, out, s) +} + +func autoConvert_management_AuthenticationGithub_To_v1_AuthenticationGithub(in *management.AuthenticationGithub, out *AuthenticationGithub, s conversion.Scope) error { + out.ClientID = in.ClientID + out.ClientSecret = in.ClientSecret + out.RedirectURI = in.RedirectURI + out.Orgs = *(*[]AuthenticationGithubOrg)(unsafe.Pointer(&in.Orgs)) + out.HostName = in.HostName + out.RootCA = in.RootCA + return nil +} + +// Convert_management_AuthenticationGithub_To_v1_AuthenticationGithub is an autogenerated conversion function. +func Convert_management_AuthenticationGithub_To_v1_AuthenticationGithub(in *management.AuthenticationGithub, out *AuthenticationGithub, s conversion.Scope) error { + return autoConvert_management_AuthenticationGithub_To_v1_AuthenticationGithub(in, out, s) +} + +func autoConvert_v1_AuthenticationGithubOrg_To_management_AuthenticationGithubOrg(in *AuthenticationGithubOrg, out *management.AuthenticationGithubOrg, s conversion.Scope) error { + out.Name = in.Name + out.Teams = *(*[]string)(unsafe.Pointer(&in.Teams)) + return nil +} + +// Convert_v1_AuthenticationGithubOrg_To_management_AuthenticationGithubOrg is an autogenerated conversion function. +func Convert_v1_AuthenticationGithubOrg_To_management_AuthenticationGithubOrg(in *AuthenticationGithubOrg, out *management.AuthenticationGithubOrg, s conversion.Scope) error { + return autoConvert_v1_AuthenticationGithubOrg_To_management_AuthenticationGithubOrg(in, out, s) +} + +func autoConvert_management_AuthenticationGithubOrg_To_v1_AuthenticationGithubOrg(in *management.AuthenticationGithubOrg, out *AuthenticationGithubOrg, s conversion.Scope) error { + out.Name = in.Name + out.Teams = *(*[]string)(unsafe.Pointer(&in.Teams)) + return nil +} + +// Convert_management_AuthenticationGithubOrg_To_v1_AuthenticationGithubOrg is an autogenerated conversion function. +func Convert_management_AuthenticationGithubOrg_To_v1_AuthenticationGithubOrg(in *management.AuthenticationGithubOrg, out *AuthenticationGithubOrg, s conversion.Scope) error { + return autoConvert_management_AuthenticationGithubOrg_To_v1_AuthenticationGithubOrg(in, out, s) +} + +func autoConvert_v1_AuthenticationGitlab_To_management_AuthenticationGitlab(in *AuthenticationGitlab, out *management.AuthenticationGitlab, s conversion.Scope) error { + out.ClientID = in.ClientID + out.ClientSecret = in.ClientSecret + out.RedirectURI = in.RedirectURI + out.BaseURL = in.BaseURL + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) + return nil +} + +// Convert_v1_AuthenticationGitlab_To_management_AuthenticationGitlab is an autogenerated conversion function. +func Convert_v1_AuthenticationGitlab_To_management_AuthenticationGitlab(in *AuthenticationGitlab, out *management.AuthenticationGitlab, s conversion.Scope) error { + return autoConvert_v1_AuthenticationGitlab_To_management_AuthenticationGitlab(in, out, s) +} + +func autoConvert_management_AuthenticationGitlab_To_v1_AuthenticationGitlab(in *management.AuthenticationGitlab, out *AuthenticationGitlab, s conversion.Scope) error { + out.ClientID = in.ClientID + out.ClientSecret = in.ClientSecret + out.RedirectURI = in.RedirectURI + out.BaseURL = in.BaseURL + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) + return nil +} + +// Convert_management_AuthenticationGitlab_To_v1_AuthenticationGitlab is an autogenerated conversion function. +func Convert_management_AuthenticationGitlab_To_v1_AuthenticationGitlab(in *management.AuthenticationGitlab, out *AuthenticationGitlab, s conversion.Scope) error { + return autoConvert_management_AuthenticationGitlab_To_v1_AuthenticationGitlab(in, out, s) +} + +func autoConvert_v1_AuthenticationGoogle_To_management_AuthenticationGoogle(in *AuthenticationGoogle, out *management.AuthenticationGoogle, s conversion.Scope) error { + out.ClientID = in.ClientID + out.ClientSecret = in.ClientSecret + out.RedirectURI = in.RedirectURI + out.Scopes = *(*[]string)(unsafe.Pointer(&in.Scopes)) + out.HostedDomains = *(*[]string)(unsafe.Pointer(&in.HostedDomains)) + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) + out.ServiceAccountFilePath = in.ServiceAccountFilePath + out.AdminEmail = in.AdminEmail + return nil +} + +// Convert_v1_AuthenticationGoogle_To_management_AuthenticationGoogle is an autogenerated conversion function. +func Convert_v1_AuthenticationGoogle_To_management_AuthenticationGoogle(in *AuthenticationGoogle, out *management.AuthenticationGoogle, s conversion.Scope) error { + return autoConvert_v1_AuthenticationGoogle_To_management_AuthenticationGoogle(in, out, s) +} + +func autoConvert_management_AuthenticationGoogle_To_v1_AuthenticationGoogle(in *management.AuthenticationGoogle, out *AuthenticationGoogle, s conversion.Scope) error { + out.ClientID = in.ClientID + out.ClientSecret = in.ClientSecret + out.RedirectURI = in.RedirectURI + out.Scopes = *(*[]string)(unsafe.Pointer(&in.Scopes)) + out.HostedDomains = *(*[]string)(unsafe.Pointer(&in.HostedDomains)) + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) + out.ServiceAccountFilePath = in.ServiceAccountFilePath + out.AdminEmail = in.AdminEmail + return nil +} + +// Convert_management_AuthenticationGoogle_To_v1_AuthenticationGoogle is an autogenerated conversion function. +func Convert_management_AuthenticationGoogle_To_v1_AuthenticationGoogle(in *management.AuthenticationGoogle, out *AuthenticationGoogle, s conversion.Scope) error { + return autoConvert_management_AuthenticationGoogle_To_v1_AuthenticationGoogle(in, out, s) +} + +func autoConvert_v1_AuthenticationMicrosoft_To_management_AuthenticationMicrosoft(in *AuthenticationMicrosoft, out *management.AuthenticationMicrosoft, s conversion.Scope) error { + out.ClientID = in.ClientID + out.ClientSecret = in.ClientSecret + out.RedirectURI = in.RedirectURI + out.Tenant = in.Tenant + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) + out.OnlySecurityGroups = in.OnlySecurityGroups + out.UseGroupsAsWhitelist = in.UseGroupsAsWhitelist + return nil +} + +// Convert_v1_AuthenticationMicrosoft_To_management_AuthenticationMicrosoft is an autogenerated conversion function. +func Convert_v1_AuthenticationMicrosoft_To_management_AuthenticationMicrosoft(in *AuthenticationMicrosoft, out *management.AuthenticationMicrosoft, s conversion.Scope) error { + return autoConvert_v1_AuthenticationMicrosoft_To_management_AuthenticationMicrosoft(in, out, s) +} + +func autoConvert_management_AuthenticationMicrosoft_To_v1_AuthenticationMicrosoft(in *management.AuthenticationMicrosoft, out *AuthenticationMicrosoft, s conversion.Scope) error { + out.ClientID = in.ClientID + out.ClientSecret = in.ClientSecret + out.RedirectURI = in.RedirectURI + out.Tenant = in.Tenant + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) + out.OnlySecurityGroups = in.OnlySecurityGroups + out.UseGroupsAsWhitelist = in.UseGroupsAsWhitelist + return nil +} + +// Convert_management_AuthenticationMicrosoft_To_v1_AuthenticationMicrosoft is an autogenerated conversion function. +func Convert_management_AuthenticationMicrosoft_To_v1_AuthenticationMicrosoft(in *management.AuthenticationMicrosoft, out *AuthenticationMicrosoft, s conversion.Scope) error { + return autoConvert_management_AuthenticationMicrosoft_To_v1_AuthenticationMicrosoft(in, out, s) +} + +func autoConvert_v1_AuthenticationOIDC_To_management_AuthenticationOIDC(in *AuthenticationOIDC, out *management.AuthenticationOIDC, s conversion.Scope) error { + out.IssuerURL = in.IssuerURL + out.ClientID = in.ClientID + out.ClientSecret = in.ClientSecret + out.RedirectURI = in.RedirectURI + out.PostLogoutRedirectURI = in.PostLogoutRedirectURI + out.CAFile = in.CAFile + out.InsecureCA = in.InsecureCA + out.PreferredUsernameClaim = in.PreferredUsernameClaim + 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)) + out.Scopes = *(*[]string)(unsafe.Pointer(&in.Scopes)) + out.GetUserInfo = in.GetUserInfo + out.GroupsPrefix = in.GroupsPrefix + out.Type = in.Type + out.Resource = in.Resource + return nil +} + +// Convert_v1_AuthenticationOIDC_To_management_AuthenticationOIDC is an autogenerated conversion function. +func Convert_v1_AuthenticationOIDC_To_management_AuthenticationOIDC(in *AuthenticationOIDC, out *management.AuthenticationOIDC, s conversion.Scope) error { + return autoConvert_v1_AuthenticationOIDC_To_management_AuthenticationOIDC(in, out, s) +} + +func autoConvert_management_AuthenticationOIDC_To_v1_AuthenticationOIDC(in *management.AuthenticationOIDC, out *AuthenticationOIDC, s conversion.Scope) error { + out.IssuerURL = in.IssuerURL + out.ClientID = in.ClientID + out.ClientSecret = in.ClientSecret + out.RedirectURI = in.RedirectURI + out.PostLogoutRedirectURI = in.PostLogoutRedirectURI + out.CAFile = in.CAFile + out.InsecureCA = in.InsecureCA + out.PreferredUsernameClaim = in.PreferredUsernameClaim + 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)) + out.Scopes = *(*[]string)(unsafe.Pointer(&in.Scopes)) + out.GetUserInfo = in.GetUserInfo + out.GroupsPrefix = in.GroupsPrefix + out.Type = in.Type + out.Resource = in.Resource + return nil +} + +// Convert_management_AuthenticationOIDC_To_v1_AuthenticationOIDC is an autogenerated conversion function. +func Convert_management_AuthenticationOIDC_To_v1_AuthenticationOIDC(in *management.AuthenticationOIDC, out *AuthenticationOIDC, s conversion.Scope) error { + return autoConvert_management_AuthenticationOIDC_To_v1_AuthenticationOIDC(in, out, s) +} + +func autoConvert_v1_AuthenticationPassword_To_management_AuthenticationPassword(in *AuthenticationPassword, out *management.AuthenticationPassword, s conversion.Scope) error { + out.Disabled = in.Disabled + return nil +} + +// Convert_v1_AuthenticationPassword_To_management_AuthenticationPassword is an autogenerated conversion function. +func Convert_v1_AuthenticationPassword_To_management_AuthenticationPassword(in *AuthenticationPassword, out *management.AuthenticationPassword, s conversion.Scope) error { + return autoConvert_v1_AuthenticationPassword_To_management_AuthenticationPassword(in, out, s) +} + +func autoConvert_management_AuthenticationPassword_To_v1_AuthenticationPassword(in *management.AuthenticationPassword, out *AuthenticationPassword, s conversion.Scope) error { + out.Disabled = in.Disabled + return nil +} + +// Convert_management_AuthenticationPassword_To_v1_AuthenticationPassword is an autogenerated conversion function. +func Convert_management_AuthenticationPassword_To_v1_AuthenticationPassword(in *management.AuthenticationPassword, out *AuthenticationPassword, s conversion.Scope) error { + return autoConvert_management_AuthenticationPassword_To_v1_AuthenticationPassword(in, out, s) +} + +func autoConvert_v1_AuthenticationRancher_To_management_AuthenticationRancher(in *AuthenticationRancher, out *management.AuthenticationRancher, s conversion.Scope) error { + out.Host = in.Host + out.BearerToken = in.BearerToken + out.Insecure = in.Insecure + return nil +} + +// Convert_v1_AuthenticationRancher_To_management_AuthenticationRancher is an autogenerated conversion function. +func Convert_v1_AuthenticationRancher_To_management_AuthenticationRancher(in *AuthenticationRancher, out *management.AuthenticationRancher, s conversion.Scope) error { + return autoConvert_v1_AuthenticationRancher_To_management_AuthenticationRancher(in, out, s) +} + +func autoConvert_management_AuthenticationRancher_To_v1_AuthenticationRancher(in *management.AuthenticationRancher, out *AuthenticationRancher, s conversion.Scope) error { + out.Host = in.Host + out.BearerToken = in.BearerToken + out.Insecure = in.Insecure + return nil +} + +// Convert_management_AuthenticationRancher_To_v1_AuthenticationRancher is an autogenerated conversion function. +func Convert_management_AuthenticationRancher_To_v1_AuthenticationRancher(in *management.AuthenticationRancher, out *AuthenticationRancher, s conversion.Scope) error { + return autoConvert_management_AuthenticationRancher_To_v1_AuthenticationRancher(in, out, s) +} + +func autoConvert_v1_AuthenticationSAML_To_management_AuthenticationSAML(in *AuthenticationSAML, out *management.AuthenticationSAML, s conversion.Scope) error { + out.RedirectURI = in.RedirectURI + out.SSOURL = in.SSOURL + out.CAData = *(*[]byte)(unsafe.Pointer(&in.CAData)) + out.UsernameAttr = in.UsernameAttr + out.EmailAttr = in.EmailAttr + out.GroupsAttr = in.GroupsAttr + out.CA = in.CA + out.InsecureSkipSignatureValidation = in.InsecureSkipSignatureValidation + out.EntityIssuer = in.EntityIssuer + out.SSOIssuer = in.SSOIssuer + out.GroupsDelim = in.GroupsDelim + out.AllowedGroups = *(*[]string)(unsafe.Pointer(&in.AllowedGroups)) + out.FilterGroups = in.FilterGroups + out.NameIDPolicyFormat = in.NameIDPolicyFormat + return nil +} + +// Convert_v1_AuthenticationSAML_To_management_AuthenticationSAML is an autogenerated conversion function. +func Convert_v1_AuthenticationSAML_To_management_AuthenticationSAML(in *AuthenticationSAML, out *management.AuthenticationSAML, s conversion.Scope) error { + return autoConvert_v1_AuthenticationSAML_To_management_AuthenticationSAML(in, out, s) +} + +func autoConvert_management_AuthenticationSAML_To_v1_AuthenticationSAML(in *management.AuthenticationSAML, out *AuthenticationSAML, s conversion.Scope) error { + out.RedirectURI = in.RedirectURI + out.SSOURL = in.SSOURL + out.CAData = *(*[]byte)(unsafe.Pointer(&in.CAData)) + out.UsernameAttr = in.UsernameAttr + out.EmailAttr = in.EmailAttr + out.GroupsAttr = in.GroupsAttr + out.CA = in.CA + out.InsecureSkipSignatureValidation = in.InsecureSkipSignatureValidation + out.EntityIssuer = in.EntityIssuer + out.SSOIssuer = in.SSOIssuer + out.GroupsDelim = in.GroupsDelim + out.AllowedGroups = *(*[]string)(unsafe.Pointer(&in.AllowedGroups)) + out.FilterGroups = in.FilterGroups + out.NameIDPolicyFormat = in.NameIDPolicyFormat + return nil +} + +// Convert_management_AuthenticationSAML_To_v1_AuthenticationSAML is an autogenerated conversion function. +func Convert_management_AuthenticationSAML_To_v1_AuthenticationSAML(in *management.AuthenticationSAML, out *AuthenticationSAML, s conversion.Scope) error { + return autoConvert_management_AuthenticationSAML_To_v1_AuthenticationSAML(in, out, s) +} + +func autoConvert_v1_Backup_To_management_Backup(in *Backup, out *management.Backup, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_BackupSpec_To_management_BackupSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_BackupStatus_To_management_BackupStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_Backup_To_management_Backup is an autogenerated conversion function. +func Convert_v1_Backup_To_management_Backup(in *Backup, out *management.Backup, s conversion.Scope) error { + return autoConvert_v1_Backup_To_management_Backup(in, out, s) +} + +func autoConvert_management_Backup_To_v1_Backup(in *management.Backup, out *Backup, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_BackupSpec_To_v1_BackupSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_BackupStatus_To_v1_BackupStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_Backup_To_v1_Backup is an autogenerated conversion function. +func Convert_management_Backup_To_v1_Backup(in *management.Backup, out *Backup, s conversion.Scope) error { + return autoConvert_management_Backup_To_v1_Backup(in, out, s) +} + +func autoConvert_v1_BackupApply_To_management_BackupApply(in *BackupApply, out *management.BackupApply, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_BackupApplySpec_To_management_BackupApplySpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + return nil +} + +// Convert_v1_BackupApply_To_management_BackupApply is an autogenerated conversion function. +func Convert_v1_BackupApply_To_management_BackupApply(in *BackupApply, out *management.BackupApply, s conversion.Scope) error { + return autoConvert_v1_BackupApply_To_management_BackupApply(in, out, s) +} + +func autoConvert_management_BackupApply_To_v1_BackupApply(in *management.BackupApply, out *BackupApply, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_BackupApplySpec_To_v1_BackupApplySpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + return nil +} + +// Convert_management_BackupApply_To_v1_BackupApply is an autogenerated conversion function. +func Convert_management_BackupApply_To_v1_BackupApply(in *management.BackupApply, out *BackupApply, s conversion.Scope) error { + return autoConvert_management_BackupApply_To_v1_BackupApply(in, out, s) +} + +func autoConvert_v1_BackupApplyList_To_management_BackupApplyList(in *BackupApplyList, out *management.BackupApplyList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.BackupApply)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_BackupApplyList_To_management_BackupApplyList is an autogenerated conversion function. +func Convert_v1_BackupApplyList_To_management_BackupApplyList(in *BackupApplyList, out *management.BackupApplyList, s conversion.Scope) error { + return autoConvert_v1_BackupApplyList_To_management_BackupApplyList(in, out, s) +} + +func autoConvert_management_BackupApplyList_To_v1_BackupApplyList(in *management.BackupApplyList, out *BackupApplyList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]BackupApply)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_BackupApplyList_To_v1_BackupApplyList is an autogenerated conversion function. +func Convert_management_BackupApplyList_To_v1_BackupApplyList(in *management.BackupApplyList, out *BackupApplyList, s conversion.Scope) error { + return autoConvert_management_BackupApplyList_To_v1_BackupApplyList(in, out, s) +} + +func autoConvert_url_Values_To_v1_BackupApplyOptions(in *url.Values, out *BackupApplyOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + return nil +} + +// Convert_url_Values_To_v1_BackupApplyOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_BackupApplyOptions(in *url.Values, out *BackupApplyOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_BackupApplyOptions(in, out, s) +} + +func autoConvert_v1_BackupApplySpec_To_management_BackupApplySpec(in *BackupApplySpec, out *management.BackupApplySpec, s conversion.Scope) error { + out.Raw = in.Raw + return nil +} + +// Convert_v1_BackupApplySpec_To_management_BackupApplySpec is an autogenerated conversion function. +func Convert_v1_BackupApplySpec_To_management_BackupApplySpec(in *BackupApplySpec, out *management.BackupApplySpec, s conversion.Scope) error { + return autoConvert_v1_BackupApplySpec_To_management_BackupApplySpec(in, out, s) +} + +func autoConvert_management_BackupApplySpec_To_v1_BackupApplySpec(in *management.BackupApplySpec, out *BackupApplySpec, s conversion.Scope) error { + out.Raw = in.Raw + return nil +} + +// Convert_management_BackupApplySpec_To_v1_BackupApplySpec is an autogenerated conversion function. +func Convert_management_BackupApplySpec_To_v1_BackupApplySpec(in *management.BackupApplySpec, out *BackupApplySpec, s conversion.Scope) error { + return autoConvert_management_BackupApplySpec_To_v1_BackupApplySpec(in, out, s) +} + +func autoConvert_v1_BackupList_To_management_BackupList(in *BackupList, out *management.BackupList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.Backup)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_BackupList_To_management_BackupList is an autogenerated conversion function. +func Convert_v1_BackupList_To_management_BackupList(in *BackupList, out *management.BackupList, s conversion.Scope) error { + return autoConvert_v1_BackupList_To_management_BackupList(in, out, s) +} + +func autoConvert_management_BackupList_To_v1_BackupList(in *management.BackupList, out *BackupList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]Backup)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_BackupList_To_v1_BackupList is an autogenerated conversion function. +func Convert_management_BackupList_To_v1_BackupList(in *management.BackupList, out *BackupList, s conversion.Scope) error { + return autoConvert_management_BackupList_To_v1_BackupList(in, out, s) +} + +func autoConvert_v1_BackupSpec_To_management_BackupSpec(in *BackupSpec, out *management.BackupSpec, s conversion.Scope) error { + return nil +} + +// Convert_v1_BackupSpec_To_management_BackupSpec is an autogenerated conversion function. +func Convert_v1_BackupSpec_To_management_BackupSpec(in *BackupSpec, out *management.BackupSpec, s conversion.Scope) error { + return autoConvert_v1_BackupSpec_To_management_BackupSpec(in, out, s) +} + +func autoConvert_management_BackupSpec_To_v1_BackupSpec(in *management.BackupSpec, out *BackupSpec, s conversion.Scope) error { + return nil +} + +// Convert_management_BackupSpec_To_v1_BackupSpec is an autogenerated conversion function. +func Convert_management_BackupSpec_To_v1_BackupSpec(in *management.BackupSpec, out *BackupSpec, s conversion.Scope) error { + return autoConvert_management_BackupSpec_To_v1_BackupSpec(in, out, s) +} + +func autoConvert_v1_BackupStatus_To_management_BackupStatus(in *BackupStatus, out *management.BackupStatus, s conversion.Scope) error { + out.RawBackup = in.RawBackup + return nil +} + +// Convert_v1_BackupStatus_To_management_BackupStatus is an autogenerated conversion function. +func Convert_v1_BackupStatus_To_management_BackupStatus(in *BackupStatus, out *management.BackupStatus, s conversion.Scope) error { + return autoConvert_v1_BackupStatus_To_management_BackupStatus(in, out, s) +} + +func autoConvert_management_BackupStatus_To_v1_BackupStatus(in *management.BackupStatus, out *BackupStatus, s conversion.Scope) error { + out.RawBackup = in.RawBackup + return nil +} + +// Convert_management_BackupStatus_To_v1_BackupStatus is an autogenerated conversion function. +func Convert_management_BackupStatus_To_v1_BackupStatus(in *management.BackupStatus, out *BackupStatus, s conversion.Scope) error { + 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 { + return err + } + if err := Convert_v1_ClusterStatus_To_management_ClusterStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_Cluster_To_management_Cluster is an autogenerated conversion function. +func Convert_v1_Cluster_To_management_Cluster(in *Cluster, out *management.Cluster, s conversion.Scope) error { + return autoConvert_v1_Cluster_To_management_Cluster(in, out, s) +} + +func autoConvert_management_Cluster_To_v1_Cluster(in *management.Cluster, out *Cluster, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_ClusterSpec_To_v1_ClusterSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_ClusterStatus_To_v1_ClusterStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_Cluster_To_v1_Cluster is an autogenerated conversion function. +func Convert_management_Cluster_To_v1_Cluster(in *management.Cluster, out *Cluster, s conversion.Scope) error { + return autoConvert_management_Cluster_To_v1_Cluster(in, out, s) +} + +func autoConvert_v1_ClusterAccess_To_management_ClusterAccess(in *ClusterAccess, out *management.ClusterAccess, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_ClusterAccessSpec_To_management_ClusterAccessSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_ClusterAccessStatus_To_management_ClusterAccessStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_ClusterAccess_To_management_ClusterAccess is an autogenerated conversion function. +func Convert_v1_ClusterAccess_To_management_ClusterAccess(in *ClusterAccess, out *management.ClusterAccess, s conversion.Scope) error { + return autoConvert_v1_ClusterAccess_To_management_ClusterAccess(in, out, s) +} + +func autoConvert_management_ClusterAccess_To_v1_ClusterAccess(in *management.ClusterAccess, out *ClusterAccess, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_ClusterAccessSpec_To_v1_ClusterAccessSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_ClusterAccessStatus_To_v1_ClusterAccessStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_ClusterAccess_To_v1_ClusterAccess is an autogenerated conversion function. +func Convert_management_ClusterAccess_To_v1_ClusterAccess(in *management.ClusterAccess, out *ClusterAccess, s conversion.Scope) error { + return autoConvert_management_ClusterAccess_To_v1_ClusterAccess(in, out, s) +} + +func autoConvert_v1_ClusterAccessKey_To_management_ClusterAccessKey(in *ClusterAccessKey, out *management.ClusterAccessKey, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.AccessKey = in.AccessKey + out.LoftHost = in.LoftHost + out.Insecure = in.Insecure + out.CaCert = in.CaCert + return nil +} + +// Convert_v1_ClusterAccessKey_To_management_ClusterAccessKey is an autogenerated conversion function. +func Convert_v1_ClusterAccessKey_To_management_ClusterAccessKey(in *ClusterAccessKey, out *management.ClusterAccessKey, s conversion.Scope) error { + return autoConvert_v1_ClusterAccessKey_To_management_ClusterAccessKey(in, out, s) +} + +func autoConvert_management_ClusterAccessKey_To_v1_ClusterAccessKey(in *management.ClusterAccessKey, out *ClusterAccessKey, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.AccessKey = in.AccessKey + out.LoftHost = in.LoftHost + out.Insecure = in.Insecure + out.CaCert = in.CaCert + return nil +} + +// Convert_management_ClusterAccessKey_To_v1_ClusterAccessKey is an autogenerated conversion function. +func Convert_management_ClusterAccessKey_To_v1_ClusterAccessKey(in *management.ClusterAccessKey, out *ClusterAccessKey, s conversion.Scope) error { + return autoConvert_management_ClusterAccessKey_To_v1_ClusterAccessKey(in, out, s) +} + +func autoConvert_v1_ClusterAccessKeyList_To_management_ClusterAccessKeyList(in *ClusterAccessKeyList, out *management.ClusterAccessKeyList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ClusterAccessKey)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_ClusterAccessKeyList_To_management_ClusterAccessKeyList is an autogenerated conversion function. +func Convert_v1_ClusterAccessKeyList_To_management_ClusterAccessKeyList(in *ClusterAccessKeyList, out *management.ClusterAccessKeyList, s conversion.Scope) error { + return autoConvert_v1_ClusterAccessKeyList_To_management_ClusterAccessKeyList(in, out, s) +} + +func autoConvert_management_ClusterAccessKeyList_To_v1_ClusterAccessKeyList(in *management.ClusterAccessKeyList, out *ClusterAccessKeyList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ClusterAccessKey)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_ClusterAccessKeyList_To_v1_ClusterAccessKeyList is an autogenerated conversion function. +func Convert_management_ClusterAccessKeyList_To_v1_ClusterAccessKeyList(in *management.ClusterAccessKeyList, out *ClusterAccessKeyList, s conversion.Scope) error { + return autoConvert_management_ClusterAccessKeyList_To_v1_ClusterAccessKeyList(in, out, s) +} + +func autoConvert_v1_ClusterAccessList_To_management_ClusterAccessList(in *ClusterAccessList, out *management.ClusterAccessList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ClusterAccess)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_ClusterAccessList_To_management_ClusterAccessList is an autogenerated conversion function. +func Convert_v1_ClusterAccessList_To_management_ClusterAccessList(in *ClusterAccessList, out *management.ClusterAccessList, s conversion.Scope) error { + return autoConvert_v1_ClusterAccessList_To_management_ClusterAccessList(in, out, s) +} + +func autoConvert_management_ClusterAccessList_To_v1_ClusterAccessList(in *management.ClusterAccessList, out *ClusterAccessList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ClusterAccess)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_ClusterAccessList_To_v1_ClusterAccessList is an autogenerated conversion function. +func Convert_management_ClusterAccessList_To_v1_ClusterAccessList(in *management.ClusterAccessList, out *ClusterAccessList, s conversion.Scope) error { + 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 +} + +// Convert_v1_ClusterAccessSpec_To_management_ClusterAccessSpec is an autogenerated conversion function. +func Convert_v1_ClusterAccessSpec_To_management_ClusterAccessSpec(in *ClusterAccessSpec, out *management.ClusterAccessSpec, s conversion.Scope) error { + return autoConvert_v1_ClusterAccessSpec_To_management_ClusterAccessSpec(in, out, s) +} + +func autoConvert_management_ClusterAccessSpec_To_v1_ClusterAccessSpec(in *management.ClusterAccessSpec, out *ClusterAccessSpec, s conversion.Scope) error { + out.ClusterAccessSpec = in.ClusterAccessSpec + return nil +} + +// Convert_management_ClusterAccessSpec_To_v1_ClusterAccessSpec is an autogenerated conversion function. +func Convert_management_ClusterAccessSpec_To_v1_ClusterAccessSpec(in *management.ClusterAccessSpec, out *ClusterAccessSpec, s conversion.Scope) error { + return autoConvert_management_ClusterAccessSpec_To_v1_ClusterAccessSpec(in, out, s) +} + +func autoConvert_v1_ClusterAccessStatus_To_management_ClusterAccessStatus(in *ClusterAccessStatus, out *management.ClusterAccessStatus, s conversion.Scope) error { + out.ClusterAccessStatus = in.ClusterAccessStatus + out.Clusters = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Clusters)) + out.Users = *(*[]*storagev1.UserOrTeamEntity)(unsafe.Pointer(&in.Users)) + out.Teams = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Teams)) + return nil +} + +// Convert_v1_ClusterAccessStatus_To_management_ClusterAccessStatus is an autogenerated conversion function. +func Convert_v1_ClusterAccessStatus_To_management_ClusterAccessStatus(in *ClusterAccessStatus, out *management.ClusterAccessStatus, s conversion.Scope) error { + return autoConvert_v1_ClusterAccessStatus_To_management_ClusterAccessStatus(in, out, s) +} + +func autoConvert_management_ClusterAccessStatus_To_v1_ClusterAccessStatus(in *management.ClusterAccessStatus, out *ClusterAccessStatus, s conversion.Scope) error { + out.ClusterAccessStatus = in.ClusterAccessStatus + out.Clusters = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Clusters)) + out.Users = *(*[]*storagev1.UserOrTeamEntity)(unsafe.Pointer(&in.Users)) + out.Teams = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Teams)) + return nil +} + +// Convert_management_ClusterAccessStatus_To_v1_ClusterAccessStatus is an autogenerated conversion function. +func Convert_management_ClusterAccessStatus_To_v1_ClusterAccessStatus(in *management.ClusterAccessStatus, out *ClusterAccessStatus, s conversion.Scope) error { + return autoConvert_management_ClusterAccessStatus_To_v1_ClusterAccessStatus(in, out, s) +} + +func autoConvert_v1_ClusterAccounts_To_management_ClusterAccounts(in *ClusterAccounts, out *management.ClusterAccounts, s conversion.Scope) error { + out.Accounts = *(*[]string)(unsafe.Pointer(&in.Accounts)) + out.Cluster = in.Cluster + return nil +} + +// Convert_v1_ClusterAccounts_To_management_ClusterAccounts is an autogenerated conversion function. +func Convert_v1_ClusterAccounts_To_management_ClusterAccounts(in *ClusterAccounts, out *management.ClusterAccounts, s conversion.Scope) error { + return autoConvert_v1_ClusterAccounts_To_management_ClusterAccounts(in, out, s) +} + +func autoConvert_management_ClusterAccounts_To_v1_ClusterAccounts(in *management.ClusterAccounts, out *ClusterAccounts, s conversion.Scope) error { + out.Accounts = *(*[]string)(unsafe.Pointer(&in.Accounts)) + out.Cluster = in.Cluster + return nil +} + +// Convert_management_ClusterAccounts_To_v1_ClusterAccounts is an autogenerated conversion function. +func Convert_management_ClusterAccounts_To_v1_ClusterAccounts(in *management.ClusterAccounts, out *ClusterAccounts, s conversion.Scope) error { + return autoConvert_management_ClusterAccounts_To_v1_ClusterAccounts(in, out, s) +} + +func autoConvert_v1_ClusterAgentConfig_To_management_ClusterAgentConfig(in *ClusterAgentConfig, out *management.ClusterAgentConfig, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCommon(&in.ClusterAgentConfigCommon, &out.ClusterAgentConfigCommon, s); err != nil { + return err + } + return nil +} + +// Convert_v1_ClusterAgentConfig_To_management_ClusterAgentConfig is an autogenerated conversion function. +func Convert_v1_ClusterAgentConfig_To_management_ClusterAgentConfig(in *ClusterAgentConfig, out *management.ClusterAgentConfig, s conversion.Scope) error { + return autoConvert_v1_ClusterAgentConfig_To_management_ClusterAgentConfig(in, out, s) +} + +func autoConvert_management_ClusterAgentConfig_To_v1_ClusterAgentConfig(in *management.ClusterAgentConfig, out *ClusterAgentConfig, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCommon(&in.ClusterAgentConfigCommon, &out.ClusterAgentConfigCommon, s); err != nil { + return err + } + return nil +} + +// Convert_management_ClusterAgentConfig_To_v1_ClusterAgentConfig is an autogenerated conversion function. +func Convert_management_ClusterAgentConfig_To_v1_ClusterAgentConfig(in *management.ClusterAgentConfig, out *ClusterAgentConfig, s conversion.Scope) error { + return autoConvert_management_ClusterAgentConfig_To_v1_ClusterAgentConfig(in, out, s) +} + +func autoConvert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCommon(in *ClusterAgentConfigCommon, out *management.ClusterAgentConfigCommon, s conversion.Scope) error { + out.Cluster = in.Cluster + out.Audit = (*management.AgentAuditConfig)(unsafe.Pointer(in.Audit)) + out.DefaultImageRegistry = in.DefaultImageRegistry + out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) + out.LoftHost = in.LoftHost + out.ProjectNamespacePrefix = in.ProjectNamespacePrefix + out.LoftInstanceID = in.LoftInstanceID + 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)) + out.AuthenticateVersionEndpoint = in.AuthenticateVersionEndpoint + return nil +} + +// Convert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCommon is an autogenerated conversion function. +func Convert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCommon(in *ClusterAgentConfigCommon, out *management.ClusterAgentConfigCommon, s conversion.Scope) error { + return autoConvert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCommon(in, out, s) +} + +func autoConvert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCommon(in *management.ClusterAgentConfigCommon, out *ClusterAgentConfigCommon, s conversion.Scope) error { + out.Cluster = in.Cluster + out.Audit = (*AgentAuditConfig)(unsafe.Pointer(in.Audit)) + out.DefaultImageRegistry = in.DefaultImageRegistry + out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) + out.LoftHost = in.LoftHost + out.ProjectNamespacePrefix = in.ProjectNamespacePrefix + out.LoftInstanceID = in.LoftInstanceID + if err := Convert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec(&in.AnalyticsSpec, &out.AnalyticsSpec, s); err != nil { + return err + } + out.CostControl = (*AgentCostControlConfig)(unsafe.Pointer(in.CostControl)) + out.AuthenticateVersionEndpoint = in.AuthenticateVersionEndpoint return nil } -func autoConvert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec(in *AgentAnalyticsSpec, out *management.AgentAnalyticsSpec, s conversion.Scope) error { - out.AnalyticsEndpoint = in.AnalyticsEndpoint - return nil -} - -// Convert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec is an autogenerated conversion function. -func Convert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec(in *AgentAnalyticsSpec, out *management.AgentAnalyticsSpec, s conversion.Scope) error { - return autoConvert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec(in, out, s) -} - -func autoConvert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec(in *management.AgentAnalyticsSpec, out *AgentAnalyticsSpec, s conversion.Scope) error { - out.AnalyticsEndpoint = in.AnalyticsEndpoint - return nil -} - -// Convert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec is an autogenerated conversion function. -func Convert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec(in *management.AgentAnalyticsSpec, out *AgentAnalyticsSpec, s conversion.Scope) error { - return autoConvert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec(in, out, s) +// Convert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCommon is an autogenerated conversion function. +func Convert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCommon(in *management.ClusterAgentConfigCommon, out *ClusterAgentConfigCommon, s conversion.Scope) error { + return autoConvert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCommon(in, out, s) } -func autoConvert_v1_AgentAuditConfig_To_management_AgentAuditConfig(in *AgentAuditConfig, out *management.AgentAuditConfig, s conversion.Scope) error { - out.Enabled = in.Enabled - out.DisableAgentSyncBack = in.DisableAgentSyncBack - out.Level = in.Level - if err := Convert_v1_AuditPolicy_To_management_AuditPolicy(&in.Policy, &out.Policy, s); err != nil { - return err - } - out.Path = in.Path - out.MaxAge = in.MaxAge - out.MaxBackups = in.MaxBackups - out.MaxSize = in.MaxSize - out.Compress = in.Compress +func autoConvert_v1_ClusterAgentConfigList_To_management_ClusterAgentConfigList(in *ClusterAgentConfigList, out *management.ClusterAgentConfigList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ClusterAgentConfig)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_AgentAuditConfig_To_management_AgentAuditConfig is an autogenerated conversion function. -func Convert_v1_AgentAuditConfig_To_management_AgentAuditConfig(in *AgentAuditConfig, out *management.AgentAuditConfig, s conversion.Scope) error { - return autoConvert_v1_AgentAuditConfig_To_management_AgentAuditConfig(in, out, s) +// Convert_v1_ClusterAgentConfigList_To_management_ClusterAgentConfigList is an autogenerated conversion function. +func Convert_v1_ClusterAgentConfigList_To_management_ClusterAgentConfigList(in *ClusterAgentConfigList, out *management.ClusterAgentConfigList, s conversion.Scope) error { + return autoConvert_v1_ClusterAgentConfigList_To_management_ClusterAgentConfigList(in, out, s) } -func autoConvert_management_AgentAuditConfig_To_v1_AgentAuditConfig(in *management.AgentAuditConfig, out *AgentAuditConfig, s conversion.Scope) error { - out.Enabled = in.Enabled - out.DisableAgentSyncBack = in.DisableAgentSyncBack - out.Level = in.Level - if err := Convert_management_AuditPolicy_To_v1_AuditPolicy(&in.Policy, &out.Policy, s); err != nil { - return err - } - out.Path = in.Path - out.MaxAge = in.MaxAge - out.MaxBackups = in.MaxBackups - out.MaxSize = in.MaxSize - out.Compress = in.Compress +func autoConvert_management_ClusterAgentConfigList_To_v1_ClusterAgentConfigList(in *management.ClusterAgentConfigList, out *ClusterAgentConfigList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ClusterAgentConfig)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_AgentAuditConfig_To_v1_AgentAuditConfig is an autogenerated conversion function. -func Convert_management_AgentAuditConfig_To_v1_AgentAuditConfig(in *management.AgentAuditConfig, out *AgentAuditConfig, s conversion.Scope) error { - return autoConvert_management_AgentAuditConfig_To_v1_AgentAuditConfig(in, out, s) +// Convert_management_ClusterAgentConfigList_To_v1_ClusterAgentConfigList is an autogenerated conversion function. +func Convert_management_ClusterAgentConfigList_To_v1_ClusterAgentConfigList(in *management.ClusterAgentConfigList, out *ClusterAgentConfigList, s conversion.Scope) error { + return autoConvert_management_ClusterAgentConfigList_To_v1_ClusterAgentConfigList(in, out, s) } -func autoConvert_v1_AgentAuditEvent_To_management_AgentAuditEvent(in *AgentAuditEvent, out *management.AgentAuditEvent, s conversion.Scope) error { +func autoConvert_v1_ClusterCharts_To_management_ClusterCharts(in *ClusterCharts, out *management.ClusterCharts, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_AgentAuditEventSpec_To_management_AgentAuditEventSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_AgentAuditEventStatus_To_management_AgentAuditEventStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.Charts = *(*[]storagev1.HelmChart)(unsafe.Pointer(&in.Charts)) + out.Busy = in.Busy return nil } -// Convert_v1_AgentAuditEvent_To_management_AgentAuditEvent is an autogenerated conversion function. -func Convert_v1_AgentAuditEvent_To_management_AgentAuditEvent(in *AgentAuditEvent, out *management.AgentAuditEvent, s conversion.Scope) error { - return autoConvert_v1_AgentAuditEvent_To_management_AgentAuditEvent(in, out, s) +// Convert_v1_ClusterCharts_To_management_ClusterCharts is an autogenerated conversion function. +func Convert_v1_ClusterCharts_To_management_ClusterCharts(in *ClusterCharts, out *management.ClusterCharts, s conversion.Scope) error { + return autoConvert_v1_ClusterCharts_To_management_ClusterCharts(in, out, s) } -func autoConvert_management_AgentAuditEvent_To_v1_AgentAuditEvent(in *management.AgentAuditEvent, out *AgentAuditEvent, s conversion.Scope) error { +func autoConvert_management_ClusterCharts_To_v1_ClusterCharts(in *management.ClusterCharts, out *ClusterCharts, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_AgentAuditEventSpec_To_v1_AgentAuditEventSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.Charts = *(*[]storagev1.HelmChart)(unsafe.Pointer(&in.Charts)) + out.Busy = in.Busy return nil } -// Convert_management_AgentAuditEvent_To_v1_AgentAuditEvent is an autogenerated conversion function. -func Convert_management_AgentAuditEvent_To_v1_AgentAuditEvent(in *management.AgentAuditEvent, out *AgentAuditEvent, s conversion.Scope) error { - return autoConvert_management_AgentAuditEvent_To_v1_AgentAuditEvent(in, out, s) +// Convert_management_ClusterCharts_To_v1_ClusterCharts is an autogenerated conversion function. +func Convert_management_ClusterCharts_To_v1_ClusterCharts(in *management.ClusterCharts, out *ClusterCharts, s conversion.Scope) error { + return autoConvert_management_ClusterCharts_To_v1_ClusterCharts(in, out, s) } -func autoConvert_v1_AgentAuditEventList_To_management_AgentAuditEventList(in *AgentAuditEventList, out *management.AgentAuditEventList, s conversion.Scope) error { +func autoConvert_v1_ClusterChartsList_To_management_ClusterChartsList(in *ClusterChartsList, out *management.ClusterChartsList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.AgentAuditEvent)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ClusterCharts)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_AgentAuditEventList_To_management_AgentAuditEventList is an autogenerated conversion function. -func Convert_v1_AgentAuditEventList_To_management_AgentAuditEventList(in *AgentAuditEventList, out *management.AgentAuditEventList, s conversion.Scope) error { - return autoConvert_v1_AgentAuditEventList_To_management_AgentAuditEventList(in, out, s) +// Convert_v1_ClusterChartsList_To_management_ClusterChartsList is an autogenerated conversion function. +func Convert_v1_ClusterChartsList_To_management_ClusterChartsList(in *ClusterChartsList, out *management.ClusterChartsList, s conversion.Scope) error { + return autoConvert_v1_ClusterChartsList_To_management_ClusterChartsList(in, out, s) } -func autoConvert_management_AgentAuditEventList_To_v1_AgentAuditEventList(in *management.AgentAuditEventList, out *AgentAuditEventList, s conversion.Scope) error { +func autoConvert_management_ClusterChartsList_To_v1_ClusterChartsList(in *management.ClusterChartsList, out *ClusterChartsList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]AgentAuditEvent)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ClusterCharts)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_AgentAuditEventList_To_v1_AgentAuditEventList is an autogenerated conversion function. -func Convert_management_AgentAuditEventList_To_v1_AgentAuditEventList(in *management.AgentAuditEventList, out *AgentAuditEventList, s conversion.Scope) error { - return autoConvert_management_AgentAuditEventList_To_v1_AgentAuditEventList(in, out, s) +// Convert_management_ClusterChartsList_To_v1_ClusterChartsList is an autogenerated conversion function. +func Convert_management_ClusterChartsList_To_v1_ClusterChartsList(in *management.ClusterChartsList, out *ClusterChartsList, s conversion.Scope) error { + return autoConvert_management_ClusterChartsList_To_v1_ClusterChartsList(in, out, s) } -func autoConvert_v1_AgentAuditEventSpec_To_management_AgentAuditEventSpec(in *AgentAuditEventSpec, out *management.AgentAuditEventSpec, s conversion.Scope) error { - out.Events = *(*[]*auditv1.Event)(unsafe.Pointer(&in.Events)) +func autoConvert_v1_ClusterDomain_To_management_ClusterDomain(in *ClusterDomain, out *management.ClusterDomain, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Target = in.Target + out.Domain = in.Domain return nil } -// Convert_v1_AgentAuditEventSpec_To_management_AgentAuditEventSpec is an autogenerated conversion function. -func Convert_v1_AgentAuditEventSpec_To_management_AgentAuditEventSpec(in *AgentAuditEventSpec, out *management.AgentAuditEventSpec, s conversion.Scope) error { - return autoConvert_v1_AgentAuditEventSpec_To_management_AgentAuditEventSpec(in, out, s) +// Convert_v1_ClusterDomain_To_management_ClusterDomain is an autogenerated conversion function. +func Convert_v1_ClusterDomain_To_management_ClusterDomain(in *ClusterDomain, out *management.ClusterDomain, s conversion.Scope) error { + return autoConvert_v1_ClusterDomain_To_management_ClusterDomain(in, out, s) } -func autoConvert_management_AgentAuditEventSpec_To_v1_AgentAuditEventSpec(in *management.AgentAuditEventSpec, out *AgentAuditEventSpec, s conversion.Scope) error { - out.Events = *(*[]*auditv1.Event)(unsafe.Pointer(&in.Events)) +func autoConvert_management_ClusterDomain_To_v1_ClusterDomain(in *management.ClusterDomain, out *ClusterDomain, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Target = in.Target + out.Domain = in.Domain return nil } -// Convert_management_AgentAuditEventSpec_To_v1_AgentAuditEventSpec is an autogenerated conversion function. -func Convert_management_AgentAuditEventSpec_To_v1_AgentAuditEventSpec(in *management.AgentAuditEventSpec, out *AgentAuditEventSpec, s conversion.Scope) error { - return autoConvert_management_AgentAuditEventSpec_To_v1_AgentAuditEventSpec(in, out, s) +// Convert_management_ClusterDomain_To_v1_ClusterDomain is an autogenerated conversion function. +func Convert_management_ClusterDomain_To_v1_ClusterDomain(in *management.ClusterDomain, out *ClusterDomain, s conversion.Scope) error { + return autoConvert_management_ClusterDomain_To_v1_ClusterDomain(in, out, s) } -func autoConvert_v1_AgentAuditEventStatus_To_management_AgentAuditEventStatus(in *AgentAuditEventStatus, out *management.AgentAuditEventStatus, s conversion.Scope) error { +func autoConvert_v1_ClusterDomainList_To_management_ClusterDomainList(in *ClusterDomainList, out *management.ClusterDomainList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ClusterDomain)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_AgentAuditEventStatus_To_management_AgentAuditEventStatus is an autogenerated conversion function. -func Convert_v1_AgentAuditEventStatus_To_management_AgentAuditEventStatus(in *AgentAuditEventStatus, out *management.AgentAuditEventStatus, s conversion.Scope) error { - return autoConvert_v1_AgentAuditEventStatus_To_management_AgentAuditEventStatus(in, out, s) +// Convert_v1_ClusterDomainList_To_management_ClusterDomainList is an autogenerated conversion function. +func Convert_v1_ClusterDomainList_To_management_ClusterDomainList(in *ClusterDomainList, out *management.ClusterDomainList, s conversion.Scope) error { + return autoConvert_v1_ClusterDomainList_To_management_ClusterDomainList(in, out, s) } -func autoConvert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(in *management.AgentAuditEventStatus, out *AgentAuditEventStatus, s conversion.Scope) error { +func autoConvert_management_ClusterDomainList_To_v1_ClusterDomainList(in *management.ClusterDomainList, out *ClusterDomainList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ClusterDomain)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus is an autogenerated conversion function. -func Convert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(in *management.AgentAuditEventStatus, out *AgentAuditEventStatus, s conversion.Scope) error { - return autoConvert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(in, out, s) +// Convert_management_ClusterDomainList_To_v1_ClusterDomainList is an autogenerated conversion function. +func Convert_management_ClusterDomainList_To_v1_ClusterDomainList(in *management.ClusterDomainList, out *ClusterDomainList, s conversion.Scope) error { + return autoConvert_management_ClusterDomainList_To_v1_ClusterDomainList(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 { - return err - } - if err := Convert_v1_AnnouncementStatus_To_management_AnnouncementStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_v1_ClusterList_To_management_ClusterList(in *ClusterList, out *management.ClusterList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.Cluster)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_Announcement_To_management_Announcement is an autogenerated conversion function. -func Convert_v1_Announcement_To_management_Announcement(in *Announcement, out *management.Announcement, s conversion.Scope) error { - return autoConvert_v1_Announcement_To_management_Announcement(in, out, s) +// Convert_v1_ClusterList_To_management_ClusterList is an autogenerated conversion function. +func Convert_v1_ClusterList_To_management_ClusterList(in *ClusterList, out *management.ClusterList, s conversion.Scope) error { + return autoConvert_v1_ClusterList_To_management_ClusterList(in, out, s) } -func autoConvert_management_Announcement_To_v1_Announcement(in *management.Announcement, out *Announcement, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_AnnouncementSpec_To_v1_AnnouncementSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_AnnouncementStatus_To_v1_AnnouncementStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_management_ClusterList_To_v1_ClusterList(in *management.ClusterList, out *ClusterList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]Cluster)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_Announcement_To_v1_Announcement is an autogenerated conversion function. -func Convert_management_Announcement_To_v1_Announcement(in *management.Announcement, out *Announcement, s conversion.Scope) error { - return autoConvert_management_Announcement_To_v1_Announcement(in, out, s) +// Convert_management_ClusterList_To_v1_ClusterList is an autogenerated conversion function. +func Convert_management_ClusterList_To_v1_ClusterList(in *management.ClusterList, out *ClusterList, s conversion.Scope) error { + return autoConvert_management_ClusterList_To_v1_ClusterList(in, out, s) } -func autoConvert_v1_AnnouncementList_To_management_AnnouncementList(in *AnnouncementList, out *management.AnnouncementList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.Announcement)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_ClusterMember_To_management_ClusterMember(in *ClusterMember, out *management.ClusterMember, s conversion.Scope) error { + out.Info = in.Info return nil } -// Convert_v1_AnnouncementList_To_management_AnnouncementList is an autogenerated conversion function. -func Convert_v1_AnnouncementList_To_management_AnnouncementList(in *AnnouncementList, out *management.AnnouncementList, s conversion.Scope) error { - return autoConvert_v1_AnnouncementList_To_management_AnnouncementList(in, out, s) +// Convert_v1_ClusterMember_To_management_ClusterMember is an autogenerated conversion function. +func Convert_v1_ClusterMember_To_management_ClusterMember(in *ClusterMember, out *management.ClusterMember, s conversion.Scope) error { + return autoConvert_v1_ClusterMember_To_management_ClusterMember(in, out, s) } -func autoConvert_management_AnnouncementList_To_v1_AnnouncementList(in *management.AnnouncementList, out *AnnouncementList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]Announcement)(unsafe.Pointer(&in.Items)) +func autoConvert_management_ClusterMember_To_v1_ClusterMember(in *management.ClusterMember, out *ClusterMember, s conversion.Scope) error { + out.Info = in.Info return nil } -// Convert_management_AnnouncementList_To_v1_AnnouncementList is an autogenerated conversion function. -func Convert_management_AnnouncementList_To_v1_AnnouncementList(in *management.AnnouncementList, out *AnnouncementList, s conversion.Scope) error { - return autoConvert_management_AnnouncementList_To_v1_AnnouncementList(in, out, s) +// Convert_management_ClusterMember_To_v1_ClusterMember is an autogenerated conversion function. +func Convert_management_ClusterMember_To_v1_ClusterMember(in *management.ClusterMember, out *ClusterMember, s conversion.Scope) error { + return autoConvert_management_ClusterMember_To_v1_ClusterMember(in, out, s) } -func autoConvert_v1_AnnouncementSpec_To_management_AnnouncementSpec(in *AnnouncementSpec, out *management.AnnouncementSpec, s conversion.Scope) error { +func autoConvert_v1_ClusterMemberAccess_To_management_ClusterMemberAccess(in *ClusterMemberAccess, out *management.ClusterMemberAccess, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Teams = *(*[]management.ClusterMember)(unsafe.Pointer(&in.Teams)) + out.Users = *(*[]management.ClusterMember)(unsafe.Pointer(&in.Users)) return nil } -// Convert_v1_AnnouncementSpec_To_management_AnnouncementSpec is an autogenerated conversion function. -func Convert_v1_AnnouncementSpec_To_management_AnnouncementSpec(in *AnnouncementSpec, out *management.AnnouncementSpec, s conversion.Scope) error { - return autoConvert_v1_AnnouncementSpec_To_management_AnnouncementSpec(in, out, s) +// Convert_v1_ClusterMemberAccess_To_management_ClusterMemberAccess is an autogenerated conversion function. +func Convert_v1_ClusterMemberAccess_To_management_ClusterMemberAccess(in *ClusterMemberAccess, out *management.ClusterMemberAccess, s conversion.Scope) error { + return autoConvert_v1_ClusterMemberAccess_To_management_ClusterMemberAccess(in, out, s) } -func autoConvert_management_AnnouncementSpec_To_v1_AnnouncementSpec(in *management.AnnouncementSpec, out *AnnouncementSpec, s conversion.Scope) error { +func autoConvert_management_ClusterMemberAccess_To_v1_ClusterMemberAccess(in *management.ClusterMemberAccess, out *ClusterMemberAccess, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Teams = *(*[]ClusterMember)(unsafe.Pointer(&in.Teams)) + out.Users = *(*[]ClusterMember)(unsafe.Pointer(&in.Users)) return nil } -// Convert_management_AnnouncementSpec_To_v1_AnnouncementSpec is an autogenerated conversion function. -func Convert_management_AnnouncementSpec_To_v1_AnnouncementSpec(in *management.AnnouncementSpec, out *AnnouncementSpec, s conversion.Scope) error { - return autoConvert_management_AnnouncementSpec_To_v1_AnnouncementSpec(in, out, s) +// Convert_management_ClusterMemberAccess_To_v1_ClusterMemberAccess is an autogenerated conversion function. +func Convert_management_ClusterMemberAccess_To_v1_ClusterMemberAccess(in *management.ClusterMemberAccess, out *ClusterMemberAccess, s conversion.Scope) error { + return autoConvert_management_ClusterMemberAccess_To_v1_ClusterMemberAccess(in, out, s) } -func autoConvert_v1_AnnouncementStatus_To_management_AnnouncementStatus(in *AnnouncementStatus, out *management.AnnouncementStatus, s conversion.Scope) error { - out.Announcement = in.Announcement +func autoConvert_v1_ClusterMemberAccessList_To_management_ClusterMemberAccessList(in *ClusterMemberAccessList, out *management.ClusterMemberAccessList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ClusterMemberAccess)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_AnnouncementStatus_To_management_AnnouncementStatus is an autogenerated conversion function. -func Convert_v1_AnnouncementStatus_To_management_AnnouncementStatus(in *AnnouncementStatus, out *management.AnnouncementStatus, s conversion.Scope) error { - return autoConvert_v1_AnnouncementStatus_To_management_AnnouncementStatus(in, out, s) +// Convert_v1_ClusterMemberAccessList_To_management_ClusterMemberAccessList is an autogenerated conversion function. +func Convert_v1_ClusterMemberAccessList_To_management_ClusterMemberAccessList(in *ClusterMemberAccessList, out *management.ClusterMemberAccessList, s conversion.Scope) error { + return autoConvert_v1_ClusterMemberAccessList_To_management_ClusterMemberAccessList(in, out, s) } -func autoConvert_management_AnnouncementStatus_To_v1_AnnouncementStatus(in *management.AnnouncementStatus, out *AnnouncementStatus, s conversion.Scope) error { - out.Announcement = in.Announcement +func autoConvert_management_ClusterMemberAccessList_To_v1_ClusterMemberAccessList(in *management.ClusterMemberAccessList, out *ClusterMemberAccessList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ClusterMemberAccess)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_AnnouncementStatus_To_v1_AnnouncementStatus is an autogenerated conversion function. -func Convert_management_AnnouncementStatus_To_v1_AnnouncementStatus(in *management.AnnouncementStatus, out *AnnouncementStatus, s conversion.Scope) error { - return autoConvert_management_AnnouncementStatus_To_v1_AnnouncementStatus(in, out, s) +// Convert_management_ClusterMemberAccessList_To_v1_ClusterMemberAccessList is an autogenerated conversion function. +func Convert_management_ClusterMemberAccessList_To_v1_ClusterMemberAccessList(in *management.ClusterMemberAccessList, out *ClusterMemberAccessList, s conversion.Scope) error { + return autoConvert_management_ClusterMemberAccessList_To_v1_ClusterMemberAccessList(in, out, s) } -func autoConvert_v1_App_To_management_App(in *App, out *management.App, s conversion.Scope) error { +func autoConvert_v1_ClusterMembers_To_management_ClusterMembers(in *ClusterMembers, out *management.ClusterMembers, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_AppSpec_To_management_AppSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_AppStatus_To_management_AppStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.Teams = *(*[]management.ClusterMember)(unsafe.Pointer(&in.Teams)) + out.Users = *(*[]management.ClusterMember)(unsafe.Pointer(&in.Users)) return nil } -// Convert_v1_App_To_management_App is an autogenerated conversion function. -func Convert_v1_App_To_management_App(in *App, out *management.App, s conversion.Scope) error { - return autoConvert_v1_App_To_management_App(in, out, s) +// Convert_v1_ClusterMembers_To_management_ClusterMembers is an autogenerated conversion function. +func Convert_v1_ClusterMembers_To_management_ClusterMembers(in *ClusterMembers, out *management.ClusterMembers, s conversion.Scope) error { + return autoConvert_v1_ClusterMembers_To_management_ClusterMembers(in, out, s) } -func autoConvert_management_App_To_v1_App(in *management.App, out *App, s conversion.Scope) error { +func autoConvert_management_ClusterMembers_To_v1_ClusterMembers(in *management.ClusterMembers, out *ClusterMembers, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_AppSpec_To_v1_AppSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_AppStatus_To_v1_AppStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.Teams = *(*[]ClusterMember)(unsafe.Pointer(&in.Teams)) + out.Users = *(*[]ClusterMember)(unsafe.Pointer(&in.Users)) return nil } -// Convert_management_App_To_v1_App is an autogenerated conversion function. -func Convert_management_App_To_v1_App(in *management.App, out *App, s conversion.Scope) error { - return autoConvert_management_App_To_v1_App(in, out, s) +// Convert_management_ClusterMembers_To_v1_ClusterMembers is an autogenerated conversion function. +func Convert_management_ClusterMembers_To_v1_ClusterMembers(in *management.ClusterMembers, out *ClusterMembers, s conversion.Scope) error { + return autoConvert_management_ClusterMembers_To_v1_ClusterMembers(in, out, s) } -func autoConvert_v1_AppCredentials_To_management_AppCredentials(in *AppCredentials, out *management.AppCredentials, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.ProjectSecretRefs = *(*map[string]string)(unsafe.Pointer(&in.ProjectSecretRefs)) +func autoConvert_v1_ClusterMembersList_To_management_ClusterMembersList(in *ClusterMembersList, out *management.ClusterMembersList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ClusterMembers)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_AppCredentials_To_management_AppCredentials is an autogenerated conversion function. -func Convert_v1_AppCredentials_To_management_AppCredentials(in *AppCredentials, out *management.AppCredentials, s conversion.Scope) error { - return autoConvert_v1_AppCredentials_To_management_AppCredentials(in, out, s) +// Convert_v1_ClusterMembersList_To_management_ClusterMembersList is an autogenerated conversion function. +func Convert_v1_ClusterMembersList_To_management_ClusterMembersList(in *ClusterMembersList, out *management.ClusterMembersList, s conversion.Scope) error { + return autoConvert_v1_ClusterMembersList_To_management_ClusterMembersList(in, out, s) } -func autoConvert_management_AppCredentials_To_v1_AppCredentials(in *management.AppCredentials, out *AppCredentials, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.ProjectSecretRefs = *(*map[string]string)(unsafe.Pointer(&in.ProjectSecretRefs)) +func autoConvert_management_ClusterMembersList_To_v1_ClusterMembersList(in *management.ClusterMembersList, out *ClusterMembersList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ClusterMembers)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_AppCredentials_To_v1_AppCredentials is an autogenerated conversion function. -func Convert_management_AppCredentials_To_v1_AppCredentials(in *management.AppCredentials, out *AppCredentials, s conversion.Scope) error { - return autoConvert_management_AppCredentials_To_v1_AppCredentials(in, out, s) +// Convert_management_ClusterMembersList_To_v1_ClusterMembersList is an autogenerated conversion function. +func Convert_management_ClusterMembersList_To_v1_ClusterMembersList(in *management.ClusterMembersList, out *ClusterMembersList, s conversion.Scope) error { + return autoConvert_management_ClusterMembersList_To_v1_ClusterMembersList(in, out, s) } -func autoConvert_v1_AppCredentialsList_To_management_AppCredentialsList(in *AppCredentialsList, out *management.AppCredentialsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.AppCredentials)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_ClusterReset_To_management_ClusterReset(in *ClusterReset, out *management.ClusterReset, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Agent = in.Agent + out.RBAC = in.RBAC return nil } -// Convert_v1_AppCredentialsList_To_management_AppCredentialsList is an autogenerated conversion function. -func Convert_v1_AppCredentialsList_To_management_AppCredentialsList(in *AppCredentialsList, out *management.AppCredentialsList, s conversion.Scope) error { - return autoConvert_v1_AppCredentialsList_To_management_AppCredentialsList(in, out, s) +// Convert_v1_ClusterReset_To_management_ClusterReset is an autogenerated conversion function. +func Convert_v1_ClusterReset_To_management_ClusterReset(in *ClusterReset, out *management.ClusterReset, s conversion.Scope) error { + return autoConvert_v1_ClusterReset_To_management_ClusterReset(in, out, s) } -func autoConvert_management_AppCredentialsList_To_v1_AppCredentialsList(in *management.AppCredentialsList, out *AppCredentialsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]AppCredentials)(unsafe.Pointer(&in.Items)) +func autoConvert_management_ClusterReset_To_v1_ClusterReset(in *management.ClusterReset, out *ClusterReset, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Agent = in.Agent + out.RBAC = in.RBAC return nil } -// Convert_management_AppCredentialsList_To_v1_AppCredentialsList is an autogenerated conversion function. -func Convert_management_AppCredentialsList_To_v1_AppCredentialsList(in *management.AppCredentialsList, out *AppCredentialsList, s conversion.Scope) error { - return autoConvert_management_AppCredentialsList_To_v1_AppCredentialsList(in, out, s) +// Convert_management_ClusterReset_To_v1_ClusterReset is an autogenerated conversion function. +func Convert_management_ClusterReset_To_v1_ClusterReset(in *management.ClusterReset, out *ClusterReset, s conversion.Scope) error { + return autoConvert_management_ClusterReset_To_v1_ClusterReset(in, out, s) } -func autoConvert_v1_AppList_To_management_AppList(in *AppList, out *management.AppList, s conversion.Scope) error { +func autoConvert_v1_ClusterResetList_To_management_ClusterResetList(in *ClusterResetList, out *management.ClusterResetList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.App)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ClusterReset)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_AppList_To_management_AppList is an autogenerated conversion function. -func Convert_v1_AppList_To_management_AppList(in *AppList, out *management.AppList, s conversion.Scope) error { - return autoConvert_v1_AppList_To_management_AppList(in, out, s) +// Convert_v1_ClusterResetList_To_management_ClusterResetList is an autogenerated conversion function. +func Convert_v1_ClusterResetList_To_management_ClusterResetList(in *ClusterResetList, out *management.ClusterResetList, s conversion.Scope) error { + return autoConvert_v1_ClusterResetList_To_management_ClusterResetList(in, out, s) } -func autoConvert_management_AppList_To_v1_AppList(in *management.AppList, out *AppList, s conversion.Scope) error { +func autoConvert_management_ClusterResetList_To_v1_ClusterResetList(in *management.ClusterResetList, out *ClusterResetList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]App)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ClusterReset)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_AppList_To_v1_AppList is an autogenerated conversion function. -func Convert_management_AppList_To_v1_AppList(in *management.AppList, out *AppList, s conversion.Scope) error { - return autoConvert_management_AppList_To_v1_AppList(in, out, s) +// Convert_management_ClusterResetList_To_v1_ClusterResetList is an autogenerated conversion function. +func Convert_management_ClusterResetList_To_v1_ClusterResetList(in *management.ClusterResetList, out *ClusterResetList, s conversion.Scope) error { + return autoConvert_management_ClusterResetList_To_v1_ClusterResetList(in, out, s) } -func autoConvert_v1_AppSpec_To_management_AppSpec(in *AppSpec, out *management.AppSpec, s conversion.Scope) error { - out.AppSpec = in.AppSpec +func autoConvert_v1_ClusterRoleTemplate_To_management_ClusterRoleTemplate(in *ClusterRoleTemplate, out *management.ClusterRoleTemplate, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_ClusterRoleTemplateSpec_To_management_ClusterRoleTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_ClusterRoleTemplateStatus_To_management_ClusterRoleTemplateStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_AppSpec_To_management_AppSpec is an autogenerated conversion function. -func Convert_v1_AppSpec_To_management_AppSpec(in *AppSpec, out *management.AppSpec, s conversion.Scope) error { - return autoConvert_v1_AppSpec_To_management_AppSpec(in, out, s) +// Convert_v1_ClusterRoleTemplate_To_management_ClusterRoleTemplate is an autogenerated conversion function. +func Convert_v1_ClusterRoleTemplate_To_management_ClusterRoleTemplate(in *ClusterRoleTemplate, out *management.ClusterRoleTemplate, s conversion.Scope) error { + return autoConvert_v1_ClusterRoleTemplate_To_management_ClusterRoleTemplate(in, out, s) } -func autoConvert_management_AppSpec_To_v1_AppSpec(in *management.AppSpec, out *AppSpec, s conversion.Scope) error { - out.AppSpec = in.AppSpec +func autoConvert_management_ClusterRoleTemplate_To_v1_ClusterRoleTemplate(in *management.ClusterRoleTemplate, out *ClusterRoleTemplate, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_ClusterRoleTemplateSpec_To_v1_ClusterRoleTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_ClusterRoleTemplateStatus_To_v1_ClusterRoleTemplateStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_AppSpec_To_v1_AppSpec is an autogenerated conversion function. -func Convert_management_AppSpec_To_v1_AppSpec(in *management.AppSpec, out *AppSpec, s conversion.Scope) error { - return autoConvert_management_AppSpec_To_v1_AppSpec(in, out, s) +// Convert_management_ClusterRoleTemplate_To_v1_ClusterRoleTemplate is an autogenerated conversion function. +func Convert_management_ClusterRoleTemplate_To_v1_ClusterRoleTemplate(in *management.ClusterRoleTemplate, out *ClusterRoleTemplate, s conversion.Scope) error { + return autoConvert_management_ClusterRoleTemplate_To_v1_ClusterRoleTemplate(in, out, s) } -func autoConvert_v1_AppStatus_To_management_AppStatus(in *AppStatus, out *management.AppStatus, s conversion.Scope) error { - out.AppStatus = in.AppStatus +func autoConvert_v1_ClusterRoleTemplateList_To_management_ClusterRoleTemplateList(in *ClusterRoleTemplateList, out *management.ClusterRoleTemplateList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ClusterRoleTemplate)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_AppStatus_To_management_AppStatus is an autogenerated conversion function. -func Convert_v1_AppStatus_To_management_AppStatus(in *AppStatus, out *management.AppStatus, s conversion.Scope) error { - return autoConvert_v1_AppStatus_To_management_AppStatus(in, out, s) +// Convert_v1_ClusterRoleTemplateList_To_management_ClusterRoleTemplateList is an autogenerated conversion function. +func Convert_v1_ClusterRoleTemplateList_To_management_ClusterRoleTemplateList(in *ClusterRoleTemplateList, out *management.ClusterRoleTemplateList, s conversion.Scope) error { + return autoConvert_v1_ClusterRoleTemplateList_To_management_ClusterRoleTemplateList(in, out, s) } -func autoConvert_management_AppStatus_To_v1_AppStatus(in *management.AppStatus, out *AppStatus, s conversion.Scope) error { - out.AppStatus = in.AppStatus +func autoConvert_management_ClusterRoleTemplateList_To_v1_ClusterRoleTemplateList(in *management.ClusterRoleTemplateList, out *ClusterRoleTemplateList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ClusterRoleTemplate)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_AppStatus_To_v1_AppStatus is an autogenerated conversion function. -func Convert_management_AppStatus_To_v1_AppStatus(in *management.AppStatus, out *AppStatus, s conversion.Scope) error { - return autoConvert_management_AppStatus_To_v1_AppStatus(in, out, s) +// Convert_management_ClusterRoleTemplateList_To_v1_ClusterRoleTemplateList is an autogenerated conversion function. +func Convert_management_ClusterRoleTemplateList_To_v1_ClusterRoleTemplateList(in *management.ClusterRoleTemplateList, out *ClusterRoleTemplateList, s conversion.Scope) error { + return autoConvert_management_ClusterRoleTemplateList_To_v1_ClusterRoleTemplateList(in, out, s) } -func autoConvert_v1_Apps_To_management_Apps(in *Apps, out *management.Apps, s conversion.Scope) error { - out.NoDefault = in.NoDefault - out.Repositories = *(*[]storagev1.HelmChartRepository)(unsafe.Pointer(&in.Repositories)) - out.PredefinedApps = *(*[]management.PredefinedApp)(unsafe.Pointer(&in.PredefinedApps)) +func autoConvert_v1_ClusterRoleTemplateSpec_To_management_ClusterRoleTemplateSpec(in *ClusterRoleTemplateSpec, out *management.ClusterRoleTemplateSpec, s conversion.Scope) error { + out.ClusterRoleTemplateSpec = in.ClusterRoleTemplateSpec return nil } -// Convert_v1_Apps_To_management_Apps is an autogenerated conversion function. -func Convert_v1_Apps_To_management_Apps(in *Apps, out *management.Apps, s conversion.Scope) error { - return autoConvert_v1_Apps_To_management_Apps(in, out, s) +// Convert_v1_ClusterRoleTemplateSpec_To_management_ClusterRoleTemplateSpec is an autogenerated conversion function. +func Convert_v1_ClusterRoleTemplateSpec_To_management_ClusterRoleTemplateSpec(in *ClusterRoleTemplateSpec, out *management.ClusterRoleTemplateSpec, s conversion.Scope) error { + return autoConvert_v1_ClusterRoleTemplateSpec_To_management_ClusterRoleTemplateSpec(in, out, s) } -func autoConvert_management_Apps_To_v1_Apps(in *management.Apps, out *Apps, s conversion.Scope) error { - out.NoDefault = in.NoDefault - out.Repositories = *(*[]storagev1.HelmChartRepository)(unsafe.Pointer(&in.Repositories)) - out.PredefinedApps = *(*[]PredefinedApp)(unsafe.Pointer(&in.PredefinedApps)) +func autoConvert_management_ClusterRoleTemplateSpec_To_v1_ClusterRoleTemplateSpec(in *management.ClusterRoleTemplateSpec, out *ClusterRoleTemplateSpec, s conversion.Scope) error { + out.ClusterRoleTemplateSpec = in.ClusterRoleTemplateSpec return nil } -// Convert_management_Apps_To_v1_Apps is an autogenerated conversion function. -func Convert_management_Apps_To_v1_Apps(in *management.Apps, out *Apps, s conversion.Scope) error { - return autoConvert_management_Apps_To_v1_Apps(in, out, s) +// Convert_management_ClusterRoleTemplateSpec_To_v1_ClusterRoleTemplateSpec is an autogenerated conversion function. +func Convert_management_ClusterRoleTemplateSpec_To_v1_ClusterRoleTemplateSpec(in *management.ClusterRoleTemplateSpec, out *ClusterRoleTemplateSpec, s conversion.Scope) error { + return autoConvert_management_ClusterRoleTemplateSpec_To_v1_ClusterRoleTemplateSpec(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 - out.Level = in.Level - if err := Convert_v1_AuditPolicy_To_management_AuditPolicy(&in.Policy, &out.Policy, s); err != nil { - return err - } - out.DataStoreEndpoint = in.DataStoreEndpoint - out.DataStoreMaxAge = (*int)(unsafe.Pointer(in.DataStoreMaxAge)) - out.Path = in.Path - out.MaxAge = in.MaxAge - out.MaxBackups = in.MaxBackups - out.MaxSize = in.MaxSize - out.Compress = in.Compress +func autoConvert_v1_ClusterRoleTemplateStatus_To_management_ClusterRoleTemplateStatus(in *ClusterRoleTemplateStatus, out *management.ClusterRoleTemplateStatus, s conversion.Scope) error { + out.ClusterRoleTemplateStatus = in.ClusterRoleTemplateStatus + out.Clusters = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Clusters)) return nil } -// Convert_v1_Audit_To_management_Audit is an autogenerated conversion function. -func Convert_v1_Audit_To_management_Audit(in *Audit, out *management.Audit, s conversion.Scope) error { - return autoConvert_v1_Audit_To_management_Audit(in, out, s) +// Convert_v1_ClusterRoleTemplateStatus_To_management_ClusterRoleTemplateStatus is an autogenerated conversion function. +func Convert_v1_ClusterRoleTemplateStatus_To_management_ClusterRoleTemplateStatus(in *ClusterRoleTemplateStatus, out *management.ClusterRoleTemplateStatus, s conversion.Scope) error { + return autoConvert_v1_ClusterRoleTemplateStatus_To_management_ClusterRoleTemplateStatus(in, out, s) } -func autoConvert_management_Audit_To_v1_Audit(in *management.Audit, out *Audit, s conversion.Scope) error { - out.Enabled = in.Enabled - out.DisableAgentSyncBack = in.DisableAgentSyncBack - out.Level = in.Level - if err := Convert_management_AuditPolicy_To_v1_AuditPolicy(&in.Policy, &out.Policy, s); err != nil { - return err - } - out.DataStoreEndpoint = in.DataStoreEndpoint - out.DataStoreMaxAge = (*int)(unsafe.Pointer(in.DataStoreMaxAge)) - out.Path = in.Path - out.MaxAge = in.MaxAge - out.MaxBackups = in.MaxBackups - out.MaxSize = in.MaxSize - out.Compress = in.Compress +func autoConvert_management_ClusterRoleTemplateStatus_To_v1_ClusterRoleTemplateStatus(in *management.ClusterRoleTemplateStatus, out *ClusterRoleTemplateStatus, s conversion.Scope) error { + out.ClusterRoleTemplateStatus = in.ClusterRoleTemplateStatus + out.Clusters = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Clusters)) return nil } -// Convert_management_Audit_To_v1_Audit is an autogenerated conversion function. -func Convert_management_Audit_To_v1_Audit(in *management.Audit, out *Audit, s conversion.Scope) error { - return autoConvert_management_Audit_To_v1_Audit(in, out, s) +// Convert_management_ClusterRoleTemplateStatus_To_v1_ClusterRoleTemplateStatus is an autogenerated conversion function. +func Convert_management_ClusterRoleTemplateStatus_To_v1_ClusterRoleTemplateStatus(in *management.ClusterRoleTemplateStatus, out *ClusterRoleTemplateStatus, s conversion.Scope) error { + return autoConvert_management_ClusterRoleTemplateStatus_To_v1_ClusterRoleTemplateStatus(in, out, s) } -func autoConvert_v1_AuditPolicy_To_management_AuditPolicy(in *AuditPolicy, out *management.AuditPolicy, s conversion.Scope) error { - out.Rules = *(*[]management.AuditPolicyRule)(unsafe.Pointer(&in.Rules)) - out.OmitStages = *(*[]auditv1.Stage)(unsafe.Pointer(&in.OmitStages)) +func autoConvert_v1_ClusterSpec_To_management_ClusterSpec(in *ClusterSpec, out *management.ClusterSpec, s conversion.Scope) error { + out.ClusterSpec = in.ClusterSpec return nil } -// Convert_v1_AuditPolicy_To_management_AuditPolicy is an autogenerated conversion function. -func Convert_v1_AuditPolicy_To_management_AuditPolicy(in *AuditPolicy, out *management.AuditPolicy, s conversion.Scope) error { - return autoConvert_v1_AuditPolicy_To_management_AuditPolicy(in, out, s) +// Convert_v1_ClusterSpec_To_management_ClusterSpec is an autogenerated conversion function. +func Convert_v1_ClusterSpec_To_management_ClusterSpec(in *ClusterSpec, out *management.ClusterSpec, s conversion.Scope) error { + return autoConvert_v1_ClusterSpec_To_management_ClusterSpec(in, out, s) } -func autoConvert_management_AuditPolicy_To_v1_AuditPolicy(in *management.AuditPolicy, out *AuditPolicy, s conversion.Scope) error { - out.Rules = *(*[]AuditPolicyRule)(unsafe.Pointer(&in.Rules)) - out.OmitStages = *(*[]auditv1.Stage)(unsafe.Pointer(&in.OmitStages)) +func autoConvert_management_ClusterSpec_To_v1_ClusterSpec(in *management.ClusterSpec, out *ClusterSpec, s conversion.Scope) error { + out.ClusterSpec = in.ClusterSpec return nil } -// Convert_management_AuditPolicy_To_v1_AuditPolicy is an autogenerated conversion function. -func Convert_management_AuditPolicy_To_v1_AuditPolicy(in *management.AuditPolicy, out *AuditPolicy, s conversion.Scope) error { - return autoConvert_management_AuditPolicy_To_v1_AuditPolicy(in, out, s) +// Convert_management_ClusterSpec_To_v1_ClusterSpec is an autogenerated conversion function. +func Convert_management_ClusterSpec_To_v1_ClusterSpec(in *management.ClusterSpec, out *ClusterSpec, s conversion.Scope) error { + return autoConvert_management_ClusterSpec_To_v1_ClusterSpec(in, out, s) } -func autoConvert_v1_AuditPolicyRule_To_management_AuditPolicyRule(in *AuditPolicyRule, out *management.AuditPolicyRule, s conversion.Scope) error { - out.Level = auditv1.Level(in.Level) - out.Users = *(*[]string)(unsafe.Pointer(&in.Users)) - out.UserGroups = *(*[]string)(unsafe.Pointer(&in.UserGroups)) - out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) - out.Resources = *(*[]management.GroupResources)(unsafe.Pointer(&in.Resources)) - out.Namespaces = *(*[]string)(unsafe.Pointer(&in.Namespaces)) - out.NonResourceURLs = *(*[]string)(unsafe.Pointer(&in.NonResourceURLs)) - out.OmitStages = *(*[]auditv1.Stage)(unsafe.Pointer(&in.OmitStages)) - out.RequestTargets = *(*[]auditv1.RequestTarget)(unsafe.Pointer(&in.RequestTargets)) - out.Clusters = *(*[]string)(unsafe.Pointer(&in.Clusters)) +func autoConvert_v1_ClusterStatus_To_management_ClusterStatus(in *ClusterStatus, out *management.ClusterStatus, s conversion.Scope) error { + out.ClusterStatus = in.ClusterStatus + out.Online = in.Online return nil } - -// Convert_v1_AuditPolicyRule_To_management_AuditPolicyRule is an autogenerated conversion function. -func Convert_v1_AuditPolicyRule_To_management_AuditPolicyRule(in *AuditPolicyRule, out *management.AuditPolicyRule, s conversion.Scope) error { - return autoConvert_v1_AuditPolicyRule_To_management_AuditPolicyRule(in, out, s) + +// Convert_v1_ClusterStatus_To_management_ClusterStatus is an autogenerated conversion function. +func Convert_v1_ClusterStatus_To_management_ClusterStatus(in *ClusterStatus, out *management.ClusterStatus, s conversion.Scope) error { + return autoConvert_v1_ClusterStatus_To_management_ClusterStatus(in, out, s) } -func autoConvert_management_AuditPolicyRule_To_v1_AuditPolicyRule(in *management.AuditPolicyRule, out *AuditPolicyRule, s conversion.Scope) error { - out.Level = auditv1.Level(in.Level) - out.Users = *(*[]string)(unsafe.Pointer(&in.Users)) - out.UserGroups = *(*[]string)(unsafe.Pointer(&in.UserGroups)) - out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) - out.Resources = *(*[]GroupResources)(unsafe.Pointer(&in.Resources)) - out.Namespaces = *(*[]string)(unsafe.Pointer(&in.Namespaces)) - out.NonResourceURLs = *(*[]string)(unsafe.Pointer(&in.NonResourceURLs)) - out.OmitStages = *(*[]auditv1.Stage)(unsafe.Pointer(&in.OmitStages)) - out.RequestTargets = *(*[]auditv1.RequestTarget)(unsafe.Pointer(&in.RequestTargets)) - out.Clusters = *(*[]string)(unsafe.Pointer(&in.Clusters)) +func autoConvert_management_ClusterStatus_To_v1_ClusterStatus(in *management.ClusterStatus, out *ClusterStatus, s conversion.Scope) error { + out.ClusterStatus = in.ClusterStatus + out.Online = in.Online return nil } -// Convert_management_AuditPolicyRule_To_v1_AuditPolicyRule is an autogenerated conversion function. -func Convert_management_AuditPolicyRule_To_v1_AuditPolicyRule(in *management.AuditPolicyRule, out *AuditPolicyRule, s conversion.Scope) error { - return autoConvert_management_AuditPolicyRule_To_v1_AuditPolicyRule(in, out, s) +// Convert_management_ClusterStatus_To_v1_ClusterStatus is an autogenerated conversion function. +func Convert_management_ClusterStatus_To_v1_ClusterStatus(in *management.ClusterStatus, out *ClusterStatus, s conversion.Scope) error { + return autoConvert_management_ClusterStatus_To_v1_ClusterStatus(in, out, s) } -func autoConvert_v1_Authentication_To_management_Authentication(in *Authentication, out *management.Authentication, s conversion.Scope) error { - if err := Convert_v1_Connector_To_management_Connector(&in.Connector, &out.Connector, s); err != nil { +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 { + return err + } + if err := Convert_v1_ConfigStatus_To_management_ConfigStatus(&in.Status, &out.Status, s); err != nil { return err } - out.Rancher = (*management.AuthenticationRancher)(unsafe.Pointer(in.Rancher)) - out.Password = (*management.AuthenticationPassword)(unsafe.Pointer(in.Password)) - out.Connectors = *(*[]management.ConnectorWithName)(unsafe.Pointer(&in.Connectors)) - out.DisableTeamCreation = in.DisableTeamCreation - out.DisableUserCreation = in.DisableUserCreation - out.AccessKeyMaxTTLSeconds = in.AccessKeyMaxTTLSeconds - out.LoginAccessKeyTTLSeconds = (*int64)(unsafe.Pointer(in.LoginAccessKeyTTLSeconds)) - out.CustomHttpHeaders = *(*map[string]string)(unsafe.Pointer(&in.CustomHttpHeaders)) - out.GroupsFilters = *(*[]string)(unsafe.Pointer(&in.GroupsFilters)) return nil } -// Convert_v1_Authentication_To_management_Authentication is an autogenerated conversion function. -func Convert_v1_Authentication_To_management_Authentication(in *Authentication, out *management.Authentication, s conversion.Scope) error { - return autoConvert_v1_Authentication_To_management_Authentication(in, out, s) +// Convert_v1_Config_To_management_Config is an autogenerated conversion function. +func Convert_v1_Config_To_management_Config(in *Config, out *management.Config, s conversion.Scope) error { + return autoConvert_v1_Config_To_management_Config(in, out, s) } -func autoConvert_management_Authentication_To_v1_Authentication(in *management.Authentication, out *Authentication, s conversion.Scope) error { - if err := Convert_management_Connector_To_v1_Connector(&in.Connector, &out.Connector, s); err != nil { +func autoConvert_management_Config_To_v1_Config(in *management.Config, out *Config, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_ConfigSpec_To_v1_ConfigSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_ConfigStatus_To_v1_ConfigStatus(&in.Status, &out.Status, s); err != nil { return err } - out.Rancher = (*AuthenticationRancher)(unsafe.Pointer(in.Rancher)) - out.Password = (*AuthenticationPassword)(unsafe.Pointer(in.Password)) - out.Connectors = *(*[]ConnectorWithName)(unsafe.Pointer(&in.Connectors)) - out.DisableTeamCreation = in.DisableTeamCreation - out.DisableUserCreation = in.DisableUserCreation - out.AccessKeyMaxTTLSeconds = in.AccessKeyMaxTTLSeconds - out.LoginAccessKeyTTLSeconds = (*int64)(unsafe.Pointer(in.LoginAccessKeyTTLSeconds)) - out.CustomHttpHeaders = *(*map[string]string)(unsafe.Pointer(&in.CustomHttpHeaders)) - out.GroupsFilters = *(*[]string)(unsafe.Pointer(&in.GroupsFilters)) return nil } -// Convert_management_Authentication_To_v1_Authentication is an autogenerated conversion function. -func Convert_management_Authentication_To_v1_Authentication(in *management.Authentication, out *Authentication, s conversion.Scope) error { - return autoConvert_management_Authentication_To_v1_Authentication(in, out, s) +// Convert_management_Config_To_v1_Config is an autogenerated conversion function. +func Convert_management_Config_To_v1_Config(in *management.Config, out *Config, s conversion.Scope) error { + return autoConvert_management_Config_To_v1_Config(in, out, s) } -func autoConvert_v1_AuthenticationGithub_To_management_AuthenticationGithub(in *AuthenticationGithub, out *management.AuthenticationGithub, s conversion.Scope) error { - out.ClientID = in.ClientID - out.ClientSecret = in.ClientSecret - out.RedirectURI = in.RedirectURI - out.Orgs = *(*[]management.AuthenticationGithubOrg)(unsafe.Pointer(&in.Orgs)) - out.HostName = in.HostName - out.RootCA = in.RootCA +func autoConvert_v1_ConfigList_To_management_ConfigList(in *ConfigList, out *management.ConfigList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.Config)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_AuthenticationGithub_To_management_AuthenticationGithub is an autogenerated conversion function. -func Convert_v1_AuthenticationGithub_To_management_AuthenticationGithub(in *AuthenticationGithub, out *management.AuthenticationGithub, s conversion.Scope) error { - return autoConvert_v1_AuthenticationGithub_To_management_AuthenticationGithub(in, out, s) +// Convert_v1_ConfigList_To_management_ConfigList is an autogenerated conversion function. +func Convert_v1_ConfigList_To_management_ConfigList(in *ConfigList, out *management.ConfigList, s conversion.Scope) error { + return autoConvert_v1_ConfigList_To_management_ConfigList(in, out, s) } -func autoConvert_management_AuthenticationGithub_To_v1_AuthenticationGithub(in *management.AuthenticationGithub, out *AuthenticationGithub, s conversion.Scope) error { - out.ClientID = in.ClientID - out.ClientSecret = in.ClientSecret - out.RedirectURI = in.RedirectURI - out.Orgs = *(*[]AuthenticationGithubOrg)(unsafe.Pointer(&in.Orgs)) - out.HostName = in.HostName - out.RootCA = in.RootCA +func autoConvert_management_ConfigList_To_v1_ConfigList(in *management.ConfigList, out *ConfigList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]Config)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_AuthenticationGithub_To_v1_AuthenticationGithub is an autogenerated conversion function. -func Convert_management_AuthenticationGithub_To_v1_AuthenticationGithub(in *management.AuthenticationGithub, out *AuthenticationGithub, s conversion.Scope) error { - return autoConvert_management_AuthenticationGithub_To_v1_AuthenticationGithub(in, out, s) +// Convert_management_ConfigList_To_v1_ConfigList is an autogenerated conversion function. +func Convert_management_ConfigList_To_v1_ConfigList(in *management.ConfigList, out *ConfigList, s conversion.Scope) error { + return autoConvert_management_ConfigList_To_v1_ConfigList(in, out, s) } -func autoConvert_v1_AuthenticationGithubOrg_To_management_AuthenticationGithubOrg(in *AuthenticationGithubOrg, out *management.AuthenticationGithubOrg, s conversion.Scope) error { - out.Name = in.Name - out.Teams = *(*[]string)(unsafe.Pointer(&in.Teams)) +func autoConvert_v1_ConfigSpec_To_management_ConfigSpec(in *ConfigSpec, out *management.ConfigSpec, s conversion.Scope) error { + out.Raw = *(*[]byte)(unsafe.Pointer(&in.Raw)) return nil } -// Convert_v1_AuthenticationGithubOrg_To_management_AuthenticationGithubOrg is an autogenerated conversion function. -func Convert_v1_AuthenticationGithubOrg_To_management_AuthenticationGithubOrg(in *AuthenticationGithubOrg, out *management.AuthenticationGithubOrg, s conversion.Scope) error { - return autoConvert_v1_AuthenticationGithubOrg_To_management_AuthenticationGithubOrg(in, out, s) +// Convert_v1_ConfigSpec_To_management_ConfigSpec is an autogenerated conversion function. +func Convert_v1_ConfigSpec_To_management_ConfigSpec(in *ConfigSpec, out *management.ConfigSpec, s conversion.Scope) error { + return autoConvert_v1_ConfigSpec_To_management_ConfigSpec(in, out, s) } -func autoConvert_management_AuthenticationGithubOrg_To_v1_AuthenticationGithubOrg(in *management.AuthenticationGithubOrg, out *AuthenticationGithubOrg, s conversion.Scope) error { - out.Name = in.Name - out.Teams = *(*[]string)(unsafe.Pointer(&in.Teams)) +func autoConvert_management_ConfigSpec_To_v1_ConfigSpec(in *management.ConfigSpec, out *ConfigSpec, s conversion.Scope) error { + out.Raw = *(*[]byte)(unsafe.Pointer(&in.Raw)) return nil } -// Convert_management_AuthenticationGithubOrg_To_v1_AuthenticationGithubOrg is an autogenerated conversion function. -func Convert_management_AuthenticationGithubOrg_To_v1_AuthenticationGithubOrg(in *management.AuthenticationGithubOrg, out *AuthenticationGithubOrg, s conversion.Scope) error { - return autoConvert_management_AuthenticationGithubOrg_To_v1_AuthenticationGithubOrg(in, out, s) +// Convert_management_ConfigSpec_To_v1_ConfigSpec is an autogenerated conversion function. +func Convert_management_ConfigSpec_To_v1_ConfigSpec(in *management.ConfigSpec, out *ConfigSpec, s conversion.Scope) error { + return autoConvert_management_ConfigSpec_To_v1_ConfigSpec(in, out, s) } -func autoConvert_v1_AuthenticationGitlab_To_management_AuthenticationGitlab(in *AuthenticationGitlab, out *management.AuthenticationGitlab, s conversion.Scope) error { - out.ClientID = in.ClientID - out.ClientSecret = in.ClientSecret - out.RedirectURI = in.RedirectURI - out.BaseURL = in.BaseURL - out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) +func autoConvert_v1_ConfigStatus_To_management_ConfigStatus(in *ConfigStatus, out *management.ConfigStatus, s conversion.Scope) error { + if err := Convert_v1_Authentication_To_management_Authentication(&in.Authentication, &out.Authentication, s); err != nil { + return err + } + out.OIDC = (*management.OIDC)(unsafe.Pointer(in.OIDC)) + out.Apps = (*management.Apps)(unsafe.Pointer(in.Apps)) + out.Audit = (*management.Audit)(unsafe.Pointer(in.Audit)) + out.LoftHost = in.LoftHost + out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) + out.DevPodSubDomain = in.DevPodSubDomain + out.UISettings = (*uiv1.UISettingsConfig)(unsafe.Pointer(in.UISettings)) + out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) + out.DisableConfigEndpoint = in.DisableConfigEndpoint + out.AuthenticateVersionEndpoint = in.AuthenticateVersionEndpoint + out.Cloud = (*management.Cloud)(unsafe.Pointer(in.Cloud)) + out.CostControl = (*management.CostControl)(unsafe.Pointer(in.CostControl)) + out.PlatformDB = (*management.PlatformDB)(unsafe.Pointer(in.PlatformDB)) + out.ImageBuilder = (*management.ImageBuilder)(unsafe.Pointer(in.ImageBuilder)) return nil } -// Convert_v1_AuthenticationGitlab_To_management_AuthenticationGitlab is an autogenerated conversion function. -func Convert_v1_AuthenticationGitlab_To_management_AuthenticationGitlab(in *AuthenticationGitlab, out *management.AuthenticationGitlab, s conversion.Scope) error { - return autoConvert_v1_AuthenticationGitlab_To_management_AuthenticationGitlab(in, out, s) +// Convert_v1_ConfigStatus_To_management_ConfigStatus is an autogenerated conversion function. +func Convert_v1_ConfigStatus_To_management_ConfigStatus(in *ConfigStatus, out *management.ConfigStatus, s conversion.Scope) error { + return autoConvert_v1_ConfigStatus_To_management_ConfigStatus(in, out, s) } -func autoConvert_management_AuthenticationGitlab_To_v1_AuthenticationGitlab(in *management.AuthenticationGitlab, out *AuthenticationGitlab, s conversion.Scope) error { - out.ClientID = in.ClientID - out.ClientSecret = in.ClientSecret - out.RedirectURI = in.RedirectURI - out.BaseURL = in.BaseURL - out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) +func autoConvert_management_ConfigStatus_To_v1_ConfigStatus(in *management.ConfigStatus, out *ConfigStatus, s conversion.Scope) error { + if err := Convert_management_Authentication_To_v1_Authentication(&in.Authentication, &out.Authentication, s); err != nil { + return err + } + out.OIDC = (*OIDC)(unsafe.Pointer(in.OIDC)) + out.Apps = (*Apps)(unsafe.Pointer(in.Apps)) + out.Audit = (*Audit)(unsafe.Pointer(in.Audit)) + out.LoftHost = in.LoftHost + out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) + out.DevPodSubDomain = in.DevPodSubDomain + out.UISettings = (*uiv1.UISettingsConfig)(unsafe.Pointer(in.UISettings)) + out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) + out.DisableConfigEndpoint = in.DisableConfigEndpoint + out.AuthenticateVersionEndpoint = in.AuthenticateVersionEndpoint + out.Cloud = (*Cloud)(unsafe.Pointer(in.Cloud)) + out.CostControl = (*CostControl)(unsafe.Pointer(in.CostControl)) + out.PlatformDB = (*PlatformDB)(unsafe.Pointer(in.PlatformDB)) + out.ImageBuilder = (*ImageBuilder)(unsafe.Pointer(in.ImageBuilder)) return nil } -// Convert_management_AuthenticationGitlab_To_v1_AuthenticationGitlab is an autogenerated conversion function. -func Convert_management_AuthenticationGitlab_To_v1_AuthenticationGitlab(in *management.AuthenticationGitlab, out *AuthenticationGitlab, s conversion.Scope) error { - return autoConvert_management_AuthenticationGitlab_To_v1_AuthenticationGitlab(in, out, s) +// Convert_management_ConfigStatus_To_v1_ConfigStatus is an autogenerated conversion function. +func Convert_management_ConfigStatus_To_v1_ConfigStatus(in *management.ConfigStatus, out *ConfigStatus, s conversion.Scope) error { + return autoConvert_management_ConfigStatus_To_v1_ConfigStatus(in, out, s) } -func autoConvert_v1_AuthenticationGoogle_To_management_AuthenticationGoogle(in *AuthenticationGoogle, out *management.AuthenticationGoogle, s conversion.Scope) error { - out.ClientID = in.ClientID - out.ClientSecret = in.ClientSecret - out.RedirectURI = in.RedirectURI - out.Scopes = *(*[]string)(unsafe.Pointer(&in.Scopes)) - out.HostedDomains = *(*[]string)(unsafe.Pointer(&in.HostedDomains)) - out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) - out.ServiceAccountFilePath = in.ServiceAccountFilePath - out.AdminEmail = in.AdminEmail +func autoConvert_v1_Connector_To_management_Connector(in *Connector, out *management.Connector, s conversion.Scope) error { + out.OIDC = (*management.AuthenticationOIDC)(unsafe.Pointer(in.OIDC)) + out.Github = (*management.AuthenticationGithub)(unsafe.Pointer(in.Github)) + out.Gitlab = (*management.AuthenticationGitlab)(unsafe.Pointer(in.Gitlab)) + out.Google = (*management.AuthenticationGoogle)(unsafe.Pointer(in.Google)) + out.Microsoft = (*management.AuthenticationMicrosoft)(unsafe.Pointer(in.Microsoft)) + out.SAML = (*management.AuthenticationSAML)(unsafe.Pointer(in.SAML)) return nil } -// Convert_v1_AuthenticationGoogle_To_management_AuthenticationGoogle is an autogenerated conversion function. -func Convert_v1_AuthenticationGoogle_To_management_AuthenticationGoogle(in *AuthenticationGoogle, out *management.AuthenticationGoogle, s conversion.Scope) error { - return autoConvert_v1_AuthenticationGoogle_To_management_AuthenticationGoogle(in, out, s) +// Convert_v1_Connector_To_management_Connector is an autogenerated conversion function. +func Convert_v1_Connector_To_management_Connector(in *Connector, out *management.Connector, s conversion.Scope) error { + return autoConvert_v1_Connector_To_management_Connector(in, out, s) } -func autoConvert_management_AuthenticationGoogle_To_v1_AuthenticationGoogle(in *management.AuthenticationGoogle, out *AuthenticationGoogle, s conversion.Scope) error { - out.ClientID = in.ClientID - out.ClientSecret = in.ClientSecret - out.RedirectURI = in.RedirectURI - out.Scopes = *(*[]string)(unsafe.Pointer(&in.Scopes)) - out.HostedDomains = *(*[]string)(unsafe.Pointer(&in.HostedDomains)) - out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) - out.ServiceAccountFilePath = in.ServiceAccountFilePath - out.AdminEmail = in.AdminEmail +func autoConvert_management_Connector_To_v1_Connector(in *management.Connector, out *Connector, s conversion.Scope) error { + out.OIDC = (*AuthenticationOIDC)(unsafe.Pointer(in.OIDC)) + out.Github = (*AuthenticationGithub)(unsafe.Pointer(in.Github)) + out.Gitlab = (*AuthenticationGitlab)(unsafe.Pointer(in.Gitlab)) + out.Google = (*AuthenticationGoogle)(unsafe.Pointer(in.Google)) + out.Microsoft = (*AuthenticationMicrosoft)(unsafe.Pointer(in.Microsoft)) + out.SAML = (*AuthenticationSAML)(unsafe.Pointer(in.SAML)) return nil } -// Convert_management_AuthenticationGoogle_To_v1_AuthenticationGoogle is an autogenerated conversion function. -func Convert_management_AuthenticationGoogle_To_v1_AuthenticationGoogle(in *management.AuthenticationGoogle, out *AuthenticationGoogle, s conversion.Scope) error { - return autoConvert_management_AuthenticationGoogle_To_v1_AuthenticationGoogle(in, out, s) +// Convert_management_Connector_To_v1_Connector is an autogenerated conversion function. +func Convert_management_Connector_To_v1_Connector(in *management.Connector, out *Connector, s conversion.Scope) error { + return autoConvert_management_Connector_To_v1_Connector(in, out, s) } -func autoConvert_v1_AuthenticationMicrosoft_To_management_AuthenticationMicrosoft(in *AuthenticationMicrosoft, out *management.AuthenticationMicrosoft, s conversion.Scope) error { - out.ClientID = in.ClientID - out.ClientSecret = in.ClientSecret - out.RedirectURI = in.RedirectURI - out.Tenant = in.Tenant - out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) - out.OnlySecurityGroups = in.OnlySecurityGroups - out.UseGroupsAsWhitelist = in.UseGroupsAsWhitelist +func autoConvert_v1_ConnectorWithName_To_management_ConnectorWithName(in *ConnectorWithName, out *management.ConnectorWithName, s conversion.Scope) error { + out.ID = in.ID + out.DisplayName = in.DisplayName + if err := Convert_v1_Connector_To_management_Connector(&in.Connector, &out.Connector, s); err != nil { + return err + } return nil } -// Convert_v1_AuthenticationMicrosoft_To_management_AuthenticationMicrosoft is an autogenerated conversion function. -func Convert_v1_AuthenticationMicrosoft_To_management_AuthenticationMicrosoft(in *AuthenticationMicrosoft, out *management.AuthenticationMicrosoft, s conversion.Scope) error { - return autoConvert_v1_AuthenticationMicrosoft_To_management_AuthenticationMicrosoft(in, out, s) +// Convert_v1_ConnectorWithName_To_management_ConnectorWithName is an autogenerated conversion function. +func Convert_v1_ConnectorWithName_To_management_ConnectorWithName(in *ConnectorWithName, out *management.ConnectorWithName, s conversion.Scope) error { + return autoConvert_v1_ConnectorWithName_To_management_ConnectorWithName(in, out, s) } -func autoConvert_management_AuthenticationMicrosoft_To_v1_AuthenticationMicrosoft(in *management.AuthenticationMicrosoft, out *AuthenticationMicrosoft, s conversion.Scope) error { - out.ClientID = in.ClientID - out.ClientSecret = in.ClientSecret - out.RedirectURI = in.RedirectURI - out.Tenant = in.Tenant - out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) - out.OnlySecurityGroups = in.OnlySecurityGroups - out.UseGroupsAsWhitelist = in.UseGroupsAsWhitelist +func autoConvert_management_ConnectorWithName_To_v1_ConnectorWithName(in *management.ConnectorWithName, out *ConnectorWithName, s conversion.Scope) error { + out.ID = in.ID + out.DisplayName = in.DisplayName + if err := Convert_management_Connector_To_v1_Connector(&in.Connector, &out.Connector, s); err != nil { + return err + } return nil } - -// Convert_management_AuthenticationMicrosoft_To_v1_AuthenticationMicrosoft is an autogenerated conversion function. -func Convert_management_AuthenticationMicrosoft_To_v1_AuthenticationMicrosoft(in *management.AuthenticationMicrosoft, out *AuthenticationMicrosoft, s conversion.Scope) error { - return autoConvert_management_AuthenticationMicrosoft_To_v1_AuthenticationMicrosoft(in, out, s) + +// Convert_management_ConnectorWithName_To_v1_ConnectorWithName is an autogenerated conversion function. +func Convert_management_ConnectorWithName_To_v1_ConnectorWithName(in *management.ConnectorWithName, out *ConnectorWithName, s conversion.Scope) error { + return autoConvert_management_ConnectorWithName_To_v1_ConnectorWithName(in, out, s) } -func autoConvert_v1_AuthenticationOIDC_To_management_AuthenticationOIDC(in *AuthenticationOIDC, out *management.AuthenticationOIDC, s conversion.Scope) error { - out.IssuerURL = in.IssuerURL - out.ClientID = in.ClientID - out.ClientSecret = in.ClientSecret - out.RedirectURI = in.RedirectURI - out.PostLogoutRedirectURI = in.PostLogoutRedirectURI - out.CAFile = in.CAFile - out.InsecureCA = in.InsecureCA - out.PreferredUsernameClaim = in.PreferredUsernameClaim - out.LoftUsernameClaim = in.LoftUsernameClaim - out.UsernameClaim = in.UsernameClaim - out.EmailClaim = in.EmailClaim - out.UsernamePrefix = in.UsernamePrefix - out.GroupsClaim = in.GroupsClaim - out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) - out.Scopes = *(*[]string)(unsafe.Pointer(&in.Scopes)) - out.GetUserInfo = in.GetUserInfo - out.GroupsPrefix = in.GroupsPrefix - out.Type = in.Type +func autoConvert_v1_ConvertVirtualClusterConfig_To_management_ConvertVirtualClusterConfig(in *ConvertVirtualClusterConfig, out *management.ConvertVirtualClusterConfig, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_ConvertVirtualClusterConfigSpec_To_management_ConvertVirtualClusterConfigSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_ConvertVirtualClusterConfigStatus_To_management_ConvertVirtualClusterConfigStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_AuthenticationOIDC_To_management_AuthenticationOIDC is an autogenerated conversion function. -func Convert_v1_AuthenticationOIDC_To_management_AuthenticationOIDC(in *AuthenticationOIDC, out *management.AuthenticationOIDC, s conversion.Scope) error { - return autoConvert_v1_AuthenticationOIDC_To_management_AuthenticationOIDC(in, out, s) +// Convert_v1_ConvertVirtualClusterConfig_To_management_ConvertVirtualClusterConfig is an autogenerated conversion function. +func Convert_v1_ConvertVirtualClusterConfig_To_management_ConvertVirtualClusterConfig(in *ConvertVirtualClusterConfig, out *management.ConvertVirtualClusterConfig, s conversion.Scope) error { + return autoConvert_v1_ConvertVirtualClusterConfig_To_management_ConvertVirtualClusterConfig(in, out, s) } -func autoConvert_management_AuthenticationOIDC_To_v1_AuthenticationOIDC(in *management.AuthenticationOIDC, out *AuthenticationOIDC, s conversion.Scope) error { - out.IssuerURL = in.IssuerURL - out.ClientID = in.ClientID - out.ClientSecret = in.ClientSecret - out.RedirectURI = in.RedirectURI - out.PostLogoutRedirectURI = in.PostLogoutRedirectURI - out.CAFile = in.CAFile - out.InsecureCA = in.InsecureCA - out.PreferredUsernameClaim = in.PreferredUsernameClaim - out.LoftUsernameClaim = in.LoftUsernameClaim - out.UsernameClaim = in.UsernameClaim - out.EmailClaim = in.EmailClaim - out.UsernamePrefix = in.UsernamePrefix - out.GroupsClaim = in.GroupsClaim - out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) - out.Scopes = *(*[]string)(unsafe.Pointer(&in.Scopes)) - out.GetUserInfo = in.GetUserInfo - out.GroupsPrefix = in.GroupsPrefix - out.Type = in.Type +func autoConvert_management_ConvertVirtualClusterConfig_To_v1_ConvertVirtualClusterConfig(in *management.ConvertVirtualClusterConfig, out *ConvertVirtualClusterConfig, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_ConvertVirtualClusterConfigSpec_To_v1_ConvertVirtualClusterConfigSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_AuthenticationOIDC_To_v1_AuthenticationOIDC is an autogenerated conversion function. -func Convert_management_AuthenticationOIDC_To_v1_AuthenticationOIDC(in *management.AuthenticationOIDC, out *AuthenticationOIDC, s conversion.Scope) error { - return autoConvert_management_AuthenticationOIDC_To_v1_AuthenticationOIDC(in, out, s) +// Convert_management_ConvertVirtualClusterConfig_To_v1_ConvertVirtualClusterConfig is an autogenerated conversion function. +func Convert_management_ConvertVirtualClusterConfig_To_v1_ConvertVirtualClusterConfig(in *management.ConvertVirtualClusterConfig, out *ConvertVirtualClusterConfig, s conversion.Scope) error { + return autoConvert_management_ConvertVirtualClusterConfig_To_v1_ConvertVirtualClusterConfig(in, out, s) } -func autoConvert_v1_AuthenticationPassword_To_management_AuthenticationPassword(in *AuthenticationPassword, out *management.AuthenticationPassword, s conversion.Scope) error { - out.Disabled = in.Disabled +func autoConvert_v1_ConvertVirtualClusterConfigList_To_management_ConvertVirtualClusterConfigList(in *ConvertVirtualClusterConfigList, out *management.ConvertVirtualClusterConfigList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ConvertVirtualClusterConfig)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_AuthenticationPassword_To_management_AuthenticationPassword is an autogenerated conversion function. -func Convert_v1_AuthenticationPassword_To_management_AuthenticationPassword(in *AuthenticationPassword, out *management.AuthenticationPassword, s conversion.Scope) error { - return autoConvert_v1_AuthenticationPassword_To_management_AuthenticationPassword(in, out, s) +// Convert_v1_ConvertVirtualClusterConfigList_To_management_ConvertVirtualClusterConfigList is an autogenerated conversion function. +func Convert_v1_ConvertVirtualClusterConfigList_To_management_ConvertVirtualClusterConfigList(in *ConvertVirtualClusterConfigList, out *management.ConvertVirtualClusterConfigList, s conversion.Scope) error { + return autoConvert_v1_ConvertVirtualClusterConfigList_To_management_ConvertVirtualClusterConfigList(in, out, s) } -func autoConvert_management_AuthenticationPassword_To_v1_AuthenticationPassword(in *management.AuthenticationPassword, out *AuthenticationPassword, s conversion.Scope) error { - out.Disabled = in.Disabled +func autoConvert_management_ConvertVirtualClusterConfigList_To_v1_ConvertVirtualClusterConfigList(in *management.ConvertVirtualClusterConfigList, out *ConvertVirtualClusterConfigList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ConvertVirtualClusterConfig)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_AuthenticationPassword_To_v1_AuthenticationPassword is an autogenerated conversion function. -func Convert_management_AuthenticationPassword_To_v1_AuthenticationPassword(in *management.AuthenticationPassword, out *AuthenticationPassword, s conversion.Scope) error { - return autoConvert_management_AuthenticationPassword_To_v1_AuthenticationPassword(in, out, s) +// Convert_management_ConvertVirtualClusterConfigList_To_v1_ConvertVirtualClusterConfigList is an autogenerated conversion function. +func Convert_management_ConvertVirtualClusterConfigList_To_v1_ConvertVirtualClusterConfigList(in *management.ConvertVirtualClusterConfigList, out *ConvertVirtualClusterConfigList, s conversion.Scope) error { + return autoConvert_management_ConvertVirtualClusterConfigList_To_v1_ConvertVirtualClusterConfigList(in, out, s) } -func autoConvert_v1_AuthenticationRancher_To_management_AuthenticationRancher(in *AuthenticationRancher, out *management.AuthenticationRancher, s conversion.Scope) error { - out.Host = in.Host - out.BearerToken = in.BearerToken - out.Insecure = in.Insecure +func autoConvert_v1_ConvertVirtualClusterConfigSpec_To_management_ConvertVirtualClusterConfigSpec(in *ConvertVirtualClusterConfigSpec, out *management.ConvertVirtualClusterConfigSpec, s conversion.Scope) error { + out.Annotations = *(*map[string]string)(unsafe.Pointer(&in.Annotations)) + out.Distro = in.Distro + out.Values = in.Values return nil } -// Convert_v1_AuthenticationRancher_To_management_AuthenticationRancher is an autogenerated conversion function. -func Convert_v1_AuthenticationRancher_To_management_AuthenticationRancher(in *AuthenticationRancher, out *management.AuthenticationRancher, s conversion.Scope) error { - return autoConvert_v1_AuthenticationRancher_To_management_AuthenticationRancher(in, out, s) +// Convert_v1_ConvertVirtualClusterConfigSpec_To_management_ConvertVirtualClusterConfigSpec is an autogenerated conversion function. +func Convert_v1_ConvertVirtualClusterConfigSpec_To_management_ConvertVirtualClusterConfigSpec(in *ConvertVirtualClusterConfigSpec, out *management.ConvertVirtualClusterConfigSpec, s conversion.Scope) error { + return autoConvert_v1_ConvertVirtualClusterConfigSpec_To_management_ConvertVirtualClusterConfigSpec(in, out, s) } -func autoConvert_management_AuthenticationRancher_To_v1_AuthenticationRancher(in *management.AuthenticationRancher, out *AuthenticationRancher, s conversion.Scope) error { - out.Host = in.Host - out.BearerToken = in.BearerToken - out.Insecure = in.Insecure +func autoConvert_management_ConvertVirtualClusterConfigSpec_To_v1_ConvertVirtualClusterConfigSpec(in *management.ConvertVirtualClusterConfigSpec, out *ConvertVirtualClusterConfigSpec, s conversion.Scope) error { + out.Annotations = *(*map[string]string)(unsafe.Pointer(&in.Annotations)) + out.Distro = in.Distro + out.Values = in.Values return nil } -// Convert_management_AuthenticationRancher_To_v1_AuthenticationRancher is an autogenerated conversion function. -func Convert_management_AuthenticationRancher_To_v1_AuthenticationRancher(in *management.AuthenticationRancher, out *AuthenticationRancher, s conversion.Scope) error { - return autoConvert_management_AuthenticationRancher_To_v1_AuthenticationRancher(in, out, s) +// Convert_management_ConvertVirtualClusterConfigSpec_To_v1_ConvertVirtualClusterConfigSpec is an autogenerated conversion function. +func Convert_management_ConvertVirtualClusterConfigSpec_To_v1_ConvertVirtualClusterConfigSpec(in *management.ConvertVirtualClusterConfigSpec, out *ConvertVirtualClusterConfigSpec, s conversion.Scope) error { + return autoConvert_management_ConvertVirtualClusterConfigSpec_To_v1_ConvertVirtualClusterConfigSpec(in, out, s) } -func autoConvert_v1_AuthenticationSAML_To_management_AuthenticationSAML(in *AuthenticationSAML, out *management.AuthenticationSAML, s conversion.Scope) error { - out.RedirectURI = in.RedirectURI - out.SSOURL = in.SSOURL - out.CAData = *(*[]byte)(unsafe.Pointer(&in.CAData)) - out.UsernameAttr = in.UsernameAttr - out.EmailAttr = in.EmailAttr - out.GroupsAttr = in.GroupsAttr - out.CA = in.CA - out.InsecureSkipSignatureValidation = in.InsecureSkipSignatureValidation - out.EntityIssuer = in.EntityIssuer - out.SSOIssuer = in.SSOIssuer - out.GroupsDelim = in.GroupsDelim - out.AllowedGroups = *(*[]string)(unsafe.Pointer(&in.AllowedGroups)) - out.FilterGroups = in.FilterGroups - out.NameIDPolicyFormat = in.NameIDPolicyFormat +func autoConvert_v1_ConvertVirtualClusterConfigStatus_To_management_ConvertVirtualClusterConfigStatus(in *ConvertVirtualClusterConfigStatus, out *management.ConvertVirtualClusterConfigStatus, s conversion.Scope) error { + out.Values = in.Values + out.Converted = in.Converted return nil } -// Convert_v1_AuthenticationSAML_To_management_AuthenticationSAML is an autogenerated conversion function. -func Convert_v1_AuthenticationSAML_To_management_AuthenticationSAML(in *AuthenticationSAML, out *management.AuthenticationSAML, s conversion.Scope) error { - return autoConvert_v1_AuthenticationSAML_To_management_AuthenticationSAML(in, out, s) +// Convert_v1_ConvertVirtualClusterConfigStatus_To_management_ConvertVirtualClusterConfigStatus is an autogenerated conversion function. +func Convert_v1_ConvertVirtualClusterConfigStatus_To_management_ConvertVirtualClusterConfigStatus(in *ConvertVirtualClusterConfigStatus, out *management.ConvertVirtualClusterConfigStatus, s conversion.Scope) error { + return autoConvert_v1_ConvertVirtualClusterConfigStatus_To_management_ConvertVirtualClusterConfigStatus(in, out, s) } -func autoConvert_management_AuthenticationSAML_To_v1_AuthenticationSAML(in *management.AuthenticationSAML, out *AuthenticationSAML, s conversion.Scope) error { - out.RedirectURI = in.RedirectURI - out.SSOURL = in.SSOURL - out.CAData = *(*[]byte)(unsafe.Pointer(&in.CAData)) - out.UsernameAttr = in.UsernameAttr - out.EmailAttr = in.EmailAttr - out.GroupsAttr = in.GroupsAttr - out.CA = in.CA - out.InsecureSkipSignatureValidation = in.InsecureSkipSignatureValidation - out.EntityIssuer = in.EntityIssuer - out.SSOIssuer = in.SSOIssuer - out.GroupsDelim = in.GroupsDelim - out.AllowedGroups = *(*[]string)(unsafe.Pointer(&in.AllowedGroups)) - out.FilterGroups = in.FilterGroups - out.NameIDPolicyFormat = in.NameIDPolicyFormat +func autoConvert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(in *management.ConvertVirtualClusterConfigStatus, out *ConvertVirtualClusterConfigStatus, s conversion.Scope) error { + out.Values = in.Values + out.Converted = in.Converted return nil } -// Convert_management_AuthenticationSAML_To_v1_AuthenticationSAML is an autogenerated conversion function. -func Convert_management_AuthenticationSAML_To_v1_AuthenticationSAML(in *management.AuthenticationSAML, out *AuthenticationSAML, s conversion.Scope) error { - return autoConvert_management_AuthenticationSAML_To_v1_AuthenticationSAML(in, out, s) +// Convert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus is an autogenerated conversion function. +func Convert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(in *management.ConvertVirtualClusterConfigStatus, out *ConvertVirtualClusterConfigStatus, s conversion.Scope) error { + return autoConvert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(in, out, s) } -func autoConvert_v1_Backup_To_management_Backup(in *Backup, out *management.Backup, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_BackupSpec_To_management_BackupSpec(&in.Spec, &out.Spec, s); err != nil { +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_BackupStatus_To_management_BackupStatus(&in.Status, &out.Status, s); err != nil { + 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_Backup_To_management_Backup is an autogenerated conversion function. -func Convert_v1_Backup_To_management_Backup(in *Backup, out *management.Backup, s conversion.Scope) error { - return autoConvert_v1_Backup_To_management_Backup(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_Backup_To_v1_Backup(in *management.Backup, out *Backup, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_BackupSpec_To_v1_BackupSpec(&in.Spec, &out.Spec, s); err != nil { +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_BackupStatus_To_v1_BackupStatus(&in.Status, &out.Status, s); err != nil { + 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_Backup_To_v1_Backup is an autogenerated conversion function. -func Convert_management_Backup_To_v1_Backup(in *management.Backup, out *Backup, s conversion.Scope) error { - return autoConvert_management_Backup_To_v1_Backup(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_v1_BackupApply_To_management_BackupApply(in *BackupApply, out *management.BackupApply, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_BackupApplySpec_To_management_BackupApplySpec(&in.Spec, &out.Spec, s); err != nil { - return err - } +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_v1_BackupApply_To_management_BackupApply is an autogenerated conversion function. -func Convert_v1_BackupApply_To_management_BackupApply(in *BackupApply, out *management.BackupApply, s conversion.Scope) error { - return autoConvert_v1_BackupApply_To_management_BackupApply(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_management_BackupApply_To_v1_BackupApply(in *management.BackupApply, out *BackupApply, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_BackupApplySpec_To_v1_BackupApplySpec(&in.Spec, &out.Spec, s); err != nil { - return err - } +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_management_BackupApply_To_v1_BackupApply is an autogenerated conversion function. -func Convert_management_BackupApply_To_v1_BackupApply(in *management.BackupApply, out *BackupApply, s conversion.Scope) error { - return autoConvert_management_BackupApply_To_v1_BackupApply(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_v1_BackupApplyList_To_management_BackupApplyList(in *BackupApplyList, out *management.BackupApplyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.BackupApply)(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_v1_BackupApplyList_To_management_BackupApplyList is an autogenerated conversion function. -func Convert_v1_BackupApplyList_To_management_BackupApplyList(in *BackupApplyList, out *management.BackupApplyList, s conversion.Scope) error { - return autoConvert_v1_BackupApplyList_To_management_BackupApplyList(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_management_BackupApplyList_To_v1_BackupApplyList(in *management.BackupApplyList, out *BackupApplyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]BackupApply)(unsafe.Pointer(&in.Items)) +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_management_BackupApplyList_To_v1_BackupApplyList is an autogenerated conversion function. -func Convert_management_BackupApplyList_To_v1_BackupApplyList(in *management.BackupApplyList, out *BackupApplyList, s conversion.Scope) error { - return autoConvert_management_BackupApplyList_To_v1_BackupApplyList(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_url_Values_To_v1_BackupApplyOptions(in *url.Values, out *BackupApplyOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. +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_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_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_url_Values_To_v1_BackupApplyOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_BackupApplyOptions(in *url.Values, out *BackupApplyOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_BackupApplyOptions(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_v1_BackupApplySpec_To_management_BackupApplySpec(in *BackupApplySpec, out *management.BackupApplySpec, s conversion.Scope) error { - out.Raw = in.Raw +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_v1_BackupApplySpec_To_management_BackupApplySpec is an autogenerated conversion function. -func Convert_v1_BackupApplySpec_To_management_BackupApplySpec(in *BackupApplySpec, out *management.BackupApplySpec, s conversion.Scope) error { - return autoConvert_v1_BackupApplySpec_To_management_BackupApplySpec(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_management_BackupApplySpec_To_v1_BackupApplySpec(in *management.BackupApplySpec, out *BackupApplySpec, s conversion.Scope) error { - out.Raw = in.Raw +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_management_BackupApplySpec_To_v1_BackupApplySpec is an autogenerated conversion function. -func Convert_management_BackupApplySpec_To_v1_BackupApplySpec(in *management.BackupApplySpec, out *BackupApplySpec, s conversion.Scope) error { - return autoConvert_management_BackupApplySpec_To_v1_BackupApplySpec(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_v1_BackupList_To_management_BackupList(in *BackupList, out *management.BackupList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.Backup)(unsafe.Pointer(&in.Items)) +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_v1_BackupList_To_management_BackupList is an autogenerated conversion function. -func Convert_v1_BackupList_To_management_BackupList(in *BackupList, out *management.BackupList, s conversion.Scope) error { - return autoConvert_v1_BackupList_To_management_BackupList(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_management_BackupList_To_v1_BackupList(in *management.BackupList, out *BackupList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]Backup)(unsafe.Pointer(&in.Items)) +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_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_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_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_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_management_BackupList_To_v1_BackupList is an autogenerated conversion function. -func Convert_management_BackupList_To_v1_BackupList(in *management.BackupList, out *BackupList, s conversion.Scope) error { - return autoConvert_management_BackupList_To_v1_BackupList(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_v1_BackupSpec_To_management_BackupSpec(in *BackupSpec, out *management.BackupSpec, s conversion.Scope) error { +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_v1_BackupSpec_To_management_BackupSpec is an autogenerated conversion function. -func Convert_v1_BackupSpec_To_management_BackupSpec(in *BackupSpec, out *management.BackupSpec, s conversion.Scope) error { - return autoConvert_v1_BackupSpec_To_management_BackupSpec(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_management_BackupSpec_To_v1_BackupSpec(in *management.BackupSpec, out *BackupSpec, s conversion.Scope) error { +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_management_BackupSpec_To_v1_BackupSpec is an autogenerated conversion function. -func Convert_management_BackupSpec_To_v1_BackupSpec(in *management.BackupSpec, out *BackupSpec, s conversion.Scope) error { - return autoConvert_management_BackupSpec_To_v1_BackupSpec(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_BackupStatus_To_management_BackupStatus(in *BackupStatus, out *management.BackupStatus, s conversion.Scope) error { - out.RawBackup = in.RawBackup +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_BackupStatus_To_management_BackupStatus is an autogenerated conversion function. -func Convert_v1_BackupStatus_To_management_BackupStatus(in *BackupStatus, out *management.BackupStatus, s conversion.Scope) error { - return autoConvert_v1_BackupStatus_To_management_BackupStatus(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_BackupStatus_To_v1_BackupStatus(in *management.BackupStatus, out *BackupStatus, s conversion.Scope) error { - out.RawBackup = in.RawBackup +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_BackupStatus_To_v1_BackupStatus is an autogenerated conversion function. -func Convert_management_BackupStatus_To_v1_BackupStatus(in *management.BackupStatus, out *BackupStatus, s conversion.Scope) error { - return autoConvert_management_BackupStatus_To_v1_BackupStatus(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_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 { - return err - } - if err := Convert_v1_ClusterStatus_To_management_ClusterStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_v1_DatabaseConnectorStatus_To_management_DatabaseConnectorStatus(in *DatabaseConnectorStatus, out *management.DatabaseConnectorStatus, s conversion.Scope) error { return nil } -// Convert_v1_Cluster_To_management_Cluster is an autogenerated conversion function. -func Convert_v1_Cluster_To_management_Cluster(in *Cluster, out *management.Cluster, s conversion.Scope) error { - return autoConvert_v1_Cluster_To_management_Cluster(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_Cluster_To_v1_Cluster(in *management.Cluster, out *Cluster, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ClusterSpec_To_v1_ClusterSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_ClusterStatus_To_v1_ClusterStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_management_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(in *management.DatabaseConnectorStatus, out *DatabaseConnectorStatus, s conversion.Scope) error { return nil } -// Convert_management_Cluster_To_v1_Cluster is an autogenerated conversion function. -func Convert_management_Cluster_To_v1_Cluster(in *management.Cluster, out *Cluster, s conversion.Scope) error { - return autoConvert_management_Cluster_To_v1_Cluster(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_v1_ClusterAccess_To_management_ClusterAccess(in *ClusterAccess, out *management.ClusterAccess, s conversion.Scope) error { +func autoConvert_v1_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken(in *DirectClusterEndpointToken, out *management.DirectClusterEndpointToken, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ClusterAccessSpec_To_management_ClusterAccessSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_DirectClusterEndpointTokenSpec_To_management_DirectClusterEndpointTokenSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_ClusterAccessStatus_To_management_ClusterAccessStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_ClusterAccess_To_management_ClusterAccess is an autogenerated conversion function. -func Convert_v1_ClusterAccess_To_management_ClusterAccess(in *ClusterAccess, out *management.ClusterAccess, s conversion.Scope) error { - return autoConvert_v1_ClusterAccess_To_management_ClusterAccess(in, out, s) +// Convert_v1_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken is an autogenerated conversion function. +func Convert_v1_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken(in *DirectClusterEndpointToken, out *management.DirectClusterEndpointToken, s conversion.Scope) error { + return autoConvert_v1_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken(in, out, s) } -func autoConvert_management_ClusterAccess_To_v1_ClusterAccess(in *management.ClusterAccess, out *ClusterAccess, s conversion.Scope) error { +func autoConvert_management_DirectClusterEndpointToken_To_v1_DirectClusterEndpointToken(in *management.DirectClusterEndpointToken, out *DirectClusterEndpointToken, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ClusterAccessSpec_To_v1_ClusterAccessSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_DirectClusterEndpointTokenSpec_To_v1_DirectClusterEndpointTokenSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_ClusterAccessStatus_To_v1_ClusterAccessStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_ClusterAccess_To_v1_ClusterAccess is an autogenerated conversion function. -func Convert_management_ClusterAccess_To_v1_ClusterAccess(in *management.ClusterAccess, out *ClusterAccess, s conversion.Scope) error { - return autoConvert_management_ClusterAccess_To_v1_ClusterAccess(in, out, s) +// Convert_management_DirectClusterEndpointToken_To_v1_DirectClusterEndpointToken is an autogenerated conversion function. +func Convert_management_DirectClusterEndpointToken_To_v1_DirectClusterEndpointToken(in *management.DirectClusterEndpointToken, out *DirectClusterEndpointToken, s conversion.Scope) error { + return autoConvert_management_DirectClusterEndpointToken_To_v1_DirectClusterEndpointToken(in, out, s) } -func autoConvert_v1_ClusterAccessKey_To_management_ClusterAccessKey(in *ClusterAccessKey, out *management.ClusterAccessKey, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey - out.LoftHost = in.LoftHost - out.Insecure = in.Insecure - out.CaCert = in.CaCert +func autoConvert_v1_DirectClusterEndpointTokenList_To_management_DirectClusterEndpointTokenList(in *DirectClusterEndpointTokenList, out *management.DirectClusterEndpointTokenList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DirectClusterEndpointToken)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ClusterAccessKey_To_management_ClusterAccessKey is an autogenerated conversion function. -func Convert_v1_ClusterAccessKey_To_management_ClusterAccessKey(in *ClusterAccessKey, out *management.ClusterAccessKey, s conversion.Scope) error { - return autoConvert_v1_ClusterAccessKey_To_management_ClusterAccessKey(in, out, s) +// Convert_v1_DirectClusterEndpointTokenList_To_management_DirectClusterEndpointTokenList is an autogenerated conversion function. +func Convert_v1_DirectClusterEndpointTokenList_To_management_DirectClusterEndpointTokenList(in *DirectClusterEndpointTokenList, out *management.DirectClusterEndpointTokenList, s conversion.Scope) error { + return autoConvert_v1_DirectClusterEndpointTokenList_To_management_DirectClusterEndpointTokenList(in, out, s) } -func autoConvert_management_ClusterAccessKey_To_v1_ClusterAccessKey(in *management.ClusterAccessKey, out *ClusterAccessKey, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey - out.LoftHost = in.LoftHost - out.Insecure = in.Insecure - out.CaCert = in.CaCert +func autoConvert_management_DirectClusterEndpointTokenList_To_v1_DirectClusterEndpointTokenList(in *management.DirectClusterEndpointTokenList, out *DirectClusterEndpointTokenList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DirectClusterEndpointToken)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ClusterAccessKey_To_v1_ClusterAccessKey is an autogenerated conversion function. -func Convert_management_ClusterAccessKey_To_v1_ClusterAccessKey(in *management.ClusterAccessKey, out *ClusterAccessKey, s conversion.Scope) error { - return autoConvert_management_ClusterAccessKey_To_v1_ClusterAccessKey(in, out, s) +// Convert_management_DirectClusterEndpointTokenList_To_v1_DirectClusterEndpointTokenList is an autogenerated conversion function. +func Convert_management_DirectClusterEndpointTokenList_To_v1_DirectClusterEndpointTokenList(in *management.DirectClusterEndpointTokenList, out *DirectClusterEndpointTokenList, s conversion.Scope) error { + return autoConvert_management_DirectClusterEndpointTokenList_To_v1_DirectClusterEndpointTokenList(in, out, s) } -func autoConvert_v1_ClusterAccessKeyList_To_management_ClusterAccessKeyList(in *ClusterAccessKeyList, out *management.ClusterAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterAccessKey)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_DirectClusterEndpointTokenSpec_To_management_DirectClusterEndpointTokenSpec(in *DirectClusterEndpointTokenSpec, out *management.DirectClusterEndpointTokenSpec, s conversion.Scope) error { + out.TTL = in.TTL + out.Scope = (*storagev1.AccessKeyScope)(unsafe.Pointer(in.Scope)) return nil } -// Convert_v1_ClusterAccessKeyList_To_management_ClusterAccessKeyList is an autogenerated conversion function. -func Convert_v1_ClusterAccessKeyList_To_management_ClusterAccessKeyList(in *ClusterAccessKeyList, out *management.ClusterAccessKeyList, s conversion.Scope) error { - return autoConvert_v1_ClusterAccessKeyList_To_management_ClusterAccessKeyList(in, out, s) +// Convert_v1_DirectClusterEndpointTokenSpec_To_management_DirectClusterEndpointTokenSpec is an autogenerated conversion function. +func Convert_v1_DirectClusterEndpointTokenSpec_To_management_DirectClusterEndpointTokenSpec(in *DirectClusterEndpointTokenSpec, out *management.DirectClusterEndpointTokenSpec, s conversion.Scope) error { + return autoConvert_v1_DirectClusterEndpointTokenSpec_To_management_DirectClusterEndpointTokenSpec(in, out, s) } -func autoConvert_management_ClusterAccessKeyList_To_v1_ClusterAccessKeyList(in *management.ClusterAccessKeyList, out *ClusterAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ClusterAccessKey)(unsafe.Pointer(&in.Items)) +func autoConvert_management_DirectClusterEndpointTokenSpec_To_v1_DirectClusterEndpointTokenSpec(in *management.DirectClusterEndpointTokenSpec, out *DirectClusterEndpointTokenSpec, s conversion.Scope) error { + out.TTL = in.TTL + out.Scope = (*storagev1.AccessKeyScope)(unsafe.Pointer(in.Scope)) return nil } -// Convert_management_ClusterAccessKeyList_To_v1_ClusterAccessKeyList is an autogenerated conversion function. -func Convert_management_ClusterAccessKeyList_To_v1_ClusterAccessKeyList(in *management.ClusterAccessKeyList, out *ClusterAccessKeyList, s conversion.Scope) error { - return autoConvert_management_ClusterAccessKeyList_To_v1_ClusterAccessKeyList(in, out, s) +// Convert_management_DirectClusterEndpointTokenSpec_To_v1_DirectClusterEndpointTokenSpec is an autogenerated conversion function. +func Convert_management_DirectClusterEndpointTokenSpec_To_v1_DirectClusterEndpointTokenSpec(in *management.DirectClusterEndpointTokenSpec, out *DirectClusterEndpointTokenSpec, s conversion.Scope) error { + return autoConvert_management_DirectClusterEndpointTokenSpec_To_v1_DirectClusterEndpointTokenSpec(in, out, s) } -func autoConvert_v1_ClusterAccessList_To_management_ClusterAccessList(in *ClusterAccessList, out *management.ClusterAccessList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterAccess)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus(in *DirectClusterEndpointTokenStatus, out *management.DirectClusterEndpointTokenStatus, s conversion.Scope) error { + out.Token = in.Token return nil } -// Convert_v1_ClusterAccessList_To_management_ClusterAccessList is an autogenerated conversion function. -func Convert_v1_ClusterAccessList_To_management_ClusterAccessList(in *ClusterAccessList, out *management.ClusterAccessList, s conversion.Scope) error { - return autoConvert_v1_ClusterAccessList_To_management_ClusterAccessList(in, out, s) +// Convert_v1_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus is an autogenerated conversion function. +func Convert_v1_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus(in *DirectClusterEndpointTokenStatus, out *management.DirectClusterEndpointTokenStatus, s conversion.Scope) error { + return autoConvert_v1_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus(in, out, s) } -func autoConvert_management_ClusterAccessList_To_v1_ClusterAccessList(in *management.ClusterAccessList, out *ClusterAccessList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ClusterAccess)(unsafe.Pointer(&in.Items)) +func autoConvert_management_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus(in *management.DirectClusterEndpointTokenStatus, out *DirectClusterEndpointTokenStatus, s conversion.Scope) error { + out.Token = in.Token return nil } -// Convert_management_ClusterAccessList_To_v1_ClusterAccessList is an autogenerated conversion function. -func Convert_management_ClusterAccessList_To_v1_ClusterAccessList(in *management.ClusterAccessList, out *ClusterAccessList, s conversion.Scope) error { - return autoConvert_management_ClusterAccessList_To_v1_ClusterAccessList(in, out, s) +// Convert_management_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus is an autogenerated conversion function. +func Convert_management_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus(in *management.DirectClusterEndpointTokenStatus, out *DirectClusterEndpointTokenStatus, s conversion.Scope) error { + return autoConvert_management_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus(in, out, s) } -func autoConvert_v1_ClusterAccessSpec_To_management_ClusterAccessSpec(in *ClusterAccessSpec, out *management.ClusterAccessSpec, s conversion.Scope) error { - out.ClusterAccessSpec = in.ClusterAccessSpec +func autoConvert_v1_Event_To_management_Event(in *Event, out *management.Event, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_EventSpec_To_management_EventSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_EventStatus_To_management_EventStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_ClusterAccessSpec_To_management_ClusterAccessSpec is an autogenerated conversion function. -func Convert_v1_ClusterAccessSpec_To_management_ClusterAccessSpec(in *ClusterAccessSpec, out *management.ClusterAccessSpec, s conversion.Scope) error { - return autoConvert_v1_ClusterAccessSpec_To_management_ClusterAccessSpec(in, out, s) +// Convert_v1_Event_To_management_Event is an autogenerated conversion function. +func Convert_v1_Event_To_management_Event(in *Event, out *management.Event, s conversion.Scope) error { + return autoConvert_v1_Event_To_management_Event(in, out, s) } -func autoConvert_management_ClusterAccessSpec_To_v1_ClusterAccessSpec(in *management.ClusterAccessSpec, out *ClusterAccessSpec, s conversion.Scope) error { - out.ClusterAccessSpec = in.ClusterAccessSpec +func autoConvert_management_Event_To_v1_Event(in *management.Event, out *Event, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_EventSpec_To_v1_EventSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_EventStatus_To_v1_EventStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_ClusterAccessSpec_To_v1_ClusterAccessSpec is an autogenerated conversion function. -func Convert_management_ClusterAccessSpec_To_v1_ClusterAccessSpec(in *management.ClusterAccessSpec, out *ClusterAccessSpec, s conversion.Scope) error { - return autoConvert_management_ClusterAccessSpec_To_v1_ClusterAccessSpec(in, out, s) +// Convert_management_Event_To_v1_Event is an autogenerated conversion function. +func Convert_management_Event_To_v1_Event(in *management.Event, out *Event, s conversion.Scope) error { + return autoConvert_management_Event_To_v1_Event(in, out, s) } -func autoConvert_v1_ClusterAccessStatus_To_management_ClusterAccessStatus(in *ClusterAccessStatus, out *management.ClusterAccessStatus, s conversion.Scope) error { - out.ClusterAccessStatus = in.ClusterAccessStatus - out.Clusters = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Clusters)) - out.Users = *(*[]*storagev1.UserOrTeamEntity)(unsafe.Pointer(&in.Users)) - out.Teams = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Teams)) +func autoConvert_v1_EventList_To_management_EventList(in *EventList, out *management.EventList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.Event)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ClusterAccessStatus_To_management_ClusterAccessStatus is an autogenerated conversion function. -func Convert_v1_ClusterAccessStatus_To_management_ClusterAccessStatus(in *ClusterAccessStatus, out *management.ClusterAccessStatus, s conversion.Scope) error { - return autoConvert_v1_ClusterAccessStatus_To_management_ClusterAccessStatus(in, out, s) +// Convert_v1_EventList_To_management_EventList is an autogenerated conversion function. +func Convert_v1_EventList_To_management_EventList(in *EventList, out *management.EventList, s conversion.Scope) error { + return autoConvert_v1_EventList_To_management_EventList(in, out, s) } -func autoConvert_management_ClusterAccessStatus_To_v1_ClusterAccessStatus(in *management.ClusterAccessStatus, out *ClusterAccessStatus, s conversion.Scope) error { - out.ClusterAccessStatus = in.ClusterAccessStatus - out.Clusters = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Clusters)) - out.Users = *(*[]*storagev1.UserOrTeamEntity)(unsafe.Pointer(&in.Users)) - out.Teams = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Teams)) +func autoConvert_management_EventList_To_v1_EventList(in *management.EventList, out *EventList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]Event)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ClusterAccessStatus_To_v1_ClusterAccessStatus is an autogenerated conversion function. -func Convert_management_ClusterAccessStatus_To_v1_ClusterAccessStatus(in *management.ClusterAccessStatus, out *ClusterAccessStatus, s conversion.Scope) error { - return autoConvert_management_ClusterAccessStatus_To_v1_ClusterAccessStatus(in, out, s) +// Convert_management_EventList_To_v1_EventList is an autogenerated conversion function. +func Convert_management_EventList_To_v1_EventList(in *management.EventList, out *EventList, s conversion.Scope) error { + return autoConvert_management_EventList_To_v1_EventList(in, out, s) } -func autoConvert_v1_ClusterAccounts_To_management_ClusterAccounts(in *ClusterAccounts, out *management.ClusterAccounts, s conversion.Scope) error { - out.Accounts = *(*[]string)(unsafe.Pointer(&in.Accounts)) - out.Cluster = in.Cluster +func autoConvert_v1_EventSpec_To_management_EventSpec(in *EventSpec, out *management.EventSpec, s conversion.Scope) error { return nil } -// Convert_v1_ClusterAccounts_To_management_ClusterAccounts is an autogenerated conversion function. -func Convert_v1_ClusterAccounts_To_management_ClusterAccounts(in *ClusterAccounts, out *management.ClusterAccounts, s conversion.Scope) error { - return autoConvert_v1_ClusterAccounts_To_management_ClusterAccounts(in, out, s) +// Convert_v1_EventSpec_To_management_EventSpec is an autogenerated conversion function. +func Convert_v1_EventSpec_To_management_EventSpec(in *EventSpec, out *management.EventSpec, s conversion.Scope) error { + return autoConvert_v1_EventSpec_To_management_EventSpec(in, out, s) } -func autoConvert_management_ClusterAccounts_To_v1_ClusterAccounts(in *management.ClusterAccounts, out *ClusterAccounts, s conversion.Scope) error { - out.Accounts = *(*[]string)(unsafe.Pointer(&in.Accounts)) - out.Cluster = in.Cluster +func autoConvert_management_EventSpec_To_v1_EventSpec(in *management.EventSpec, out *EventSpec, s conversion.Scope) error { return nil } -// Convert_management_ClusterAccounts_To_v1_ClusterAccounts is an autogenerated conversion function. -func Convert_management_ClusterAccounts_To_v1_ClusterAccounts(in *management.ClusterAccounts, out *ClusterAccounts, s conversion.Scope) error { - return autoConvert_management_ClusterAccounts_To_v1_ClusterAccounts(in, out, s) +// Convert_management_EventSpec_To_v1_EventSpec is an autogenerated conversion function. +func Convert_management_EventSpec_To_v1_EventSpec(in *management.EventSpec, out *EventSpec, s conversion.Scope) error { + return autoConvert_management_EventSpec_To_v1_EventSpec(in, out, s) } -func autoConvert_v1_ClusterAgentConfig_To_management_ClusterAgentConfig(in *ClusterAgentConfig, out *management.ClusterAgentConfig, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCommon(&in.ClusterAgentConfigCommon, &out.ClusterAgentConfigCommon, s); err != nil { - return err - } +func autoConvert_v1_EventStatus_To_management_EventStatus(in *EventStatus, out *management.EventStatus, s conversion.Scope) error { + out.Event = in.Event return nil } -// Convert_v1_ClusterAgentConfig_To_management_ClusterAgentConfig is an autogenerated conversion function. -func Convert_v1_ClusterAgentConfig_To_management_ClusterAgentConfig(in *ClusterAgentConfig, out *management.ClusterAgentConfig, s conversion.Scope) error { - return autoConvert_v1_ClusterAgentConfig_To_management_ClusterAgentConfig(in, out, s) +// Convert_v1_EventStatus_To_management_EventStatus is an autogenerated conversion function. +func Convert_v1_EventStatus_To_management_EventStatus(in *EventStatus, out *management.EventStatus, s conversion.Scope) error { + return autoConvert_v1_EventStatus_To_management_EventStatus(in, out, s) } -func autoConvert_management_ClusterAgentConfig_To_v1_ClusterAgentConfig(in *management.ClusterAgentConfig, out *ClusterAgentConfig, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCommon(&in.ClusterAgentConfigCommon, &out.ClusterAgentConfigCommon, s); err != nil { - return err - } +func autoConvert_management_EventStatus_To_v1_EventStatus(in *management.EventStatus, out *EventStatus, s conversion.Scope) error { + out.Event = in.Event return nil } -// Convert_management_ClusterAgentConfig_To_v1_ClusterAgentConfig is an autogenerated conversion function. -func Convert_management_ClusterAgentConfig_To_v1_ClusterAgentConfig(in *management.ClusterAgentConfig, out *ClusterAgentConfig, s conversion.Scope) error { - return autoConvert_management_ClusterAgentConfig_To_v1_ClusterAgentConfig(in, out, s) +// Convert_management_EventStatus_To_v1_EventStatus is an autogenerated conversion function. +func Convert_management_EventStatus_To_v1_EventStatus(in *management.EventStatus, out *EventStatus, s conversion.Scope) error { + return autoConvert_management_EventStatus_To_v1_EventStatus(in, out, s) } -func autoConvert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCommon(in *ClusterAgentConfigCommon, out *management.ClusterAgentConfigCommon, s conversion.Scope) error { - out.Cluster = in.Cluster - out.Audit = (*management.AgentAuditConfig)(unsafe.Pointer(in.Audit)) - out.DefaultImageRegistry = in.DefaultImageRegistry - out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) - out.LoftHost = in.LoftHost - out.ProjectNamespacePrefix = in.ProjectNamespacePrefix - out.LoftInstanceID = in.LoftInstanceID - if err := Convert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec(&in.AnalyticsSpec, &out.AnalyticsSpec, s); err != nil { +func autoConvert_v1_Feature_To_management_Feature(in *Feature, out *management.Feature, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_FeatureSpec_To_management_FeatureSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_FeatureStatus_To_management_FeatureStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCommon is an autogenerated conversion function. -func Convert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCommon(in *ClusterAgentConfigCommon, out *management.ClusterAgentConfigCommon, s conversion.Scope) error { - return autoConvert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCommon(in, out, s) +// Convert_v1_Feature_To_management_Feature is an autogenerated conversion function. +func Convert_v1_Feature_To_management_Feature(in *Feature, out *management.Feature, s conversion.Scope) error { + return autoConvert_v1_Feature_To_management_Feature(in, out, s) } -func autoConvert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCommon(in *management.ClusterAgentConfigCommon, out *ClusterAgentConfigCommon, s conversion.Scope) error { - out.Cluster = in.Cluster - out.Audit = (*AgentAuditConfig)(unsafe.Pointer(in.Audit)) - out.DefaultImageRegistry = in.DefaultImageRegistry - out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) - out.LoftHost = in.LoftHost - out.ProjectNamespacePrefix = in.ProjectNamespacePrefix - out.LoftInstanceID = in.LoftInstanceID - if err := Convert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec(&in.AnalyticsSpec, &out.AnalyticsSpec, s); err != nil { +func autoConvert_management_Feature_To_v1_Feature(in *management.Feature, out *Feature, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_FeatureSpec_To_v1_FeatureSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_FeatureStatus_To_v1_FeatureStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCommon is an autogenerated conversion function. -func Convert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCommon(in *management.ClusterAgentConfigCommon, out *ClusterAgentConfigCommon, s conversion.Scope) error { - return autoConvert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCommon(in, out, s) +// Convert_management_Feature_To_v1_Feature is an autogenerated conversion function. +func Convert_management_Feature_To_v1_Feature(in *management.Feature, out *Feature, s conversion.Scope) error { + return autoConvert_management_Feature_To_v1_Feature(in, out, s) } -func autoConvert_v1_ClusterAgentConfigList_To_management_ClusterAgentConfigList(in *ClusterAgentConfigList, out *management.ClusterAgentConfigList, s conversion.Scope) error { +func autoConvert_v1_FeatureList_To_management_FeatureList(in *FeatureList, out *management.FeatureList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterAgentConfig)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.Feature)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ClusterAgentConfigList_To_management_ClusterAgentConfigList is an autogenerated conversion function. -func Convert_v1_ClusterAgentConfigList_To_management_ClusterAgentConfigList(in *ClusterAgentConfigList, out *management.ClusterAgentConfigList, s conversion.Scope) error { - return autoConvert_v1_ClusterAgentConfigList_To_management_ClusterAgentConfigList(in, out, s) +// Convert_v1_FeatureList_To_management_FeatureList is an autogenerated conversion function. +func Convert_v1_FeatureList_To_management_FeatureList(in *FeatureList, out *management.FeatureList, s conversion.Scope) error { + return autoConvert_v1_FeatureList_To_management_FeatureList(in, out, s) } -func autoConvert_management_ClusterAgentConfigList_To_v1_ClusterAgentConfigList(in *management.ClusterAgentConfigList, out *ClusterAgentConfigList, s conversion.Scope) error { +func autoConvert_management_FeatureList_To_v1_FeatureList(in *management.FeatureList, out *FeatureList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]ClusterAgentConfig)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]Feature)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ClusterAgentConfigList_To_v1_ClusterAgentConfigList is an autogenerated conversion function. -func Convert_management_ClusterAgentConfigList_To_v1_ClusterAgentConfigList(in *management.ClusterAgentConfigList, out *ClusterAgentConfigList, s conversion.Scope) error { - return autoConvert_management_ClusterAgentConfigList_To_v1_ClusterAgentConfigList(in, out, s) +// Convert_management_FeatureList_To_v1_FeatureList is an autogenerated conversion function. +func Convert_management_FeatureList_To_v1_FeatureList(in *management.FeatureList, out *FeatureList, s conversion.Scope) error { + return autoConvert_management_FeatureList_To_v1_FeatureList(in, out, s) } -func autoConvert_v1_ClusterCharts_To_management_ClusterCharts(in *ClusterCharts, out *management.ClusterCharts, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Charts = *(*[]storagev1.HelmChart)(unsafe.Pointer(&in.Charts)) - out.Busy = in.Busy +func autoConvert_v1_FeatureSpec_To_management_FeatureSpec(in *FeatureSpec, out *management.FeatureSpec, s conversion.Scope) error { return nil } -// Convert_v1_ClusterCharts_To_management_ClusterCharts is an autogenerated conversion function. -func Convert_v1_ClusterCharts_To_management_ClusterCharts(in *ClusterCharts, out *management.ClusterCharts, s conversion.Scope) error { - return autoConvert_v1_ClusterCharts_To_management_ClusterCharts(in, out, s) +// Convert_v1_FeatureSpec_To_management_FeatureSpec is an autogenerated conversion function. +func Convert_v1_FeatureSpec_To_management_FeatureSpec(in *FeatureSpec, out *management.FeatureSpec, s conversion.Scope) error { + return autoConvert_v1_FeatureSpec_To_management_FeatureSpec(in, out, s) } -func autoConvert_management_ClusterCharts_To_v1_ClusterCharts(in *management.ClusterCharts, out *ClusterCharts, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Charts = *(*[]storagev1.HelmChart)(unsafe.Pointer(&in.Charts)) - out.Busy = in.Busy +func autoConvert_management_FeatureSpec_To_v1_FeatureSpec(in *management.FeatureSpec, out *FeatureSpec, s conversion.Scope) error { return nil } -// Convert_management_ClusterCharts_To_v1_ClusterCharts is an autogenerated conversion function. -func Convert_management_ClusterCharts_To_v1_ClusterCharts(in *management.ClusterCharts, out *ClusterCharts, s conversion.Scope) error { - return autoConvert_management_ClusterCharts_To_v1_ClusterCharts(in, out, s) +// Convert_management_FeatureSpec_To_v1_FeatureSpec is an autogenerated conversion function. +func Convert_management_FeatureSpec_To_v1_FeatureSpec(in *management.FeatureSpec, out *FeatureSpec, s conversion.Scope) error { + return autoConvert_management_FeatureSpec_To_v1_FeatureSpec(in, out, s) } -func autoConvert_v1_ClusterChartsList_To_management_ClusterChartsList(in *ClusterChartsList, out *management.ClusterChartsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterCharts)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_FeatureStatus_To_management_FeatureStatus(in *FeatureStatus, out *management.FeatureStatus, s conversion.Scope) error { + out.Feature = in.Feature + out.Internal = in.Internal + out.Used = in.Used return nil } -// Convert_v1_ClusterChartsList_To_management_ClusterChartsList is an autogenerated conversion function. -func Convert_v1_ClusterChartsList_To_management_ClusterChartsList(in *ClusterChartsList, out *management.ClusterChartsList, s conversion.Scope) error { - return autoConvert_v1_ClusterChartsList_To_management_ClusterChartsList(in, out, s) +// Convert_v1_FeatureStatus_To_management_FeatureStatus is an autogenerated conversion function. +func Convert_v1_FeatureStatus_To_management_FeatureStatus(in *FeatureStatus, out *management.FeatureStatus, s conversion.Scope) error { + return autoConvert_v1_FeatureStatus_To_management_FeatureStatus(in, out, s) } -func autoConvert_management_ClusterChartsList_To_v1_ClusterChartsList(in *management.ClusterChartsList, out *ClusterChartsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ClusterCharts)(unsafe.Pointer(&in.Items)) +func autoConvert_management_FeatureStatus_To_v1_FeatureStatus(in *management.FeatureStatus, out *FeatureStatus, s conversion.Scope) error { + out.Feature = in.Feature + out.Internal = in.Internal + out.Used = in.Used return nil } -// Convert_management_ClusterChartsList_To_v1_ClusterChartsList is an autogenerated conversion function. -func Convert_management_ClusterChartsList_To_v1_ClusterChartsList(in *management.ClusterChartsList, out *ClusterChartsList, s conversion.Scope) error { - return autoConvert_management_ClusterChartsList_To_v1_ClusterChartsList(in, out, s) +// Convert_management_FeatureStatus_To_v1_FeatureStatus is an autogenerated conversion function. +func Convert_management_FeatureStatus_To_v1_FeatureStatus(in *management.FeatureStatus, out *FeatureStatus, s conversion.Scope) error { + return autoConvert_management_FeatureStatus_To_v1_FeatureStatus(in, out, s) } -func autoConvert_v1_ClusterDomain_To_management_ClusterDomain(in *ClusterDomain, out *management.ClusterDomain, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Target = in.Target - out.Domain = in.Domain +func autoConvert_v1_GroupResources_To_management_GroupResources(in *GroupResources, out *management.GroupResources, s conversion.Scope) error { + out.Group = in.Group + out.Resources = *(*[]string)(unsafe.Pointer(&in.Resources)) + out.ResourceNames = *(*[]string)(unsafe.Pointer(&in.ResourceNames)) return nil } -// Convert_v1_ClusterDomain_To_management_ClusterDomain is an autogenerated conversion function. -func Convert_v1_ClusterDomain_To_management_ClusterDomain(in *ClusterDomain, out *management.ClusterDomain, s conversion.Scope) error { - return autoConvert_v1_ClusterDomain_To_management_ClusterDomain(in, out, s) +// Convert_v1_GroupResources_To_management_GroupResources is an autogenerated conversion function. +func Convert_v1_GroupResources_To_management_GroupResources(in *GroupResources, out *management.GroupResources, s conversion.Scope) error { + return autoConvert_v1_GroupResources_To_management_GroupResources(in, out, s) } -func autoConvert_management_ClusterDomain_To_v1_ClusterDomain(in *management.ClusterDomain, out *ClusterDomain, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Target = in.Target - out.Domain = in.Domain +func autoConvert_management_GroupResources_To_v1_GroupResources(in *management.GroupResources, out *GroupResources, s conversion.Scope) error { + out.Group = in.Group + out.Resources = *(*[]string)(unsafe.Pointer(&in.Resources)) + out.ResourceNames = *(*[]string)(unsafe.Pointer(&in.ResourceNames)) return nil } -// Convert_management_ClusterDomain_To_v1_ClusterDomain is an autogenerated conversion function. -func Convert_management_ClusterDomain_To_v1_ClusterDomain(in *management.ClusterDomain, out *ClusterDomain, s conversion.Scope) error { - return autoConvert_management_ClusterDomain_To_v1_ClusterDomain(in, out, s) +// Convert_management_GroupResources_To_v1_GroupResources is an autogenerated conversion function. +func Convert_management_GroupResources_To_v1_GroupResources(in *management.GroupResources, out *GroupResources, s conversion.Scope) error { + return autoConvert_management_GroupResources_To_v1_GroupResources(in, out, s) } -func autoConvert_v1_ClusterDomainList_To_management_ClusterDomainList(in *ClusterDomainList, out *management.ClusterDomainList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterDomain)(unsafe.Pointer(&in.Items)) +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_ClusterDomainList_To_management_ClusterDomainList is an autogenerated conversion function. -func Convert_v1_ClusterDomainList_To_management_ClusterDomainList(in *ClusterDomainList, out *management.ClusterDomainList, s conversion.Scope) error { - return autoConvert_v1_ClusterDomainList_To_management_ClusterDomainList(in, out, s) +// 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_ClusterDomainList_To_v1_ClusterDomainList(in *management.ClusterDomainList, out *ClusterDomainList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ClusterDomain)(unsafe.Pointer(&in.Items)) +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_ClusterDomainList_To_v1_ClusterDomainList is an autogenerated conversion function. -func Convert_management_ClusterDomainList_To_v1_ClusterDomainList(in *management.ClusterDomainList, out *ClusterDomainList, s conversion.Scope) error { - return autoConvert_management_ClusterDomainList_To_v1_ClusterDomainList(in, out, s) +// 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_ClusterList_To_management_ClusterList(in *ClusterList, out *management.ClusterList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.Cluster)(unsafe.Pointer(&in.Items)) +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 { + return err + } + if err := Convert_v1_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_ClusterList_To_management_ClusterList is an autogenerated conversion function. -func Convert_v1_ClusterList_To_management_ClusterList(in *ClusterList, out *management.ClusterList, s conversion.Scope) error { - return autoConvert_v1_ClusterList_To_management_ClusterList(in, out, s) +// Convert_v1_IngressAuthToken_To_management_IngressAuthToken is an autogenerated conversion function. +func Convert_v1_IngressAuthToken_To_management_IngressAuthToken(in *IngressAuthToken, out *management.IngressAuthToken, s conversion.Scope) error { + return autoConvert_v1_IngressAuthToken_To_management_IngressAuthToken(in, out, s) } -func autoConvert_management_ClusterList_To_v1_ClusterList(in *management.ClusterList, out *ClusterList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]Cluster)(unsafe.Pointer(&in.Items)) +func autoConvert_management_IngressAuthToken_To_v1_IngressAuthToken(in *management.IngressAuthToken, out *IngressAuthToken, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_IngressAuthTokenSpec_To_v1_IngressAuthTokenSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_ClusterList_To_v1_ClusterList is an autogenerated conversion function. -func Convert_management_ClusterList_To_v1_ClusterList(in *management.ClusterList, out *ClusterList, s conversion.Scope) error { - return autoConvert_management_ClusterList_To_v1_ClusterList(in, out, s) +// Convert_management_IngressAuthToken_To_v1_IngressAuthToken is an autogenerated conversion function. +func Convert_management_IngressAuthToken_To_v1_IngressAuthToken(in *management.IngressAuthToken, out *IngressAuthToken, s conversion.Scope) error { + return autoConvert_management_IngressAuthToken_To_v1_IngressAuthToken(in, out, s) } -func autoConvert_v1_ClusterMember_To_management_ClusterMember(in *ClusterMember, out *management.ClusterMember, s conversion.Scope) error { - out.Info = in.Info +func autoConvert_v1_IngressAuthTokenList_To_management_IngressAuthTokenList(in *IngressAuthTokenList, out *management.IngressAuthTokenList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.IngressAuthToken)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ClusterMember_To_management_ClusterMember is an autogenerated conversion function. -func Convert_v1_ClusterMember_To_management_ClusterMember(in *ClusterMember, out *management.ClusterMember, s conversion.Scope) error { - return autoConvert_v1_ClusterMember_To_management_ClusterMember(in, out, s) +// Convert_v1_IngressAuthTokenList_To_management_IngressAuthTokenList is an autogenerated conversion function. +func Convert_v1_IngressAuthTokenList_To_management_IngressAuthTokenList(in *IngressAuthTokenList, out *management.IngressAuthTokenList, s conversion.Scope) error { + return autoConvert_v1_IngressAuthTokenList_To_management_IngressAuthTokenList(in, out, s) } -func autoConvert_management_ClusterMember_To_v1_ClusterMember(in *management.ClusterMember, out *ClusterMember, s conversion.Scope) error { - out.Info = in.Info +func autoConvert_management_IngressAuthTokenList_To_v1_IngressAuthTokenList(in *management.IngressAuthTokenList, out *IngressAuthTokenList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]IngressAuthToken)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ClusterMember_To_v1_ClusterMember is an autogenerated conversion function. -func Convert_management_ClusterMember_To_v1_ClusterMember(in *management.ClusterMember, out *ClusterMember, s conversion.Scope) error { - return autoConvert_management_ClusterMember_To_v1_ClusterMember(in, out, s) +// Convert_management_IngressAuthTokenList_To_v1_IngressAuthTokenList is an autogenerated conversion function. +func Convert_management_IngressAuthTokenList_To_v1_IngressAuthTokenList(in *management.IngressAuthTokenList, out *IngressAuthTokenList, s conversion.Scope) error { + return autoConvert_management_IngressAuthTokenList_To_v1_IngressAuthTokenList(in, out, s) } -func autoConvert_v1_ClusterMemberAccess_To_management_ClusterMemberAccess(in *ClusterMemberAccess, out *management.ClusterMemberAccess, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Teams = *(*[]management.ClusterMember)(unsafe.Pointer(&in.Teams)) - out.Users = *(*[]management.ClusterMember)(unsafe.Pointer(&in.Users)) +func autoConvert_v1_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec(in *IngressAuthTokenSpec, out *management.IngressAuthTokenSpec, s conversion.Scope) error { + out.Host = in.Host + out.Signature = in.Signature return nil } -// Convert_v1_ClusterMemberAccess_To_management_ClusterMemberAccess is an autogenerated conversion function. -func Convert_v1_ClusterMemberAccess_To_management_ClusterMemberAccess(in *ClusterMemberAccess, out *management.ClusterMemberAccess, s conversion.Scope) error { - return autoConvert_v1_ClusterMemberAccess_To_management_ClusterMemberAccess(in, out, s) +// Convert_v1_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec is an autogenerated conversion function. +func Convert_v1_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec(in *IngressAuthTokenSpec, out *management.IngressAuthTokenSpec, s conversion.Scope) error { + return autoConvert_v1_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec(in, out, s) } -func autoConvert_management_ClusterMemberAccess_To_v1_ClusterMemberAccess(in *management.ClusterMemberAccess, out *ClusterMemberAccess, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Teams = *(*[]ClusterMember)(unsafe.Pointer(&in.Teams)) - out.Users = *(*[]ClusterMember)(unsafe.Pointer(&in.Users)) +func autoConvert_management_IngressAuthTokenSpec_To_v1_IngressAuthTokenSpec(in *management.IngressAuthTokenSpec, out *IngressAuthTokenSpec, s conversion.Scope) error { + out.Host = in.Host + out.Signature = in.Signature return nil } -// Convert_management_ClusterMemberAccess_To_v1_ClusterMemberAccess is an autogenerated conversion function. -func Convert_management_ClusterMemberAccess_To_v1_ClusterMemberAccess(in *management.ClusterMemberAccess, out *ClusterMemberAccess, s conversion.Scope) error { - return autoConvert_management_ClusterMemberAccess_To_v1_ClusterMemberAccess(in, out, s) +// Convert_management_IngressAuthTokenSpec_To_v1_IngressAuthTokenSpec is an autogenerated conversion function. +func Convert_management_IngressAuthTokenSpec_To_v1_IngressAuthTokenSpec(in *management.IngressAuthTokenSpec, out *IngressAuthTokenSpec, s conversion.Scope) error { + return autoConvert_management_IngressAuthTokenSpec_To_v1_IngressAuthTokenSpec(in, out, s) } -func autoConvert_v1_ClusterMemberAccessList_To_management_ClusterMemberAccessList(in *ClusterMemberAccessList, out *management.ClusterMemberAccessList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterMemberAccess)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus(in *IngressAuthTokenStatus, out *management.IngressAuthTokenStatus, s conversion.Scope) error { + out.Token = in.Token return nil } -// Convert_v1_ClusterMemberAccessList_To_management_ClusterMemberAccessList is an autogenerated conversion function. -func Convert_v1_ClusterMemberAccessList_To_management_ClusterMemberAccessList(in *ClusterMemberAccessList, out *management.ClusterMemberAccessList, s conversion.Scope) error { - return autoConvert_v1_ClusterMemberAccessList_To_management_ClusterMemberAccessList(in, out, s) +// Convert_v1_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus is an autogenerated conversion function. +func Convert_v1_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus(in *IngressAuthTokenStatus, out *management.IngressAuthTokenStatus, s conversion.Scope) error { + return autoConvert_v1_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus(in, out, s) } -func autoConvert_management_ClusterMemberAccessList_To_v1_ClusterMemberAccessList(in *management.ClusterMemberAccessList, out *ClusterMemberAccessList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ClusterMemberAccess)(unsafe.Pointer(&in.Items)) +func autoConvert_management_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus(in *management.IngressAuthTokenStatus, out *IngressAuthTokenStatus, s conversion.Scope) error { + out.Token = in.Token return nil } -// Convert_management_ClusterMemberAccessList_To_v1_ClusterMemberAccessList is an autogenerated conversion function. -func Convert_management_ClusterMemberAccessList_To_v1_ClusterMemberAccessList(in *management.ClusterMemberAccessList, out *ClusterMemberAccessList, s conversion.Scope) error { - return autoConvert_management_ClusterMemberAccessList_To_v1_ClusterMemberAccessList(in, out, s) +// Convert_management_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus is an autogenerated conversion function. +func Convert_management_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus(in *management.IngressAuthTokenStatus, out *IngressAuthTokenStatus, s conversion.Scope) error { + return autoConvert_management_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus(in, out, s) } -func autoConvert_v1_ClusterMembers_To_management_ClusterMembers(in *ClusterMembers, out *management.ClusterMembers, s conversion.Scope) error { +func autoConvert_v1_Kiosk_To_management_Kiosk(in *Kiosk, out *management.Kiosk, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Teams = *(*[]management.ClusterMember)(unsafe.Pointer(&in.Teams)) - out.Users = *(*[]management.ClusterMember)(unsafe.Pointer(&in.Users)) + if err := Convert_v1_KioskSpec_To_management_KioskSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_KioskStatus_To_management_KioskStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_ClusterMembers_To_management_ClusterMembers is an autogenerated conversion function. -func Convert_v1_ClusterMembers_To_management_ClusterMembers(in *ClusterMembers, out *management.ClusterMembers, s conversion.Scope) error { - return autoConvert_v1_ClusterMembers_To_management_ClusterMembers(in, out, s) +// Convert_v1_Kiosk_To_management_Kiosk is an autogenerated conversion function. +func Convert_v1_Kiosk_To_management_Kiosk(in *Kiosk, out *management.Kiosk, s conversion.Scope) error { + return autoConvert_v1_Kiosk_To_management_Kiosk(in, out, s) } -func autoConvert_management_ClusterMembers_To_v1_ClusterMembers(in *management.ClusterMembers, out *ClusterMembers, s conversion.Scope) error { +func autoConvert_management_Kiosk_To_v1_Kiosk(in *management.Kiosk, out *Kiosk, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Teams = *(*[]ClusterMember)(unsafe.Pointer(&in.Teams)) - out.Users = *(*[]ClusterMember)(unsafe.Pointer(&in.Users)) + if err := Convert_management_KioskSpec_To_v1_KioskSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_KioskStatus_To_v1_KioskStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_ClusterMembers_To_v1_ClusterMembers is an autogenerated conversion function. -func Convert_management_ClusterMembers_To_v1_ClusterMembers(in *management.ClusterMembers, out *ClusterMembers, s conversion.Scope) error { - return autoConvert_management_ClusterMembers_To_v1_ClusterMembers(in, out, s) +// Convert_management_Kiosk_To_v1_Kiosk is an autogenerated conversion function. +func Convert_management_Kiosk_To_v1_Kiosk(in *management.Kiosk, out *Kiosk, s conversion.Scope) error { + return autoConvert_management_Kiosk_To_v1_Kiosk(in, out, s) } -func autoConvert_v1_ClusterMembersList_To_management_ClusterMembersList(in *ClusterMembersList, out *management.ClusterMembersList, s conversion.Scope) error { +func autoConvert_v1_KioskList_To_management_KioskList(in *KioskList, out *management.KioskList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterMembers)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.Kiosk)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ClusterMembersList_To_management_ClusterMembersList is an autogenerated conversion function. -func Convert_v1_ClusterMembersList_To_management_ClusterMembersList(in *ClusterMembersList, out *management.ClusterMembersList, s conversion.Scope) error { - return autoConvert_v1_ClusterMembersList_To_management_ClusterMembersList(in, out, s) +// Convert_v1_KioskList_To_management_KioskList is an autogenerated conversion function. +func Convert_v1_KioskList_To_management_KioskList(in *KioskList, out *management.KioskList, s conversion.Scope) error { + return autoConvert_v1_KioskList_To_management_KioskList(in, out, s) } -func autoConvert_management_ClusterMembersList_To_v1_ClusterMembersList(in *management.ClusterMembersList, out *ClusterMembersList, s conversion.Scope) error { +func autoConvert_management_KioskList_To_v1_KioskList(in *management.KioskList, out *KioskList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]ClusterMembers)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]Kiosk)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ClusterMembersList_To_v1_ClusterMembersList is an autogenerated conversion function. -func Convert_management_ClusterMembersList_To_v1_ClusterMembersList(in *management.ClusterMembersList, out *ClusterMembersList, s conversion.Scope) error { - return autoConvert_management_ClusterMembersList_To_v1_ClusterMembersList(in, out, s) +// Convert_management_KioskList_To_v1_KioskList is an autogenerated conversion function. +func Convert_management_KioskList_To_v1_KioskList(in *management.KioskList, out *KioskList, s conversion.Scope) error { + return autoConvert_management_KioskList_To_v1_KioskList(in, out, s) } -func autoConvert_v1_ClusterReset_To_management_ClusterReset(in *ClusterReset, out *management.ClusterReset, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Agent = in.Agent - out.RBAC = in.RBAC +func autoConvert_v1_KioskSpec_To_management_KioskSpec(in *KioskSpec, out *management.KioskSpec, s conversion.Scope) error { + out.HelmRelease = in.HelmRelease + out.SleepModeConfig = in.SleepModeConfig + out.ChartInfo = in.ChartInfo + out.StorageClusterQuota = in.StorageClusterQuota + out.UISettings = in.UISettings + if err := Convert_v1_License_To_management_License(&in.License, &out.License, s); err != nil { + return err + } + if err := Convert_v1_NodeProviderBCMNodeWithResources_To_management_NodeProviderBCMNodeWithResources(&in.NodeProviderBCMNodeWithResources, &out.NodeProviderBCMNodeWithResources, s); err != nil { + return err + } + if err := Convert_v1_NodeProviderBCMGetResourcesResult_To_management_NodeProviderBCMGetResourcesResult(&in.NodeProviderBCMGetResourcesResult, &out.NodeProviderBCMGetResourcesResult, s); err != nil { + return err + } + if err := Convert_v1_NodeProviderBCMTestConnectionResult_To_management_NodeProviderBCMTestConnectionResult(&in.NodeProviderBCMTestConnectionResult, &out.NodeProviderBCMTestConnectionResult, s); err != nil { + return err + } + if err := Convert_v1_NodeProviderCalculateCostResult_To_management_NodeProviderCalculateCostResult(&in.NodeProviderCalculateCostResult, &out.NodeProviderCalculateCostResult, s); err != nil { + return err + } + if err := Convert_v1_NodeProviderTerraformValidateResult_To_management_NodeProviderTerraformValidateResult(&in.NodeProviderTerraformValidateResult, &out.NodeProviderTerraformValidateResult, s); err != nil { + return err + } + if err := Convert_v1_NodeProviderExecResult_To_management_NodeProviderExecResult(&in.NodeProviderExecResult, &out.NodeProviderExecResult, s); err != nil { + return err + } + if err := Convert_v1_NodeClaimData_To_management_NodeClaimData(&in.NodeClaimData, &out.NodeClaimData, s); err != nil { + return err + } + if err := Convert_v1_NodeEnvironmentData_To_management_NodeEnvironmentData(&in.NodeEnvironmentData, &out.NodeEnvironmentData, s); err != nil { + return err + } return nil } -// Convert_v1_ClusterReset_To_management_ClusterReset is an autogenerated conversion function. -func Convert_v1_ClusterReset_To_management_ClusterReset(in *ClusterReset, out *management.ClusterReset, s conversion.Scope) error { - return autoConvert_v1_ClusterReset_To_management_ClusterReset(in, out, s) +// Convert_v1_KioskSpec_To_management_KioskSpec is an autogenerated conversion function. +func Convert_v1_KioskSpec_To_management_KioskSpec(in *KioskSpec, out *management.KioskSpec, s conversion.Scope) error { + return autoConvert_v1_KioskSpec_To_management_KioskSpec(in, out, s) } -func autoConvert_management_ClusterReset_To_v1_ClusterReset(in *management.ClusterReset, out *ClusterReset, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Agent = in.Agent - out.RBAC = in.RBAC +func autoConvert_management_KioskSpec_To_v1_KioskSpec(in *management.KioskSpec, out *KioskSpec, s conversion.Scope) error { + out.HelmRelease = in.HelmRelease + out.SleepModeConfig = in.SleepModeConfig + out.ChartInfo = in.ChartInfo + out.StorageClusterQuota = in.StorageClusterQuota + out.UISettings = in.UISettings + if err := Convert_management_License_To_v1_License(&in.License, &out.License, s); err != nil { + return err + } + if err := Convert_management_NodeProviderBCMNodeWithResources_To_v1_NodeProviderBCMNodeWithResources(&in.NodeProviderBCMNodeWithResources, &out.NodeProviderBCMNodeWithResources, s); err != nil { + return err + } + if err := Convert_management_NodeProviderBCMGetResourcesResult_To_v1_NodeProviderBCMGetResourcesResult(&in.NodeProviderBCMGetResourcesResult, &out.NodeProviderBCMGetResourcesResult, s); err != nil { + return err + } + if err := Convert_management_NodeProviderBCMTestConnectionResult_To_v1_NodeProviderBCMTestConnectionResult(&in.NodeProviderBCMTestConnectionResult, &out.NodeProviderBCMTestConnectionResult, s); err != nil { + return err + } + if err := Convert_management_NodeProviderCalculateCostResult_To_v1_NodeProviderCalculateCostResult(&in.NodeProviderCalculateCostResult, &out.NodeProviderCalculateCostResult, s); err != nil { + return err + } + if err := Convert_management_NodeProviderTerraformValidateResult_To_v1_NodeProviderTerraformValidateResult(&in.NodeProviderTerraformValidateResult, &out.NodeProviderTerraformValidateResult, s); err != nil { + return err + } + if err := Convert_management_NodeProviderExecResult_To_v1_NodeProviderExecResult(&in.NodeProviderExecResult, &out.NodeProviderExecResult, s); err != nil { + return err + } + if err := Convert_management_NodeClaimData_To_v1_NodeClaimData(&in.NodeClaimData, &out.NodeClaimData, s); err != nil { + return err + } + if err := Convert_management_NodeEnvironmentData_To_v1_NodeEnvironmentData(&in.NodeEnvironmentData, &out.NodeEnvironmentData, s); err != nil { + return err + } return nil } -// Convert_management_ClusterReset_To_v1_ClusterReset is an autogenerated conversion function. -func Convert_management_ClusterReset_To_v1_ClusterReset(in *management.ClusterReset, out *ClusterReset, s conversion.Scope) error { - return autoConvert_management_ClusterReset_To_v1_ClusterReset(in, out, s) +// Convert_management_KioskSpec_To_v1_KioskSpec is an autogenerated conversion function. +func Convert_management_KioskSpec_To_v1_KioskSpec(in *management.KioskSpec, out *KioskSpec, s conversion.Scope) error { + return autoConvert_management_KioskSpec_To_v1_KioskSpec(in, out, s) } -func autoConvert_v1_ClusterResetList_To_management_ClusterResetList(in *ClusterResetList, out *management.ClusterResetList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterReset)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_KioskStatus_To_management_KioskStatus(in *KioskStatus, out *management.KioskStatus, s conversion.Scope) error { return nil } -// Convert_v1_ClusterResetList_To_management_ClusterResetList is an autogenerated conversion function. -func Convert_v1_ClusterResetList_To_management_ClusterResetList(in *ClusterResetList, out *management.ClusterResetList, s conversion.Scope) error { - return autoConvert_v1_ClusterResetList_To_management_ClusterResetList(in, out, s) +// Convert_v1_KioskStatus_To_management_KioskStatus is an autogenerated conversion function. +func Convert_v1_KioskStatus_To_management_KioskStatus(in *KioskStatus, out *management.KioskStatus, s conversion.Scope) error { + return autoConvert_v1_KioskStatus_To_management_KioskStatus(in, out, s) } -func autoConvert_management_ClusterResetList_To_v1_ClusterResetList(in *management.ClusterResetList, out *ClusterResetList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ClusterReset)(unsafe.Pointer(&in.Items)) +func autoConvert_management_KioskStatus_To_v1_KioskStatus(in *management.KioskStatus, out *KioskStatus, s conversion.Scope) error { return nil } -// Convert_management_ClusterResetList_To_v1_ClusterResetList is an autogenerated conversion function. -func Convert_management_ClusterResetList_To_v1_ClusterResetList(in *management.ClusterResetList, out *ClusterResetList, s conversion.Scope) error { - return autoConvert_management_ClusterResetList_To_v1_ClusterResetList(in, out, s) +// Convert_management_KioskStatus_To_v1_KioskStatus is an autogenerated conversion function. +func Convert_management_KioskStatus_To_v1_KioskStatus(in *management.KioskStatus, out *KioskStatus, s conversion.Scope) error { + return autoConvert_management_KioskStatus_To_v1_KioskStatus(in, out, s) } -func autoConvert_v1_ClusterRoleTemplate_To_management_ClusterRoleTemplate(in *ClusterRoleTemplate, out *management.ClusterRoleTemplate, s conversion.Scope) error { +func autoConvert_v1_License_To_management_License(in *License, out *management.License, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ClusterRoleTemplateSpec_To_management_ClusterRoleTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_LicenseSpec_To_management_LicenseSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_ClusterRoleTemplateStatus_To_management_ClusterRoleTemplateStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_LicenseStatus_To_management_LicenseStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_ClusterRoleTemplate_To_management_ClusterRoleTemplate is an autogenerated conversion function. -func Convert_v1_ClusterRoleTemplate_To_management_ClusterRoleTemplate(in *ClusterRoleTemplate, out *management.ClusterRoleTemplate, s conversion.Scope) error { - return autoConvert_v1_ClusterRoleTemplate_To_management_ClusterRoleTemplate(in, out, s) +// Convert_v1_License_To_management_License is an autogenerated conversion function. +func Convert_v1_License_To_management_License(in *License, out *management.License, s conversion.Scope) error { + return autoConvert_v1_License_To_management_License(in, out, s) } -func autoConvert_management_ClusterRoleTemplate_To_v1_ClusterRoleTemplate(in *management.ClusterRoleTemplate, out *ClusterRoleTemplate, s conversion.Scope) error { +func autoConvert_management_License_To_v1_License(in *management.License, out *License, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ClusterRoleTemplateSpec_To_v1_ClusterRoleTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_LicenseSpec_To_v1_LicenseSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_ClusterRoleTemplateStatus_To_v1_ClusterRoleTemplateStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_LicenseStatus_To_v1_LicenseStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_ClusterRoleTemplate_To_v1_ClusterRoleTemplate is an autogenerated conversion function. -func Convert_management_ClusterRoleTemplate_To_v1_ClusterRoleTemplate(in *management.ClusterRoleTemplate, out *ClusterRoleTemplate, s conversion.Scope) error { - return autoConvert_management_ClusterRoleTemplate_To_v1_ClusterRoleTemplate(in, out, s) +// Convert_management_License_To_v1_License is an autogenerated conversion function. +func Convert_management_License_To_v1_License(in *management.License, out *License, s conversion.Scope) error { + return autoConvert_management_License_To_v1_License(in, out, s) } -func autoConvert_v1_ClusterRoleTemplateList_To_management_ClusterRoleTemplateList(in *ClusterRoleTemplateList, out *management.ClusterRoleTemplateList, s conversion.Scope) error { +func autoConvert_v1_LicenseList_To_management_LicenseList(in *LicenseList, out *management.LicenseList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterRoleTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.License)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ClusterRoleTemplateList_To_management_ClusterRoleTemplateList is an autogenerated conversion function. -func Convert_v1_ClusterRoleTemplateList_To_management_ClusterRoleTemplateList(in *ClusterRoleTemplateList, out *management.ClusterRoleTemplateList, s conversion.Scope) error { - return autoConvert_v1_ClusterRoleTemplateList_To_management_ClusterRoleTemplateList(in, out, s) +// Convert_v1_LicenseList_To_management_LicenseList is an autogenerated conversion function. +func Convert_v1_LicenseList_To_management_LicenseList(in *LicenseList, out *management.LicenseList, s conversion.Scope) error { + return autoConvert_v1_LicenseList_To_management_LicenseList(in, out, s) } -func autoConvert_management_ClusterRoleTemplateList_To_v1_ClusterRoleTemplateList(in *management.ClusterRoleTemplateList, out *ClusterRoleTemplateList, s conversion.Scope) error { +func autoConvert_management_LicenseList_To_v1_LicenseList(in *management.LicenseList, out *LicenseList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]ClusterRoleTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]License)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ClusterRoleTemplateList_To_v1_ClusterRoleTemplateList is an autogenerated conversion function. -func Convert_management_ClusterRoleTemplateList_To_v1_ClusterRoleTemplateList(in *management.ClusterRoleTemplateList, out *ClusterRoleTemplateList, s conversion.Scope) error { - return autoConvert_management_ClusterRoleTemplateList_To_v1_ClusterRoleTemplateList(in, out, s) +// Convert_management_LicenseList_To_v1_LicenseList is an autogenerated conversion function. +func Convert_management_LicenseList_To_v1_LicenseList(in *management.LicenseList, out *LicenseList, s conversion.Scope) error { + return autoConvert_management_LicenseList_To_v1_LicenseList(in, out, s) } -func autoConvert_v1_ClusterRoleTemplateSpec_To_management_ClusterRoleTemplateSpec(in *ClusterRoleTemplateSpec, out *management.ClusterRoleTemplateSpec, s conversion.Scope) error { - out.ClusterRoleTemplateSpec = in.ClusterRoleTemplateSpec +func autoConvert_v1_LicenseRequest_To_management_LicenseRequest(in *LicenseRequest, out *management.LicenseRequest, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_LicenseRequestSpec_To_management_LicenseRequestSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_LicenseRequestStatus_To_management_LicenseRequestStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_ClusterRoleTemplateSpec_To_management_ClusterRoleTemplateSpec is an autogenerated conversion function. -func Convert_v1_ClusterRoleTemplateSpec_To_management_ClusterRoleTemplateSpec(in *ClusterRoleTemplateSpec, out *management.ClusterRoleTemplateSpec, s conversion.Scope) error { - return autoConvert_v1_ClusterRoleTemplateSpec_To_management_ClusterRoleTemplateSpec(in, out, s) +// Convert_v1_LicenseRequest_To_management_LicenseRequest is an autogenerated conversion function. +func Convert_v1_LicenseRequest_To_management_LicenseRequest(in *LicenseRequest, out *management.LicenseRequest, s conversion.Scope) error { + return autoConvert_v1_LicenseRequest_To_management_LicenseRequest(in, out, s) } -func autoConvert_management_ClusterRoleTemplateSpec_To_v1_ClusterRoleTemplateSpec(in *management.ClusterRoleTemplateSpec, out *ClusterRoleTemplateSpec, s conversion.Scope) error { - out.ClusterRoleTemplateSpec = in.ClusterRoleTemplateSpec +func autoConvert_management_LicenseRequest_To_v1_LicenseRequest(in *management.LicenseRequest, out *LicenseRequest, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_LicenseRequestSpec_To_v1_LicenseRequestSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_LicenseRequestStatus_To_v1_LicenseRequestStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_ClusterRoleTemplateSpec_To_v1_ClusterRoleTemplateSpec is an autogenerated conversion function. -func Convert_management_ClusterRoleTemplateSpec_To_v1_ClusterRoleTemplateSpec(in *management.ClusterRoleTemplateSpec, out *ClusterRoleTemplateSpec, s conversion.Scope) error { - return autoConvert_management_ClusterRoleTemplateSpec_To_v1_ClusterRoleTemplateSpec(in, out, s) +// Convert_management_LicenseRequest_To_v1_LicenseRequest is an autogenerated conversion function. +func Convert_management_LicenseRequest_To_v1_LicenseRequest(in *management.LicenseRequest, out *LicenseRequest, s conversion.Scope) error { + return autoConvert_management_LicenseRequest_To_v1_LicenseRequest(in, out, s) } -func autoConvert_v1_ClusterRoleTemplateStatus_To_management_ClusterRoleTemplateStatus(in *ClusterRoleTemplateStatus, out *management.ClusterRoleTemplateStatus, s conversion.Scope) error { - out.ClusterRoleTemplateStatus = in.ClusterRoleTemplateStatus - out.Clusters = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Clusters)) +func autoConvert_v1_LicenseRequestList_To_management_LicenseRequestList(in *LicenseRequestList, out *management.LicenseRequestList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.LicenseRequest)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ClusterRoleTemplateStatus_To_management_ClusterRoleTemplateStatus is an autogenerated conversion function. -func Convert_v1_ClusterRoleTemplateStatus_To_management_ClusterRoleTemplateStatus(in *ClusterRoleTemplateStatus, out *management.ClusterRoleTemplateStatus, s conversion.Scope) error { - return autoConvert_v1_ClusterRoleTemplateStatus_To_management_ClusterRoleTemplateStatus(in, out, s) +// Convert_v1_LicenseRequestList_To_management_LicenseRequestList is an autogenerated conversion function. +func Convert_v1_LicenseRequestList_To_management_LicenseRequestList(in *LicenseRequestList, out *management.LicenseRequestList, s conversion.Scope) error { + return autoConvert_v1_LicenseRequestList_To_management_LicenseRequestList(in, out, s) } -func autoConvert_management_ClusterRoleTemplateStatus_To_v1_ClusterRoleTemplateStatus(in *management.ClusterRoleTemplateStatus, out *ClusterRoleTemplateStatus, s conversion.Scope) error { - out.ClusterRoleTemplateStatus = in.ClusterRoleTemplateStatus - out.Clusters = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Clusters)) +func autoConvert_management_LicenseRequestList_To_v1_LicenseRequestList(in *management.LicenseRequestList, out *LicenseRequestList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]LicenseRequest)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ClusterRoleTemplateStatus_To_v1_ClusterRoleTemplateStatus is an autogenerated conversion function. -func Convert_management_ClusterRoleTemplateStatus_To_v1_ClusterRoleTemplateStatus(in *management.ClusterRoleTemplateStatus, out *ClusterRoleTemplateStatus, s conversion.Scope) error { - return autoConvert_management_ClusterRoleTemplateStatus_To_v1_ClusterRoleTemplateStatus(in, out, s) +// Convert_management_LicenseRequestList_To_v1_LicenseRequestList is an autogenerated conversion function. +func Convert_management_LicenseRequestList_To_v1_LicenseRequestList(in *management.LicenseRequestList, out *LicenseRequestList, s conversion.Scope) error { + return autoConvert_management_LicenseRequestList_To_v1_LicenseRequestList(in, out, s) } -func autoConvert_v1_ClusterSpec_To_management_ClusterSpec(in *ClusterSpec, out *management.ClusterSpec, s conversion.Scope) error { - out.ClusterSpec = in.ClusterSpec +func autoConvert_v1_LicenseRequestSpec_To_management_LicenseRequestSpec(in *LicenseRequestSpec, out *management.LicenseRequestSpec, s conversion.Scope) error { + out.URL = in.URL + out.Input = in.Input return nil } -// Convert_v1_ClusterSpec_To_management_ClusterSpec is an autogenerated conversion function. -func Convert_v1_ClusterSpec_To_management_ClusterSpec(in *ClusterSpec, out *management.ClusterSpec, s conversion.Scope) error { - return autoConvert_v1_ClusterSpec_To_management_ClusterSpec(in, out, s) +// Convert_v1_LicenseRequestSpec_To_management_LicenseRequestSpec is an autogenerated conversion function. +func Convert_v1_LicenseRequestSpec_To_management_LicenseRequestSpec(in *LicenseRequestSpec, out *management.LicenseRequestSpec, s conversion.Scope) error { + return autoConvert_v1_LicenseRequestSpec_To_management_LicenseRequestSpec(in, out, s) } -func autoConvert_management_ClusterSpec_To_v1_ClusterSpec(in *management.ClusterSpec, out *ClusterSpec, s conversion.Scope) error { - out.ClusterSpec = in.ClusterSpec +func autoConvert_management_LicenseRequestSpec_To_v1_LicenseRequestSpec(in *management.LicenseRequestSpec, out *LicenseRequestSpec, s conversion.Scope) error { + out.URL = in.URL + out.Input = in.Input return nil } -// Convert_management_ClusterSpec_To_v1_ClusterSpec is an autogenerated conversion function. -func Convert_management_ClusterSpec_To_v1_ClusterSpec(in *management.ClusterSpec, out *ClusterSpec, s conversion.Scope) error { - return autoConvert_management_ClusterSpec_To_v1_ClusterSpec(in, out, s) +// Convert_management_LicenseRequestSpec_To_v1_LicenseRequestSpec is an autogenerated conversion function. +func Convert_management_LicenseRequestSpec_To_v1_LicenseRequestSpec(in *management.LicenseRequestSpec, out *LicenseRequestSpec, s conversion.Scope) error { + return autoConvert_management_LicenseRequestSpec_To_v1_LicenseRequestSpec(in, out, s) } -func autoConvert_v1_ClusterStatus_To_management_ClusterStatus(in *ClusterStatus, out *management.ClusterStatus, s conversion.Scope) error { - out.ClusterStatus = in.ClusterStatus - out.Online = in.Online +func autoConvert_v1_LicenseRequestStatus_To_management_LicenseRequestStatus(in *LicenseRequestStatus, out *management.LicenseRequestStatus, s conversion.Scope) error { + out.Output = in.Output return nil } -// Convert_v1_ClusterStatus_To_management_ClusterStatus is an autogenerated conversion function. -func Convert_v1_ClusterStatus_To_management_ClusterStatus(in *ClusterStatus, out *management.ClusterStatus, s conversion.Scope) error { - return autoConvert_v1_ClusterStatus_To_management_ClusterStatus(in, out, s) +// Convert_v1_LicenseRequestStatus_To_management_LicenseRequestStatus is an autogenerated conversion function. +func Convert_v1_LicenseRequestStatus_To_management_LicenseRequestStatus(in *LicenseRequestStatus, out *management.LicenseRequestStatus, s conversion.Scope) error { + return autoConvert_v1_LicenseRequestStatus_To_management_LicenseRequestStatus(in, out, s) } -func autoConvert_management_ClusterStatus_To_v1_ClusterStatus(in *management.ClusterStatus, out *ClusterStatus, s conversion.Scope) error { - out.ClusterStatus = in.ClusterStatus - out.Online = in.Online +func autoConvert_management_LicenseRequestStatus_To_v1_LicenseRequestStatus(in *management.LicenseRequestStatus, out *LicenseRequestStatus, s conversion.Scope) error { + out.Output = in.Output return nil } -// Convert_management_ClusterStatus_To_v1_ClusterStatus is an autogenerated conversion function. -func Convert_management_ClusterStatus_To_v1_ClusterStatus(in *management.ClusterStatus, out *ClusterStatus, s conversion.Scope) error { - return autoConvert_management_ClusterStatus_To_v1_ClusterStatus(in, out, s) +// Convert_management_LicenseRequestStatus_To_v1_LicenseRequestStatus is an autogenerated conversion function. +func Convert_management_LicenseRequestStatus_To_v1_LicenseRequestStatus(in *management.LicenseRequestStatus, out *LicenseRequestStatus, s conversion.Scope) error { + return autoConvert_management_LicenseRequestStatus_To_v1_LicenseRequestStatus(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 +func autoConvert_v1_LicenseSpec_To_management_LicenseSpec(in *LicenseSpec, out *management.LicenseSpec, s conversion.Scope) error { 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) +// Convert_v1_LicenseSpec_To_management_LicenseSpec is an autogenerated conversion function. +func Convert_v1_LicenseSpec_To_management_LicenseSpec(in *LicenseSpec, out *management.LicenseSpec, s conversion.Scope) error { + return autoConvert_v1_LicenseSpec_To_management_LicenseSpec(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 +func autoConvert_management_LicenseSpec_To_v1_LicenseSpec(in *management.LicenseSpec, out *LicenseSpec, s conversion.Scope) error { 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) +// Convert_management_LicenseSpec_To_v1_LicenseSpec is an autogenerated conversion function. +func Convert_management_LicenseSpec_To_v1_LicenseSpec(in *management.LicenseSpec, out *LicenseSpec, s conversion.Scope) error { + return autoConvert_management_LicenseSpec_To_v1_LicenseSpec(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)) +func autoConvert_v1_LicenseStatus_To_management_LicenseStatus(in *LicenseStatus, out *management.LicenseStatus, s conversion.Scope) error { + out.License = (*licenseapi.License)(unsafe.Pointer(in.License)) + out.ResourceUsage = *(*map[string]licenseapi.ResourceCount)(unsafe.Pointer(&in.ResourceUsage)) + out.PlatformDatabase = (*licenseapi.PlatformDatabase)(unsafe.Pointer(in.PlatformDatabase)) 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) +// Convert_v1_LicenseStatus_To_management_LicenseStatus is an autogenerated conversion function. +func Convert_v1_LicenseStatus_To_management_LicenseStatus(in *LicenseStatus, out *management.LicenseStatus, s conversion.Scope) error { + return autoConvert_v1_LicenseStatus_To_management_LicenseStatus(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)) +func autoConvert_management_LicenseStatus_To_v1_LicenseStatus(in *management.LicenseStatus, out *LicenseStatus, s conversion.Scope) error { + out.License = (*licenseapi.License)(unsafe.Pointer(in.License)) + out.ResourceUsage = *(*map[string]licenseapi.ResourceCount)(unsafe.Pointer(&in.ResourceUsage)) + out.PlatformDatabase = (*licenseapi.PlatformDatabase)(unsafe.Pointer(in.PlatformDatabase)) 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) +// Convert_management_LicenseStatus_To_v1_LicenseStatus is an autogenerated conversion function. +func Convert_management_LicenseStatus_To_v1_LicenseStatus(in *management.LicenseStatus, out *LicenseStatus, s conversion.Scope) error { + return autoConvert_management_LicenseStatus_To_v1_LicenseStatus(in, out, s) } -func autoConvert_v1_Config_To_management_Config(in *Config, out *management.Config, s conversion.Scope) error { +func autoConvert_v1_LoftUpgrade_To_management_LoftUpgrade(in *LoftUpgrade, out *management.LoftUpgrade, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ConfigSpec_To_management_ConfigSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_LoftUpgradeSpec_To_management_LoftUpgradeSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_ConfigStatus_To_management_ConfigStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_Config_To_management_Config is an autogenerated conversion function. -func Convert_v1_Config_To_management_Config(in *Config, out *management.Config, s conversion.Scope) error { - return autoConvert_v1_Config_To_management_Config(in, out, s) +// Convert_v1_LoftUpgrade_To_management_LoftUpgrade is an autogenerated conversion function. +func Convert_v1_LoftUpgrade_To_management_LoftUpgrade(in *LoftUpgrade, out *management.LoftUpgrade, s conversion.Scope) error { + return autoConvert_v1_LoftUpgrade_To_management_LoftUpgrade(in, out, s) } -func autoConvert_management_Config_To_v1_Config(in *management.Config, out *Config, s conversion.Scope) error { +func autoConvert_management_LoftUpgrade_To_v1_LoftUpgrade(in *management.LoftUpgrade, out *LoftUpgrade, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ConfigSpec_To_v1_ConfigSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_ConfigStatus_To_v1_ConfigStatus(&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_Config_To_v1_Config is an autogenerated conversion function. -func Convert_management_Config_To_v1_Config(in *management.Config, out *Config, s conversion.Scope) error { - return autoConvert_management_Config_To_v1_Config(in, out, s) +// 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_ConfigList_To_management_ConfigList(in *ConfigList, out *management.ConfigList, s conversion.Scope) error { +func autoConvert_v1_LoftUpgradeList_To_management_LoftUpgradeList(in *LoftUpgradeList, out *management.LoftUpgradeList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.Config)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.LoftUpgrade)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ConfigList_To_management_ConfigList is an autogenerated conversion function. -func Convert_v1_ConfigList_To_management_ConfigList(in *ConfigList, out *management.ConfigList, s conversion.Scope) error { - return autoConvert_v1_ConfigList_To_management_ConfigList(in, out, s) +// 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_ConfigList_To_v1_ConfigList(in *management.ConfigList, out *ConfigList, s conversion.Scope) error { +func autoConvert_management_LoftUpgradeList_To_v1_LoftUpgradeList(in *management.LoftUpgradeList, out *LoftUpgradeList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]Config)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]LoftUpgrade)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ConfigList_To_v1_ConfigList is an autogenerated conversion function. -func Convert_management_ConfigList_To_v1_ConfigList(in *management.ConfigList, out *ConfigList, s conversion.Scope) error { - return autoConvert_management_ConfigList_To_v1_ConfigList(in, out, s) +// 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_ConfigSpec_To_management_ConfigSpec(in *ConfigSpec, out *management.ConfigSpec, s conversion.Scope) error { - out.Raw = *(*[]byte)(unsafe.Pointer(&in.Raw)) +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_ConfigSpec_To_management_ConfigSpec is an autogenerated conversion function. -func Convert_v1_ConfigSpec_To_management_ConfigSpec(in *ConfigSpec, out *management.ConfigSpec, s conversion.Scope) error { - return autoConvert_v1_ConfigSpec_To_management_ConfigSpec(in, out, s) +// 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_ConfigSpec_To_v1_ConfigSpec(in *management.ConfigSpec, out *ConfigSpec, s conversion.Scope) error { - out.Raw = *(*[]byte)(unsafe.Pointer(&in.Raw)) +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_ConfigSpec_To_v1_ConfigSpec is an autogenerated conversion function. -func Convert_management_ConfigSpec_To_v1_ConfigSpec(in *management.ConfigSpec, out *ConfigSpec, s conversion.Scope) error { - return autoConvert_management_ConfigSpec_To_v1_ConfigSpec(in, out, s) +// 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_ConfigStatus_To_management_ConfigStatus(in *ConfigStatus, out *management.ConfigStatus, s conversion.Scope) error { - if err := Convert_v1_Authentication_To_management_Authentication(&in.Authentication, &out.Authentication, s); err != nil { - return err - } - out.OIDC = (*management.OIDC)(unsafe.Pointer(in.OIDC)) - out.Apps = (*management.Apps)(unsafe.Pointer(in.Apps)) - out.Audit = (*management.Audit)(unsafe.Pointer(in.Audit)) - out.LoftHost = in.LoftHost - out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) - out.DevPodSubDomain = in.DevPodSubDomain - out.UISettings = (*uiv1.UISettingsConfig)(unsafe.Pointer(in.UISettings)) - out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) - out.DisableConfigEndpoint = in.DisableConfigEndpoint +func autoConvert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in *LoftUpgradeStatus, out *management.LoftUpgradeStatus, s conversion.Scope) error { return nil } -// Convert_v1_ConfigStatus_To_management_ConfigStatus is an autogenerated conversion function. -func Convert_v1_ConfigStatus_To_management_ConfigStatus(in *ConfigStatus, out *management.ConfigStatus, s conversion.Scope) error { - return autoConvert_v1_ConfigStatus_To_management_ConfigStatus(in, out, s) +// 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_ConfigStatus_To_v1_ConfigStatus(in *management.ConfigStatus, out *ConfigStatus, s conversion.Scope) error { - if err := Convert_management_Authentication_To_v1_Authentication(&in.Authentication, &out.Authentication, s); err != nil { - return err - } - out.OIDC = (*OIDC)(unsafe.Pointer(in.OIDC)) - out.Apps = (*Apps)(unsafe.Pointer(in.Apps)) - out.Audit = (*Audit)(unsafe.Pointer(in.Audit)) - out.LoftHost = in.LoftHost - out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) - out.DevPodSubDomain = in.DevPodSubDomain - out.UISettings = (*uiv1.UISettingsConfig)(unsafe.Pointer(in.UISettings)) - out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) - out.DisableConfigEndpoint = in.DisableConfigEndpoint +func autoConvert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in *management.LoftUpgradeStatus, out *LoftUpgradeStatus, s conversion.Scope) error { return nil } -// Convert_management_ConfigStatus_To_v1_ConfigStatus is an autogenerated conversion function. -func Convert_management_ConfigStatus_To_v1_ConfigStatus(in *management.ConfigStatus, out *ConfigStatus, s conversion.Scope) error { - return autoConvert_management_ConfigStatus_To_v1_ConfigStatus(in, out, s) +// 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_Connector_To_management_Connector(in *Connector, out *management.Connector, s conversion.Scope) error { - out.OIDC = (*management.AuthenticationOIDC)(unsafe.Pointer(in.OIDC)) - out.Github = (*management.AuthenticationGithub)(unsafe.Pointer(in.Github)) - out.Gitlab = (*management.AuthenticationGitlab)(unsafe.Pointer(in.Gitlab)) - out.Google = (*management.AuthenticationGoogle)(unsafe.Pointer(in.Google)) - out.Microsoft = (*management.AuthenticationMicrosoft)(unsafe.Pointer(in.Microsoft)) - out.SAML = (*management.AuthenticationSAML)(unsafe.Pointer(in.SAML)) +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_Connector_To_management_Connector is an autogenerated conversion function. -func Convert_v1_Connector_To_management_Connector(in *Connector, out *management.Connector, s conversion.Scope) error { - return autoConvert_v1_Connector_To_management_Connector(in, out, s) +// 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_Connector_To_v1_Connector(in *management.Connector, out *Connector, s conversion.Scope) error { - out.OIDC = (*AuthenticationOIDC)(unsafe.Pointer(in.OIDC)) - out.Github = (*AuthenticationGithub)(unsafe.Pointer(in.Github)) - out.Gitlab = (*AuthenticationGitlab)(unsafe.Pointer(in.Gitlab)) - out.Google = (*AuthenticationGoogle)(unsafe.Pointer(in.Google)) - out.Microsoft = (*AuthenticationMicrosoft)(unsafe.Pointer(in.Microsoft)) - out.SAML = (*AuthenticationSAML)(unsafe.Pointer(in.SAML)) +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_Connector_To_v1_Connector is an autogenerated conversion function. -func Convert_management_Connector_To_v1_Connector(in *management.Connector, out *Connector, s conversion.Scope) error { - return autoConvert_management_Connector_To_v1_Connector(in, out, s) +// 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_ConnectorWithName_To_management_ConnectorWithName(in *ConnectorWithName, out *management.ConnectorWithName, s conversion.Scope) error { - out.ID = in.ID - out.DisplayName = in.DisplayName - if err := Convert_v1_Connector_To_management_Connector(&in.Connector, &out.Connector, s); err != nil { +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_ConnectorWithName_To_management_ConnectorWithName is an autogenerated conversion function. -func Convert_v1_ConnectorWithName_To_management_ConnectorWithName(in *ConnectorWithName, out *management.ConnectorWithName, s conversion.Scope) error { - return autoConvert_v1_ConnectorWithName_To_management_ConnectorWithName(in, out, s) +// 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_ConnectorWithName_To_v1_ConnectorWithName(in *management.ConnectorWithName, out *ConnectorWithName, s conversion.Scope) error { - out.ID = in.ID - out.DisplayName = in.DisplayName - if err := Convert_management_Connector_To_v1_Connector(&in.Connector, &out.Connector, s); err != nil { +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_ConnectorWithName_To_v1_ConnectorWithName is an autogenerated conversion function. -func Convert_management_ConnectorWithName_To_v1_ConnectorWithName(in *management.ConnectorWithName, out *ConnectorWithName, s conversion.Scope) error { - return autoConvert_management_ConnectorWithName_To_v1_ConnectorWithName(in, out, s) +// 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_ConvertVirtualClusterConfig_To_management_ConvertVirtualClusterConfig(in *ConvertVirtualClusterConfig, out *management.ConvertVirtualClusterConfig, s conversion.Scope) error { +func autoConvert_v1_NodeClaim_To_management_NodeClaim(in *NodeClaim, out *management.NodeClaim, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ConvertVirtualClusterConfigSpec_To_management_ConvertVirtualClusterConfigSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_NodeClaimSpec_To_management_NodeClaimSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_ConvertVirtualClusterConfigStatus_To_management_ConvertVirtualClusterConfigStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_NodeClaimStatus_To_management_NodeClaimStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_ConvertVirtualClusterConfig_To_management_ConvertVirtualClusterConfig is an autogenerated conversion function. -func Convert_v1_ConvertVirtualClusterConfig_To_management_ConvertVirtualClusterConfig(in *ConvertVirtualClusterConfig, out *management.ConvertVirtualClusterConfig, s conversion.Scope) error { - return autoConvert_v1_ConvertVirtualClusterConfig_To_management_ConvertVirtualClusterConfig(in, out, s) +// 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_ConvertVirtualClusterConfig_To_v1_ConvertVirtualClusterConfig(in *management.ConvertVirtualClusterConfig, out *ConvertVirtualClusterConfig, s conversion.Scope) error { +func autoConvert_management_NodeClaim_To_v1_NodeClaim(in *management.NodeClaim, out *NodeClaim, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ConvertVirtualClusterConfigSpec_To_v1_ConvertVirtualClusterConfigSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_NodeClaimSpec_To_v1_NodeClaimSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_NodeClaimStatus_To_v1_NodeClaimStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_ConvertVirtualClusterConfig_To_v1_ConvertVirtualClusterConfig is an autogenerated conversion function. -func Convert_management_ConvertVirtualClusterConfig_To_v1_ConvertVirtualClusterConfig(in *management.ConvertVirtualClusterConfig, out *ConvertVirtualClusterConfig, s conversion.Scope) error { - return autoConvert_management_ConvertVirtualClusterConfig_To_v1_ConvertVirtualClusterConfig(in, out, s) -} - -func autoConvert_v1_ConvertVirtualClusterConfigList_To_management_ConvertVirtualClusterConfigList(in *ConvertVirtualClusterConfigList, out *management.ConvertVirtualClusterConfigList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ConvertVirtualClusterConfig)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_ConvertVirtualClusterConfigList_To_management_ConvertVirtualClusterConfigList is an autogenerated conversion function. -func Convert_v1_ConvertVirtualClusterConfigList_To_management_ConvertVirtualClusterConfigList(in *ConvertVirtualClusterConfigList, out *management.ConvertVirtualClusterConfigList, s conversion.Scope) error { - return autoConvert_v1_ConvertVirtualClusterConfigList_To_management_ConvertVirtualClusterConfigList(in, out, s) -} - -func autoConvert_management_ConvertVirtualClusterConfigList_To_v1_ConvertVirtualClusterConfigList(in *management.ConvertVirtualClusterConfigList, out *ConvertVirtualClusterConfigList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ConvertVirtualClusterConfig)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_ConvertVirtualClusterConfigList_To_v1_ConvertVirtualClusterConfigList is an autogenerated conversion function. -func Convert_management_ConvertVirtualClusterConfigList_To_v1_ConvertVirtualClusterConfigList(in *management.ConvertVirtualClusterConfigList, out *ConvertVirtualClusterConfigList, s conversion.Scope) error { - return autoConvert_management_ConvertVirtualClusterConfigList_To_v1_ConvertVirtualClusterConfigList(in, out, s) -} - -func autoConvert_v1_ConvertVirtualClusterConfigSpec_To_management_ConvertVirtualClusterConfigSpec(in *ConvertVirtualClusterConfigSpec, out *management.ConvertVirtualClusterConfigSpec, s conversion.Scope) error { - out.Annotations = *(*map[string]string)(unsafe.Pointer(&in.Annotations)) - out.Distro = in.Distro - out.Values = in.Values - return nil -} - -// Convert_v1_ConvertVirtualClusterConfigSpec_To_management_ConvertVirtualClusterConfigSpec is an autogenerated conversion function. -func Convert_v1_ConvertVirtualClusterConfigSpec_To_management_ConvertVirtualClusterConfigSpec(in *ConvertVirtualClusterConfigSpec, out *management.ConvertVirtualClusterConfigSpec, s conversion.Scope) error { - return autoConvert_v1_ConvertVirtualClusterConfigSpec_To_management_ConvertVirtualClusterConfigSpec(in, out, s) -} - -func autoConvert_management_ConvertVirtualClusterConfigSpec_To_v1_ConvertVirtualClusterConfigSpec(in *management.ConvertVirtualClusterConfigSpec, out *ConvertVirtualClusterConfigSpec, s conversion.Scope) error { - out.Annotations = *(*map[string]string)(unsafe.Pointer(&in.Annotations)) - out.Distro = in.Distro - out.Values = in.Values - return nil -} - -// Convert_management_ConvertVirtualClusterConfigSpec_To_v1_ConvertVirtualClusterConfigSpec is an autogenerated conversion function. -func Convert_management_ConvertVirtualClusterConfigSpec_To_v1_ConvertVirtualClusterConfigSpec(in *management.ConvertVirtualClusterConfigSpec, out *ConvertVirtualClusterConfigSpec, s conversion.Scope) error { - return autoConvert_management_ConvertVirtualClusterConfigSpec_To_v1_ConvertVirtualClusterConfigSpec(in, out, s) +// 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_ConvertVirtualClusterConfigStatus_To_management_ConvertVirtualClusterConfigStatus(in *ConvertVirtualClusterConfigStatus, out *management.ConvertVirtualClusterConfigStatus, s conversion.Scope) error { - out.Values = in.Values - out.Converted = in.Converted +func autoConvert_v1_NodeClaimData_To_management_NodeClaimData(in *NodeClaimData, out *management.NodeClaimData, s conversion.Scope) error { + out.UserData = in.UserData + out.State = *(*[]byte)(unsafe.Pointer(&in.State)) + out.Operations = *(*map[string]*management.Operation)(unsafe.Pointer(&in.Operations)) return nil } -// Convert_v1_ConvertVirtualClusterConfigStatus_To_management_ConvertVirtualClusterConfigStatus is an autogenerated conversion function. -func Convert_v1_ConvertVirtualClusterConfigStatus_To_management_ConvertVirtualClusterConfigStatus(in *ConvertVirtualClusterConfigStatus, out *management.ConvertVirtualClusterConfigStatus, s conversion.Scope) error { - return autoConvert_v1_ConvertVirtualClusterConfigStatus_To_management_ConvertVirtualClusterConfigStatus(in, out, s) +// Convert_v1_NodeClaimData_To_management_NodeClaimData is an autogenerated conversion function. +func Convert_v1_NodeClaimData_To_management_NodeClaimData(in *NodeClaimData, out *management.NodeClaimData, s conversion.Scope) error { + return autoConvert_v1_NodeClaimData_To_management_NodeClaimData(in, out, s) } -func autoConvert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(in *management.ConvertVirtualClusterConfigStatus, out *ConvertVirtualClusterConfigStatus, s conversion.Scope) error { - out.Values = in.Values - out.Converted = in.Converted +func autoConvert_management_NodeClaimData_To_v1_NodeClaimData(in *management.NodeClaimData, out *NodeClaimData, s conversion.Scope) error { + out.UserData = in.UserData + out.State = *(*[]byte)(unsafe.Pointer(&in.State)) + out.Operations = *(*map[string]*Operation)(unsafe.Pointer(&in.Operations)) return nil } -// Convert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus is an autogenerated conversion function. -func Convert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(in *management.ConvertVirtualClusterConfigStatus, out *ConvertVirtualClusterConfigStatus, s conversion.Scope) error { - return autoConvert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(in, out, s) +// Convert_management_NodeClaimData_To_v1_NodeClaimData is an autogenerated conversion function. +func Convert_management_NodeClaimData_To_v1_NodeClaimData(in *management.NodeClaimData, out *NodeClaimData, s conversion.Scope) error { + return autoConvert_management_NodeClaimData_To_v1_NodeClaimData(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_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_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_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_DevPodDeleteOptions_To_v1_DevPodDeleteOptions(in *management.DevPodDeleteOptions, out *DevPodDeleteOptions, s conversion.Scope) error { - out.Options = in.Options +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_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_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_url_Values_To_v1_DevPodDeleteOptions(in *url.Values, out *DevPodDeleteOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. +func autoConvert_v1_NodeClaimSpec_To_management_NodeClaimSpec(in *NodeClaimSpec, out *management.NodeClaimSpec, s conversion.Scope) error { + out.NodeClaimSpec = in.NodeClaimSpec + 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_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_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_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_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_v1_NodeClaimStatus_To_management_NodeClaimStatus(in *NodeClaimStatus, out *management.NodeClaimStatus, s conversion.Scope) error { + out.NodeClaimStatus = in.NodeClaimStatus 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_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_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_management_NodeClaimStatus_To_v1_NodeClaimStatus(in *management.NodeClaimStatus, out *NodeClaimStatus, s conversion.Scope) error { + out.NodeClaimStatus = in.NodeClaimStatus 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_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_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in *DevPodEnvironmentTemplate, out *management.DevPodEnvironmentTemplate, s conversion.Scope) error { +func autoConvert_v1_NodeEnvironment_To_management_NodeEnvironment(in *NodeEnvironment, out *management.NodeEnvironment, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_NodeEnvironmentSpec_To_management_NodeEnvironmentSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_NodeEnvironmentStatus_To_management_NodeEnvironmentStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate is an autogenerated conversion function. -func Convert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in *DevPodEnvironmentTemplate, out *management.DevPodEnvironmentTemplate, s conversion.Scope) error { - return autoConvert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in, out, s) +// Convert_v1_NodeEnvironment_To_management_NodeEnvironment is an autogenerated conversion function. +func Convert_v1_NodeEnvironment_To_management_NodeEnvironment(in *NodeEnvironment, out *management.NodeEnvironment, s conversion.Scope) error { + return autoConvert_v1_NodeEnvironment_To_management_NodeEnvironment(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(in *management.DevPodEnvironmentTemplate, out *DevPodEnvironmentTemplate, s conversion.Scope) error { +func autoConvert_management_NodeEnvironment_To_v1_NodeEnvironment(in *management.NodeEnvironment, out *NodeEnvironment, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_NodeEnvironmentSpec_To_v1_NodeEnvironmentSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_NodeEnvironmentStatus_To_v1_NodeEnvironmentStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate is an autogenerated conversion function. -func Convert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(in *management.DevPodEnvironmentTemplate, out *DevPodEnvironmentTemplate, s conversion.Scope) error { - return autoConvert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(in, out, s) +// Convert_management_NodeEnvironment_To_v1_NodeEnvironment is an autogenerated conversion function. +func Convert_management_NodeEnvironment_To_v1_NodeEnvironment(in *management.NodeEnvironment, out *NodeEnvironment, s conversion.Scope) error { + return autoConvert_management_NodeEnvironment_To_v1_NodeEnvironment(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_v1_NodeEnvironmentData_To_management_NodeEnvironmentData(in *NodeEnvironmentData, out *management.NodeEnvironmentData, s conversion.Scope) error { + out.Outputs = *(*[]byte)(unsafe.Pointer(&in.Outputs)) + out.State = *(*[]byte)(unsafe.Pointer(&in.State)) + out.Operations = *(*map[string]*management.Operation)(unsafe.Pointer(&in.Operations)) return nil } -// Convert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList is an autogenerated conversion function. -func Convert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(in *DevPodEnvironmentTemplateList, out *management.DevPodEnvironmentTemplateList, s conversion.Scope) error { - return autoConvert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(in, out, s) +// Convert_v1_NodeEnvironmentData_To_management_NodeEnvironmentData is an autogenerated conversion function. +func Convert_v1_NodeEnvironmentData_To_management_NodeEnvironmentData(in *NodeEnvironmentData, out *management.NodeEnvironmentData, s conversion.Scope) error { + return autoConvert_v1_NodeEnvironmentData_To_management_NodeEnvironmentData(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_management_NodeEnvironmentData_To_v1_NodeEnvironmentData(in *management.NodeEnvironmentData, out *NodeEnvironmentData, s conversion.Scope) error { + out.Outputs = *(*[]byte)(unsafe.Pointer(&in.Outputs)) + out.State = *(*[]byte)(unsafe.Pointer(&in.State)) + out.Operations = *(*map[string]*Operation)(unsafe.Pointer(&in.Operations)) return nil } -// Convert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList is an autogenerated conversion function. -func Convert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(in *management.DevPodEnvironmentTemplateList, out *DevPodEnvironmentTemplateList, s conversion.Scope) error { - return autoConvert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(in, out, s) +// Convert_management_NodeEnvironmentData_To_v1_NodeEnvironmentData is an autogenerated conversion function. +func Convert_management_NodeEnvironmentData_To_v1_NodeEnvironmentData(in *management.NodeEnvironmentData, out *NodeEnvironmentData, s conversion.Scope) error { + return autoConvert_management_NodeEnvironmentData_To_v1_NodeEnvironmentData(in, out, s) } -func autoConvert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(in *DevPodEnvironmentTemplateSpec, out *management.DevPodEnvironmentTemplateSpec, s conversion.Scope) error { - out.DevPodEnvironmentTemplateSpec = in.DevPodEnvironmentTemplateSpec +func autoConvert_v1_NodeEnvironmentList_To_management_NodeEnvironmentList(in *NodeEnvironmentList, out *management.NodeEnvironmentList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.NodeEnvironment)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec is an autogenerated conversion function. -func Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(in *DevPodEnvironmentTemplateSpec, out *management.DevPodEnvironmentTemplateSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(in, out, s) +// Convert_v1_NodeEnvironmentList_To_management_NodeEnvironmentList is an autogenerated conversion function. +func Convert_v1_NodeEnvironmentList_To_management_NodeEnvironmentList(in *NodeEnvironmentList, out *management.NodeEnvironmentList, s conversion.Scope) error { + return autoConvert_v1_NodeEnvironmentList_To_management_NodeEnvironmentList(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(in *management.DevPodEnvironmentTemplateSpec, out *DevPodEnvironmentTemplateSpec, s conversion.Scope) error { - out.DevPodEnvironmentTemplateSpec = in.DevPodEnvironmentTemplateSpec +func autoConvert_management_NodeEnvironmentList_To_v1_NodeEnvironmentList(in *management.NodeEnvironmentList, out *NodeEnvironmentList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]NodeEnvironment)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec is an autogenerated conversion function. -func Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(in *management.DevPodEnvironmentTemplateSpec, out *DevPodEnvironmentTemplateSpec, s conversion.Scope) error { - return autoConvert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(in, out, s) +// Convert_management_NodeEnvironmentList_To_v1_NodeEnvironmentList is an autogenerated conversion function. +func Convert_management_NodeEnvironmentList_To_v1_NodeEnvironmentList(in *management.NodeEnvironmentList, out *NodeEnvironmentList, s conversion.Scope) error { + return autoConvert_management_NodeEnvironmentList_To_v1_NodeEnvironmentList(in, out, s) } -func autoConvert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(in *DevPodEnvironmentTemplateStatus, out *management.DevPodEnvironmentTemplateStatus, s conversion.Scope) error { +func autoConvert_v1_NodeEnvironmentSpec_To_management_NodeEnvironmentSpec(in *NodeEnvironmentSpec, out *management.NodeEnvironmentSpec, s conversion.Scope) error { + out.NodeEnvironmentSpec = in.NodeEnvironmentSpec return nil } -// Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus is an autogenerated conversion function. -func Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(in *DevPodEnvironmentTemplateStatus, out *management.DevPodEnvironmentTemplateStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(in, out, s) +// Convert_v1_NodeEnvironmentSpec_To_management_NodeEnvironmentSpec is an autogenerated conversion function. +func Convert_v1_NodeEnvironmentSpec_To_management_NodeEnvironmentSpec(in *NodeEnvironmentSpec, out *management.NodeEnvironmentSpec, s conversion.Scope) error { + return autoConvert_v1_NodeEnvironmentSpec_To_management_NodeEnvironmentSpec(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(in *management.DevPodEnvironmentTemplateStatus, out *DevPodEnvironmentTemplateStatus, s conversion.Scope) error { +func autoConvert_management_NodeEnvironmentSpec_To_v1_NodeEnvironmentSpec(in *management.NodeEnvironmentSpec, out *NodeEnvironmentSpec, s conversion.Scope) error { + out.NodeEnvironmentSpec = in.NodeEnvironmentSpec return nil } -// Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus is an autogenerated conversion function. -func Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(in *management.DevPodEnvironmentTemplateStatus, out *DevPodEnvironmentTemplateStatus, s conversion.Scope) error { - return autoConvert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(in, out, s) +// Convert_management_NodeEnvironmentSpec_To_v1_NodeEnvironmentSpec is an autogenerated conversion function. +func Convert_management_NodeEnvironmentSpec_To_v1_NodeEnvironmentSpec(in *management.NodeEnvironmentSpec, out *NodeEnvironmentSpec, s conversion.Scope) error { + return autoConvert_management_NodeEnvironmentSpec_To_v1_NodeEnvironmentSpec(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_v1_NodeEnvironmentStatus_To_management_NodeEnvironmentStatus(in *NodeEnvironmentStatus, out *management.NodeEnvironmentStatus, s conversion.Scope) error { + out.NodeEnvironmentStatus = in.NodeEnvironmentStatus 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_v1_NodeEnvironmentStatus_To_management_NodeEnvironmentStatus is an autogenerated conversion function. +func Convert_v1_NodeEnvironmentStatus_To_management_NodeEnvironmentStatus(in *NodeEnvironmentStatus, out *management.NodeEnvironmentStatus, s conversion.Scope) error { + return autoConvert_v1_NodeEnvironmentStatus_To_management_NodeEnvironmentStatus(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_management_NodeEnvironmentStatus_To_v1_NodeEnvironmentStatus(in *management.NodeEnvironmentStatus, out *NodeEnvironmentStatus, s conversion.Scope) error { + out.NodeEnvironmentStatus = in.NodeEnvironmentStatus 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_management_NodeEnvironmentStatus_To_v1_NodeEnvironmentStatus is an autogenerated conversion function. +func Convert_management_NodeEnvironmentStatus_To_v1_NodeEnvironmentStatus(in *management.NodeEnvironmentStatus, out *NodeEnvironmentStatus, s conversion.Scope) error { + return autoConvert_management_NodeEnvironmentStatus_To_v1_NodeEnvironmentStatus(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_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_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_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_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_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_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_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_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_v1_NodeProviderBCMGetResourcesResult_To_management_NodeProviderBCMGetResourcesResult(in *NodeProviderBCMGetResourcesResult, out *management.NodeProviderBCMGetResourcesResult, s conversion.Scope) error { + out.Nodes = *(*[]management.NodeProviderBCMNodeWithResources)(unsafe.Pointer(&in.Nodes)) + out.NodeGroups = *(*[]management.NodeProviderBCMNodeGroup)(unsafe.Pointer(&in.NodeGroups)) 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_v1_NodeProviderBCMGetResourcesResult_To_management_NodeProviderBCMGetResourcesResult is an autogenerated conversion function. +func Convert_v1_NodeProviderBCMGetResourcesResult_To_management_NodeProviderBCMGetResourcesResult(in *NodeProviderBCMGetResourcesResult, out *management.NodeProviderBCMGetResourcesResult, s conversion.Scope) error { + return autoConvert_v1_NodeProviderBCMGetResourcesResult_To_management_NodeProviderBCMGetResourcesResult(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_management_NodeProviderBCMGetResourcesResult_To_v1_NodeProviderBCMGetResourcesResult(in *management.NodeProviderBCMGetResourcesResult, out *NodeProviderBCMGetResourcesResult, s conversion.Scope) error { + out.Nodes = *(*[]NodeProviderBCMNodeWithResources)(unsafe.Pointer(&in.Nodes)) + out.NodeGroups = *(*[]NodeProviderBCMNodeGroup)(unsafe.Pointer(&in.NodeGroups)) 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_management_NodeProviderBCMGetResourcesResult_To_v1_NodeProviderBCMGetResourcesResult is an autogenerated conversion function. +func Convert_management_NodeProviderBCMGetResourcesResult_To_v1_NodeProviderBCMGetResourcesResult(in *management.NodeProviderBCMGetResourcesResult, out *NodeProviderBCMGetResourcesResult, s conversion.Scope) error { + return autoConvert_management_NodeProviderBCMGetResourcesResult_To_v1_NodeProviderBCMGetResourcesResult(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_v1_NodeProviderBCMNodeGroup_To_management_NodeProviderBCMNodeGroup(in *NodeProviderBCMNodeGroup, out *management.NodeProviderBCMNodeGroup, s conversion.Scope) error { + out.Name = in.Name + out.Nodes = *(*[]string)(unsafe.Pointer(&in.Nodes)) 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_v1_NodeProviderBCMNodeGroup_To_management_NodeProviderBCMNodeGroup is an autogenerated conversion function. +func Convert_v1_NodeProviderBCMNodeGroup_To_management_NodeProviderBCMNodeGroup(in *NodeProviderBCMNodeGroup, out *management.NodeProviderBCMNodeGroup, s conversion.Scope) error { + return autoConvert_v1_NodeProviderBCMNodeGroup_To_management_NodeProviderBCMNodeGroup(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. - - 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_NodeProviderBCMNodeGroup_To_v1_NodeProviderBCMNodeGroup(in *management.NodeProviderBCMNodeGroup, out *NodeProviderBCMNodeGroup, s conversion.Scope) error { + out.Name = in.Name + out.Nodes = *(*[]string)(unsafe.Pointer(&in.Nodes)) 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_NodeProviderBCMNodeGroup_To_v1_NodeProviderBCMNodeGroup is an autogenerated conversion function. +func Convert_management_NodeProviderBCMNodeGroup_To_v1_NodeProviderBCMNodeGroup(in *management.NodeProviderBCMNodeGroup, out *NodeProviderBCMNodeGroup, s conversion.Scope) error { + return autoConvert_management_NodeProviderBCMNodeGroup_To_v1_NodeProviderBCMNodeGroup(in, out, s) } -func autoConvert_v1_DevPodStatusOptionsList_To_management_DevPodStatusOptionsList(in *DevPodStatusOptionsList, out *management.DevPodStatusOptionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodStatusOptions)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_NodeProviderBCMNodeWithResources_To_management_NodeProviderBCMNodeWithResources(in *NodeProviderBCMNodeWithResources, out *management.NodeProviderBCMNodeWithResources, s conversion.Scope) error { + out.Name = in.Name + out.Resources = (*corev1.ResourceList)(unsafe.Pointer(in.Resources)) 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_NodeProviderBCMNodeWithResources_To_management_NodeProviderBCMNodeWithResources is an autogenerated conversion function. +func Convert_v1_NodeProviderBCMNodeWithResources_To_management_NodeProviderBCMNodeWithResources(in *NodeProviderBCMNodeWithResources, out *management.NodeProviderBCMNodeWithResources, s conversion.Scope) error { + return autoConvert_v1_NodeProviderBCMNodeWithResources_To_management_NodeProviderBCMNodeWithResources(in, out, s) } -func autoConvert_management_DevPodStatusOptionsList_To_v1_DevPodStatusOptionsList(in *management.DevPodStatusOptionsList, out *DevPodStatusOptionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodStatusOptions)(unsafe.Pointer(&in.Items)) +func autoConvert_management_NodeProviderBCMNodeWithResources_To_v1_NodeProviderBCMNodeWithResources(in *management.NodeProviderBCMNodeWithResources, out *NodeProviderBCMNodeWithResources, s conversion.Scope) error { + out.Name = in.Name + out.Resources = (*corev1.ResourceList)(unsafe.Pointer(in.Resources)) 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_NodeProviderBCMNodeWithResources_To_v1_NodeProviderBCMNodeWithResources is an autogenerated conversion function. +func Convert_management_NodeProviderBCMNodeWithResources_To_v1_NodeProviderBCMNodeWithResources(in *management.NodeProviderBCMNodeWithResources, out *NodeProviderBCMNodeWithResources, s conversion.Scope) error { + return autoConvert_management_NodeProviderBCMNodeWithResources_To_v1_NodeProviderBCMNodeWithResources(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_NodeProviderBCMTestConnectionResult_To_management_NodeProviderBCMTestConnectionResult(in *NodeProviderBCMTestConnectionResult, out *management.NodeProviderBCMTestConnectionResult, s conversion.Scope) error { + out.Success = in.Success + out.Message = in.Message 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_NodeProviderBCMTestConnectionResult_To_management_NodeProviderBCMTestConnectionResult is an autogenerated conversion function. +func Convert_v1_NodeProviderBCMTestConnectionResult_To_management_NodeProviderBCMTestConnectionResult(in *NodeProviderBCMTestConnectionResult, out *management.NodeProviderBCMTestConnectionResult, s conversion.Scope) error { + return autoConvert_v1_NodeProviderBCMTestConnectionResult_To_management_NodeProviderBCMTestConnectionResult(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_NodeProviderBCMTestConnectionResult_To_v1_NodeProviderBCMTestConnectionResult(in *management.NodeProviderBCMTestConnectionResult, out *NodeProviderBCMTestConnectionResult, s conversion.Scope) error { + out.Success = in.Success + out.Message = in.Message 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_management_NodeProviderBCMTestConnectionResult_To_v1_NodeProviderBCMTestConnectionResult is an autogenerated conversion function. +func Convert_management_NodeProviderBCMTestConnectionResult_To_v1_NodeProviderBCMTestConnectionResult(in *management.NodeProviderBCMTestConnectionResult, out *NodeProviderBCMTestConnectionResult, s conversion.Scope) error { + return autoConvert_management_NodeProviderBCMTestConnectionResult_To_v1_NodeProviderBCMTestConnectionResult(in, out, s) } -func autoConvert_url_Values_To_v1_DevPodStopOptions(in *url.Values, out *DevPodStopOptions, 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_NodeProviderCalculateCostResult_To_management_NodeProviderCalculateCostResult(in *NodeProviderCalculateCostResult, out *management.NodeProviderCalculateCostResult, s conversion.Scope) error { + out.Cost = in.Cost 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_v1_NodeProviderCalculateCostResult_To_management_NodeProviderCalculateCostResult is an autogenerated conversion function. +func Convert_v1_NodeProviderCalculateCostResult_To_management_NodeProviderCalculateCostResult(in *NodeProviderCalculateCostResult, out *management.NodeProviderCalculateCostResult, s conversion.Scope) error { + return autoConvert_v1_NodeProviderCalculateCostResult_To_management_NodeProviderCalculateCostResult(in, out, s) } -func autoConvert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList(in *DevPodStopOptionsList, out *management.DevPodStopOptionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodStopOptions)(unsafe.Pointer(&in.Items)) +func autoConvert_management_NodeProviderCalculateCostResult_To_v1_NodeProviderCalculateCostResult(in *management.NodeProviderCalculateCostResult, out *NodeProviderCalculateCostResult, s conversion.Scope) error { + out.Cost = in.Cost 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_management_NodeProviderCalculateCostResult_To_v1_NodeProviderCalculateCostResult is an autogenerated conversion function. +func Convert_management_NodeProviderCalculateCostResult_To_v1_NodeProviderCalculateCostResult(in *management.NodeProviderCalculateCostResult, out *NodeProviderCalculateCostResult, s conversion.Scope) error { + return autoConvert_management_NodeProviderCalculateCostResult_To_v1_NodeProviderCalculateCostResult(in, out, s) } -func autoConvert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList(in *management.DevPodStopOptionsList, out *DevPodStopOptionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodStopOptions)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_NodeProviderExec_To_management_NodeProviderExec(in *NodeProviderExec, out *management.NodeProviderExec, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_NodeProviderExecSpec_To_management_NodeProviderExecSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_NodeProviderExecStatus_To_management_NodeProviderExecStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_v1_NodeProviderExec_To_management_NodeProviderExec is an autogenerated conversion function. +func Convert_v1_NodeProviderExec_To_management_NodeProviderExec(in *NodeProviderExec, out *management.NodeProviderExec, s conversion.Scope) error { + return autoConvert_v1_NodeProviderExec_To_management_NodeProviderExec(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_management_NodeProviderExec_To_v1_NodeProviderExec(in *management.NodeProviderExec, out *NodeProviderExec, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_NodeProviderExecSpec_To_v1_NodeProviderExecSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_NodeProviderExecStatus_To_v1_NodeProviderExecStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_management_NodeProviderExec_To_v1_NodeProviderExec is an autogenerated conversion function. +func Convert_management_NodeProviderExec_To_v1_NodeProviderExec(in *management.NodeProviderExec, out *NodeProviderExec, s conversion.Scope) error { + return autoConvert_management_NodeProviderExec_To_v1_NodeProviderExec(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_v1_NodeProviderExecList_To_management_NodeProviderExecList(in *NodeProviderExecList, out *management.NodeProviderExecList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.NodeProviderExec)(unsafe.Pointer(&in.Items)) 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_NodeProviderExecList_To_management_NodeProviderExecList is an autogenerated conversion function. +func Convert_v1_NodeProviderExecList_To_management_NodeProviderExecList(in *NodeProviderExecList, out *management.NodeProviderExecList, s conversion.Scope) error { + return autoConvert_v1_NodeProviderExecList_To_management_NodeProviderExecList(in, out, s) } -func autoConvert_url_Values_To_v1_DevPodUpOptions(in *url.Values, out *DevPodUpOptions, 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 { - return err - } - } else { - out.WebMode = false - } - 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 { - return err - } - } else { - out.CLIMode = 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 - } - 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_NodeProviderExecList_To_v1_NodeProviderExecList(in *management.NodeProviderExecList, out *NodeProviderExecList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]NodeProviderExec)(unsafe.Pointer(&in.Items)) 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_management_NodeProviderExecList_To_v1_NodeProviderExecList is an autogenerated conversion function. +func Convert_management_NodeProviderExecList_To_v1_NodeProviderExecList(in *management.NodeProviderExecList, out *NodeProviderExecList, s conversion.Scope) error { + return autoConvert_management_NodeProviderExecList_To_v1_NodeProviderExecList(in, out, s) } -func autoConvert_v1_DevPodUpOptionsList_To_management_DevPodUpOptionsList(in *DevPodUpOptionsList, out *management.DevPodUpOptionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodUpOptions)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_NodeProviderExecResult_To_management_NodeProviderExecResult(in *NodeProviderExecResult, out *management.NodeProviderExecResult, s conversion.Scope) error { + out.Success = in.Success + out.Message = in.Message 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_NodeProviderExecResult_To_management_NodeProviderExecResult is an autogenerated conversion function. +func Convert_v1_NodeProviderExecResult_To_management_NodeProviderExecResult(in *NodeProviderExecResult, out *management.NodeProviderExecResult, s conversion.Scope) error { + return autoConvert_v1_NodeProviderExecResult_To_management_NodeProviderExecResult(in, out, s) } -func autoConvert_management_DevPodUpOptionsList_To_v1_DevPodUpOptionsList(in *management.DevPodUpOptionsList, out *DevPodUpOptionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodUpOptions)(unsafe.Pointer(&in.Items)) +func autoConvert_management_NodeProviderExecResult_To_v1_NodeProviderExecResult(in *management.NodeProviderExecResult, out *NodeProviderExecResult, s conversion.Scope) error { + out.Success = in.Success + out.Message = in.Message 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_NodeProviderExecResult_To_v1_NodeProviderExecResult is an autogenerated conversion function. +func Convert_management_NodeProviderExecResult_To_v1_NodeProviderExecResult(in *management.NodeProviderExecResult, out *NodeProviderExecResult, s conversion.Scope) error { + return autoConvert_management_NodeProviderExecResult_To_v1_NodeProviderExecResult(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 - } +func autoConvert_v1_NodeProviderExecSpec_To_management_NodeProviderExecSpec(in *NodeProviderExecSpec, out *management.NodeProviderExecSpec, s conversion.Scope) error { + out.Command = in.Command + out.Args = in.Args 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_NodeProviderExecSpec_To_management_NodeProviderExecSpec is an autogenerated conversion function. +func Convert_v1_NodeProviderExecSpec_To_management_NodeProviderExecSpec(in *NodeProviderExecSpec, out *management.NodeProviderExecSpec, s conversion.Scope) error { + return autoConvert_v1_NodeProviderExecSpec_To_management_NodeProviderExecSpec(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 - } +func autoConvert_management_NodeProviderExecSpec_To_v1_NodeProviderExecSpec(in *management.NodeProviderExecSpec, out *NodeProviderExecSpec, s conversion.Scope) error { + out.Command = in.Command + out.Args = in.Args 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_NodeProviderExecSpec_To_v1_NodeProviderExecSpec is an autogenerated conversion function. +func Convert_management_NodeProviderExecSpec_To_v1_NodeProviderExecSpec(in *management.NodeProviderExecSpec, out *NodeProviderExecSpec, s conversion.Scope) error { + return autoConvert_management_NodeProviderExecSpec_To_v1_NodeProviderExecSpec(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList, out *management.DevPodWorkspaceInstanceList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstance)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_NodeProviderExecStatus_To_management_NodeProviderExecStatus(in *NodeProviderExecStatus, out *management.NodeProviderExecStatus, s conversion.Scope) error { + out.Result = in.Result 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_NodeProviderExecStatus_To_management_NodeProviderExecStatus is an autogenerated conversion function. +func Convert_v1_NodeProviderExecStatus_To_management_NodeProviderExecStatus(in *NodeProviderExecStatus, out *management.NodeProviderExecStatus, s conversion.Scope) error { + return autoConvert_v1_NodeProviderExecStatus_To_management_NodeProviderExecStatus(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(in *management.DevPodWorkspaceInstanceList, out *DevPodWorkspaceInstanceList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstance)(unsafe.Pointer(&in.Items)) +func autoConvert_management_NodeProviderExecStatus_To_v1_NodeProviderExecStatus(in *management.NodeProviderExecStatus, out *NodeProviderExecStatus, s conversion.Scope) error { + out.Result = in.Result 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_NodeProviderExecStatus_To_v1_NodeProviderExecStatus is an autogenerated conversion function. +func Convert_management_NodeProviderExecStatus_To_v1_NodeProviderExecStatus(in *management.NodeProviderExecStatus, out *NodeProviderExecStatus, s conversion.Scope) error { + return autoConvert_management_NodeProviderExecStatus_To_v1_NodeProviderExecStatus(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_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_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_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_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec +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_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_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_DevPodWorkspaceInstanceState_To_management_DevPodWorkspaceInstanceState(in *DevPodWorkspaceInstanceState, out *management.DevPodWorkspaceInstanceState, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.State = in.State +func autoConvert_v1_NodeProviderSpec_To_management_NodeProviderSpec(in *NodeProviderSpec, out *management.NodeProviderSpec, s conversion.Scope) error { + out.NodeProviderSpec = in.NodeProviderSpec 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_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_DevPodWorkspaceInstanceState_To_v1_DevPodWorkspaceInstanceState(in *management.DevPodWorkspaceInstanceState, out *DevPodWorkspaceInstanceState, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.State = in.State +func autoConvert_management_NodeProviderSpec_To_v1_NodeProviderSpec(in *management.NodeProviderSpec, out *NodeProviderSpec, s conversion.Scope) error { + out.NodeProviderSpec = in.NodeProviderSpec 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_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_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_NodeProviderStatus_To_management_NodeProviderStatus(in *NodeProviderStatus, out *management.NodeProviderStatus, s conversion.Scope) error { + out.NodeProviderStatus = in.NodeProviderStatus 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_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_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_NodeProviderStatus_To_v1_NodeProviderStatus(in *management.NodeProviderStatus, out *NodeProviderStatus, s conversion.Scope) error { + out.NodeProviderStatus = in.NodeProviderStatus 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_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_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_NodeProviderTerraformValidateResult_To_management_NodeProviderTerraformValidateResult(in *NodeProviderTerraformValidateResult, out *management.NodeProviderTerraformValidateResult, s conversion.Scope) error { + out.Success = in.Success + out.Output = in.Output 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_NodeProviderTerraformValidateResult_To_management_NodeProviderTerraformValidateResult is an autogenerated conversion function. +func Convert_v1_NodeProviderTerraformValidateResult_To_management_NodeProviderTerraformValidateResult(in *NodeProviderTerraformValidateResult, out *management.NodeProviderTerraformValidateResult, s conversion.Scope) error { + return autoConvert_v1_NodeProviderTerraformValidateResult_To_management_NodeProviderTerraformValidateResult(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_NodeProviderTerraformValidateResult_To_v1_NodeProviderTerraformValidateResult(in *management.NodeProviderTerraformValidateResult, out *NodeProviderTerraformValidateResult, s conversion.Scope) error { + out.Success = in.Success + out.Output = in.Output 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_NodeProviderTerraformValidateResult_To_v1_NodeProviderTerraformValidateResult is an autogenerated conversion function. +func Convert_management_NodeProviderTerraformValidateResult_To_v1_NodeProviderTerraformValidateResult(in *management.NodeProviderTerraformValidateResult, out *NodeProviderTerraformValidateResult, s conversion.Scope) error { + return autoConvert_management_NodeProviderTerraformValidateResult_To_v1_NodeProviderTerraformValidateResult(in, out, s) } -func autoConvert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate, out *management.DevPodWorkspaceTemplate, s conversion.Scope) error { +func autoConvert_v1_NodeType_To_management_NodeType(in *NodeType, out *management.NodeType, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_NodeTypeSpec_To_management_NodeTypeSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_NodeTypeStatus_To_management_NodeTypeStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate, out *management.DevPodWorkspaceTemplate, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(in, out, s) +// Convert_v1_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_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate(in *management.DevPodWorkspaceTemplate, out *DevPodWorkspaceTemplate, s conversion.Scope) error { +func autoConvert_management_NodeType_To_v1_NodeType(in *management.NodeType, out *NodeType, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_NodeTypeSpec_To_v1_NodeTypeSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_NodeTypeStatus_To_v1_NodeTypeStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate(in *management.DevPodWorkspaceTemplate, out *DevPodWorkspaceTemplate, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate(in, out, s) +// Convert_management_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_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList, out *management.DevPodWorkspaceTemplateList, 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.DevPodWorkspaceTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.NodeType)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList, out *management.DevPodWorkspaceTemplateList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList(in, out, s) +// Convert_v1_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_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList(in *management.DevPodWorkspaceTemplateList, out *DevPodWorkspaceTemplateList, 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 = *(*[]DevPodWorkspaceTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]NodeType)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList(in *management.DevPodWorkspaceTemplateList, out *DevPodWorkspaceTemplateList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList(in, out, s) +// Convert_management_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_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(in *DevPodWorkspaceTemplateSpec, out *management.DevPodWorkspaceTemplateSpec, s conversion.Scope) error { - out.DevPodWorkspaceTemplateSpec = in.DevPodWorkspaceTemplateSpec +func autoConvert_v1_NodeTypeSpec_To_management_NodeTypeSpec(in *NodeTypeSpec, out *management.NodeTypeSpec, s conversion.Scope) error { + out.NodeTypeSpec = in.NodeTypeSpec return nil } -// Convert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(in *DevPodWorkspaceTemplateSpec, out *management.DevPodWorkspaceTemplateSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(in, out, s) +// Convert_v1_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_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(in *management.DevPodWorkspaceTemplateSpec, out *DevPodWorkspaceTemplateSpec, s conversion.Scope) error { - out.DevPodWorkspaceTemplateSpec = in.DevPodWorkspaceTemplateSpec +func autoConvert_management_NodeTypeSpec_To_v1_NodeTypeSpec(in *management.NodeTypeSpec, out *NodeTypeSpec, s conversion.Scope) error { + out.NodeTypeSpec = in.NodeTypeSpec return nil } -// Convert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(in *management.DevPodWorkspaceTemplateSpec, out *DevPodWorkspaceTemplateSpec, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(in, out, s) +// Convert_management_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_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(in *DevPodWorkspaceTemplateStatus, out *management.DevPodWorkspaceTemplateStatus, s conversion.Scope) error { - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus +func autoConvert_v1_NodeTypeStatus_To_management_NodeTypeStatus(in *NodeTypeStatus, out *management.NodeTypeStatus, s conversion.Scope) error { + out.NodeTypeStatus = in.NodeTypeStatus return nil } -// Convert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(in *DevPodWorkspaceTemplateStatus, out *management.DevPodWorkspaceTemplateStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(in, out, s) +// Convert_v1_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_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(in *management.DevPodWorkspaceTemplateStatus, out *DevPodWorkspaceTemplateStatus, s conversion.Scope) error { - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus +func autoConvert_management_NodeTypeStatus_To_v1_NodeTypeStatus(in *management.NodeTypeStatus, out *NodeTypeStatus, s conversion.Scope) error { + out.NodeTypeStatus = in.NodeTypeStatus return nil } -// Convert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(in *management.DevPodWorkspaceTemplateStatus, out *DevPodWorkspaceTemplateStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(in, out, s) +// Convert_management_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_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken(in *DirectClusterEndpointToken, out *management.DirectClusterEndpointToken, s conversion.Scope) error { +func autoConvert_v1_OIDC_To_management_OIDC(in *OIDC, out *management.OIDC, s conversion.Scope) error { + out.Enabled = in.Enabled + out.WildcardRedirect = in.WildcardRedirect + out.Clients = *(*[]management.OIDCClientSpec)(unsafe.Pointer(&in.Clients)) + return nil +} + +// Convert_v1_OIDC_To_management_OIDC is an autogenerated conversion function. +func Convert_v1_OIDC_To_management_OIDC(in *OIDC, out *management.OIDC, s conversion.Scope) error { + return autoConvert_v1_OIDC_To_management_OIDC(in, out, s) +} + +func autoConvert_management_OIDC_To_v1_OIDC(in *management.OIDC, out *OIDC, s conversion.Scope) error { + out.Enabled = in.Enabled + out.WildcardRedirect = in.WildcardRedirect + out.Clients = *(*[]OIDCClientSpec)(unsafe.Pointer(&in.Clients)) + return nil +} + +// Convert_management_OIDC_To_v1_OIDC is an autogenerated conversion function. +func Convert_management_OIDC_To_v1_OIDC(in *management.OIDC, out *OIDC, s conversion.Scope) error { + return autoConvert_management_OIDC_To_v1_OIDC(in, out, s) +} + +func autoConvert_v1_OIDCClient_To_management_OIDCClient(in *OIDCClient, out *management.OIDCClient, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DirectClusterEndpointTokenSpec_To_management_DirectClusterEndpointTokenSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_OIDCClientSpec_To_management_OIDCClientSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_OIDCClientStatus_To_management_OIDCClientStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken is an autogenerated conversion function. -func Convert_v1_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken(in *DirectClusterEndpointToken, out *management.DirectClusterEndpointToken, s conversion.Scope) error { - return autoConvert_v1_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken(in, out, s) +// Convert_v1_OIDCClient_To_management_OIDCClient is an autogenerated conversion function. +func Convert_v1_OIDCClient_To_management_OIDCClient(in *OIDCClient, out *management.OIDCClient, s conversion.Scope) error { + return autoConvert_v1_OIDCClient_To_management_OIDCClient(in, out, s) } -func autoConvert_management_DirectClusterEndpointToken_To_v1_DirectClusterEndpointToken(in *management.DirectClusterEndpointToken, out *DirectClusterEndpointToken, s conversion.Scope) error { +func autoConvert_management_OIDCClient_To_v1_OIDCClient(in *management.OIDCClient, out *OIDCClient, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DirectClusterEndpointTokenSpec_To_v1_DirectClusterEndpointTokenSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_OIDCClientSpec_To_v1_OIDCClientSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_OIDCClientStatus_To_v1_OIDCClientStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_DirectClusterEndpointToken_To_v1_DirectClusterEndpointToken is an autogenerated conversion function. -func Convert_management_DirectClusterEndpointToken_To_v1_DirectClusterEndpointToken(in *management.DirectClusterEndpointToken, out *DirectClusterEndpointToken, s conversion.Scope) error { - return autoConvert_management_DirectClusterEndpointToken_To_v1_DirectClusterEndpointToken(in, out, s) +// Convert_management_OIDCClient_To_v1_OIDCClient is an autogenerated conversion function. +func Convert_management_OIDCClient_To_v1_OIDCClient(in *management.OIDCClient, out *OIDCClient, s conversion.Scope) error { + return autoConvert_management_OIDCClient_To_v1_OIDCClient(in, out, s) } -func autoConvert_v1_DirectClusterEndpointTokenList_To_management_DirectClusterEndpointTokenList(in *DirectClusterEndpointTokenList, out *management.DirectClusterEndpointTokenList, s conversion.Scope) error { +func autoConvert_v1_OIDCClientList_To_management_OIDCClientList(in *OIDCClientList, out *management.OIDCClientList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DirectClusterEndpointToken)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.OIDCClient)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DirectClusterEndpointTokenList_To_management_DirectClusterEndpointTokenList is an autogenerated conversion function. -func Convert_v1_DirectClusterEndpointTokenList_To_management_DirectClusterEndpointTokenList(in *DirectClusterEndpointTokenList, out *management.DirectClusterEndpointTokenList, s conversion.Scope) error { - return autoConvert_v1_DirectClusterEndpointTokenList_To_management_DirectClusterEndpointTokenList(in, out, s) +// Convert_v1_OIDCClientList_To_management_OIDCClientList is an autogenerated conversion function. +func Convert_v1_OIDCClientList_To_management_OIDCClientList(in *OIDCClientList, out *management.OIDCClientList, s conversion.Scope) error { + return autoConvert_v1_OIDCClientList_To_management_OIDCClientList(in, out, s) } -func autoConvert_management_DirectClusterEndpointTokenList_To_v1_DirectClusterEndpointTokenList(in *management.DirectClusterEndpointTokenList, out *DirectClusterEndpointTokenList, s conversion.Scope) error { +func autoConvert_management_OIDCClientList_To_v1_OIDCClientList(in *management.OIDCClientList, out *OIDCClientList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DirectClusterEndpointToken)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]OIDCClient)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DirectClusterEndpointTokenList_To_v1_DirectClusterEndpointTokenList is an autogenerated conversion function. -func Convert_management_DirectClusterEndpointTokenList_To_v1_DirectClusterEndpointTokenList(in *management.DirectClusterEndpointTokenList, out *DirectClusterEndpointTokenList, s conversion.Scope) error { - return autoConvert_management_DirectClusterEndpointTokenList_To_v1_DirectClusterEndpointTokenList(in, out, s) +// Convert_management_OIDCClientList_To_v1_OIDCClientList is an autogenerated conversion function. +func Convert_management_OIDCClientList_To_v1_OIDCClientList(in *management.OIDCClientList, out *OIDCClientList, s conversion.Scope) error { + return autoConvert_management_OIDCClientList_To_v1_OIDCClientList(in, out, s) } -func autoConvert_v1_DirectClusterEndpointTokenSpec_To_management_DirectClusterEndpointTokenSpec(in *DirectClusterEndpointTokenSpec, out *management.DirectClusterEndpointTokenSpec, s conversion.Scope) error { - out.TTL = in.TTL - out.Scope = (*storagev1.AccessKeyScope)(unsafe.Pointer(in.Scope)) +func autoConvert_v1_OIDCClientSpec_To_management_OIDCClientSpec(in *OIDCClientSpec, out *management.OIDCClientSpec, s conversion.Scope) error { + out.Name = in.Name + out.ClientID = in.ClientID + out.ClientSecret = in.ClientSecret + out.RedirectURIs = *(*[]string)(unsafe.Pointer(&in.RedirectURIs)) return nil } -// Convert_v1_DirectClusterEndpointTokenSpec_To_management_DirectClusterEndpointTokenSpec is an autogenerated conversion function. -func Convert_v1_DirectClusterEndpointTokenSpec_To_management_DirectClusterEndpointTokenSpec(in *DirectClusterEndpointTokenSpec, out *management.DirectClusterEndpointTokenSpec, s conversion.Scope) error { - return autoConvert_v1_DirectClusterEndpointTokenSpec_To_management_DirectClusterEndpointTokenSpec(in, out, s) +// Convert_v1_OIDCClientSpec_To_management_OIDCClientSpec is an autogenerated conversion function. +func Convert_v1_OIDCClientSpec_To_management_OIDCClientSpec(in *OIDCClientSpec, out *management.OIDCClientSpec, s conversion.Scope) error { + return autoConvert_v1_OIDCClientSpec_To_management_OIDCClientSpec(in, out, s) +} + +func autoConvert_management_OIDCClientSpec_To_v1_OIDCClientSpec(in *management.OIDCClientSpec, out *OIDCClientSpec, s conversion.Scope) error { + out.Name = in.Name + out.ClientID = in.ClientID + out.ClientSecret = in.ClientSecret + out.RedirectURIs = *(*[]string)(unsafe.Pointer(&in.RedirectURIs)) + return nil +} + +// Convert_management_OIDCClientSpec_To_v1_OIDCClientSpec is an autogenerated conversion function. +func Convert_management_OIDCClientSpec_To_v1_OIDCClientSpec(in *management.OIDCClientSpec, out *OIDCClientSpec, s conversion.Scope) error { + return autoConvert_management_OIDCClientSpec_To_v1_OIDCClientSpec(in, out, s) +} + +func autoConvert_v1_OIDCClientStatus_To_management_OIDCClientStatus(in *OIDCClientStatus, out *management.OIDCClientStatus, s conversion.Scope) error { + return nil +} + +// Convert_v1_OIDCClientStatus_To_management_OIDCClientStatus is an autogenerated conversion function. +func Convert_v1_OIDCClientStatus_To_management_OIDCClientStatus(in *OIDCClientStatus, out *management.OIDCClientStatus, s conversion.Scope) error { + return autoConvert_v1_OIDCClientStatus_To_management_OIDCClientStatus(in, out, s) +} + +func autoConvert_management_OIDCClientStatus_To_v1_OIDCClientStatus(in *management.OIDCClientStatus, out *OIDCClientStatus, s conversion.Scope) error { + return nil +} + +// Convert_management_OIDCClientStatus_To_v1_OIDCClientStatus is an autogenerated conversion function. +func Convert_management_OIDCClientStatus_To_v1_OIDCClientStatus(in *management.OIDCClientStatus, out *OIDCClientStatus, s conversion.Scope) error { + 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_DirectClusterEndpointTokenSpec_To_v1_DirectClusterEndpointTokenSpec(in *management.DirectClusterEndpointTokenSpec, out *DirectClusterEndpointTokenSpec, s conversion.Scope) error { - out.TTL = in.TTL - out.Scope = (*storagev1.AccessKeyScope)(unsafe.Pointer(in.Scope)) +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_DirectClusterEndpointTokenSpec_To_v1_DirectClusterEndpointTokenSpec is an autogenerated conversion function. -func Convert_management_DirectClusterEndpointTokenSpec_To_v1_DirectClusterEndpointTokenSpec(in *management.DirectClusterEndpointTokenSpec, out *DirectClusterEndpointTokenSpec, s conversion.Scope) error { - return autoConvert_management_DirectClusterEndpointTokenSpec_To_v1_DirectClusterEndpointTokenSpec(in, out, s) +// 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_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus(in *DirectClusterEndpointTokenStatus, out *management.DirectClusterEndpointTokenStatus, s conversion.Scope) error { - out.Token = in.Token +func autoConvert_v1_Operation_To_management_Operation(in *Operation, out *management.Operation, s conversion.Scope) error { + out.StartTimestamp = in.StartTimestamp + out.EndTimestamp = in.EndTimestamp + out.Phase = management.OperationPhase(in.Phase) + out.Logs = *(*[]byte)(unsafe.Pointer(&in.Logs)) + out.Error = in.Error return nil } -// Convert_v1_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus is an autogenerated conversion function. -func Convert_v1_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus(in *DirectClusterEndpointTokenStatus, out *management.DirectClusterEndpointTokenStatus, s conversion.Scope) error { - return autoConvert_v1_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus(in, out, s) +// Convert_v1_Operation_To_management_Operation is an autogenerated conversion function. +func Convert_v1_Operation_To_management_Operation(in *Operation, out *management.Operation, s conversion.Scope) error { + return autoConvert_v1_Operation_To_management_Operation(in, out, s) } -func autoConvert_management_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus(in *management.DirectClusterEndpointTokenStatus, out *DirectClusterEndpointTokenStatus, s conversion.Scope) error { - out.Token = in.Token +func autoConvert_management_Operation_To_v1_Operation(in *management.Operation, out *Operation, s conversion.Scope) error { + out.StartTimestamp = in.StartTimestamp + out.EndTimestamp = in.EndTimestamp + out.Phase = OperationPhase(in.Phase) + out.Logs = *(*[]byte)(unsafe.Pointer(&in.Logs)) + out.Error = in.Error return nil } -// Convert_management_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus is an autogenerated conversion function. -func Convert_management_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus(in *management.DirectClusterEndpointTokenStatus, out *DirectClusterEndpointTokenStatus, s conversion.Scope) error { - return autoConvert_management_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus(in, out, s) +// Convert_management_Operation_To_v1_Operation is an autogenerated conversion function. +func Convert_management_Operation_To_v1_Operation(in *management.Operation, out *Operation, s conversion.Scope) error { + return autoConvert_management_Operation_To_v1_Operation(in, out, s) } -func autoConvert_v1_Event_To_management_Event(in *Event, out *management.Event, s conversion.Scope) error { +func autoConvert_v1_OwnedAccessKey_To_management_OwnedAccessKey(in *OwnedAccessKey, out *management.OwnedAccessKey, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_EventSpec_To_management_EventSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_EventStatus_To_management_EventStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_Event_To_management_Event is an autogenerated conversion function. -func Convert_v1_Event_To_management_Event(in *Event, out *management.Event, s conversion.Scope) error { - return autoConvert_v1_Event_To_management_Event(in, out, s) +// Convert_v1_OwnedAccessKey_To_management_OwnedAccessKey is an autogenerated conversion function. +func Convert_v1_OwnedAccessKey_To_management_OwnedAccessKey(in *OwnedAccessKey, out *management.OwnedAccessKey, s conversion.Scope) error { + return autoConvert_v1_OwnedAccessKey_To_management_OwnedAccessKey(in, out, s) } -func autoConvert_management_Event_To_v1_Event(in *management.Event, out *Event, s conversion.Scope) error { +func autoConvert_management_OwnedAccessKey_To_v1_OwnedAccessKey(in *management.OwnedAccessKey, out *OwnedAccessKey, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_EventSpec_To_v1_EventSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_EventStatus_To_v1_EventStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_Event_To_v1_Event is an autogenerated conversion function. -func Convert_management_Event_To_v1_Event(in *management.Event, out *Event, s conversion.Scope) error { - return autoConvert_management_Event_To_v1_Event(in, out, s) +// Convert_management_OwnedAccessKey_To_v1_OwnedAccessKey is an autogenerated conversion function. +func Convert_management_OwnedAccessKey_To_v1_OwnedAccessKey(in *management.OwnedAccessKey, out *OwnedAccessKey, s conversion.Scope) error { + return autoConvert_management_OwnedAccessKey_To_v1_OwnedAccessKey(in, out, s) } -func autoConvert_v1_EventList_To_management_EventList(in *EventList, out *management.EventList, s conversion.Scope) error { +func autoConvert_v1_OwnedAccessKeyList_To_management_OwnedAccessKeyList(in *OwnedAccessKeyList, out *management.OwnedAccessKeyList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.Event)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.OwnedAccessKey)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_EventList_To_management_EventList is an autogenerated conversion function. -func Convert_v1_EventList_To_management_EventList(in *EventList, out *management.EventList, s conversion.Scope) error { - return autoConvert_v1_EventList_To_management_EventList(in, out, s) +// Convert_v1_OwnedAccessKeyList_To_management_OwnedAccessKeyList is an autogenerated conversion function. +func Convert_v1_OwnedAccessKeyList_To_management_OwnedAccessKeyList(in *OwnedAccessKeyList, out *management.OwnedAccessKeyList, s conversion.Scope) error { + return autoConvert_v1_OwnedAccessKeyList_To_management_OwnedAccessKeyList(in, out, s) } -func autoConvert_management_EventList_To_v1_EventList(in *management.EventList, out *EventList, s conversion.Scope) error { +func autoConvert_management_OwnedAccessKeyList_To_v1_OwnedAccessKeyList(in *management.OwnedAccessKeyList, out *OwnedAccessKeyList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]Event)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]OwnedAccessKey)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_EventList_To_v1_EventList is an autogenerated conversion function. -func Convert_management_EventList_To_v1_EventList(in *management.EventList, out *EventList, s conversion.Scope) error { - return autoConvert_management_EventList_To_v1_EventList(in, out, s) +// Convert_management_OwnedAccessKeyList_To_v1_OwnedAccessKeyList is an autogenerated conversion function. +func Convert_management_OwnedAccessKeyList_To_v1_OwnedAccessKeyList(in *management.OwnedAccessKeyList, out *OwnedAccessKeyList, s conversion.Scope) error { + return autoConvert_management_OwnedAccessKeyList_To_v1_OwnedAccessKeyList(in, out, s) } -func autoConvert_v1_EventSpec_To_management_EventSpec(in *EventSpec, out *management.EventSpec, s conversion.Scope) error { +func autoConvert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec(in *OwnedAccessKeySpec, out *management.OwnedAccessKeySpec, s conversion.Scope) error { + out.AccessKeySpec = in.AccessKeySpec return nil } -// Convert_v1_EventSpec_To_management_EventSpec is an autogenerated conversion function. -func Convert_v1_EventSpec_To_management_EventSpec(in *EventSpec, out *management.EventSpec, s conversion.Scope) error { - return autoConvert_v1_EventSpec_To_management_EventSpec(in, out, s) +// Convert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec is an autogenerated conversion function. +func Convert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec(in *OwnedAccessKeySpec, out *management.OwnedAccessKeySpec, s conversion.Scope) error { + return autoConvert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec(in, out, s) } -func autoConvert_management_EventSpec_To_v1_EventSpec(in *management.EventSpec, out *EventSpec, s conversion.Scope) error { +func autoConvert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec(in *management.OwnedAccessKeySpec, out *OwnedAccessKeySpec, s conversion.Scope) error { + out.AccessKeySpec = in.AccessKeySpec return nil } -// Convert_management_EventSpec_To_v1_EventSpec is an autogenerated conversion function. -func Convert_management_EventSpec_To_v1_EventSpec(in *management.EventSpec, out *EventSpec, s conversion.Scope) error { - return autoConvert_management_EventSpec_To_v1_EventSpec(in, out, s) +// Convert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec is an autogenerated conversion function. +func Convert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec(in *management.OwnedAccessKeySpec, out *OwnedAccessKeySpec, s conversion.Scope) error { + return autoConvert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec(in, out, s) } -func autoConvert_v1_EventStatus_To_management_EventStatus(in *EventStatus, out *management.EventStatus, s conversion.Scope) error { - out.Event = in.Event +func autoConvert_v1_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus(in *OwnedAccessKeyStatus, out *management.OwnedAccessKeyStatus, s conversion.Scope) error { + out.AccessKeyStatus = in.AccessKeyStatus return nil } -// Convert_v1_EventStatus_To_management_EventStatus is an autogenerated conversion function. -func Convert_v1_EventStatus_To_management_EventStatus(in *EventStatus, out *management.EventStatus, s conversion.Scope) error { - return autoConvert_v1_EventStatus_To_management_EventStatus(in, out, s) +// Convert_v1_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus is an autogenerated conversion function. +func Convert_v1_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus(in *OwnedAccessKeyStatus, out *management.OwnedAccessKeyStatus, s conversion.Scope) error { + return autoConvert_v1_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus(in, out, s) } -func autoConvert_management_EventStatus_To_v1_EventStatus(in *management.EventStatus, out *EventStatus, s conversion.Scope) error { - out.Event = in.Event +func autoConvert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(in *management.OwnedAccessKeyStatus, out *OwnedAccessKeyStatus, s conversion.Scope) error { + out.AccessKeyStatus = in.AccessKeyStatus return nil } -// Convert_management_EventStatus_To_v1_EventStatus is an autogenerated conversion function. -func Convert_management_EventStatus_To_v1_EventStatus(in *management.EventStatus, out *EventStatus, s conversion.Scope) error { - return autoConvert_management_EventStatus_To_v1_EventStatus(in, out, s) +// Convert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus is an autogenerated conversion function. +func Convert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(in *management.OwnedAccessKeyStatus, out *OwnedAccessKeyStatus, s conversion.Scope) error { + return autoConvert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(in, out, s) } -func autoConvert_v1_Feature_To_management_Feature(in *Feature, out *management.Feature, s conversion.Scope) error { +func autoConvert_v1_PlatformDB_To_management_PlatformDB(in *PlatformDB, out *management.PlatformDB, s conversion.Scope) error { + out.StorageClass = in.StorageClass + return nil +} + +// Convert_v1_PlatformDB_To_management_PlatformDB is an autogenerated conversion function. +func Convert_v1_PlatformDB_To_management_PlatformDB(in *PlatformDB, out *management.PlatformDB, s conversion.Scope) error { + return autoConvert_v1_PlatformDB_To_management_PlatformDB(in, out, s) +} + +func autoConvert_management_PlatformDB_To_v1_PlatformDB(in *management.PlatformDB, out *PlatformDB, s conversion.Scope) error { + out.StorageClass = in.StorageClass + return nil +} + +// Convert_management_PlatformDB_To_v1_PlatformDB is an autogenerated conversion function. +func Convert_management_PlatformDB_To_v1_PlatformDB(in *management.PlatformDB, out *PlatformDB, s conversion.Scope) error { + return autoConvert_management_PlatformDB_To_v1_PlatformDB(in, out, s) +} + +func autoConvert_v1_PredefinedApp_To_management_PredefinedApp(in *PredefinedApp, out *management.PredefinedApp, s conversion.Scope) error { + out.Chart = in.Chart + out.InitialVersion = in.InitialVersion + out.InitialValues = in.InitialValues + out.Clusters = *(*[]string)(unsafe.Pointer(&in.Clusters)) + out.Title = in.Title + out.IconURL = in.IconURL + out.ReadmeURL = in.ReadmeURL + return nil +} + +// Convert_v1_PredefinedApp_To_management_PredefinedApp is an autogenerated conversion function. +func Convert_v1_PredefinedApp_To_management_PredefinedApp(in *PredefinedApp, out *management.PredefinedApp, s conversion.Scope) error { + return autoConvert_v1_PredefinedApp_To_management_PredefinedApp(in, out, s) +} + +func autoConvert_management_PredefinedApp_To_v1_PredefinedApp(in *management.PredefinedApp, out *PredefinedApp, s conversion.Scope) error { + out.Chart = in.Chart + out.InitialVersion = in.InitialVersion + out.InitialValues = in.InitialValues + out.Clusters = *(*[]string)(unsafe.Pointer(&in.Clusters)) + out.Title = in.Title + out.IconURL = in.IconURL + out.ReadmeURL = in.ReadmeURL + return nil +} + +// Convert_management_PredefinedApp_To_v1_PredefinedApp is an autogenerated conversion function. +func Convert_management_PredefinedApp_To_v1_PredefinedApp(in *management.PredefinedApp, out *PredefinedApp, s conversion.Scope) error { + return autoConvert_management_PredefinedApp_To_v1_PredefinedApp(in, out, s) +} + +func autoConvert_v1_Project_To_management_Project(in *Project, out *management.Project, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_FeatureSpec_To_management_FeatureSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_ProjectSpec_To_management_ProjectSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_FeatureStatus_To_management_FeatureStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_ProjectStatus_To_management_ProjectStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_Feature_To_management_Feature is an autogenerated conversion function. -func Convert_v1_Feature_To_management_Feature(in *Feature, out *management.Feature, s conversion.Scope) error { - return autoConvert_v1_Feature_To_management_Feature(in, out, s) +// Convert_v1_Project_To_management_Project is an autogenerated conversion function. +func Convert_v1_Project_To_management_Project(in *Project, out *management.Project, s conversion.Scope) error { + return autoConvert_v1_Project_To_management_Project(in, out, s) } -func autoConvert_management_Feature_To_v1_Feature(in *management.Feature, out *Feature, s conversion.Scope) error { +func autoConvert_management_Project_To_v1_Project(in *management.Project, out *Project, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_FeatureSpec_To_v1_FeatureSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_ProjectSpec_To_v1_ProjectSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_FeatureStatus_To_v1_FeatureStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_ProjectStatus_To_v1_ProjectStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_Feature_To_v1_Feature is an autogenerated conversion function. -func Convert_management_Feature_To_v1_Feature(in *management.Feature, out *Feature, s conversion.Scope) error { - return autoConvert_management_Feature_To_v1_Feature(in, out, s) +// Convert_management_Project_To_v1_Project is an autogenerated conversion function. +func Convert_management_Project_To_v1_Project(in *management.Project, out *Project, s conversion.Scope) error { + return autoConvert_management_Project_To_v1_Project(in, out, s) } -func autoConvert_v1_FeatureList_To_management_FeatureList(in *FeatureList, out *management.FeatureList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.Feature)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_ProjectChartInfo_To_management_ProjectChartInfo(in *ProjectChartInfo, out *management.ProjectChartInfo, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_FeatureList_To_management_FeatureList is an autogenerated conversion function. -func Convert_v1_FeatureList_To_management_FeatureList(in *FeatureList, out *management.FeatureList, s conversion.Scope) error { - return autoConvert_v1_FeatureList_To_management_FeatureList(in, out, s) +// Convert_v1_ProjectChartInfo_To_management_ProjectChartInfo is an autogenerated conversion function. +func Convert_v1_ProjectChartInfo_To_management_ProjectChartInfo(in *ProjectChartInfo, out *management.ProjectChartInfo, s conversion.Scope) error { + return autoConvert_v1_ProjectChartInfo_To_management_ProjectChartInfo(in, out, s) } -func autoConvert_management_FeatureList_To_v1_FeatureList(in *management.FeatureList, out *FeatureList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]Feature)(unsafe.Pointer(&in.Items)) +func autoConvert_management_ProjectChartInfo_To_v1_ProjectChartInfo(in *management.ProjectChartInfo, out *ProjectChartInfo, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_FeatureList_To_v1_FeatureList is an autogenerated conversion function. -func Convert_management_FeatureList_To_v1_FeatureList(in *management.FeatureList, out *FeatureList, s conversion.Scope) error { - return autoConvert_management_FeatureList_To_v1_FeatureList(in, out, s) +// Convert_management_ProjectChartInfo_To_v1_ProjectChartInfo is an autogenerated conversion function. +func Convert_management_ProjectChartInfo_To_v1_ProjectChartInfo(in *management.ProjectChartInfo, out *ProjectChartInfo, s conversion.Scope) error { + return autoConvert_management_ProjectChartInfo_To_v1_ProjectChartInfo(in, out, s) } -func autoConvert_v1_FeatureSpec_To_management_FeatureSpec(in *FeatureSpec, out *management.FeatureSpec, s conversion.Scope) error { +func autoConvert_v1_ProjectChartInfoList_To_management_ProjectChartInfoList(in *ProjectChartInfoList, out *management.ProjectChartInfoList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ProjectChartInfo)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_FeatureSpec_To_management_FeatureSpec is an autogenerated conversion function. -func Convert_v1_FeatureSpec_To_management_FeatureSpec(in *FeatureSpec, out *management.FeatureSpec, s conversion.Scope) error { - return autoConvert_v1_FeatureSpec_To_management_FeatureSpec(in, out, s) +// Convert_v1_ProjectChartInfoList_To_management_ProjectChartInfoList is an autogenerated conversion function. +func Convert_v1_ProjectChartInfoList_To_management_ProjectChartInfoList(in *ProjectChartInfoList, out *management.ProjectChartInfoList, s conversion.Scope) error { + return autoConvert_v1_ProjectChartInfoList_To_management_ProjectChartInfoList(in, out, s) } -func autoConvert_management_FeatureSpec_To_v1_FeatureSpec(in *management.FeatureSpec, out *FeatureSpec, s conversion.Scope) error { +func autoConvert_management_ProjectChartInfoList_To_v1_ProjectChartInfoList(in *management.ProjectChartInfoList, out *ProjectChartInfoList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ProjectChartInfo)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_FeatureSpec_To_v1_FeatureSpec is an autogenerated conversion function. -func Convert_management_FeatureSpec_To_v1_FeatureSpec(in *management.FeatureSpec, out *FeatureSpec, s conversion.Scope) error { - return autoConvert_management_FeatureSpec_To_v1_FeatureSpec(in, out, s) +// Convert_management_ProjectChartInfoList_To_v1_ProjectChartInfoList is an autogenerated conversion function. +func Convert_management_ProjectChartInfoList_To_v1_ProjectChartInfoList(in *management.ProjectChartInfoList, out *ProjectChartInfoList, s conversion.Scope) error { + return autoConvert_management_ProjectChartInfoList_To_v1_ProjectChartInfoList(in, out, s) } -func autoConvert_v1_FeatureStatus_To_management_FeatureStatus(in *FeatureStatus, out *management.FeatureStatus, s conversion.Scope) error { - out.Feature = in.Feature - out.Internal = in.Internal - out.Used = in.Used +func autoConvert_v1_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(in *ProjectChartInfoSpec, out *management.ProjectChartInfoSpec, s conversion.Scope) error { + out.ChartInfoSpec = in.ChartInfoSpec return nil } -// Convert_v1_FeatureStatus_To_management_FeatureStatus is an autogenerated conversion function. -func Convert_v1_FeatureStatus_To_management_FeatureStatus(in *FeatureStatus, out *management.FeatureStatus, s conversion.Scope) error { - return autoConvert_v1_FeatureStatus_To_management_FeatureStatus(in, out, s) +// Convert_v1_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec is an autogenerated conversion function. +func Convert_v1_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(in *ProjectChartInfoSpec, out *management.ProjectChartInfoSpec, s conversion.Scope) error { + return autoConvert_v1_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(in, out, s) } -func autoConvert_management_FeatureStatus_To_v1_FeatureStatus(in *management.FeatureStatus, out *FeatureStatus, s conversion.Scope) error { - out.Feature = in.Feature - out.Internal = in.Internal - out.Used = in.Used +func autoConvert_management_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(in *management.ProjectChartInfoSpec, out *ProjectChartInfoSpec, s conversion.Scope) error { + out.ChartInfoSpec = in.ChartInfoSpec return nil } -// Convert_management_FeatureStatus_To_v1_FeatureStatus is an autogenerated conversion function. -func Convert_management_FeatureStatus_To_v1_FeatureStatus(in *management.FeatureStatus, out *FeatureStatus, s conversion.Scope) error { - return autoConvert_management_FeatureStatus_To_v1_FeatureStatus(in, out, s) +// Convert_management_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec is an autogenerated conversion function. +func Convert_management_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(in *management.ProjectChartInfoSpec, out *ProjectChartInfoSpec, s conversion.Scope) error { + return autoConvert_management_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(in, out, s) } -func autoConvert_v1_GroupResources_To_management_GroupResources(in *GroupResources, out *management.GroupResources, s conversion.Scope) error { - out.Group = in.Group - out.Resources = *(*[]string)(unsafe.Pointer(&in.Resources)) - out.ResourceNames = *(*[]string)(unsafe.Pointer(&in.ResourceNames)) +func autoConvert_v1_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(in *ProjectChartInfoStatus, out *management.ProjectChartInfoStatus, s conversion.Scope) error { + out.ChartInfoStatus = in.ChartInfoStatus return nil } - -// Convert_v1_GroupResources_To_management_GroupResources is an autogenerated conversion function. -func Convert_v1_GroupResources_To_management_GroupResources(in *GroupResources, out *management.GroupResources, s conversion.Scope) error { - return autoConvert_v1_GroupResources_To_management_GroupResources(in, out, s) + +// Convert_v1_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus is an autogenerated conversion function. +func Convert_v1_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(in *ProjectChartInfoStatus, out *management.ProjectChartInfoStatus, s conversion.Scope) error { + return autoConvert_v1_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(in, out, s) } -func autoConvert_management_GroupResources_To_v1_GroupResources(in *management.GroupResources, out *GroupResources, s conversion.Scope) error { - out.Group = in.Group - out.Resources = *(*[]string)(unsafe.Pointer(&in.Resources)) - out.ResourceNames = *(*[]string)(unsafe.Pointer(&in.ResourceNames)) +func autoConvert_management_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(in *management.ProjectChartInfoStatus, out *ProjectChartInfoStatus, s conversion.Scope) error { + out.ChartInfoStatus = in.ChartInfoStatus return nil } -// Convert_management_GroupResources_To_v1_GroupResources is an autogenerated conversion function. -func Convert_management_GroupResources_To_v1_GroupResources(in *management.GroupResources, out *GroupResources, s conversion.Scope) error { - return autoConvert_management_GroupResources_To_v1_GroupResources(in, out, s) +// Convert_management_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus is an autogenerated conversion function. +func Convert_management_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(in *management.ProjectChartInfoStatus, out *ProjectChartInfoStatus, s conversion.Scope) error { + return autoConvert_management_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(in, out, s) } -func autoConvert_v1_IngressAuthToken_To_management_IngressAuthToken(in *IngressAuthToken, out *management.IngressAuthToken, s conversion.Scope) error { +func autoConvert_v1_ProjectCharts_To_management_ProjectCharts(in *ProjectCharts, out *management.ProjectCharts, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.Charts = *(*[]storagev1.HelmChart)(unsafe.Pointer(&in.Charts)) + out.Busy = in.Busy return nil } -// Convert_v1_IngressAuthToken_To_management_IngressAuthToken is an autogenerated conversion function. -func Convert_v1_IngressAuthToken_To_management_IngressAuthToken(in *IngressAuthToken, out *management.IngressAuthToken, s conversion.Scope) error { - return autoConvert_v1_IngressAuthToken_To_management_IngressAuthToken(in, out, s) +// Convert_v1_ProjectCharts_To_management_ProjectCharts is an autogenerated conversion function. +func Convert_v1_ProjectCharts_To_management_ProjectCharts(in *ProjectCharts, out *management.ProjectCharts, s conversion.Scope) error { + return autoConvert_v1_ProjectCharts_To_management_ProjectCharts(in, out, s) } -func autoConvert_management_IngressAuthToken_To_v1_IngressAuthToken(in *management.IngressAuthToken, out *IngressAuthToken, s conversion.Scope) error { +func autoConvert_management_ProjectCharts_To_v1_ProjectCharts(in *management.ProjectCharts, out *ProjectCharts, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_IngressAuthTokenSpec_To_v1_IngressAuthTokenSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.Charts = *(*[]storagev1.HelmChart)(unsafe.Pointer(&in.Charts)) + out.Busy = in.Busy return nil } -// Convert_management_IngressAuthToken_To_v1_IngressAuthToken is an autogenerated conversion function. -func Convert_management_IngressAuthToken_To_v1_IngressAuthToken(in *management.IngressAuthToken, out *IngressAuthToken, s conversion.Scope) error { - return autoConvert_management_IngressAuthToken_To_v1_IngressAuthToken(in, out, s) +// Convert_management_ProjectCharts_To_v1_ProjectCharts is an autogenerated conversion function. +func Convert_management_ProjectCharts_To_v1_ProjectCharts(in *management.ProjectCharts, out *ProjectCharts, s conversion.Scope) error { + return autoConvert_management_ProjectCharts_To_v1_ProjectCharts(in, out, s) } -func autoConvert_v1_IngressAuthTokenList_To_management_IngressAuthTokenList(in *IngressAuthTokenList, out *management.IngressAuthTokenList, s conversion.Scope) error { +func autoConvert_v1_ProjectChartsList_To_management_ProjectChartsList(in *ProjectChartsList, out *management.ProjectChartsList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.IngressAuthToken)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ProjectCharts)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_IngressAuthTokenList_To_management_IngressAuthTokenList is an autogenerated conversion function. -func Convert_v1_IngressAuthTokenList_To_management_IngressAuthTokenList(in *IngressAuthTokenList, out *management.IngressAuthTokenList, s conversion.Scope) error { - return autoConvert_v1_IngressAuthTokenList_To_management_IngressAuthTokenList(in, out, s) +// Convert_v1_ProjectChartsList_To_management_ProjectChartsList is an autogenerated conversion function. +func Convert_v1_ProjectChartsList_To_management_ProjectChartsList(in *ProjectChartsList, out *management.ProjectChartsList, s conversion.Scope) error { + return autoConvert_v1_ProjectChartsList_To_management_ProjectChartsList(in, out, s) } -func autoConvert_management_IngressAuthTokenList_To_v1_IngressAuthTokenList(in *management.IngressAuthTokenList, out *IngressAuthTokenList, s conversion.Scope) error { +func autoConvert_management_ProjectChartsList_To_v1_ProjectChartsList(in *management.ProjectChartsList, out *ProjectChartsList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]IngressAuthToken)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ProjectCharts)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_IngressAuthTokenList_To_v1_IngressAuthTokenList is an autogenerated conversion function. -func Convert_management_IngressAuthTokenList_To_v1_IngressAuthTokenList(in *management.IngressAuthTokenList, out *IngressAuthTokenList, s conversion.Scope) error { - return autoConvert_management_IngressAuthTokenList_To_v1_IngressAuthTokenList(in, out, s) +// Convert_management_ProjectChartsList_To_v1_ProjectChartsList is an autogenerated conversion function. +func Convert_management_ProjectChartsList_To_v1_ProjectChartsList(in *management.ProjectChartsList, out *ProjectChartsList, s conversion.Scope) error { + return autoConvert_management_ProjectChartsList_To_v1_ProjectChartsList(in, out, s) } -func autoConvert_v1_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec(in *IngressAuthTokenSpec, out *management.IngressAuthTokenSpec, s conversion.Scope) error { - out.Host = in.Host - out.Signature = in.Signature +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)) return nil } -// Convert_v1_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec is an autogenerated conversion function. -func Convert_v1_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec(in *IngressAuthTokenSpec, out *management.IngressAuthTokenSpec, s conversion.Scope) error { - return autoConvert_v1_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec(in, out, s) +// Convert_v1_ProjectClusters_To_management_ProjectClusters is an autogenerated conversion function. +func Convert_v1_ProjectClusters_To_management_ProjectClusters(in *ProjectClusters, out *management.ProjectClusters, s conversion.Scope) error { + return autoConvert_v1_ProjectClusters_To_management_ProjectClusters(in, out, s) } -func autoConvert_management_IngressAuthTokenSpec_To_v1_IngressAuthTokenSpec(in *management.IngressAuthTokenSpec, out *IngressAuthTokenSpec, s conversion.Scope) error { - out.Host = in.Host - out.Signature = in.Signature +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)) return nil } -// Convert_management_IngressAuthTokenSpec_To_v1_IngressAuthTokenSpec is an autogenerated conversion function. -func Convert_management_IngressAuthTokenSpec_To_v1_IngressAuthTokenSpec(in *management.IngressAuthTokenSpec, out *IngressAuthTokenSpec, s conversion.Scope) error { - return autoConvert_management_IngressAuthTokenSpec_To_v1_IngressAuthTokenSpec(in, out, s) +// Convert_management_ProjectClusters_To_v1_ProjectClusters is an autogenerated conversion function. +func Convert_management_ProjectClusters_To_v1_ProjectClusters(in *management.ProjectClusters, out *ProjectClusters, s conversion.Scope) error { + return autoConvert_management_ProjectClusters_To_v1_ProjectClusters(in, out, s) } -func autoConvert_v1_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus(in *IngressAuthTokenStatus, out *management.IngressAuthTokenStatus, s conversion.Scope) error { - out.Token = in.Token +func autoConvert_v1_ProjectClustersList_To_management_ProjectClustersList(in *ProjectClustersList, out *management.ProjectClustersList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ProjectClusters)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus is an autogenerated conversion function. -func Convert_v1_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus(in *IngressAuthTokenStatus, out *management.IngressAuthTokenStatus, s conversion.Scope) error { - return autoConvert_v1_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus(in, out, s) +// Convert_v1_ProjectClustersList_To_management_ProjectClustersList is an autogenerated conversion function. +func Convert_v1_ProjectClustersList_To_management_ProjectClustersList(in *ProjectClustersList, out *management.ProjectClustersList, s conversion.Scope) error { + return autoConvert_v1_ProjectClustersList_To_management_ProjectClustersList(in, out, s) } -func autoConvert_management_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus(in *management.IngressAuthTokenStatus, out *IngressAuthTokenStatus, s conversion.Scope) error { - out.Token = in.Token +func autoConvert_management_ProjectClustersList_To_v1_ProjectClustersList(in *management.ProjectClustersList, out *ProjectClustersList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ProjectClusters)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus is an autogenerated conversion function. -func Convert_management_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus(in *management.IngressAuthTokenStatus, out *IngressAuthTokenStatus, s conversion.Scope) error { - return autoConvert_management_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus(in, out, s) +// Convert_management_ProjectClustersList_To_v1_ProjectClustersList is an autogenerated conversion function. +func Convert_management_ProjectClustersList_To_v1_ProjectClustersList(in *management.ProjectClustersList, out *ProjectClustersList, s conversion.Scope) error { + return autoConvert_management_ProjectClustersList_To_v1_ProjectClustersList(in, out, s) } -func autoConvert_v1_Kiosk_To_management_Kiosk(in *Kiosk, out *management.Kiosk, s conversion.Scope) error { +func autoConvert_v1_ProjectImportSpace_To_management_ProjectImportSpace(in *ProjectImportSpace, out *management.ProjectImportSpace, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_KioskSpec_To_management_KioskSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_KioskStatus_To_management_KioskStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(&in.SourceSpace, &out.SourceSpace, s); err != nil { return err } return nil } -// Convert_v1_Kiosk_To_management_Kiosk is an autogenerated conversion function. -func Convert_v1_Kiosk_To_management_Kiosk(in *Kiosk, out *management.Kiosk, s conversion.Scope) error { - return autoConvert_v1_Kiosk_To_management_Kiosk(in, out, s) +// Convert_v1_ProjectImportSpace_To_management_ProjectImportSpace is an autogenerated conversion function. +func Convert_v1_ProjectImportSpace_To_management_ProjectImportSpace(in *ProjectImportSpace, out *management.ProjectImportSpace, s conversion.Scope) error { + return autoConvert_v1_ProjectImportSpace_To_management_ProjectImportSpace(in, out, s) } -func autoConvert_management_Kiosk_To_v1_Kiosk(in *management.Kiosk, out *Kiosk, s conversion.Scope) error { +func autoConvert_management_ProjectImportSpace_To_v1_ProjectImportSpace(in *management.ProjectImportSpace, out *ProjectImportSpace, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_KioskSpec_To_v1_KioskSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_KioskStatus_To_v1_KioskStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(&in.SourceSpace, &out.SourceSpace, s); err != nil { return err } return nil } -// Convert_management_Kiosk_To_v1_Kiosk is an autogenerated conversion function. -func Convert_management_Kiosk_To_v1_Kiosk(in *management.Kiosk, out *Kiosk, s conversion.Scope) error { - return autoConvert_management_Kiosk_To_v1_Kiosk(in, out, s) +// Convert_management_ProjectImportSpace_To_v1_ProjectImportSpace is an autogenerated conversion function. +func Convert_management_ProjectImportSpace_To_v1_ProjectImportSpace(in *management.ProjectImportSpace, out *ProjectImportSpace, s conversion.Scope) error { + return autoConvert_management_ProjectImportSpace_To_v1_ProjectImportSpace(in, out, s) } -func autoConvert_v1_KioskList_To_management_KioskList(in *KioskList, out *management.KioskList, s conversion.Scope) error { +func autoConvert_v1_ProjectImportSpaceList_To_management_ProjectImportSpaceList(in *ProjectImportSpaceList, out *management.ProjectImportSpaceList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.Kiosk)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ProjectImportSpace)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_KioskList_To_management_KioskList is an autogenerated conversion function. -func Convert_v1_KioskList_To_management_KioskList(in *KioskList, out *management.KioskList, s conversion.Scope) error { - return autoConvert_v1_KioskList_To_management_KioskList(in, out, s) +// Convert_v1_ProjectImportSpaceList_To_management_ProjectImportSpaceList is an autogenerated conversion function. +func Convert_v1_ProjectImportSpaceList_To_management_ProjectImportSpaceList(in *ProjectImportSpaceList, out *management.ProjectImportSpaceList, s conversion.Scope) error { + return autoConvert_v1_ProjectImportSpaceList_To_management_ProjectImportSpaceList(in, out, s) } -func autoConvert_management_KioskList_To_v1_KioskList(in *management.KioskList, out *KioskList, s conversion.Scope) error { +func autoConvert_management_ProjectImportSpaceList_To_v1_ProjectImportSpaceList(in *management.ProjectImportSpaceList, out *ProjectImportSpaceList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]Kiosk)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ProjectImportSpace)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_KioskList_To_v1_KioskList is an autogenerated conversion function. -func Convert_management_KioskList_To_v1_KioskList(in *management.KioskList, out *KioskList, s conversion.Scope) error { - return autoConvert_management_KioskList_To_v1_KioskList(in, out, s) +// Convert_management_ProjectImportSpaceList_To_v1_ProjectImportSpaceList is an autogenerated conversion function. +func Convert_management_ProjectImportSpaceList_To_v1_ProjectImportSpaceList(in *management.ProjectImportSpaceList, out *ProjectImportSpaceList, s conversion.Scope) error { + return autoConvert_management_ProjectImportSpaceList_To_v1_ProjectImportSpaceList(in, out, s) } -func autoConvert_v1_KioskSpec_To_management_KioskSpec(in *KioskSpec, out *management.KioskSpec, s conversion.Scope) error { - out.HelmRelease = in.HelmRelease - out.SleepModeConfig = in.SleepModeConfig - out.ChartInfo = in.ChartInfo - out.StorageClusterQuota = in.StorageClusterQuota - out.UISettings = in.UISettings - if err := Convert_v1_License_To_management_License(&in.License, &out.License, s); err != nil { - return err - } +func autoConvert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(in *ProjectImportSpaceSource, out *management.ProjectImportSpaceSource, s conversion.Scope) error { + out.Name = in.Name + out.Cluster = in.Cluster + out.ImportName = in.ImportName return nil } -// Convert_v1_KioskSpec_To_management_KioskSpec is an autogenerated conversion function. -func Convert_v1_KioskSpec_To_management_KioskSpec(in *KioskSpec, out *management.KioskSpec, s conversion.Scope) error { - return autoConvert_v1_KioskSpec_To_management_KioskSpec(in, out, s) +// Convert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource is an autogenerated conversion function. +func Convert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(in *ProjectImportSpaceSource, out *management.ProjectImportSpaceSource, s conversion.Scope) error { + return autoConvert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(in, out, s) } -func autoConvert_management_KioskSpec_To_v1_KioskSpec(in *management.KioskSpec, out *KioskSpec, s conversion.Scope) error { - out.HelmRelease = in.HelmRelease - out.SleepModeConfig = in.SleepModeConfig - out.ChartInfo = in.ChartInfo - out.StorageClusterQuota = in.StorageClusterQuota - out.UISettings = in.UISettings - if err := Convert_management_License_To_v1_License(&in.License, &out.License, s); err != nil { - return err - } +func autoConvert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(in *management.ProjectImportSpaceSource, out *ProjectImportSpaceSource, s conversion.Scope) error { + out.Name = in.Name + out.Cluster = in.Cluster + out.ImportName = in.ImportName return nil } -// Convert_management_KioskSpec_To_v1_KioskSpec is an autogenerated conversion function. -func Convert_management_KioskSpec_To_v1_KioskSpec(in *management.KioskSpec, out *KioskSpec, s conversion.Scope) error { - return autoConvert_management_KioskSpec_To_v1_KioskSpec(in, out, s) +// Convert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource is an autogenerated conversion function. +func Convert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(in *management.ProjectImportSpaceSource, out *ProjectImportSpaceSource, s conversion.Scope) error { + return autoConvert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(in, out, s) } -func autoConvert_v1_KioskStatus_To_management_KioskStatus(in *KioskStatus, out *management.KioskStatus, s conversion.Scope) error { +func autoConvert_v1_ProjectList_To_management_ProjectList(in *ProjectList, out *management.ProjectList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.Project)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_KioskStatus_To_management_KioskStatus is an autogenerated conversion function. -func Convert_v1_KioskStatus_To_management_KioskStatus(in *KioskStatus, out *management.KioskStatus, s conversion.Scope) error { - return autoConvert_v1_KioskStatus_To_management_KioskStatus(in, out, s) +// Convert_v1_ProjectList_To_management_ProjectList is an autogenerated conversion function. +func Convert_v1_ProjectList_To_management_ProjectList(in *ProjectList, out *management.ProjectList, s conversion.Scope) error { + return autoConvert_v1_ProjectList_To_management_ProjectList(in, out, s) } -func autoConvert_management_KioskStatus_To_v1_KioskStatus(in *management.KioskStatus, out *KioskStatus, s conversion.Scope) error { +func autoConvert_management_ProjectList_To_v1_ProjectList(in *management.ProjectList, out *ProjectList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]Project)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_KioskStatus_To_v1_KioskStatus is an autogenerated conversion function. -func Convert_management_KioskStatus_To_v1_KioskStatus(in *management.KioskStatus, out *KioskStatus, s conversion.Scope) error { - return autoConvert_management_KioskStatus_To_v1_KioskStatus(in, out, s) +// Convert_management_ProjectList_To_v1_ProjectList is an autogenerated conversion function. +func Convert_management_ProjectList_To_v1_ProjectList(in *management.ProjectList, out *ProjectList, s conversion.Scope) error { + return autoConvert_management_ProjectList_To_v1_ProjectList(in, out, s) } -func autoConvert_v1_License_To_management_License(in *License, out *management.License, s conversion.Scope) error { +func autoConvert_v1_ProjectMember_To_management_ProjectMember(in *ProjectMember, out *management.ProjectMember, s conversion.Scope) error { + out.Info = in.Info + return nil +} + +// Convert_v1_ProjectMember_To_management_ProjectMember is an autogenerated conversion function. +func Convert_v1_ProjectMember_To_management_ProjectMember(in *ProjectMember, out *management.ProjectMember, s conversion.Scope) error { + return autoConvert_v1_ProjectMember_To_management_ProjectMember(in, out, s) +} + +func autoConvert_management_ProjectMember_To_v1_ProjectMember(in *management.ProjectMember, out *ProjectMember, s conversion.Scope) error { + out.Info = in.Info + return nil +} + +// Convert_management_ProjectMember_To_v1_ProjectMember is an autogenerated conversion function. +func Convert_management_ProjectMember_To_v1_ProjectMember(in *management.ProjectMember, out *ProjectMember, s conversion.Scope) error { + return autoConvert_management_ProjectMember_To_v1_ProjectMember(in, out, s) +} + +func autoConvert_v1_ProjectMembers_To_management_ProjectMembers(in *ProjectMembers, out *management.ProjectMembers, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_LicenseSpec_To_management_LicenseSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_LicenseStatus_To_management_LicenseStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.Teams = *(*[]management.ProjectMember)(unsafe.Pointer(&in.Teams)) + out.Users = *(*[]management.ProjectMember)(unsafe.Pointer(&in.Users)) return nil } -// Convert_v1_License_To_management_License is an autogenerated conversion function. -func Convert_v1_License_To_management_License(in *License, out *management.License, s conversion.Scope) error { - return autoConvert_v1_License_To_management_License(in, out, s) +// Convert_v1_ProjectMembers_To_management_ProjectMembers is an autogenerated conversion function. +func Convert_v1_ProjectMembers_To_management_ProjectMembers(in *ProjectMembers, out *management.ProjectMembers, s conversion.Scope) error { + return autoConvert_v1_ProjectMembers_To_management_ProjectMembers(in, out, s) } -func autoConvert_management_License_To_v1_License(in *management.License, out *License, s conversion.Scope) error { +func autoConvert_management_ProjectMembers_To_v1_ProjectMembers(in *management.ProjectMembers, out *ProjectMembers, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_LicenseSpec_To_v1_LicenseSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_LicenseStatus_To_v1_LicenseStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.Teams = *(*[]ProjectMember)(unsafe.Pointer(&in.Teams)) + out.Users = *(*[]ProjectMember)(unsafe.Pointer(&in.Users)) return nil } -// Convert_management_License_To_v1_License is an autogenerated conversion function. -func Convert_management_License_To_v1_License(in *management.License, out *License, s conversion.Scope) error { - return autoConvert_management_License_To_v1_License(in, out, s) +// Convert_management_ProjectMembers_To_v1_ProjectMembers is an autogenerated conversion function. +func Convert_management_ProjectMembers_To_v1_ProjectMembers(in *management.ProjectMembers, out *ProjectMembers, s conversion.Scope) error { + return autoConvert_management_ProjectMembers_To_v1_ProjectMembers(in, out, s) } -func autoConvert_v1_LicenseList_To_management_LicenseList(in *LicenseList, out *management.LicenseList, s conversion.Scope) error { +func autoConvert_v1_ProjectMembersList_To_management_ProjectMembersList(in *ProjectMembersList, out *management.ProjectMembersList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.License)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ProjectMembers)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_LicenseList_To_management_LicenseList is an autogenerated conversion function. -func Convert_v1_LicenseList_To_management_LicenseList(in *LicenseList, out *management.LicenseList, s conversion.Scope) error { - return autoConvert_v1_LicenseList_To_management_LicenseList(in, out, s) +// Convert_v1_ProjectMembersList_To_management_ProjectMembersList is an autogenerated conversion function. +func Convert_v1_ProjectMembersList_To_management_ProjectMembersList(in *ProjectMembersList, out *management.ProjectMembersList, s conversion.Scope) error { + return autoConvert_v1_ProjectMembersList_To_management_ProjectMembersList(in, out, s) } -func autoConvert_management_LicenseList_To_v1_LicenseList(in *management.LicenseList, out *LicenseList, s conversion.Scope) error { +func autoConvert_management_ProjectMembersList_To_v1_ProjectMembersList(in *management.ProjectMembersList, out *ProjectMembersList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]License)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ProjectMembers)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_LicenseList_To_v1_LicenseList is an autogenerated conversion function. -func Convert_management_LicenseList_To_v1_LicenseList(in *management.LicenseList, out *LicenseList, s conversion.Scope) error { - return autoConvert_management_LicenseList_To_v1_LicenseList(in, out, s) +// Convert_management_ProjectMembersList_To_v1_ProjectMembersList is an autogenerated conversion function. +func Convert_management_ProjectMembersList_To_v1_ProjectMembersList(in *management.ProjectMembersList, out *ProjectMembersList, s conversion.Scope) error { + return autoConvert_management_ProjectMembersList_To_v1_ProjectMembersList(in, out, s) } -func autoConvert_v1_LicenseRequest_To_management_LicenseRequest(in *LicenseRequest, out *management.LicenseRequest, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_LicenseRequestSpec_To_management_LicenseRequestSpec(&in.Spec, &out.Spec, s); err != nil { +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_LicenseRequestStatus_To_management_LicenseRequestStatus(&in.Status, &out.Status, s); err != nil { + 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_LicenseRequest_To_management_LicenseRequest is an autogenerated conversion function. -func Convert_v1_LicenseRequest_To_management_LicenseRequest(in *LicenseRequest, out *management.LicenseRequest, s conversion.Scope) error { - return autoConvert_v1_LicenseRequest_To_management_LicenseRequest(in, out, s) +// 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_LicenseRequest_To_v1_LicenseRequest(in *management.LicenseRequest, out *LicenseRequest, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_LicenseRequestSpec_To_v1_LicenseRequestSpec(&in.Spec, &out.Spec, s); err != nil { +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_LicenseRequestStatus_To_v1_LicenseRequestStatus(&in.Status, &out.Status, s); err != nil { + 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_LicenseRequest_To_v1_LicenseRequest is an autogenerated conversion function. -func Convert_management_LicenseRequest_To_v1_LicenseRequest(in *management.LicenseRequest, out *LicenseRequest, s conversion.Scope) error { - return autoConvert_management_LicenseRequest_To_v1_LicenseRequest(in, out, s) +// 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_LicenseRequestList_To_management_LicenseRequestList(in *LicenseRequestList, out *management.LicenseRequestList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.LicenseRequest)(unsafe.Pointer(&in.Items)) +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 { + return err + } return nil } -// Convert_v1_LicenseRequestList_To_management_LicenseRequestList is an autogenerated conversion function. -func Convert_v1_LicenseRequestList_To_management_LicenseRequestList(in *LicenseRequestList, out *management.LicenseRequestList, s conversion.Scope) error { - return autoConvert_v1_LicenseRequestList_To_management_LicenseRequestList(in, out, s) +// Convert_v1_ProjectMigrateSpaceInstance_To_management_ProjectMigrateSpaceInstance is an autogenerated conversion function. +func Convert_v1_ProjectMigrateSpaceInstance_To_management_ProjectMigrateSpaceInstance(in *ProjectMigrateSpaceInstance, out *management.ProjectMigrateSpaceInstance, s conversion.Scope) error { + return autoConvert_v1_ProjectMigrateSpaceInstance_To_management_ProjectMigrateSpaceInstance(in, out, s) } -func autoConvert_management_LicenseRequestList_To_v1_LicenseRequestList(in *management.LicenseRequestList, out *LicenseRequestList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]LicenseRequest)(unsafe.Pointer(&in.Items)) +func autoConvert_management_ProjectMigrateSpaceInstance_To_v1_ProjectMigrateSpaceInstance(in *management.ProjectMigrateSpaceInstance, out *ProjectMigrateSpaceInstance, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource(&in.SourceSpaceInstance, &out.SourceSpaceInstance, s); err != nil { + return err + } return nil } -// Convert_management_LicenseRequestList_To_v1_LicenseRequestList is an autogenerated conversion function. -func Convert_management_LicenseRequestList_To_v1_LicenseRequestList(in *management.LicenseRequestList, out *LicenseRequestList, s conversion.Scope) error { - return autoConvert_management_LicenseRequestList_To_v1_LicenseRequestList(in, out, s) +// Convert_management_ProjectMigrateSpaceInstance_To_v1_ProjectMigrateSpaceInstance is an autogenerated conversion function. +func Convert_management_ProjectMigrateSpaceInstance_To_v1_ProjectMigrateSpaceInstance(in *management.ProjectMigrateSpaceInstance, out *ProjectMigrateSpaceInstance, s conversion.Scope) error { + return autoConvert_management_ProjectMigrateSpaceInstance_To_v1_ProjectMigrateSpaceInstance(in, out, s) } -func autoConvert_v1_LicenseRequestSpec_To_management_LicenseRequestSpec(in *LicenseRequestSpec, out *management.LicenseRequestSpec, s conversion.Scope) error { - out.URL = in.URL - out.Input = in.Input +func autoConvert_v1_ProjectMigrateSpaceInstanceList_To_management_ProjectMigrateSpaceInstanceList(in *ProjectMigrateSpaceInstanceList, out *management.ProjectMigrateSpaceInstanceList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ProjectMigrateSpaceInstance)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_LicenseRequestSpec_To_management_LicenseRequestSpec is an autogenerated conversion function. -func Convert_v1_LicenseRequestSpec_To_management_LicenseRequestSpec(in *LicenseRequestSpec, out *management.LicenseRequestSpec, s conversion.Scope) error { - return autoConvert_v1_LicenseRequestSpec_To_management_LicenseRequestSpec(in, out, s) +// Convert_v1_ProjectMigrateSpaceInstanceList_To_management_ProjectMigrateSpaceInstanceList is an autogenerated conversion function. +func Convert_v1_ProjectMigrateSpaceInstanceList_To_management_ProjectMigrateSpaceInstanceList(in *ProjectMigrateSpaceInstanceList, out *management.ProjectMigrateSpaceInstanceList, s conversion.Scope) error { + return autoConvert_v1_ProjectMigrateSpaceInstanceList_To_management_ProjectMigrateSpaceInstanceList(in, out, s) } -func autoConvert_management_LicenseRequestSpec_To_v1_LicenseRequestSpec(in *management.LicenseRequestSpec, out *LicenseRequestSpec, s conversion.Scope) error { - out.URL = in.URL - out.Input = in.Input +func autoConvert_management_ProjectMigrateSpaceInstanceList_To_v1_ProjectMigrateSpaceInstanceList(in *management.ProjectMigrateSpaceInstanceList, out *ProjectMigrateSpaceInstanceList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ProjectMigrateSpaceInstance)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_LicenseRequestSpec_To_v1_LicenseRequestSpec is an autogenerated conversion function. -func Convert_management_LicenseRequestSpec_To_v1_LicenseRequestSpec(in *management.LicenseRequestSpec, out *LicenseRequestSpec, s conversion.Scope) error { - return autoConvert_management_LicenseRequestSpec_To_v1_LicenseRequestSpec(in, out, s) +// Convert_management_ProjectMigrateSpaceInstanceList_To_v1_ProjectMigrateSpaceInstanceList is an autogenerated conversion function. +func Convert_management_ProjectMigrateSpaceInstanceList_To_v1_ProjectMigrateSpaceInstanceList(in *management.ProjectMigrateSpaceInstanceList, out *ProjectMigrateSpaceInstanceList, s conversion.Scope) error { + return autoConvert_management_ProjectMigrateSpaceInstanceList_To_v1_ProjectMigrateSpaceInstanceList(in, out, s) } -func autoConvert_v1_LicenseRequestStatus_To_management_LicenseRequestStatus(in *LicenseRequestStatus, out *management.LicenseRequestStatus, s conversion.Scope) error { - out.Output = (*licenseapi.GenericRequestOutput)(unsafe.Pointer(in.Output)) +func autoConvert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource(in *ProjectMigrateSpaceInstanceSource, out *management.ProjectMigrateSpaceInstanceSource, s conversion.Scope) error { + out.Name = in.Name + out.Namespace = in.Namespace return nil } -// Convert_v1_LicenseRequestStatus_To_management_LicenseRequestStatus is an autogenerated conversion function. -func Convert_v1_LicenseRequestStatus_To_management_LicenseRequestStatus(in *LicenseRequestStatus, out *management.LicenseRequestStatus, s conversion.Scope) error { - return autoConvert_v1_LicenseRequestStatus_To_management_LicenseRequestStatus(in, out, s) +// Convert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource is an autogenerated conversion function. +func Convert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource(in *ProjectMigrateSpaceInstanceSource, out *management.ProjectMigrateSpaceInstanceSource, s conversion.Scope) error { + return autoConvert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource(in, out, s) } -func autoConvert_management_LicenseRequestStatus_To_v1_LicenseRequestStatus(in *management.LicenseRequestStatus, out *LicenseRequestStatus, s conversion.Scope) error { - out.Output = (*licenseapi.GenericRequestOutput)(unsafe.Pointer(in.Output)) +func autoConvert_management_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource(in *management.ProjectMigrateSpaceInstanceSource, out *ProjectMigrateSpaceInstanceSource, s conversion.Scope) error { + out.Name = in.Name + out.Namespace = in.Namespace return nil } -// Convert_management_LicenseRequestStatus_To_v1_LicenseRequestStatus is an autogenerated conversion function. -func Convert_management_LicenseRequestStatus_To_v1_LicenseRequestStatus(in *management.LicenseRequestStatus, out *LicenseRequestStatus, s conversion.Scope) error { - return autoConvert_management_LicenseRequestStatus_To_v1_LicenseRequestStatus(in, out, s) +// Convert_management_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource is an autogenerated conversion function. +func Convert_management_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource(in *management.ProjectMigrateSpaceInstanceSource, out *ProjectMigrateSpaceInstanceSource, s conversion.Scope) error { + return autoConvert_management_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource(in, out, s) } -func autoConvert_v1_LicenseSpec_To_management_LicenseSpec(in *LicenseSpec, out *management.LicenseSpec, s conversion.Scope) error { +func autoConvert_v1_ProjectMigrateVirtualClusterInstance_To_management_ProjectMigrateVirtualClusterInstance(in *ProjectMigrateVirtualClusterInstance, out *management.ProjectMigrateVirtualClusterInstance, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource(&in.SourceVirtualClusterInstance, &out.SourceVirtualClusterInstance, s); err != nil { + return err + } return nil } -// Convert_v1_LicenseSpec_To_management_LicenseSpec is an autogenerated conversion function. -func Convert_v1_LicenseSpec_To_management_LicenseSpec(in *LicenseSpec, out *management.LicenseSpec, s conversion.Scope) error { - return autoConvert_v1_LicenseSpec_To_management_LicenseSpec(in, out, s) +// Convert_v1_ProjectMigrateVirtualClusterInstance_To_management_ProjectMigrateVirtualClusterInstance is an autogenerated conversion function. +func Convert_v1_ProjectMigrateVirtualClusterInstance_To_management_ProjectMigrateVirtualClusterInstance(in *ProjectMigrateVirtualClusterInstance, out *management.ProjectMigrateVirtualClusterInstance, s conversion.Scope) error { + return autoConvert_v1_ProjectMigrateVirtualClusterInstance_To_management_ProjectMigrateVirtualClusterInstance(in, out, s) } -func autoConvert_management_LicenseSpec_To_v1_LicenseSpec(in *management.LicenseSpec, out *LicenseSpec, s conversion.Scope) error { +func autoConvert_management_ProjectMigrateVirtualClusterInstance_To_v1_ProjectMigrateVirtualClusterInstance(in *management.ProjectMigrateVirtualClusterInstance, out *ProjectMigrateVirtualClusterInstance, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(&in.SourceVirtualClusterInstance, &out.SourceVirtualClusterInstance, s); err != nil { + return err + } return nil } -// Convert_management_LicenseSpec_To_v1_LicenseSpec is an autogenerated conversion function. -func Convert_management_LicenseSpec_To_v1_LicenseSpec(in *management.LicenseSpec, out *LicenseSpec, s conversion.Scope) error { - return autoConvert_management_LicenseSpec_To_v1_LicenseSpec(in, out, s) +// Convert_management_ProjectMigrateVirtualClusterInstance_To_v1_ProjectMigrateVirtualClusterInstance is an autogenerated conversion function. +func Convert_management_ProjectMigrateVirtualClusterInstance_To_v1_ProjectMigrateVirtualClusterInstance(in *management.ProjectMigrateVirtualClusterInstance, out *ProjectMigrateVirtualClusterInstance, s conversion.Scope) error { + return autoConvert_management_ProjectMigrateVirtualClusterInstance_To_v1_ProjectMigrateVirtualClusterInstance(in, out, s) } -func autoConvert_v1_LicenseStatus_To_management_LicenseStatus(in *LicenseStatus, out *management.LicenseStatus, s conversion.Scope) error { - out.License = (*licenseapi.License)(unsafe.Pointer(in.License)) - out.ResourceUsage = *(*map[string]licenseapi.ResourceCount)(unsafe.Pointer(&in.ResourceUsage)) +func autoConvert_v1_ProjectMigrateVirtualClusterInstanceList_To_management_ProjectMigrateVirtualClusterInstanceList(in *ProjectMigrateVirtualClusterInstanceList, out *management.ProjectMigrateVirtualClusterInstanceList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ProjectMigrateVirtualClusterInstance)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_LicenseStatus_To_management_LicenseStatus is an autogenerated conversion function. -func Convert_v1_LicenseStatus_To_management_LicenseStatus(in *LicenseStatus, out *management.LicenseStatus, s conversion.Scope) error { - return autoConvert_v1_LicenseStatus_To_management_LicenseStatus(in, out, s) +// Convert_v1_ProjectMigrateVirtualClusterInstanceList_To_management_ProjectMigrateVirtualClusterInstanceList is an autogenerated conversion function. +func Convert_v1_ProjectMigrateVirtualClusterInstanceList_To_management_ProjectMigrateVirtualClusterInstanceList(in *ProjectMigrateVirtualClusterInstanceList, out *management.ProjectMigrateVirtualClusterInstanceList, s conversion.Scope) error { + return autoConvert_v1_ProjectMigrateVirtualClusterInstanceList_To_management_ProjectMigrateVirtualClusterInstanceList(in, out, s) } -func autoConvert_management_LicenseStatus_To_v1_LicenseStatus(in *management.LicenseStatus, out *LicenseStatus, s conversion.Scope) error { - out.License = (*licenseapi.License)(unsafe.Pointer(in.License)) - out.ResourceUsage = *(*map[string]licenseapi.ResourceCount)(unsafe.Pointer(&in.ResourceUsage)) +func autoConvert_management_ProjectMigrateVirtualClusterInstanceList_To_v1_ProjectMigrateVirtualClusterInstanceList(in *management.ProjectMigrateVirtualClusterInstanceList, out *ProjectMigrateVirtualClusterInstanceList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ProjectMigrateVirtualClusterInstance)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_LicenseStatus_To_v1_LicenseStatus is an autogenerated conversion function. -func Convert_management_LicenseStatus_To_v1_LicenseStatus(in *management.LicenseStatus, out *LicenseStatus, s conversion.Scope) error { - return autoConvert_management_LicenseStatus_To_v1_LicenseStatus(in, out, s) +// Convert_management_ProjectMigrateVirtualClusterInstanceList_To_v1_ProjectMigrateVirtualClusterInstanceList is an autogenerated conversion function. +func Convert_management_ProjectMigrateVirtualClusterInstanceList_To_v1_ProjectMigrateVirtualClusterInstanceList(in *management.ProjectMigrateVirtualClusterInstanceList, out *ProjectMigrateVirtualClusterInstanceList, s conversion.Scope) error { + return autoConvert_management_ProjectMigrateVirtualClusterInstanceList_To_v1_ProjectMigrateVirtualClusterInstanceList(in, out, s) } -func autoConvert_v1_LicenseToken_To_management_LicenseToken(in *LicenseToken, out *management.LicenseToken, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_LicenseTokenSpec_To_management_LicenseTokenSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_LicenseTokenStatus_To_management_LicenseTokenStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_v1_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource(in *ProjectMigrateVirtualClusterInstanceSource, out *management.ProjectMigrateVirtualClusterInstanceSource, s conversion.Scope) error { + out.Name = in.Name + out.Namespace = in.Namespace return nil } -// Convert_v1_LicenseToken_To_management_LicenseToken is an autogenerated conversion function. -func Convert_v1_LicenseToken_To_management_LicenseToken(in *LicenseToken, out *management.LicenseToken, s conversion.Scope) error { - return autoConvert_v1_LicenseToken_To_management_LicenseToken(in, out, s) +// Convert_v1_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource is an autogenerated conversion function. +func Convert_v1_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource(in *ProjectMigrateVirtualClusterInstanceSource, out *management.ProjectMigrateVirtualClusterInstanceSource, s conversion.Scope) error { + return autoConvert_v1_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource(in, out, s) } -func autoConvert_management_LicenseToken_To_v1_LicenseToken(in *management.LicenseToken, out *LicenseToken, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_LicenseTokenSpec_To_v1_LicenseTokenSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_LicenseTokenStatus_To_v1_LicenseTokenStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(in *management.ProjectMigrateVirtualClusterInstanceSource, out *ProjectMigrateVirtualClusterInstanceSource, s conversion.Scope) error { + out.Name = in.Name + out.Namespace = in.Namespace return nil } -// Convert_management_LicenseToken_To_v1_LicenseToken is an autogenerated conversion function. -func Convert_management_LicenseToken_To_v1_LicenseToken(in *management.LicenseToken, out *LicenseToken, s conversion.Scope) error { - return autoConvert_management_LicenseToken_To_v1_LicenseToken(in, out, s) +// Convert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource is an autogenerated conversion function. +func Convert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(in *management.ProjectMigrateVirtualClusterInstanceSource, out *ProjectMigrateVirtualClusterInstanceSource, s conversion.Scope) error { + return autoConvert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(in, out, s) } -func autoConvert_v1_LicenseTokenList_To_management_LicenseTokenList(in *LicenseTokenList, out *management.LicenseTokenList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.LicenseToken)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_ProjectNodeTypes_To_management_ProjectNodeTypes(in *ProjectNodeTypes, out *management.ProjectNodeTypes, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.NodeProviders = *(*[]storagev1.NodeProvider)(unsafe.Pointer(&in.NodeProviders)) + out.NodeTypes = *(*[]storagev1.NodeType)(unsafe.Pointer(&in.NodeTypes)) return nil } -// Convert_v1_LicenseTokenList_To_management_LicenseTokenList is an autogenerated conversion function. -func Convert_v1_LicenseTokenList_To_management_LicenseTokenList(in *LicenseTokenList, out *management.LicenseTokenList, s conversion.Scope) error { - return autoConvert_v1_LicenseTokenList_To_management_LicenseTokenList(in, out, s) +// Convert_v1_ProjectNodeTypes_To_management_ProjectNodeTypes is an autogenerated conversion function. +func Convert_v1_ProjectNodeTypes_To_management_ProjectNodeTypes(in *ProjectNodeTypes, out *management.ProjectNodeTypes, s conversion.Scope) error { + return autoConvert_v1_ProjectNodeTypes_To_management_ProjectNodeTypes(in, out, s) } -func autoConvert_management_LicenseTokenList_To_v1_LicenseTokenList(in *management.LicenseTokenList, out *LicenseTokenList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]LicenseToken)(unsafe.Pointer(&in.Items)) +func autoConvert_management_ProjectNodeTypes_To_v1_ProjectNodeTypes(in *management.ProjectNodeTypes, out *ProjectNodeTypes, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.NodeProviders = *(*[]storagev1.NodeProvider)(unsafe.Pointer(&in.NodeProviders)) + out.NodeTypes = *(*[]storagev1.NodeType)(unsafe.Pointer(&in.NodeTypes)) return nil } -// Convert_management_LicenseTokenList_To_v1_LicenseTokenList is an autogenerated conversion function. -func Convert_management_LicenseTokenList_To_v1_LicenseTokenList(in *management.LicenseTokenList, out *LicenseTokenList, s conversion.Scope) error { - return autoConvert_management_LicenseTokenList_To_v1_LicenseTokenList(in, out, s) +// Convert_management_ProjectNodeTypes_To_v1_ProjectNodeTypes is an autogenerated conversion function. +func Convert_management_ProjectNodeTypes_To_v1_ProjectNodeTypes(in *management.ProjectNodeTypes, out *ProjectNodeTypes, s conversion.Scope) error { + return autoConvert_management_ProjectNodeTypes_To_v1_ProjectNodeTypes(in, out, s) } -func autoConvert_v1_LicenseTokenSpec_To_management_LicenseTokenSpec(in *LicenseTokenSpec, out *management.LicenseTokenSpec, s conversion.Scope) error { - out.URL = in.URL - out.Payload = in.Payload +func autoConvert_v1_ProjectNodeTypesList_To_management_ProjectNodeTypesList(in *ProjectNodeTypesList, out *management.ProjectNodeTypesList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.ProjectNodeTypes)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_LicenseTokenSpec_To_management_LicenseTokenSpec is an autogenerated conversion function. -func Convert_v1_LicenseTokenSpec_To_management_LicenseTokenSpec(in *LicenseTokenSpec, out *management.LicenseTokenSpec, s conversion.Scope) error { - return autoConvert_v1_LicenseTokenSpec_To_management_LicenseTokenSpec(in, out, s) +// Convert_v1_ProjectNodeTypesList_To_management_ProjectNodeTypesList is an autogenerated conversion function. +func Convert_v1_ProjectNodeTypesList_To_management_ProjectNodeTypesList(in *ProjectNodeTypesList, out *management.ProjectNodeTypesList, s conversion.Scope) error { + return autoConvert_v1_ProjectNodeTypesList_To_management_ProjectNodeTypesList(in, out, s) } -func autoConvert_management_LicenseTokenSpec_To_v1_LicenseTokenSpec(in *management.LicenseTokenSpec, out *LicenseTokenSpec, s conversion.Scope) error { - out.URL = in.URL - out.Payload = in.Payload +func autoConvert_management_ProjectNodeTypesList_To_v1_ProjectNodeTypesList(in *management.ProjectNodeTypesList, out *ProjectNodeTypesList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ProjectNodeTypes)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_LicenseTokenSpec_To_v1_LicenseTokenSpec is an autogenerated conversion function. -func Convert_management_LicenseTokenSpec_To_v1_LicenseTokenSpec(in *management.LicenseTokenSpec, out *LicenseTokenSpec, s conversion.Scope) error { - return autoConvert_management_LicenseTokenSpec_To_v1_LicenseTokenSpec(in, out, s) +// Convert_management_ProjectNodeTypesList_To_v1_ProjectNodeTypesList is an autogenerated conversion function. +func Convert_management_ProjectNodeTypesList_To_v1_ProjectNodeTypesList(in *management.ProjectNodeTypesList, out *ProjectNodeTypesList, s conversion.Scope) error { + return autoConvert_management_ProjectNodeTypesList_To_v1_ProjectNodeTypesList(in, out, s) } -func autoConvert_v1_LicenseTokenStatus_To_management_LicenseTokenStatus(in *LicenseTokenStatus, out *management.LicenseTokenStatus, s conversion.Scope) error { - out.Token = (*licenseapi.InstanceTokenAuth)(unsafe.Pointer(in.Token)) +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_LicenseTokenStatus_To_management_LicenseTokenStatus is an autogenerated conversion function. -func Convert_v1_LicenseTokenStatus_To_management_LicenseTokenStatus(in *LicenseTokenStatus, out *management.LicenseTokenStatus, s conversion.Scope) error { - return autoConvert_v1_LicenseTokenStatus_To_management_LicenseTokenStatus(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_LicenseTokenStatus_To_v1_LicenseTokenStatus(in *management.LicenseTokenStatus, out *LicenseTokenStatus, s conversion.Scope) error { - out.Token = (*licenseapi.InstanceTokenAuth)(unsafe.Pointer(in.Token)) +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_LicenseTokenStatus_To_v1_LicenseTokenStatus is an autogenerated conversion function. -func Convert_management_LicenseTokenStatus_To_v1_LicenseTokenStatus(in *management.LicenseTokenStatus, out *LicenseTokenStatus, s conversion.Scope) error { - return autoConvert_management_LicenseTokenStatus_To_v1_LicenseTokenStatus(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_LoftUpgrade_To_management_LoftUpgrade(in *LoftUpgrade, out *management.LoftUpgrade, s conversion.Scope) error { +func autoConvert_v1_ProjectSecret_To_management_ProjectSecret(in *ProjectSecret, out *management.ProjectSecret, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_LoftUpgradeSpec_To_management_LoftUpgradeSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_ProjectSecretStatus_To_management_ProjectSecretStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_LoftUpgrade_To_management_LoftUpgrade is an autogenerated conversion function. -func Convert_v1_LoftUpgrade_To_management_LoftUpgrade(in *LoftUpgrade, out *management.LoftUpgrade, s conversion.Scope) error { - return autoConvert_v1_LoftUpgrade_To_management_LoftUpgrade(in, out, s) +// Convert_v1_ProjectSecret_To_management_ProjectSecret is an autogenerated conversion function. +func Convert_v1_ProjectSecret_To_management_ProjectSecret(in *ProjectSecret, out *management.ProjectSecret, s conversion.Scope) error { + return autoConvert_v1_ProjectSecret_To_management_ProjectSecret(in, out, s) } -func autoConvert_management_LoftUpgrade_To_v1_LoftUpgrade(in *management.LoftUpgrade, out *LoftUpgrade, s conversion.Scope) error { +func autoConvert_management_ProjectSecret_To_v1_ProjectSecret(in *management.ProjectSecret, out *ProjectSecret, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_ProjectSecretSpec_To_v1_ProjectSecretSpec(&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_ProjectSecretStatus_To_v1_ProjectSecretStatus(&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_ProjectSecret_To_v1_ProjectSecret is an autogenerated conversion function. +func Convert_management_ProjectSecret_To_v1_ProjectSecret(in *management.ProjectSecret, out *ProjectSecret, s conversion.Scope) error { + return autoConvert_management_ProjectSecret_To_v1_ProjectSecret(in, out, s) } -func autoConvert_v1_LoftUpgradeList_To_management_LoftUpgradeList(in *LoftUpgradeList, out *management.LoftUpgradeList, s conversion.Scope) error { +func autoConvert_v1_ProjectSecretList_To_management_ProjectSecretList(in *ProjectSecretList, out *management.ProjectSecretList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.LoftUpgrade)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ProjectSecret)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_ProjectSecretList_To_management_ProjectSecretList is an autogenerated conversion function. +func Convert_v1_ProjectSecretList_To_management_ProjectSecretList(in *ProjectSecretList, out *management.ProjectSecretList, s conversion.Scope) error { + return autoConvert_v1_ProjectSecretList_To_management_ProjectSecretList(in, out, s) +} + +func autoConvert_management_ProjectSecretList_To_v1_ProjectSecretList(in *management.ProjectSecretList, out *ProjectSecretList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ProjectSecret)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_ProjectSecretList_To_v1_ProjectSecretList is an autogenerated conversion function. +func Convert_management_ProjectSecretList_To_v1_ProjectSecretList(in *management.ProjectSecretList, out *ProjectSecretList, s conversion.Scope) error { + return autoConvert_management_ProjectSecretList_To_v1_ProjectSecretList(in, out, s) +} + +func autoConvert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec(in *ProjectSecretSpec, out *management.ProjectSecretSpec, s conversion.Scope) error { + out.DisplayName = in.DisplayName + out.Description = in.Description + out.Owner = (*storagev1.UserOrTeam)(unsafe.Pointer(in.Owner)) + out.Data = *(*map[string][]byte)(unsafe.Pointer(&in.Data)) + out.Access = *(*[]storagev1.Access)(unsafe.Pointer(&in.Access)) 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_ProjectSecretSpec_To_management_ProjectSecretSpec is an autogenerated conversion function. +func Convert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec(in *ProjectSecretSpec, out *management.ProjectSecretSpec, s conversion.Scope) error { + return autoConvert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec(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)) +func autoConvert_management_ProjectSecretSpec_To_v1_ProjectSecretSpec(in *management.ProjectSecretSpec, out *ProjectSecretSpec, s conversion.Scope) error { + out.DisplayName = in.DisplayName + out.Description = in.Description + out.Owner = (*storagev1.UserOrTeam)(unsafe.Pointer(in.Owner)) + out.Data = *(*map[string][]byte)(unsafe.Pointer(&in.Data)) + out.Access = *(*[]storagev1.Access)(unsafe.Pointer(&in.Access)) 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_ProjectSecretSpec_To_v1_ProjectSecretSpec is an autogenerated conversion function. +func Convert_management_ProjectSecretSpec_To_v1_ProjectSecretSpec(in *management.ProjectSecretSpec, out *ProjectSecretSpec, s conversion.Scope) error { + return autoConvert_management_ProjectSecretSpec_To_v1_ProjectSecretSpec(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_ProjectSecretStatus_To_management_ProjectSecretStatus(in *ProjectSecretStatus, out *management.ProjectSecretStatus, s conversion.Scope) error { + out.Conditions = *(*loftstoragev1.Conditions)(unsafe.Pointer(&in.Conditions)) 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_ProjectSecretStatus_To_management_ProjectSecretStatus is an autogenerated conversion function. +func Convert_v1_ProjectSecretStatus_To_management_ProjectSecretStatus(in *ProjectSecretStatus, out *management.ProjectSecretStatus, s conversion.Scope) error { + return autoConvert_v1_ProjectSecretStatus_To_management_ProjectSecretStatus(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_ProjectSecretStatus_To_v1_ProjectSecretStatus(in *management.ProjectSecretStatus, out *ProjectSecretStatus, s conversion.Scope) error { + out.Conditions = *(*loftstoragev1.Conditions)(unsafe.Pointer(&in.Conditions)) 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_ProjectSecretStatus_To_v1_ProjectSecretStatus is an autogenerated conversion function. +func Convert_management_ProjectSecretStatus_To_v1_ProjectSecretStatus(in *management.ProjectSecretStatus, out *ProjectSecretStatus, s conversion.Scope) error { + return autoConvert_management_ProjectSecretStatus_To_v1_ProjectSecretStatus(in, out, s) } -func autoConvert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in *LoftUpgradeStatus, out *management.LoftUpgradeStatus, s conversion.Scope) error { +func autoConvert_v1_ProjectSpec_To_management_ProjectSpec(in *ProjectSpec, out *management.ProjectSpec, s conversion.Scope) error { + out.ProjectSpec = in.ProjectSpec 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_ProjectSpec_To_management_ProjectSpec is an autogenerated conversion function. +func Convert_v1_ProjectSpec_To_management_ProjectSpec(in *ProjectSpec, out *management.ProjectSpec, s conversion.Scope) error { + return autoConvert_v1_ProjectSpec_To_management_ProjectSpec(in, out, s) } -func autoConvert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in *management.LoftUpgradeStatus, out *LoftUpgradeStatus, s conversion.Scope) error { +func autoConvert_management_ProjectSpec_To_v1_ProjectSpec(in *management.ProjectSpec, out *ProjectSpec, s conversion.Scope) error { + out.ProjectSpec = in.ProjectSpec 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_ProjectSpec_To_v1_ProjectSpec is an autogenerated conversion function. +func Convert_management_ProjectSpec_To_v1_ProjectSpec(in *management.ProjectSpec, out *ProjectSpec, s conversion.Scope) error { + return autoConvert_management_ProjectSpec_To_v1_ProjectSpec(in, out, s) } -func autoConvert_v1_OIDC_To_management_OIDC(in *OIDC, out *management.OIDC, s conversion.Scope) error { - out.Enabled = in.Enabled - out.WildcardRedirect = in.WildcardRedirect - out.Clients = *(*[]management.OIDCClientSpec)(unsafe.Pointer(&in.Clients)) +func autoConvert_v1_ProjectStatus_To_management_ProjectStatus(in *ProjectStatus, out *management.ProjectStatus, s conversion.Scope) error { + out.ProjectStatus = in.ProjectStatus return nil } -// Convert_v1_OIDC_To_management_OIDC is an autogenerated conversion function. -func Convert_v1_OIDC_To_management_OIDC(in *OIDC, out *management.OIDC, s conversion.Scope) error { - return autoConvert_v1_OIDC_To_management_OIDC(in, out, s) +// Convert_v1_ProjectStatus_To_management_ProjectStatus is an autogenerated conversion function. +func Convert_v1_ProjectStatus_To_management_ProjectStatus(in *ProjectStatus, out *management.ProjectStatus, s conversion.Scope) error { + return autoConvert_v1_ProjectStatus_To_management_ProjectStatus(in, out, s) } -func autoConvert_management_OIDC_To_v1_OIDC(in *management.OIDC, out *OIDC, s conversion.Scope) error { - out.Enabled = in.Enabled - out.WildcardRedirect = in.WildcardRedirect - out.Clients = *(*[]OIDCClientSpec)(unsafe.Pointer(&in.Clients)) +func autoConvert_management_ProjectStatus_To_v1_ProjectStatus(in *management.ProjectStatus, out *ProjectStatus, s conversion.Scope) error { + out.ProjectStatus = in.ProjectStatus return nil } -// Convert_management_OIDC_To_v1_OIDC is an autogenerated conversion function. -func Convert_management_OIDC_To_v1_OIDC(in *management.OIDC, out *OIDC, s conversion.Scope) error { - return autoConvert_management_OIDC_To_v1_OIDC(in, out, s) +// Convert_management_ProjectStatus_To_v1_ProjectStatus is an autogenerated conversion function. +func Convert_management_ProjectStatus_To_v1_ProjectStatus(in *management.ProjectStatus, out *ProjectStatus, s conversion.Scope) error { + return autoConvert_management_ProjectStatus_To_v1_ProjectStatus(in, out, s) } -func autoConvert_v1_OIDCClient_To_management_OIDCClient(in *OIDCClient, out *management.OIDCClient, s conversion.Scope) error { +func autoConvert_v1_ProjectTemplates_To_management_ProjectTemplates(in *ProjectTemplates, out *management.ProjectTemplates, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_OIDCClientSpec_To_management_OIDCClientSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_OIDCClientStatus_To_management_OIDCClientStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.DefaultVirtualClusterTemplate = in.DefaultVirtualClusterTemplate + out.VirtualClusterTemplates = *(*[]management.VirtualClusterTemplate)(unsafe.Pointer(&in.VirtualClusterTemplates)) + out.DefaultSpaceTemplate = in.DefaultSpaceTemplate + out.SpaceTemplates = *(*[]management.SpaceTemplate)(unsafe.Pointer(&in.SpaceTemplates)) return nil } -// Convert_v1_OIDCClient_To_management_OIDCClient is an autogenerated conversion function. -func Convert_v1_OIDCClient_To_management_OIDCClient(in *OIDCClient, out *management.OIDCClient, s conversion.Scope) error { - return autoConvert_v1_OIDCClient_To_management_OIDCClient(in, out, s) +// Convert_v1_ProjectTemplates_To_management_ProjectTemplates is an autogenerated conversion function. +func Convert_v1_ProjectTemplates_To_management_ProjectTemplates(in *ProjectTemplates, out *management.ProjectTemplates, s conversion.Scope) error { + return autoConvert_v1_ProjectTemplates_To_management_ProjectTemplates(in, out, s) } -func autoConvert_management_OIDCClient_To_v1_OIDCClient(in *management.OIDCClient, out *OIDCClient, s conversion.Scope) error { +func autoConvert_management_ProjectTemplates_To_v1_ProjectTemplates(in *management.ProjectTemplates, out *ProjectTemplates, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_OIDCClientSpec_To_v1_OIDCClientSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_OIDCClientStatus_To_v1_OIDCClientStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.DefaultVirtualClusterTemplate = in.DefaultVirtualClusterTemplate + out.VirtualClusterTemplates = *(*[]VirtualClusterTemplate)(unsafe.Pointer(&in.VirtualClusterTemplates)) + out.DefaultSpaceTemplate = in.DefaultSpaceTemplate + out.SpaceTemplates = *(*[]SpaceTemplate)(unsafe.Pointer(&in.SpaceTemplates)) return nil } -// Convert_management_OIDCClient_To_v1_OIDCClient is an autogenerated conversion function. -func Convert_management_OIDCClient_To_v1_OIDCClient(in *management.OIDCClient, out *OIDCClient, s conversion.Scope) error { - return autoConvert_management_OIDCClient_To_v1_OIDCClient(in, out, s) +// Convert_management_ProjectTemplates_To_v1_ProjectTemplates is an autogenerated conversion function. +func Convert_management_ProjectTemplates_To_v1_ProjectTemplates(in *management.ProjectTemplates, out *ProjectTemplates, s conversion.Scope) error { + return autoConvert_management_ProjectTemplates_To_v1_ProjectTemplates(in, out, s) } -func autoConvert_v1_OIDCClientList_To_management_OIDCClientList(in *OIDCClientList, out *management.OIDCClientList, s conversion.Scope) error { +func autoConvert_v1_ProjectTemplatesList_To_management_ProjectTemplatesList(in *ProjectTemplatesList, out *management.ProjectTemplatesList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.OIDCClient)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ProjectTemplates)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_OIDCClientList_To_management_OIDCClientList is an autogenerated conversion function. -func Convert_v1_OIDCClientList_To_management_OIDCClientList(in *OIDCClientList, out *management.OIDCClientList, s conversion.Scope) error { - return autoConvert_v1_OIDCClientList_To_management_OIDCClientList(in, out, s) +// Convert_v1_ProjectTemplatesList_To_management_ProjectTemplatesList is an autogenerated conversion function. +func Convert_v1_ProjectTemplatesList_To_management_ProjectTemplatesList(in *ProjectTemplatesList, out *management.ProjectTemplatesList, s conversion.Scope) error { + return autoConvert_v1_ProjectTemplatesList_To_management_ProjectTemplatesList(in, out, s) } -func autoConvert_management_OIDCClientList_To_v1_OIDCClientList(in *management.OIDCClientList, out *OIDCClientList, s conversion.Scope) error { +func autoConvert_management_ProjectTemplatesList_To_v1_ProjectTemplatesList(in *management.ProjectTemplatesList, out *ProjectTemplatesList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]OIDCClient)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ProjectTemplates)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_OIDCClientList_To_v1_OIDCClientList is an autogenerated conversion function. -func Convert_management_OIDCClientList_To_v1_OIDCClientList(in *management.OIDCClientList, out *OIDCClientList, s conversion.Scope) error { - return autoConvert_management_OIDCClientList_To_v1_OIDCClientList(in, out, s) +// Convert_management_ProjectTemplatesList_To_v1_ProjectTemplatesList is an autogenerated conversion function. +func Convert_management_ProjectTemplatesList_To_v1_ProjectTemplatesList(in *management.ProjectTemplatesList, out *ProjectTemplatesList, s conversion.Scope) error { + return autoConvert_management_ProjectTemplatesList_To_v1_ProjectTemplatesList(in, out, s) } -func autoConvert_v1_OIDCClientSpec_To_management_OIDCClientSpec(in *OIDCClientSpec, out *management.OIDCClientSpec, s conversion.Scope) error { - out.Name = in.Name - out.ClientID = in.ClientID - out.ClientSecret = in.ClientSecret - out.RedirectURIs = *(*[]string)(unsafe.Pointer(&in.RedirectURIs)) +func autoConvert_v1_RedirectToken_To_management_RedirectToken(in *RedirectToken, out *management.RedirectToken, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_OIDCClientSpec_To_management_OIDCClientSpec is an autogenerated conversion function. -func Convert_v1_OIDCClientSpec_To_management_OIDCClientSpec(in *OIDCClientSpec, out *management.OIDCClientSpec, s conversion.Scope) error { - return autoConvert_v1_OIDCClientSpec_To_management_OIDCClientSpec(in, out, s) +// Convert_v1_RedirectToken_To_management_RedirectToken is an autogenerated conversion function. +func Convert_v1_RedirectToken_To_management_RedirectToken(in *RedirectToken, out *management.RedirectToken, s conversion.Scope) error { + return autoConvert_v1_RedirectToken_To_management_RedirectToken(in, out, s) } -func autoConvert_management_OIDCClientSpec_To_v1_OIDCClientSpec(in *management.OIDCClientSpec, out *OIDCClientSpec, s conversion.Scope) error { - out.Name = in.Name - out.ClientID = in.ClientID - out.ClientSecret = in.ClientSecret - out.RedirectURIs = *(*[]string)(unsafe.Pointer(&in.RedirectURIs)) +func autoConvert_management_RedirectToken_To_v1_RedirectToken(in *management.RedirectToken, out *RedirectToken, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_OIDCClientSpec_To_v1_OIDCClientSpec is an autogenerated conversion function. -func Convert_management_OIDCClientSpec_To_v1_OIDCClientSpec(in *management.OIDCClientSpec, out *OIDCClientSpec, s conversion.Scope) error { - return autoConvert_management_OIDCClientSpec_To_v1_OIDCClientSpec(in, out, s) +// Convert_management_RedirectToken_To_v1_RedirectToken is an autogenerated conversion function. +func Convert_management_RedirectToken_To_v1_RedirectToken(in *management.RedirectToken, out *RedirectToken, s conversion.Scope) error { + return autoConvert_management_RedirectToken_To_v1_RedirectToken(in, out, s) } -func autoConvert_v1_OIDCClientStatus_To_management_OIDCClientStatus(in *OIDCClientStatus, out *management.OIDCClientStatus, s conversion.Scope) error { +func autoConvert_v1_RedirectTokenList_To_management_RedirectTokenList(in *RedirectTokenList, out *management.RedirectTokenList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.RedirectToken)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_OIDCClientStatus_To_management_OIDCClientStatus is an autogenerated conversion function. -func Convert_v1_OIDCClientStatus_To_management_OIDCClientStatus(in *OIDCClientStatus, out *management.OIDCClientStatus, s conversion.Scope) error { - return autoConvert_v1_OIDCClientStatus_To_management_OIDCClientStatus(in, out, s) +// Convert_v1_RedirectTokenList_To_management_RedirectTokenList is an autogenerated conversion function. +func Convert_v1_RedirectTokenList_To_management_RedirectTokenList(in *RedirectTokenList, out *management.RedirectTokenList, s conversion.Scope) error { + return autoConvert_v1_RedirectTokenList_To_management_RedirectTokenList(in, out, s) } -func autoConvert_management_OIDCClientStatus_To_v1_OIDCClientStatus(in *management.OIDCClientStatus, out *OIDCClientStatus, s conversion.Scope) error { +func autoConvert_management_RedirectTokenList_To_v1_RedirectTokenList(in *management.RedirectTokenList, out *RedirectTokenList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]RedirectToken)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_OIDCClientStatus_To_v1_OIDCClientStatus is an autogenerated conversion function. -func Convert_management_OIDCClientStatus_To_v1_OIDCClientStatus(in *management.OIDCClientStatus, out *OIDCClientStatus, s conversion.Scope) error { - return autoConvert_management_OIDCClientStatus_To_v1_OIDCClientStatus(in, out, s) +// Convert_management_RedirectTokenList_To_v1_RedirectTokenList is an autogenerated conversion function. +func Convert_management_RedirectTokenList_To_v1_RedirectTokenList(in *management.RedirectTokenList, out *RedirectTokenList, s conversion.Scope) error { + return autoConvert_management_RedirectTokenList_To_v1_RedirectTokenList(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 { - return err - } - if err := Convert_v1_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec(in *RedirectTokenSpec, out *management.RedirectTokenSpec, s conversion.Scope) error { + out.Token = in.Token return nil } -// Convert_v1_OwnedAccessKey_To_management_OwnedAccessKey is an autogenerated conversion function. -func Convert_v1_OwnedAccessKey_To_management_OwnedAccessKey(in *OwnedAccessKey, out *management.OwnedAccessKey, s conversion.Scope) error { - return autoConvert_v1_OwnedAccessKey_To_management_OwnedAccessKey(in, out, s) +// Convert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec is an autogenerated conversion function. +func Convert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec(in *RedirectTokenSpec, out *management.RedirectTokenSpec, s conversion.Scope) error { + return autoConvert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec(in, out, s) } -func autoConvert_management_OwnedAccessKey_To_v1_OwnedAccessKey(in *management.OwnedAccessKey, out *OwnedAccessKey, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec(in *management.RedirectTokenSpec, out *RedirectTokenSpec, s conversion.Scope) error { + out.Token = in.Token return nil } -// Convert_management_OwnedAccessKey_To_v1_OwnedAccessKey is an autogenerated conversion function. -func Convert_management_OwnedAccessKey_To_v1_OwnedAccessKey(in *management.OwnedAccessKey, out *OwnedAccessKey, s conversion.Scope) error { - return autoConvert_management_OwnedAccessKey_To_v1_OwnedAccessKey(in, out, s) +// Convert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec is an autogenerated conversion function. +func Convert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec(in *management.RedirectTokenSpec, out *RedirectTokenSpec, s conversion.Scope) error { + return autoConvert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec(in, out, s) } -func autoConvert_v1_OwnedAccessKeyList_To_management_OwnedAccessKeyList(in *OwnedAccessKeyList, out *management.OwnedAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.OwnedAccessKey)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus(in *RedirectTokenStatus, out *management.RedirectTokenStatus, s conversion.Scope) error { + out.RedirectURL = in.RedirectURL return nil } -// Convert_v1_OwnedAccessKeyList_To_management_OwnedAccessKeyList is an autogenerated conversion function. -func Convert_v1_OwnedAccessKeyList_To_management_OwnedAccessKeyList(in *OwnedAccessKeyList, out *management.OwnedAccessKeyList, s conversion.Scope) error { - return autoConvert_v1_OwnedAccessKeyList_To_management_OwnedAccessKeyList(in, out, s) +// Convert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus is an autogenerated conversion function. +func Convert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus(in *RedirectTokenStatus, out *management.RedirectTokenStatus, s conversion.Scope) error { + return autoConvert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus(in, out, s) } -func autoConvert_management_OwnedAccessKeyList_To_v1_OwnedAccessKeyList(in *management.OwnedAccessKeyList, out *OwnedAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]OwnedAccessKey)(unsafe.Pointer(&in.Items)) +func autoConvert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus(in *management.RedirectTokenStatus, out *RedirectTokenStatus, s conversion.Scope) error { + out.RedirectURL = in.RedirectURL return nil } - -// Convert_management_OwnedAccessKeyList_To_v1_OwnedAccessKeyList is an autogenerated conversion function. -func Convert_management_OwnedAccessKeyList_To_v1_OwnedAccessKeyList(in *management.OwnedAccessKeyList, out *OwnedAccessKeyList, s conversion.Scope) error { - return autoConvert_management_OwnedAccessKeyList_To_v1_OwnedAccessKeyList(in, out, s) + +// Convert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus is an autogenerated conversion function. +func Convert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus(in *management.RedirectTokenStatus, out *RedirectTokenStatus, s conversion.Scope) error { + return autoConvert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus(in, out, s) } -func autoConvert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec(in *OwnedAccessKeySpec, out *management.OwnedAccessKeySpec, s conversion.Scope) error { - out.AccessKeySpec = in.AccessKeySpec +func autoConvert_v1_RegisterVirtualCluster_To_management_RegisterVirtualCluster(in *RegisterVirtualCluster, out *management.RegisterVirtualCluster, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec is an autogenerated conversion function. -func Convert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec(in *OwnedAccessKeySpec, out *management.OwnedAccessKeySpec, s conversion.Scope) error { - return autoConvert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec(in, out, s) +// Convert_v1_RegisterVirtualCluster_To_management_RegisterVirtualCluster is an autogenerated conversion function. +func Convert_v1_RegisterVirtualCluster_To_management_RegisterVirtualCluster(in *RegisterVirtualCluster, out *management.RegisterVirtualCluster, s conversion.Scope) error { + return autoConvert_v1_RegisterVirtualCluster_To_management_RegisterVirtualCluster(in, out, s) } -func autoConvert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec(in *management.OwnedAccessKeySpec, out *OwnedAccessKeySpec, s conversion.Scope) error { - out.AccessKeySpec = in.AccessKeySpec +func autoConvert_management_RegisterVirtualCluster_To_v1_RegisterVirtualCluster(in *management.RegisterVirtualCluster, out *RegisterVirtualCluster, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec is an autogenerated conversion function. -func Convert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec(in *management.OwnedAccessKeySpec, out *OwnedAccessKeySpec, s conversion.Scope) error { - return autoConvert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec(in, out, s) +// Convert_management_RegisterVirtualCluster_To_v1_RegisterVirtualCluster is an autogenerated conversion function. +func Convert_management_RegisterVirtualCluster_To_v1_RegisterVirtualCluster(in *management.RegisterVirtualCluster, out *RegisterVirtualCluster, s conversion.Scope) error { + return autoConvert_management_RegisterVirtualCluster_To_v1_RegisterVirtualCluster(in, out, s) } -func autoConvert_v1_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus(in *OwnedAccessKeyStatus, out *management.OwnedAccessKeyStatus, s conversion.Scope) error { - out.AccessKeyStatus = in.AccessKeyStatus +func autoConvert_v1_RegisterVirtualClusterList_To_management_RegisterVirtualClusterList(in *RegisterVirtualClusterList, out *management.RegisterVirtualClusterList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.RegisterVirtualCluster)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus is an autogenerated conversion function. -func Convert_v1_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus(in *OwnedAccessKeyStatus, out *management.OwnedAccessKeyStatus, s conversion.Scope) error { - return autoConvert_v1_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus(in, out, s) +// Convert_v1_RegisterVirtualClusterList_To_management_RegisterVirtualClusterList is an autogenerated conversion function. +func Convert_v1_RegisterVirtualClusterList_To_management_RegisterVirtualClusterList(in *RegisterVirtualClusterList, out *management.RegisterVirtualClusterList, s conversion.Scope) error { + return autoConvert_v1_RegisterVirtualClusterList_To_management_RegisterVirtualClusterList(in, out, s) } -func autoConvert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(in *management.OwnedAccessKeyStatus, out *OwnedAccessKeyStatus, s conversion.Scope) error { - out.AccessKeyStatus = in.AccessKeyStatus +func autoConvert_management_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterList(in *management.RegisterVirtualClusterList, out *RegisterVirtualClusterList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]RegisterVirtualCluster)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus is an autogenerated conversion function. -func Convert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(in *management.OwnedAccessKeyStatus, out *OwnedAccessKeyStatus, s conversion.Scope) error { - return autoConvert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(in, out, s) +// Convert_management_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterList is an autogenerated conversion function. +func Convert_management_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterList(in *management.RegisterVirtualClusterList, out *RegisterVirtualClusterList, s conversion.Scope) error { + return autoConvert_management_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterList(in, out, s) } -func autoConvert_v1_PredefinedApp_To_management_PredefinedApp(in *PredefinedApp, out *management.PredefinedApp, s conversion.Scope) error { +func autoConvert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec(in *RegisterVirtualClusterSpec, out *management.RegisterVirtualClusterSpec, s conversion.Scope) error { + out.ServiceUID = in.ServiceUID + out.KubernetesVersion = in.KubernetesVersion + out.Project = in.Project + out.Name = in.Name + out.ForceName = in.ForceName out.Chart = in.Chart - out.InitialVersion = in.InitialVersion - out.InitialValues = in.InitialValues - out.Clusters = *(*[]string)(unsafe.Pointer(&in.Clusters)) - out.Title = in.Title - out.IconURL = in.IconURL - out.ReadmeURL = in.ReadmeURL + out.Version = in.Version + out.Values = in.Values return nil } -// Convert_v1_PredefinedApp_To_management_PredefinedApp is an autogenerated conversion function. -func Convert_v1_PredefinedApp_To_management_PredefinedApp(in *PredefinedApp, out *management.PredefinedApp, s conversion.Scope) error { - return autoConvert_v1_PredefinedApp_To_management_PredefinedApp(in, out, s) +// Convert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec is an autogenerated conversion function. +func Convert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec(in *RegisterVirtualClusterSpec, out *management.RegisterVirtualClusterSpec, s conversion.Scope) error { + return autoConvert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec(in, out, s) } -func autoConvert_management_PredefinedApp_To_v1_PredefinedApp(in *management.PredefinedApp, out *PredefinedApp, s conversion.Scope) error { +func autoConvert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec(in *management.RegisterVirtualClusterSpec, out *RegisterVirtualClusterSpec, s conversion.Scope) error { + out.ServiceUID = in.ServiceUID + out.KubernetesVersion = in.KubernetesVersion + out.Project = in.Project + out.Name = in.Name + out.ForceName = in.ForceName out.Chart = in.Chart - out.InitialVersion = in.InitialVersion - out.InitialValues = in.InitialValues - out.Clusters = *(*[]string)(unsafe.Pointer(&in.Clusters)) - out.Title = in.Title - out.IconURL = in.IconURL - out.ReadmeURL = in.ReadmeURL + out.Version = in.Version + out.Values = in.Values return nil } -// Convert_management_PredefinedApp_To_v1_PredefinedApp is an autogenerated conversion function. -func Convert_management_PredefinedApp_To_v1_PredefinedApp(in *management.PredefinedApp, out *PredefinedApp, s conversion.Scope) error { - return autoConvert_management_PredefinedApp_To_v1_PredefinedApp(in, out, s) +// Convert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec is an autogenerated conversion function. +func Convert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec(in *management.RegisterVirtualClusterSpec, out *RegisterVirtualClusterSpec, s conversion.Scope) error { + return autoConvert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec(in, out, s) } -func autoConvert_v1_Project_To_management_Project(in *Project, out *management.Project, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ProjectSpec_To_management_ProjectSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_ProjectStatus_To_management_ProjectStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(in *RegisterVirtualClusterStatus, out *management.RegisterVirtualClusterStatus, s conversion.Scope) error { + out.Name = in.Name + out.Namespace = in.Namespace return nil } -// Convert_v1_Project_To_management_Project is an autogenerated conversion function. -func Convert_v1_Project_To_management_Project(in *Project, out *management.Project, s conversion.Scope) error { - return autoConvert_v1_Project_To_management_Project(in, out, s) +// Convert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus is an autogenerated conversion function. +func Convert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(in *RegisterVirtualClusterStatus, out *management.RegisterVirtualClusterStatus, s conversion.Scope) error { + return autoConvert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(in, out, s) } -func autoConvert_management_Project_To_v1_Project(in *management.Project, out *Project, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ProjectSpec_To_v1_ProjectSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_ProjectStatus_To_v1_ProjectStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_management_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(in *management.RegisterVirtualClusterStatus, out *RegisterVirtualClusterStatus, s conversion.Scope) error { + out.Name = in.Name + out.Namespace = in.Namespace return nil } -// Convert_management_Project_To_v1_Project is an autogenerated conversion function. -func Convert_management_Project_To_v1_Project(in *management.Project, out *Project, s conversion.Scope) error { - return autoConvert_management_Project_To_v1_Project(in, out, s) +// Convert_management_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus is an autogenerated conversion function. +func Convert_management_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(in *management.RegisterVirtualClusterStatus, out *RegisterVirtualClusterStatus, s conversion.Scope) error { + return autoConvert_management_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(in, out, s) } -func autoConvert_v1_ProjectChartInfo_To_management_ProjectChartInfo(in *ProjectChartInfo, out *management.ProjectChartInfo, s conversion.Scope) error { +func autoConvert_v1_ResetAccessKey_To_management_ResetAccessKey(in *ResetAccessKey, out *management.ResetAccessKey, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_ProjectChartInfo_To_management_ProjectChartInfo is an autogenerated conversion function. -func Convert_v1_ProjectChartInfo_To_management_ProjectChartInfo(in *ProjectChartInfo, out *management.ProjectChartInfo, s conversion.Scope) error { - return autoConvert_v1_ProjectChartInfo_To_management_ProjectChartInfo(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_ProjectChartInfo_To_v1_ProjectChartInfo(in *management.ProjectChartInfo, out *ProjectChartInfo, s conversion.Scope) error { +func autoConvert_management_ResetAccessKey_To_v1_ResetAccessKey(in *management.ResetAccessKey, out *ResetAccessKey, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_ProjectChartInfo_To_v1_ProjectChartInfo is an autogenerated conversion function. -func Convert_management_ProjectChartInfo_To_v1_ProjectChartInfo(in *management.ProjectChartInfo, out *ProjectChartInfo, s conversion.Scope) error { - return autoConvert_management_ProjectChartInfo_To_v1_ProjectChartInfo(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_ProjectChartInfoList_To_management_ProjectChartInfoList(in *ProjectChartInfoList, out *management.ProjectChartInfoList, 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.ProjectChartInfo)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ResetAccessKey)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ProjectChartInfoList_To_management_ProjectChartInfoList is an autogenerated conversion function. -func Convert_v1_ProjectChartInfoList_To_management_ProjectChartInfoList(in *ProjectChartInfoList, out *management.ProjectChartInfoList, s conversion.Scope) error { - return autoConvert_v1_ProjectChartInfoList_To_management_ProjectChartInfoList(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_ProjectChartInfoList_To_v1_ProjectChartInfoList(in *management.ProjectChartInfoList, out *ProjectChartInfoList, 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 = *(*[]ProjectChartInfo)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ResetAccessKey)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ProjectChartInfoList_To_v1_ProjectChartInfoList is an autogenerated conversion function. -func Convert_management_ProjectChartInfoList_To_v1_ProjectChartInfoList(in *management.ProjectChartInfoList, out *ProjectChartInfoList, s conversion.Scope) error { - return autoConvert_management_ProjectChartInfoList_To_v1_ProjectChartInfoList(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_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(in *ProjectChartInfoSpec, out *management.ProjectChartInfoSpec, s conversion.Scope) error { - out.ChartInfoSpec = in.ChartInfoSpec +func autoConvert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(in *ResetAccessKeySpec, out *management.ResetAccessKeySpec, s conversion.Scope) error { + out.AccessKeySpec = in.AccessKeySpec return nil } -// Convert_v1_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec is an autogenerated conversion function. -func Convert_v1_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(in *ProjectChartInfoSpec, out *management.ProjectChartInfoSpec, s conversion.Scope) error { - return autoConvert_v1_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(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_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(in *management.ProjectChartInfoSpec, out *ProjectChartInfoSpec, s conversion.Scope) error { - out.ChartInfoSpec = in.ChartInfoSpec +func autoConvert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(in *management.ResetAccessKeySpec, out *ResetAccessKeySpec, s conversion.Scope) error { + out.AccessKeySpec = in.AccessKeySpec return nil } -// Convert_management_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec is an autogenerated conversion function. -func Convert_management_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(in *management.ProjectChartInfoSpec, out *ProjectChartInfoSpec, s conversion.Scope) error { - return autoConvert_management_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(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_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(in *ProjectChartInfoStatus, out *management.ProjectChartInfoStatus, s conversion.Scope) error { - out.ChartInfoStatus = in.ChartInfoStatus +func autoConvert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(in *ResetAccessKeyStatus, out *management.ResetAccessKeyStatus, s conversion.Scope) error { + out.AccessKeyStatus = in.AccessKeyStatus return nil } -// Convert_v1_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus is an autogenerated conversion function. -func Convert_v1_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(in *ProjectChartInfoStatus, out *management.ProjectChartInfoStatus, s conversion.Scope) error { - return autoConvert_v1_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(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_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(in *management.ProjectChartInfoStatus, out *ProjectChartInfoStatus, s conversion.Scope) error { - out.ChartInfoStatus = in.ChartInfoStatus +func autoConvert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(in *management.ResetAccessKeyStatus, out *ResetAccessKeyStatus, s conversion.Scope) error { + out.AccessKeyStatus = in.AccessKeyStatus return nil } -// Convert_management_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus is an autogenerated conversion function. -func Convert_management_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(in *management.ProjectChartInfoStatus, out *ProjectChartInfoStatus, s conversion.Scope) error { - return autoConvert_management_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(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_ProjectCharts_To_management_ProjectCharts(in *ProjectCharts, out *management.ProjectCharts, s conversion.Scope) error { +func autoConvert_v1_Self_To_management_Self(in *Self, out *management.Self, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Charts = *(*[]storagev1.HelmChart)(unsafe.Pointer(&in.Charts)) - out.Busy = in.Busy + if err := Convert_v1_SelfSpec_To_management_SelfSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_SelfStatus_To_management_SelfStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_ProjectCharts_To_management_ProjectCharts is an autogenerated conversion function. -func Convert_v1_ProjectCharts_To_management_ProjectCharts(in *ProjectCharts, out *management.ProjectCharts, s conversion.Scope) error { - return autoConvert_v1_ProjectCharts_To_management_ProjectCharts(in, out, s) +// Convert_v1_Self_To_management_Self is an autogenerated conversion function. +func Convert_v1_Self_To_management_Self(in *Self, out *management.Self, s conversion.Scope) error { + return autoConvert_v1_Self_To_management_Self(in, out, s) } -func autoConvert_management_ProjectCharts_To_v1_ProjectCharts(in *management.ProjectCharts, out *ProjectCharts, s conversion.Scope) error { +func autoConvert_management_Self_To_v1_Self(in *management.Self, out *Self, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Charts = *(*[]storagev1.HelmChart)(unsafe.Pointer(&in.Charts)) - out.Busy = in.Busy + if err := Convert_management_SelfSpec_To_v1_SelfSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_SelfStatus_To_v1_SelfStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_ProjectCharts_To_v1_ProjectCharts is an autogenerated conversion function. -func Convert_management_ProjectCharts_To_v1_ProjectCharts(in *management.ProjectCharts, out *ProjectCharts, s conversion.Scope) error { - return autoConvert_management_ProjectCharts_To_v1_ProjectCharts(in, out, s) +// Convert_management_Self_To_v1_Self is an autogenerated conversion function. +func Convert_management_Self_To_v1_Self(in *management.Self, out *Self, s conversion.Scope) error { + return autoConvert_management_Self_To_v1_Self(in, out, s) } -func autoConvert_v1_ProjectChartsList_To_management_ProjectChartsList(in *ProjectChartsList, out *management.ProjectChartsList, s conversion.Scope) error { +func autoConvert_v1_SelfList_To_management_SelfList(in *SelfList, out *management.SelfList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectCharts)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.Self)(unsafe.Pointer(&in.Items)) return nil } - -// Convert_v1_ProjectChartsList_To_management_ProjectChartsList is an autogenerated conversion function. -func Convert_v1_ProjectChartsList_To_management_ProjectChartsList(in *ProjectChartsList, out *management.ProjectChartsList, s conversion.Scope) error { - return autoConvert_v1_ProjectChartsList_To_management_ProjectChartsList(in, out, s) + +// Convert_v1_SelfList_To_management_SelfList is an autogenerated conversion function. +func Convert_v1_SelfList_To_management_SelfList(in *SelfList, out *management.SelfList, s conversion.Scope) error { + return autoConvert_v1_SelfList_To_management_SelfList(in, out, s) } -func autoConvert_management_ProjectChartsList_To_v1_ProjectChartsList(in *management.ProjectChartsList, out *ProjectChartsList, s conversion.Scope) error { +func autoConvert_management_SelfList_To_v1_SelfList(in *management.SelfList, out *SelfList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectCharts)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]Self)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ProjectChartsList_To_v1_ProjectChartsList is an autogenerated conversion function. -func Convert_management_ProjectChartsList_To_v1_ProjectChartsList(in *management.ProjectChartsList, out *ProjectChartsList, s conversion.Scope) error { - return autoConvert_management_ProjectChartsList_To_v1_ProjectChartsList(in, out, s) +// Convert_management_SelfList_To_v1_SelfList is an autogenerated conversion function. +func Convert_management_SelfList_To_v1_SelfList(in *management.SelfList, out *SelfList, s conversion.Scope) error { + return autoConvert_management_SelfList_To_v1_SelfList(in, out, s) } -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)) +func autoConvert_v1_SelfSpec_To_management_SelfSpec(in *SelfSpec, out *management.SelfSpec, s conversion.Scope) error { + out.AccessKey = in.AccessKey return nil } -// Convert_v1_ProjectClusters_To_management_ProjectClusters is an autogenerated conversion function. -func Convert_v1_ProjectClusters_To_management_ProjectClusters(in *ProjectClusters, out *management.ProjectClusters, s conversion.Scope) error { - return autoConvert_v1_ProjectClusters_To_management_ProjectClusters(in, out, s) +// Convert_v1_SelfSpec_To_management_SelfSpec is an autogenerated conversion function. +func Convert_v1_SelfSpec_To_management_SelfSpec(in *SelfSpec, out *management.SelfSpec, s conversion.Scope) error { + return autoConvert_v1_SelfSpec_To_management_SelfSpec(in, out, s) } -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)) +func autoConvert_management_SelfSpec_To_v1_SelfSpec(in *management.SelfSpec, out *SelfSpec, s conversion.Scope) error { + out.AccessKey = in.AccessKey return nil } -// Convert_management_ProjectClusters_To_v1_ProjectClusters is an autogenerated conversion function. -func Convert_management_ProjectClusters_To_v1_ProjectClusters(in *management.ProjectClusters, out *ProjectClusters, s conversion.Scope) error { - return autoConvert_management_ProjectClusters_To_v1_ProjectClusters(in, out, s) +// Convert_management_SelfSpec_To_v1_SelfSpec is an autogenerated conversion function. +func Convert_management_SelfSpec_To_v1_SelfSpec(in *management.SelfSpec, out *SelfSpec, s conversion.Scope) error { + return autoConvert_management_SelfSpec_To_v1_SelfSpec(in, out, s) } -func autoConvert_v1_ProjectClustersList_To_management_ProjectClustersList(in *ProjectClustersList, out *management.ProjectClustersList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectClusters)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_SelfStatus_To_management_SelfStatus(in *SelfStatus, out *management.SelfStatus, s conversion.Scope) error { + out.User = (*management.UserInfo)(unsafe.Pointer(in.User)) + out.Team = (*storagev1.EntityInfo)(unsafe.Pointer(in.Team)) + out.AccessKey = in.AccessKey + out.AccessKeyScope = (*storagev1.AccessKeyScope)(unsafe.Pointer(in.AccessKeyScope)) + out.AccessKeyType = storagev1.AccessKeyType(in.AccessKeyType) + out.Subject = in.Subject + out.UID = in.UID + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) + out.ChatAuthToken = in.ChatAuthToken + out.InstanceID = in.InstanceID + out.LoftHost = in.LoftHost + out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) return nil } -// Convert_v1_ProjectClustersList_To_management_ProjectClustersList is an autogenerated conversion function. -func Convert_v1_ProjectClustersList_To_management_ProjectClustersList(in *ProjectClustersList, out *management.ProjectClustersList, s conversion.Scope) error { - return autoConvert_v1_ProjectClustersList_To_management_ProjectClustersList(in, out, s) +// Convert_v1_SelfStatus_To_management_SelfStatus is an autogenerated conversion function. +func Convert_v1_SelfStatus_To_management_SelfStatus(in *SelfStatus, out *management.SelfStatus, s conversion.Scope) error { + return autoConvert_v1_SelfStatus_To_management_SelfStatus(in, out, s) } -func autoConvert_management_ProjectClustersList_To_v1_ProjectClustersList(in *management.ProjectClustersList, out *ProjectClustersList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectClusters)(unsafe.Pointer(&in.Items)) +func autoConvert_management_SelfStatus_To_v1_SelfStatus(in *management.SelfStatus, out *SelfStatus, s conversion.Scope) error { + out.User = (*UserInfo)(unsafe.Pointer(in.User)) + out.Team = (*storagev1.EntityInfo)(unsafe.Pointer(in.Team)) + out.AccessKey = in.AccessKey + out.AccessKeyScope = (*storagev1.AccessKeyScope)(unsafe.Pointer(in.AccessKeyScope)) + out.AccessKeyType = storagev1.AccessKeyType(in.AccessKeyType) + out.Subject = in.Subject + out.UID = in.UID + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) + out.ChatAuthToken = in.ChatAuthToken + out.InstanceID = in.InstanceID + out.LoftHost = in.LoftHost + out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) return nil } -// Convert_management_ProjectClustersList_To_v1_ProjectClustersList is an autogenerated conversion function. -func Convert_management_ProjectClustersList_To_v1_ProjectClustersList(in *management.ProjectClustersList, out *ProjectClustersList, s conversion.Scope) error { - return autoConvert_management_ProjectClustersList_To_v1_ProjectClustersList(in, out, s) +// Convert_management_SelfStatus_To_v1_SelfStatus is an autogenerated conversion function. +func Convert_management_SelfStatus_To_v1_SelfStatus(in *management.SelfStatus, out *SelfStatus, s conversion.Scope) error { + return autoConvert_management_SelfStatus_To_v1_SelfStatus(in, out, s) } -func autoConvert_v1_ProjectImportSpace_To_management_ProjectImportSpace(in *ProjectImportSpace, out *management.ProjectImportSpace, s conversion.Scope) error { +func autoConvert_v1_SelfSubjectAccessReview_To_management_SelfSubjectAccessReview(in *SelfSubjectAccessReview, out *management.SelfSubjectAccessReview, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(&in.SourceSpace, &out.SourceSpace, s); err != nil { + if err := Convert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_ProjectImportSpace_To_management_ProjectImportSpace is an autogenerated conversion function. -func Convert_v1_ProjectImportSpace_To_management_ProjectImportSpace(in *ProjectImportSpace, out *management.ProjectImportSpace, s conversion.Scope) error { - return autoConvert_v1_ProjectImportSpace_To_management_ProjectImportSpace(in, out, s) +// Convert_v1_SelfSubjectAccessReview_To_management_SelfSubjectAccessReview is an autogenerated conversion function. +func Convert_v1_SelfSubjectAccessReview_To_management_SelfSubjectAccessReview(in *SelfSubjectAccessReview, out *management.SelfSubjectAccessReview, s conversion.Scope) error { + return autoConvert_v1_SelfSubjectAccessReview_To_management_SelfSubjectAccessReview(in, out, s) } -func autoConvert_management_ProjectImportSpace_To_v1_ProjectImportSpace(in *management.ProjectImportSpace, out *ProjectImportSpace, s conversion.Scope) error { +func autoConvert_management_SelfSubjectAccessReview_To_v1_SelfSubjectAccessReview(in *management.SelfSubjectAccessReview, out *SelfSubjectAccessReview, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(&in.SourceSpace, &out.SourceSpace, s); err != nil { + if err := Convert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_ProjectImportSpace_To_v1_ProjectImportSpace is an autogenerated conversion function. -func Convert_management_ProjectImportSpace_To_v1_ProjectImportSpace(in *management.ProjectImportSpace, out *ProjectImportSpace, s conversion.Scope) error { - return autoConvert_management_ProjectImportSpace_To_v1_ProjectImportSpace(in, out, s) +// Convert_management_SelfSubjectAccessReview_To_v1_SelfSubjectAccessReview is an autogenerated conversion function. +func Convert_management_SelfSubjectAccessReview_To_v1_SelfSubjectAccessReview(in *management.SelfSubjectAccessReview, out *SelfSubjectAccessReview, s conversion.Scope) error { + return autoConvert_management_SelfSubjectAccessReview_To_v1_SelfSubjectAccessReview(in, out, s) } -func autoConvert_v1_ProjectImportSpaceList_To_management_ProjectImportSpaceList(in *ProjectImportSpaceList, out *management.ProjectImportSpaceList, s conversion.Scope) error { +func autoConvert_v1_SelfSubjectAccessReviewList_To_management_SelfSubjectAccessReviewList(in *SelfSubjectAccessReviewList, out *management.SelfSubjectAccessReviewList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectImportSpace)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.SelfSubjectAccessReview)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ProjectImportSpaceList_To_management_ProjectImportSpaceList is an autogenerated conversion function. -func Convert_v1_ProjectImportSpaceList_To_management_ProjectImportSpaceList(in *ProjectImportSpaceList, out *management.ProjectImportSpaceList, s conversion.Scope) error { - return autoConvert_v1_ProjectImportSpaceList_To_management_ProjectImportSpaceList(in, out, s) +// Convert_v1_SelfSubjectAccessReviewList_To_management_SelfSubjectAccessReviewList is an autogenerated conversion function. +func Convert_v1_SelfSubjectAccessReviewList_To_management_SelfSubjectAccessReviewList(in *SelfSubjectAccessReviewList, out *management.SelfSubjectAccessReviewList, s conversion.Scope) error { + return autoConvert_v1_SelfSubjectAccessReviewList_To_management_SelfSubjectAccessReviewList(in, out, s) } -func autoConvert_management_ProjectImportSpaceList_To_v1_ProjectImportSpaceList(in *management.ProjectImportSpaceList, out *ProjectImportSpaceList, s conversion.Scope) error { +func autoConvert_management_SelfSubjectAccessReviewList_To_v1_SelfSubjectAccessReviewList(in *management.SelfSubjectAccessReviewList, out *SelfSubjectAccessReviewList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectImportSpace)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]SelfSubjectAccessReview)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ProjectImportSpaceList_To_v1_ProjectImportSpaceList is an autogenerated conversion function. -func Convert_management_ProjectImportSpaceList_To_v1_ProjectImportSpaceList(in *management.ProjectImportSpaceList, out *ProjectImportSpaceList, s conversion.Scope) error { - return autoConvert_management_ProjectImportSpaceList_To_v1_ProjectImportSpaceList(in, out, s) +// Convert_management_SelfSubjectAccessReviewList_To_v1_SelfSubjectAccessReviewList is an autogenerated conversion function. +func Convert_management_SelfSubjectAccessReviewList_To_v1_SelfSubjectAccessReviewList(in *management.SelfSubjectAccessReviewList, out *SelfSubjectAccessReviewList, s conversion.Scope) error { + return autoConvert_management_SelfSubjectAccessReviewList_To_v1_SelfSubjectAccessReviewList(in, out, s) } -func autoConvert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(in *ProjectImportSpaceSource, out *management.ProjectImportSpaceSource, s conversion.Scope) error { - out.Name = in.Name - out.Cluster = in.Cluster - out.ImportName = in.ImportName +func autoConvert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(in *SelfSubjectAccessReviewSpec, out *management.SelfSubjectAccessReviewSpec, s conversion.Scope) error { + out.SelfSubjectAccessReviewSpec = in.SelfSubjectAccessReviewSpec return nil } -// Convert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource is an autogenerated conversion function. -func Convert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(in *ProjectImportSpaceSource, out *management.ProjectImportSpaceSource, s conversion.Scope) error { - return autoConvert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(in, out, s) +// Convert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec is an autogenerated conversion function. +func Convert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(in *SelfSubjectAccessReviewSpec, out *management.SelfSubjectAccessReviewSpec, s conversion.Scope) error { + return autoConvert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(in, out, s) } -func autoConvert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(in *management.ProjectImportSpaceSource, out *ProjectImportSpaceSource, s conversion.Scope) error { - out.Name = in.Name - out.Cluster = in.Cluster - out.ImportName = in.ImportName +func autoConvert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(in *management.SelfSubjectAccessReviewSpec, out *SelfSubjectAccessReviewSpec, s conversion.Scope) error { + out.SelfSubjectAccessReviewSpec = in.SelfSubjectAccessReviewSpec return nil } -// Convert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource is an autogenerated conversion function. -func Convert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(in *management.ProjectImportSpaceSource, out *ProjectImportSpaceSource, s conversion.Scope) error { - return autoConvert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(in, out, s) +// Convert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec is an autogenerated conversion function. +func Convert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(in *management.SelfSubjectAccessReviewSpec, out *SelfSubjectAccessReviewSpec, s conversion.Scope) error { + return autoConvert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(in, out, s) } -func autoConvert_v1_ProjectList_To_management_ProjectList(in *ProjectList, out *management.ProjectList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.Project)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(in *SelfSubjectAccessReviewStatus, out *management.SelfSubjectAccessReviewStatus, s conversion.Scope) error { + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus return nil } -// Convert_v1_ProjectList_To_management_ProjectList is an autogenerated conversion function. -func Convert_v1_ProjectList_To_management_ProjectList(in *ProjectList, out *management.ProjectList, s conversion.Scope) error { - return autoConvert_v1_ProjectList_To_management_ProjectList(in, out, s) +// Convert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus is an autogenerated conversion function. +func Convert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(in *SelfSubjectAccessReviewStatus, out *management.SelfSubjectAccessReviewStatus, s conversion.Scope) error { + return autoConvert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(in, out, s) } -func autoConvert_management_ProjectList_To_v1_ProjectList(in *management.ProjectList, out *ProjectList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]Project)(unsafe.Pointer(&in.Items)) +func autoConvert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(in *management.SelfSubjectAccessReviewStatus, out *SelfSubjectAccessReviewStatus, s conversion.Scope) error { + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus return nil } -// Convert_management_ProjectList_To_v1_ProjectList is an autogenerated conversion function. -func Convert_management_ProjectList_To_v1_ProjectList(in *management.ProjectList, out *ProjectList, s conversion.Scope) error { - return autoConvert_management_ProjectList_To_v1_ProjectList(in, out, s) +// Convert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus is an autogenerated conversion function. +func Convert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(in *management.SelfSubjectAccessReviewStatus, out *SelfSubjectAccessReviewStatus, s conversion.Scope) error { + return autoConvert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(in, out, s) } -func autoConvert_v1_ProjectMember_To_management_ProjectMember(in *ProjectMember, out *management.ProjectMember, s conversion.Scope) error { - out.Info = in.Info +func autoConvert_v1_SharedSecret_To_management_SharedSecret(in *SharedSecret, out *management.SharedSecret, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_SharedSecretSpec_To_management_SharedSecretSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_SharedSecretStatus_To_management_SharedSecretStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_ProjectMember_To_management_ProjectMember is an autogenerated conversion function. -func Convert_v1_ProjectMember_To_management_ProjectMember(in *ProjectMember, out *management.ProjectMember, s conversion.Scope) error { - return autoConvert_v1_ProjectMember_To_management_ProjectMember(in, out, s) +// Convert_v1_SharedSecret_To_management_SharedSecret is an autogenerated conversion function. +func Convert_v1_SharedSecret_To_management_SharedSecret(in *SharedSecret, out *management.SharedSecret, s conversion.Scope) error { + return autoConvert_v1_SharedSecret_To_management_SharedSecret(in, out, s) } -func autoConvert_management_ProjectMember_To_v1_ProjectMember(in *management.ProjectMember, out *ProjectMember, s conversion.Scope) error { - out.Info = in.Info +func autoConvert_management_SharedSecret_To_v1_SharedSecret(in *management.SharedSecret, out *SharedSecret, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_SharedSecretSpec_To_v1_SharedSecretSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_SharedSecretStatus_To_v1_SharedSecretStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_ProjectMember_To_v1_ProjectMember is an autogenerated conversion function. -func Convert_management_ProjectMember_To_v1_ProjectMember(in *management.ProjectMember, out *ProjectMember, s conversion.Scope) error { - return autoConvert_management_ProjectMember_To_v1_ProjectMember(in, out, s) +// Convert_management_SharedSecret_To_v1_SharedSecret is an autogenerated conversion function. +func Convert_management_SharedSecret_To_v1_SharedSecret(in *management.SharedSecret, out *SharedSecret, s conversion.Scope) error { + return autoConvert_management_SharedSecret_To_v1_SharedSecret(in, out, s) } -func autoConvert_v1_ProjectMembers_To_management_ProjectMembers(in *ProjectMembers, out *management.ProjectMembers, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Teams = *(*[]management.ProjectMember)(unsafe.Pointer(&in.Teams)) - out.Users = *(*[]management.ProjectMember)(unsafe.Pointer(&in.Users)) +func autoConvert_v1_SharedSecretList_To_management_SharedSecretList(in *SharedSecretList, out *management.SharedSecretList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.SharedSecret)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ProjectMembers_To_management_ProjectMembers is an autogenerated conversion function. -func Convert_v1_ProjectMembers_To_management_ProjectMembers(in *ProjectMembers, out *management.ProjectMembers, s conversion.Scope) error { - return autoConvert_v1_ProjectMembers_To_management_ProjectMembers(in, out, s) +// Convert_v1_SharedSecretList_To_management_SharedSecretList is an autogenerated conversion function. +func Convert_v1_SharedSecretList_To_management_SharedSecretList(in *SharedSecretList, out *management.SharedSecretList, s conversion.Scope) error { + return autoConvert_v1_SharedSecretList_To_management_SharedSecretList(in, out, s) } -func autoConvert_management_ProjectMembers_To_v1_ProjectMembers(in *management.ProjectMembers, out *ProjectMembers, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Teams = *(*[]ProjectMember)(unsafe.Pointer(&in.Teams)) - out.Users = *(*[]ProjectMember)(unsafe.Pointer(&in.Users)) +func autoConvert_management_SharedSecretList_To_v1_SharedSecretList(in *management.SharedSecretList, out *SharedSecretList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]SharedSecret)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ProjectMembers_To_v1_ProjectMembers is an autogenerated conversion function. -func Convert_management_ProjectMembers_To_v1_ProjectMembers(in *management.ProjectMembers, out *ProjectMembers, s conversion.Scope) error { - return autoConvert_management_ProjectMembers_To_v1_ProjectMembers(in, out, s) +// Convert_management_SharedSecretList_To_v1_SharedSecretList is an autogenerated conversion function. +func Convert_management_SharedSecretList_To_v1_SharedSecretList(in *management.SharedSecretList, out *SharedSecretList, s conversion.Scope) error { + return autoConvert_management_SharedSecretList_To_v1_SharedSecretList(in, out, s) } -func autoConvert_v1_ProjectMembersList_To_management_ProjectMembersList(in *ProjectMembersList, out *management.ProjectMembersList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectMembers)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_SharedSecretSpec_To_management_SharedSecretSpec(in *SharedSecretSpec, out *management.SharedSecretSpec, s conversion.Scope) error { + out.SharedSecretSpec = in.SharedSecretSpec return nil } -// Convert_v1_ProjectMembersList_To_management_ProjectMembersList is an autogenerated conversion function. -func Convert_v1_ProjectMembersList_To_management_ProjectMembersList(in *ProjectMembersList, out *management.ProjectMembersList, s conversion.Scope) error { - return autoConvert_v1_ProjectMembersList_To_management_ProjectMembersList(in, out, s) +// Convert_v1_SharedSecretSpec_To_management_SharedSecretSpec is an autogenerated conversion function. +func Convert_v1_SharedSecretSpec_To_management_SharedSecretSpec(in *SharedSecretSpec, out *management.SharedSecretSpec, s conversion.Scope) error { + return autoConvert_v1_SharedSecretSpec_To_management_SharedSecretSpec(in, out, s) +} + +func autoConvert_management_SharedSecretSpec_To_v1_SharedSecretSpec(in *management.SharedSecretSpec, out *SharedSecretSpec, s conversion.Scope) error { + out.SharedSecretSpec = in.SharedSecretSpec + return nil +} + +// Convert_management_SharedSecretSpec_To_v1_SharedSecretSpec is an autogenerated conversion function. +func Convert_management_SharedSecretSpec_To_v1_SharedSecretSpec(in *management.SharedSecretSpec, out *SharedSecretSpec, s conversion.Scope) error { + return autoConvert_management_SharedSecretSpec_To_v1_SharedSecretSpec(in, out, s) +} + +func autoConvert_v1_SharedSecretStatus_To_management_SharedSecretStatus(in *SharedSecretStatus, out *management.SharedSecretStatus, s conversion.Scope) error { + out.SharedSecretStatus = in.SharedSecretStatus + return nil } -func autoConvert_management_ProjectMembersList_To_v1_ProjectMembersList(in *management.ProjectMembersList, out *ProjectMembersList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectMembers)(unsafe.Pointer(&in.Items)) +// Convert_v1_SharedSecretStatus_To_management_SharedSecretStatus is an autogenerated conversion function. +func Convert_v1_SharedSecretStatus_To_management_SharedSecretStatus(in *SharedSecretStatus, out *management.SharedSecretStatus, s conversion.Scope) error { + return autoConvert_v1_SharedSecretStatus_To_management_SharedSecretStatus(in, out, s) +} + +func autoConvert_management_SharedSecretStatus_To_v1_SharedSecretStatus(in *management.SharedSecretStatus, out *SharedSecretStatus, s conversion.Scope) error { + out.SharedSecretStatus = in.SharedSecretStatus return nil } -// Convert_management_ProjectMembersList_To_v1_ProjectMembersList is an autogenerated conversion function. -func Convert_management_ProjectMembersList_To_v1_ProjectMembersList(in *management.ProjectMembersList, out *ProjectMembersList, s conversion.Scope) error { - return autoConvert_management_ProjectMembersList_To_v1_ProjectMembersList(in, out, s) +// Convert_management_SharedSecretStatus_To_v1_SharedSecretStatus is an autogenerated conversion function. +func Convert_management_SharedSecretStatus_To_v1_SharedSecretStatus(in *management.SharedSecretStatus, out *SharedSecretStatus, s conversion.Scope) error { + return autoConvert_management_SharedSecretStatus_To_v1_SharedSecretStatus(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 { +func autoConvert_v1_SnapshotRequest_To_management_SnapshotRequest(in *SnapshotRequest, out *management.SnapshotRequest, s conversion.Scope) error { + if err := Convert_v1_SnapshotRequestMetadata_To_management_SnapshotRequestMetadata(&in.Metadata, &out.Metadata, s); err != nil { + return err + } + if err := Convert_v1_SnapshotRequestStatus_To_management_SnapshotRequestStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_ProjectMigrateSpaceInstance_To_management_ProjectMigrateSpaceInstance is an autogenerated conversion function. -func Convert_v1_ProjectMigrateSpaceInstance_To_management_ProjectMigrateSpaceInstance(in *ProjectMigrateSpaceInstance, out *management.ProjectMigrateSpaceInstance, s conversion.Scope) error { - return autoConvert_v1_ProjectMigrateSpaceInstance_To_management_ProjectMigrateSpaceInstance(in, out, s) +// Convert_v1_SnapshotRequest_To_management_SnapshotRequest is an autogenerated conversion function. +func Convert_v1_SnapshotRequest_To_management_SnapshotRequest(in *SnapshotRequest, out *management.SnapshotRequest, s conversion.Scope) error { + return autoConvert_v1_SnapshotRequest_To_management_SnapshotRequest(in, out, s) } -func autoConvert_management_ProjectMigrateSpaceInstance_To_v1_ProjectMigrateSpaceInstance(in *management.ProjectMigrateSpaceInstance, out *ProjectMigrateSpaceInstance, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource(&in.SourceSpaceInstance, &out.SourceSpaceInstance, s); err != nil { +func autoConvert_management_SnapshotRequest_To_v1_SnapshotRequest(in *management.SnapshotRequest, out *SnapshotRequest, s conversion.Scope) error { + if err := Convert_management_SnapshotRequestMetadata_To_v1_SnapshotRequestMetadata(&in.Metadata, &out.Metadata, s); err != nil { + return err + } + if err := Convert_management_SnapshotRequestStatus_To_v1_SnapshotRequestStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_ProjectMigrateSpaceInstance_To_v1_ProjectMigrateSpaceInstance is an autogenerated conversion function. -func Convert_management_ProjectMigrateSpaceInstance_To_v1_ProjectMigrateSpaceInstance(in *management.ProjectMigrateSpaceInstance, out *ProjectMigrateSpaceInstance, s conversion.Scope) error { - return autoConvert_management_ProjectMigrateSpaceInstance_To_v1_ProjectMigrateSpaceInstance(in, out, s) +// Convert_management_SnapshotRequest_To_v1_SnapshotRequest is an autogenerated conversion function. +func Convert_management_SnapshotRequest_To_v1_SnapshotRequest(in *management.SnapshotRequest, out *SnapshotRequest, s conversion.Scope) error { + return autoConvert_management_SnapshotRequest_To_v1_SnapshotRequest(in, out, s) } -func autoConvert_v1_ProjectMigrateSpaceInstanceList_To_management_ProjectMigrateSpaceInstanceList(in *ProjectMigrateSpaceInstanceList, out *management.ProjectMigrateSpaceInstanceList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectMigrateSpaceInstance)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_SnapshotRequestError_To_management_SnapshotRequestError(in *SnapshotRequestError, out *management.SnapshotRequestError, s conversion.Scope) error { + out.Message = in.Message return nil } -// Convert_v1_ProjectMigrateSpaceInstanceList_To_management_ProjectMigrateSpaceInstanceList is an autogenerated conversion function. -func Convert_v1_ProjectMigrateSpaceInstanceList_To_management_ProjectMigrateSpaceInstanceList(in *ProjectMigrateSpaceInstanceList, out *management.ProjectMigrateSpaceInstanceList, s conversion.Scope) error { - return autoConvert_v1_ProjectMigrateSpaceInstanceList_To_management_ProjectMigrateSpaceInstanceList(in, out, s) +// Convert_v1_SnapshotRequestError_To_management_SnapshotRequestError is an autogenerated conversion function. +func Convert_v1_SnapshotRequestError_To_management_SnapshotRequestError(in *SnapshotRequestError, out *management.SnapshotRequestError, s conversion.Scope) error { + return autoConvert_v1_SnapshotRequestError_To_management_SnapshotRequestError(in, out, s) } -func autoConvert_management_ProjectMigrateSpaceInstanceList_To_v1_ProjectMigrateSpaceInstanceList(in *management.ProjectMigrateSpaceInstanceList, out *ProjectMigrateSpaceInstanceList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectMigrateSpaceInstance)(unsafe.Pointer(&in.Items)) +func autoConvert_management_SnapshotRequestError_To_v1_SnapshotRequestError(in *management.SnapshotRequestError, out *SnapshotRequestError, s conversion.Scope) error { + out.Message = in.Message return nil } -// Convert_management_ProjectMigrateSpaceInstanceList_To_v1_ProjectMigrateSpaceInstanceList is an autogenerated conversion function. -func Convert_management_ProjectMigrateSpaceInstanceList_To_v1_ProjectMigrateSpaceInstanceList(in *management.ProjectMigrateSpaceInstanceList, out *ProjectMigrateSpaceInstanceList, s conversion.Scope) error { - return autoConvert_management_ProjectMigrateSpaceInstanceList_To_v1_ProjectMigrateSpaceInstanceList(in, out, s) +// Convert_management_SnapshotRequestError_To_v1_SnapshotRequestError is an autogenerated conversion function. +func Convert_management_SnapshotRequestError_To_v1_SnapshotRequestError(in *management.SnapshotRequestError, out *SnapshotRequestError, s conversion.Scope) error { + return autoConvert_management_SnapshotRequestError_To_v1_SnapshotRequestError(in, out, s) } -func autoConvert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource(in *ProjectMigrateSpaceInstanceSource, out *management.ProjectMigrateSpaceInstanceSource, s conversion.Scope) error { +func autoConvert_v1_SnapshotRequestMetadata_To_management_SnapshotRequestMetadata(in *SnapshotRequestMetadata, out *management.SnapshotRequestMetadata, s conversion.Scope) error { out.Name = in.Name - out.Namespace = in.Namespace + out.CreationTimestamp = in.CreationTimestamp return nil } -// Convert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource is an autogenerated conversion function. -func Convert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource(in *ProjectMigrateSpaceInstanceSource, out *management.ProjectMigrateSpaceInstanceSource, s conversion.Scope) error { - return autoConvert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource(in, out, s) +// Convert_v1_SnapshotRequestMetadata_To_management_SnapshotRequestMetadata is an autogenerated conversion function. +func Convert_v1_SnapshotRequestMetadata_To_management_SnapshotRequestMetadata(in *SnapshotRequestMetadata, out *management.SnapshotRequestMetadata, s conversion.Scope) error { + return autoConvert_v1_SnapshotRequestMetadata_To_management_SnapshotRequestMetadata(in, out, s) } -func autoConvert_management_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource(in *management.ProjectMigrateSpaceInstanceSource, out *ProjectMigrateSpaceInstanceSource, s conversion.Scope) error { +func autoConvert_management_SnapshotRequestMetadata_To_v1_SnapshotRequestMetadata(in *management.SnapshotRequestMetadata, out *SnapshotRequestMetadata, s conversion.Scope) error { out.Name = in.Name - out.Namespace = in.Namespace + out.CreationTimestamp = in.CreationTimestamp return nil } -// Convert_management_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource is an autogenerated conversion function. -func Convert_management_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource(in *management.ProjectMigrateSpaceInstanceSource, out *ProjectMigrateSpaceInstanceSource, s conversion.Scope) error { - return autoConvert_management_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource(in, out, s) +// Convert_management_SnapshotRequestMetadata_To_v1_SnapshotRequestMetadata is an autogenerated conversion function. +func Convert_management_SnapshotRequestMetadata_To_v1_SnapshotRequestMetadata(in *management.SnapshotRequestMetadata, out *SnapshotRequestMetadata, s conversion.Scope) error { + return autoConvert_management_SnapshotRequestMetadata_To_v1_SnapshotRequestMetadata(in, out, s) } -func autoConvert_v1_ProjectMigrateVirtualClusterInstance_To_management_ProjectMigrateVirtualClusterInstance(in *ProjectMigrateVirtualClusterInstance, out *management.ProjectMigrateVirtualClusterInstance, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource(&in.SourceVirtualClusterInstance, &out.SourceVirtualClusterInstance, s); err != nil { +func autoConvert_v1_SnapshotRequestStatus_To_management_SnapshotRequestStatus(in *SnapshotRequestStatus, out *management.SnapshotRequestStatus, s conversion.Scope) error { + out.Phase = management.SnapshotRequestPhase(in.Phase) + if err := Convert_v1_VolumeSnapshotsRequestStatus_To_management_VolumeSnapshotsRequestStatus(&in.VolumeSnapshots, &out.VolumeSnapshots, s); err != nil { + return err + } + if err := Convert_v1_SnapshotRequestError_To_management_SnapshotRequestError(&in.Error, &out.Error, s); err != nil { return err } return nil } -// Convert_v1_ProjectMigrateVirtualClusterInstance_To_management_ProjectMigrateVirtualClusterInstance is an autogenerated conversion function. -func Convert_v1_ProjectMigrateVirtualClusterInstance_To_management_ProjectMigrateVirtualClusterInstance(in *ProjectMigrateVirtualClusterInstance, out *management.ProjectMigrateVirtualClusterInstance, s conversion.Scope) error { - return autoConvert_v1_ProjectMigrateVirtualClusterInstance_To_management_ProjectMigrateVirtualClusterInstance(in, out, s) +// Convert_v1_SnapshotRequestStatus_To_management_SnapshotRequestStatus is an autogenerated conversion function. +func Convert_v1_SnapshotRequestStatus_To_management_SnapshotRequestStatus(in *SnapshotRequestStatus, out *management.SnapshotRequestStatus, s conversion.Scope) error { + return autoConvert_v1_SnapshotRequestStatus_To_management_SnapshotRequestStatus(in, out, s) } -func autoConvert_management_ProjectMigrateVirtualClusterInstance_To_v1_ProjectMigrateVirtualClusterInstance(in *management.ProjectMigrateVirtualClusterInstance, out *ProjectMigrateVirtualClusterInstance, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(&in.SourceVirtualClusterInstance, &out.SourceVirtualClusterInstance, s); err != nil { +func autoConvert_management_SnapshotRequestStatus_To_v1_SnapshotRequestStatus(in *management.SnapshotRequestStatus, out *SnapshotRequestStatus, s conversion.Scope) error { + out.Phase = SnapshotRequestPhase(in.Phase) + if err := Convert_management_VolumeSnapshotsRequestStatus_To_v1_VolumeSnapshotsRequestStatus(&in.VolumeSnapshots, &out.VolumeSnapshots, s); err != nil { + return err + } + if err := Convert_management_SnapshotRequestError_To_v1_SnapshotRequestError(&in.Error, &out.Error, s); err != nil { return err } return nil } -// Convert_management_ProjectMigrateVirtualClusterInstance_To_v1_ProjectMigrateVirtualClusterInstance is an autogenerated conversion function. -func Convert_management_ProjectMigrateVirtualClusterInstance_To_v1_ProjectMigrateVirtualClusterInstance(in *management.ProjectMigrateVirtualClusterInstance, out *ProjectMigrateVirtualClusterInstance, s conversion.Scope) error { - return autoConvert_management_ProjectMigrateVirtualClusterInstance_To_v1_ProjectMigrateVirtualClusterInstance(in, out, s) +// Convert_management_SnapshotRequestStatus_To_v1_SnapshotRequestStatus is an autogenerated conversion function. +func Convert_management_SnapshotRequestStatus_To_v1_SnapshotRequestStatus(in *management.SnapshotRequestStatus, out *SnapshotRequestStatus, s conversion.Scope) error { + return autoConvert_management_SnapshotRequestStatus_To_v1_SnapshotRequestStatus(in, out, s) } -func autoConvert_v1_ProjectMigrateVirtualClusterInstanceList_To_management_ProjectMigrateVirtualClusterInstanceList(in *ProjectMigrateVirtualClusterInstanceList, out *management.ProjectMigrateVirtualClusterInstanceList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectMigrateVirtualClusterInstance)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_SnapshotTaken_To_management_SnapshotTaken(in *SnapshotTaken, out *management.SnapshotTaken, s conversion.Scope) error { + out.Id = in.Id + out.Url = in.Url + out.Timestamp = in.Timestamp + out.Reason = in.Reason + if err := Convert_v1_SnapshotRequest_To_management_SnapshotRequest(&in.Request, &out.Request, s); err != nil { + return err + } + out.TotalPV = in.TotalPV + out.Status = management.SnapshotTakenStatus(in.Status) return nil } -// Convert_v1_ProjectMigrateVirtualClusterInstanceList_To_management_ProjectMigrateVirtualClusterInstanceList is an autogenerated conversion function. -func Convert_v1_ProjectMigrateVirtualClusterInstanceList_To_management_ProjectMigrateVirtualClusterInstanceList(in *ProjectMigrateVirtualClusterInstanceList, out *management.ProjectMigrateVirtualClusterInstanceList, s conversion.Scope) error { - return autoConvert_v1_ProjectMigrateVirtualClusterInstanceList_To_management_ProjectMigrateVirtualClusterInstanceList(in, out, s) +// Convert_v1_SnapshotTaken_To_management_SnapshotTaken is an autogenerated conversion function. +func Convert_v1_SnapshotTaken_To_management_SnapshotTaken(in *SnapshotTaken, out *management.SnapshotTaken, s conversion.Scope) error { + return autoConvert_v1_SnapshotTaken_To_management_SnapshotTaken(in, out, s) } -func autoConvert_management_ProjectMigrateVirtualClusterInstanceList_To_v1_ProjectMigrateVirtualClusterInstanceList(in *management.ProjectMigrateVirtualClusterInstanceList, out *ProjectMigrateVirtualClusterInstanceList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectMigrateVirtualClusterInstance)(unsafe.Pointer(&in.Items)) +func autoConvert_management_SnapshotTaken_To_v1_SnapshotTaken(in *management.SnapshotTaken, out *SnapshotTaken, s conversion.Scope) error { + out.Id = in.Id + out.Url = in.Url + out.Timestamp = in.Timestamp + out.Reason = in.Reason + if err := Convert_management_SnapshotRequest_To_v1_SnapshotRequest(&in.Request, &out.Request, s); err != nil { + return err + } + out.TotalPV = in.TotalPV + out.Status = SnapshotTakenStatus(in.Status) return nil } -// Convert_management_ProjectMigrateVirtualClusterInstanceList_To_v1_ProjectMigrateVirtualClusterInstanceList is an autogenerated conversion function. -func Convert_management_ProjectMigrateVirtualClusterInstanceList_To_v1_ProjectMigrateVirtualClusterInstanceList(in *management.ProjectMigrateVirtualClusterInstanceList, out *ProjectMigrateVirtualClusterInstanceList, s conversion.Scope) error { - return autoConvert_management_ProjectMigrateVirtualClusterInstanceList_To_v1_ProjectMigrateVirtualClusterInstanceList(in, out, s) +// Convert_management_SnapshotTaken_To_v1_SnapshotTaken is an autogenerated conversion function. +func Convert_management_SnapshotTaken_To_v1_SnapshotTaken(in *management.SnapshotTaken, out *SnapshotTaken, s conversion.Scope) error { + return autoConvert_management_SnapshotTaken_To_v1_SnapshotTaken(in, out, s) } -func autoConvert_v1_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource(in *ProjectMigrateVirtualClusterInstanceSource, out *management.ProjectMigrateVirtualClusterInstanceSource, s conversion.Scope) error { - out.Name = in.Name - out.Namespace = in.Namespace +func autoConvert_v1_SpaceInstance_To_management_SpaceInstance(in *SpaceInstance, out *management.SpaceInstance, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_SpaceInstanceSpec_To_management_SpaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_SpaceInstanceStatus_To_management_SpaceInstanceStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource is an autogenerated conversion function. -func Convert_v1_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource(in *ProjectMigrateVirtualClusterInstanceSource, out *management.ProjectMigrateVirtualClusterInstanceSource, s conversion.Scope) error { - return autoConvert_v1_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource(in, out, s) +// Convert_v1_SpaceInstance_To_management_SpaceInstance is an autogenerated conversion function. +func Convert_v1_SpaceInstance_To_management_SpaceInstance(in *SpaceInstance, out *management.SpaceInstance, s conversion.Scope) error { + return autoConvert_v1_SpaceInstance_To_management_SpaceInstance(in, out, s) } -func autoConvert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(in *management.ProjectMigrateVirtualClusterInstanceSource, out *ProjectMigrateVirtualClusterInstanceSource, s conversion.Scope) error { - out.Name = in.Name - out.Namespace = in.Namespace +func autoConvert_management_SpaceInstance_To_v1_SpaceInstance(in *management.SpaceInstance, out *SpaceInstance, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_SpaceInstanceSpec_To_v1_SpaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_SpaceInstanceStatus_To_v1_SpaceInstanceStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource is an autogenerated conversion function. -func Convert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(in *management.ProjectMigrateVirtualClusterInstanceSource, out *ProjectMigrateVirtualClusterInstanceSource, s conversion.Scope) error { - return autoConvert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(in, out, s) +// Convert_management_SpaceInstance_To_v1_SpaceInstance is an autogenerated conversion function. +func Convert_management_SpaceInstance_To_v1_SpaceInstance(in *management.SpaceInstance, out *SpaceInstance, s conversion.Scope) error { + return autoConvert_management_SpaceInstance_To_v1_SpaceInstance(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)) +func autoConvert_v1_SpaceInstanceList_To_management_SpaceInstanceList(in *SpaceInstanceList, out *management.SpaceInstanceList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.SpaceInstance)(unsafe.Pointer(&in.Items)) 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) +// Convert_v1_SpaceInstanceList_To_management_SpaceInstanceList is an autogenerated conversion function. +func Convert_v1_SpaceInstanceList_To_management_SpaceInstanceList(in *SpaceInstanceList, out *management.SpaceInstanceList, s conversion.Scope) error { + return autoConvert_v1_SpaceInstanceList_To_management_SpaceInstanceList(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)) +func autoConvert_management_SpaceInstanceList_To_v1_SpaceInstanceList(in *management.SpaceInstanceList, out *SpaceInstanceList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]SpaceInstance)(unsafe.Pointer(&in.Items)) 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) +// Convert_management_SpaceInstanceList_To_v1_SpaceInstanceList is an autogenerated conversion function. +func Convert_management_SpaceInstanceList_To_v1_SpaceInstanceList(in *management.SpaceInstanceList, out *SpaceInstanceList, s conversion.Scope) error { + return autoConvert_management_SpaceInstanceList_To_v1_SpaceInstanceList(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_SpaceInstanceSpec_To_management_SpaceInstanceSpec(in *SpaceInstanceSpec, out *management.SpaceInstanceSpec, s conversion.Scope) error { + out.SpaceInstanceSpec = in.SpaceInstanceSpec 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_SpaceInstanceSpec_To_management_SpaceInstanceSpec is an autogenerated conversion function. +func Convert_v1_SpaceInstanceSpec_To_management_SpaceInstanceSpec(in *SpaceInstanceSpec, out *management.SpaceInstanceSpec, s conversion.Scope) error { + return autoConvert_v1_SpaceInstanceSpec_To_management_SpaceInstanceSpec(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_SpaceInstanceSpec_To_v1_SpaceInstanceSpec(in *management.SpaceInstanceSpec, out *SpaceInstanceSpec, s conversion.Scope) error { + out.SpaceInstanceSpec = in.SpaceInstanceSpec + return nil +} + +// Convert_management_SpaceInstanceSpec_To_v1_SpaceInstanceSpec is an autogenerated conversion function. +func Convert_management_SpaceInstanceSpec_To_v1_SpaceInstanceSpec(in *management.SpaceInstanceSpec, out *SpaceInstanceSpec, s conversion.Scope) error { + return autoConvert_management_SpaceInstanceSpec_To_v1_SpaceInstanceSpec(in, out, s) +} + +func autoConvert_v1_SpaceInstanceStatus_To_management_SpaceInstanceStatus(in *SpaceInstanceStatus, out *management.SpaceInstanceStatus, s conversion.Scope) error { + out.SpaceInstanceStatus = in.SpaceInstanceStatus + out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) + out.CanUse = in.CanUse + out.CanUpdate = in.CanUpdate 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_v1_SpaceInstanceStatus_To_management_SpaceInstanceStatus is an autogenerated conversion function. +func Convert_v1_SpaceInstanceStatus_To_management_SpaceInstanceStatus(in *SpaceInstanceStatus, out *management.SpaceInstanceStatus, s conversion.Scope) error { + return autoConvert_v1_SpaceInstanceStatus_To_management_SpaceInstanceStatus(in, out, s) } -func autoConvert_v1_ProjectSecret_To_management_ProjectSecret(in *ProjectSecret, out *management.ProjectSecret, s conversion.Scope) error { +func autoConvert_management_SpaceInstanceStatus_To_v1_SpaceInstanceStatus(in *management.SpaceInstanceStatus, out *SpaceInstanceStatus, s conversion.Scope) error { + out.SpaceInstanceStatus = in.SpaceInstanceStatus + out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) + out.CanUse = in.CanUse + out.CanUpdate = in.CanUpdate + return nil +} + +// Convert_management_SpaceInstanceStatus_To_v1_SpaceInstanceStatus is an autogenerated conversion function. +func Convert_management_SpaceInstanceStatus_To_v1_SpaceInstanceStatus(in *management.SpaceInstanceStatus, out *SpaceInstanceStatus, s conversion.Scope) error { + return autoConvert_management_SpaceInstanceStatus_To_v1_SpaceInstanceStatus(in, out, s) +} + +func autoConvert_v1_SpaceTemplate_To_management_SpaceTemplate(in *SpaceTemplate, out *management.SpaceTemplate, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_ProjectSecretStatus_To_management_ProjectSecretStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_SpaceTemplateStatus_To_management_SpaceTemplateStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_ProjectSecret_To_management_ProjectSecret is an autogenerated conversion function. -func Convert_v1_ProjectSecret_To_management_ProjectSecret(in *ProjectSecret, out *management.ProjectSecret, s conversion.Scope) error { - return autoConvert_v1_ProjectSecret_To_management_ProjectSecret(in, out, s) +// Convert_v1_SpaceTemplate_To_management_SpaceTemplate is an autogenerated conversion function. +func Convert_v1_SpaceTemplate_To_management_SpaceTemplate(in *SpaceTemplate, out *management.SpaceTemplate, s conversion.Scope) error { + return autoConvert_v1_SpaceTemplate_To_management_SpaceTemplate(in, out, s) } -func autoConvert_management_ProjectSecret_To_v1_ProjectSecret(in *management.ProjectSecret, out *ProjectSecret, s conversion.Scope) error { +func autoConvert_management_SpaceTemplate_To_v1_SpaceTemplate(in *management.SpaceTemplate, out *SpaceTemplate, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ProjectSecretSpec_To_v1_ProjectSecretSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_SpaceTemplateSpec_To_v1_SpaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_ProjectSecretStatus_To_v1_ProjectSecretStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_SpaceTemplateStatus_To_v1_SpaceTemplateStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_ProjectSecret_To_v1_ProjectSecret is an autogenerated conversion function. -func Convert_management_ProjectSecret_To_v1_ProjectSecret(in *management.ProjectSecret, out *ProjectSecret, s conversion.Scope) error { - return autoConvert_management_ProjectSecret_To_v1_ProjectSecret(in, out, s) +// Convert_management_SpaceTemplate_To_v1_SpaceTemplate is an autogenerated conversion function. +func Convert_management_SpaceTemplate_To_v1_SpaceTemplate(in *management.SpaceTemplate, out *SpaceTemplate, s conversion.Scope) error { + return autoConvert_management_SpaceTemplate_To_v1_SpaceTemplate(in, out, s) } -func autoConvert_v1_ProjectSecretList_To_management_ProjectSecretList(in *ProjectSecretList, out *management.ProjectSecretList, s conversion.Scope) error { +func autoConvert_v1_SpaceTemplateList_To_management_SpaceTemplateList(in *SpaceTemplateList, out *management.SpaceTemplateList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectSecret)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.SpaceTemplate)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ProjectSecretList_To_management_ProjectSecretList is an autogenerated conversion function. -func Convert_v1_ProjectSecretList_To_management_ProjectSecretList(in *ProjectSecretList, out *management.ProjectSecretList, s conversion.Scope) error { - return autoConvert_v1_ProjectSecretList_To_management_ProjectSecretList(in, out, s) +// Convert_v1_SpaceTemplateList_To_management_SpaceTemplateList is an autogenerated conversion function. +func Convert_v1_SpaceTemplateList_To_management_SpaceTemplateList(in *SpaceTemplateList, out *management.SpaceTemplateList, s conversion.Scope) error { + return autoConvert_v1_SpaceTemplateList_To_management_SpaceTemplateList(in, out, s) } -func autoConvert_management_ProjectSecretList_To_v1_ProjectSecretList(in *management.ProjectSecretList, out *ProjectSecretList, s conversion.Scope) error { +func autoConvert_management_SpaceTemplateList_To_v1_SpaceTemplateList(in *management.SpaceTemplateList, out *SpaceTemplateList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectSecret)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_ProjectSecretList_To_v1_ProjectSecretList is an autogenerated conversion function. -func Convert_management_ProjectSecretList_To_v1_ProjectSecretList(in *management.ProjectSecretList, out *ProjectSecretList, s conversion.Scope) error { - return autoConvert_management_ProjectSecretList_To_v1_ProjectSecretList(in, out, s) -} - -func autoConvert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec(in *ProjectSecretSpec, out *management.ProjectSecretSpec, s conversion.Scope) error { - out.DisplayName = in.DisplayName - out.Description = in.Description - out.Owner = (*storagev1.UserOrTeam)(unsafe.Pointer(in.Owner)) - out.Data = *(*map[string][]byte)(unsafe.Pointer(&in.Data)) - out.Access = *(*[]storagev1.Access)(unsafe.Pointer(&in.Access)) - return nil -} - -// Convert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec is an autogenerated conversion function. -func Convert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec(in *ProjectSecretSpec, out *management.ProjectSecretSpec, s conversion.Scope) error { - return autoConvert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec(in, out, s) -} - -func autoConvert_management_ProjectSecretSpec_To_v1_ProjectSecretSpec(in *management.ProjectSecretSpec, out *ProjectSecretSpec, s conversion.Scope) error { - out.DisplayName = in.DisplayName - out.Description = in.Description - out.Owner = (*storagev1.UserOrTeam)(unsafe.Pointer(in.Owner)) - out.Data = *(*map[string][]byte)(unsafe.Pointer(&in.Data)) - out.Access = *(*[]storagev1.Access)(unsafe.Pointer(&in.Access)) + out.Items = *(*[]SpaceTemplate)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ProjectSecretSpec_To_v1_ProjectSecretSpec is an autogenerated conversion function. -func Convert_management_ProjectSecretSpec_To_v1_ProjectSecretSpec(in *management.ProjectSecretSpec, out *ProjectSecretSpec, s conversion.Scope) error { - return autoConvert_management_ProjectSecretSpec_To_v1_ProjectSecretSpec(in, out, s) +// Convert_management_SpaceTemplateList_To_v1_SpaceTemplateList is an autogenerated conversion function. +func Convert_management_SpaceTemplateList_To_v1_SpaceTemplateList(in *management.SpaceTemplateList, out *SpaceTemplateList, s conversion.Scope) error { + return autoConvert_management_SpaceTemplateList_To_v1_SpaceTemplateList(in, out, s) } -func autoConvert_v1_ProjectSecretStatus_To_management_ProjectSecretStatus(in *ProjectSecretStatus, out *management.ProjectSecretStatus, s conversion.Scope) error { - out.Conditions = *(*loftstoragev1.Conditions)(unsafe.Pointer(&in.Conditions)) +func autoConvert_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec(in *SpaceTemplateSpec, out *management.SpaceTemplateSpec, s conversion.Scope) error { + out.SpaceTemplateSpec = in.SpaceTemplateSpec return nil } -// Convert_v1_ProjectSecretStatus_To_management_ProjectSecretStatus is an autogenerated conversion function. -func Convert_v1_ProjectSecretStatus_To_management_ProjectSecretStatus(in *ProjectSecretStatus, out *management.ProjectSecretStatus, s conversion.Scope) error { - return autoConvert_v1_ProjectSecretStatus_To_management_ProjectSecretStatus(in, out, s) +// Convert_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec is an autogenerated conversion function. +func Convert_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec(in *SpaceTemplateSpec, out *management.SpaceTemplateSpec, s conversion.Scope) error { + return autoConvert_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec(in, out, s) } -func autoConvert_management_ProjectSecretStatus_To_v1_ProjectSecretStatus(in *management.ProjectSecretStatus, out *ProjectSecretStatus, s conversion.Scope) error { - out.Conditions = *(*loftstoragev1.Conditions)(unsafe.Pointer(&in.Conditions)) +func autoConvert_management_SpaceTemplateSpec_To_v1_SpaceTemplateSpec(in *management.SpaceTemplateSpec, out *SpaceTemplateSpec, s conversion.Scope) error { + out.SpaceTemplateSpec = in.SpaceTemplateSpec return nil } -// Convert_management_ProjectSecretStatus_To_v1_ProjectSecretStatus is an autogenerated conversion function. -func Convert_management_ProjectSecretStatus_To_v1_ProjectSecretStatus(in *management.ProjectSecretStatus, out *ProjectSecretStatus, s conversion.Scope) error { - return autoConvert_management_ProjectSecretStatus_To_v1_ProjectSecretStatus(in, out, s) +// Convert_management_SpaceTemplateSpec_To_v1_SpaceTemplateSpec is an autogenerated conversion function. +func Convert_management_SpaceTemplateSpec_To_v1_SpaceTemplateSpec(in *management.SpaceTemplateSpec, out *SpaceTemplateSpec, s conversion.Scope) error { + return autoConvert_management_SpaceTemplateSpec_To_v1_SpaceTemplateSpec(in, out, s) } -func autoConvert_v1_ProjectSpec_To_management_ProjectSpec(in *ProjectSpec, out *management.ProjectSpec, s conversion.Scope) error { - out.ProjectSpec = in.ProjectSpec +func autoConvert_v1_SpaceTemplateStatus_To_management_SpaceTemplateStatus(in *SpaceTemplateStatus, out *management.SpaceTemplateStatus, s conversion.Scope) error { + out.SpaceTemplateStatus = in.SpaceTemplateStatus + out.Apps = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Apps)) return nil } -// Convert_v1_ProjectSpec_To_management_ProjectSpec is an autogenerated conversion function. -func Convert_v1_ProjectSpec_To_management_ProjectSpec(in *ProjectSpec, out *management.ProjectSpec, s conversion.Scope) error { - return autoConvert_v1_ProjectSpec_To_management_ProjectSpec(in, out, s) +// Convert_v1_SpaceTemplateStatus_To_management_SpaceTemplateStatus is an autogenerated conversion function. +func Convert_v1_SpaceTemplateStatus_To_management_SpaceTemplateStatus(in *SpaceTemplateStatus, out *management.SpaceTemplateStatus, s conversion.Scope) error { + return autoConvert_v1_SpaceTemplateStatus_To_management_SpaceTemplateStatus(in, out, s) } -func autoConvert_management_ProjectSpec_To_v1_ProjectSpec(in *management.ProjectSpec, out *ProjectSpec, s conversion.Scope) error { - out.ProjectSpec = in.ProjectSpec +func autoConvert_management_SpaceTemplateStatus_To_v1_SpaceTemplateStatus(in *management.SpaceTemplateStatus, out *SpaceTemplateStatus, s conversion.Scope) error { + out.SpaceTemplateStatus = in.SpaceTemplateStatus + out.Apps = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Apps)) return nil } -// Convert_management_ProjectSpec_To_v1_ProjectSpec is an autogenerated conversion function. -func Convert_management_ProjectSpec_To_v1_ProjectSpec(in *management.ProjectSpec, out *ProjectSpec, s conversion.Scope) error { - return autoConvert_management_ProjectSpec_To_v1_ProjectSpec(in, out, s) +// Convert_management_SpaceTemplateStatus_To_v1_SpaceTemplateStatus is an autogenerated conversion function. +func Convert_management_SpaceTemplateStatus_To_v1_SpaceTemplateStatus(in *management.SpaceTemplateStatus, out *SpaceTemplateStatus, s conversion.Scope) error { + return autoConvert_management_SpaceTemplateStatus_To_v1_SpaceTemplateStatus(in, out, s) } -func autoConvert_v1_ProjectStatus_To_management_ProjectStatus(in *ProjectStatus, out *management.ProjectStatus, s conversion.Scope) error { - out.ProjectStatus = in.ProjectStatus +func autoConvert_v1_StandaloneEtcdPeer_To_management_StandaloneEtcdPeer(in *StandaloneEtcdPeer, out *management.StandaloneEtcdPeer, s conversion.Scope) error { + out.Name = in.Name + out.NodeClaim = in.NodeClaim + out.Address = in.Address return nil } -// Convert_v1_ProjectStatus_To_management_ProjectStatus is an autogenerated conversion function. -func Convert_v1_ProjectStatus_To_management_ProjectStatus(in *ProjectStatus, out *management.ProjectStatus, s conversion.Scope) error { - return autoConvert_v1_ProjectStatus_To_management_ProjectStatus(in, out, s) +// Convert_v1_StandaloneEtcdPeer_To_management_StandaloneEtcdPeer is an autogenerated conversion function. +func Convert_v1_StandaloneEtcdPeer_To_management_StandaloneEtcdPeer(in *StandaloneEtcdPeer, out *management.StandaloneEtcdPeer, s conversion.Scope) error { + return autoConvert_v1_StandaloneEtcdPeer_To_management_StandaloneEtcdPeer(in, out, s) } -func autoConvert_management_ProjectStatus_To_v1_ProjectStatus(in *management.ProjectStatus, out *ProjectStatus, s conversion.Scope) error { - out.ProjectStatus = in.ProjectStatus +func autoConvert_management_StandaloneEtcdPeer_To_v1_StandaloneEtcdPeer(in *management.StandaloneEtcdPeer, out *StandaloneEtcdPeer, s conversion.Scope) error { + out.Name = in.Name + out.NodeClaim = in.NodeClaim + out.Address = in.Address return nil } -// Convert_management_ProjectStatus_To_v1_ProjectStatus is an autogenerated conversion function. -func Convert_management_ProjectStatus_To_v1_ProjectStatus(in *management.ProjectStatus, out *ProjectStatus, s conversion.Scope) error { - return autoConvert_management_ProjectStatus_To_v1_ProjectStatus(in, out, s) +// Convert_management_StandaloneEtcdPeer_To_v1_StandaloneEtcdPeer is an autogenerated conversion function. +func Convert_management_StandaloneEtcdPeer_To_v1_StandaloneEtcdPeer(in *management.StandaloneEtcdPeer, out *StandaloneEtcdPeer, s conversion.Scope) error { + return autoConvert_management_StandaloneEtcdPeer_To_v1_StandaloneEtcdPeer(in, out, s) } -func autoConvert_v1_ProjectTemplates_To_management_ProjectTemplates(in *ProjectTemplates, out *management.ProjectTemplates, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.DefaultVirtualClusterTemplate = in.DefaultVirtualClusterTemplate - out.VirtualClusterTemplates = *(*[]management.VirtualClusterTemplate)(unsafe.Pointer(&in.VirtualClusterTemplates)) - out.DefaultSpaceTemplate = in.DefaultSpaceTemplate - out.SpaceTemplates = *(*[]management.SpaceTemplate)(unsafe.Pointer(&in.SpaceTemplates)) - out.DefaultDevPodWorkspaceTemplate = in.DefaultDevPodWorkspaceTemplate - out.DevPodWorkspaceTemplates = *(*[]management.DevPodWorkspaceTemplate)(unsafe.Pointer(&in.DevPodWorkspaceTemplates)) - out.DevPodEnvironmentTemplates = *(*[]management.DevPodEnvironmentTemplate)(unsafe.Pointer(&in.DevPodEnvironmentTemplates)) - out.DefaultDevPodEnvironmentTemplate = in.DefaultDevPodEnvironmentTemplate +func autoConvert_v1_StandaloneEtcdPeerCoordinator_To_management_StandaloneEtcdPeerCoordinator(in *StandaloneEtcdPeerCoordinator, out *management.StandaloneEtcdPeerCoordinator, s conversion.Scope) error { + if err := Convert_v1_StandaloneEtcdPeer_To_management_StandaloneEtcdPeer(&in.StandaloneEtcdPeer, &out.StandaloneEtcdPeer, s); err != nil { + return err + } + out.IsCoordinator = in.IsCoordinator return nil } -// Convert_v1_ProjectTemplates_To_management_ProjectTemplates is an autogenerated conversion function. -func Convert_v1_ProjectTemplates_To_management_ProjectTemplates(in *ProjectTemplates, out *management.ProjectTemplates, s conversion.Scope) error { - return autoConvert_v1_ProjectTemplates_To_management_ProjectTemplates(in, out, s) +// Convert_v1_StandaloneEtcdPeerCoordinator_To_management_StandaloneEtcdPeerCoordinator is an autogenerated conversion function. +func Convert_v1_StandaloneEtcdPeerCoordinator_To_management_StandaloneEtcdPeerCoordinator(in *StandaloneEtcdPeerCoordinator, out *management.StandaloneEtcdPeerCoordinator, s conversion.Scope) error { + return autoConvert_v1_StandaloneEtcdPeerCoordinator_To_management_StandaloneEtcdPeerCoordinator(in, out, s) } -func autoConvert_management_ProjectTemplates_To_v1_ProjectTemplates(in *management.ProjectTemplates, out *ProjectTemplates, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.DefaultVirtualClusterTemplate = in.DefaultVirtualClusterTemplate - out.VirtualClusterTemplates = *(*[]VirtualClusterTemplate)(unsafe.Pointer(&in.VirtualClusterTemplates)) - out.DefaultSpaceTemplate = in.DefaultSpaceTemplate - out.SpaceTemplates = *(*[]SpaceTemplate)(unsafe.Pointer(&in.SpaceTemplates)) - out.DefaultDevPodWorkspaceTemplate = in.DefaultDevPodWorkspaceTemplate - out.DevPodWorkspaceTemplates = *(*[]DevPodWorkspaceTemplate)(unsafe.Pointer(&in.DevPodWorkspaceTemplates)) - out.DevPodEnvironmentTemplates = *(*[]DevPodEnvironmentTemplate)(unsafe.Pointer(&in.DevPodEnvironmentTemplates)) - out.DefaultDevPodEnvironmentTemplate = in.DefaultDevPodEnvironmentTemplate +func autoConvert_management_StandaloneEtcdPeerCoordinator_To_v1_StandaloneEtcdPeerCoordinator(in *management.StandaloneEtcdPeerCoordinator, out *StandaloneEtcdPeerCoordinator, s conversion.Scope) error { + if err := Convert_management_StandaloneEtcdPeer_To_v1_StandaloneEtcdPeer(&in.StandaloneEtcdPeer, &out.StandaloneEtcdPeer, s); err != nil { + return err + } + out.IsCoordinator = in.IsCoordinator return nil } -// Convert_management_ProjectTemplates_To_v1_ProjectTemplates is an autogenerated conversion function. -func Convert_management_ProjectTemplates_To_v1_ProjectTemplates(in *management.ProjectTemplates, out *ProjectTemplates, s conversion.Scope) error { - return autoConvert_management_ProjectTemplates_To_v1_ProjectTemplates(in, out, s) +// Convert_management_StandaloneEtcdPeerCoordinator_To_v1_StandaloneEtcdPeerCoordinator is an autogenerated conversion function. +func Convert_management_StandaloneEtcdPeerCoordinator_To_v1_StandaloneEtcdPeerCoordinator(in *management.StandaloneEtcdPeerCoordinator, out *StandaloneEtcdPeerCoordinator, s conversion.Scope) error { + return autoConvert_management_StandaloneEtcdPeerCoordinator_To_v1_StandaloneEtcdPeerCoordinator(in, out, s) } -func autoConvert_v1_ProjectTemplatesList_To_management_ProjectTemplatesList(in *ProjectTemplatesList, out *management.ProjectTemplatesList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectTemplates)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_StandalonePKI_To_management_StandalonePKI(in *StandalonePKI, out *management.StandalonePKI, s conversion.Scope) error { + out.Certificates = *(*map[string][]byte)(unsafe.Pointer(&in.Certificates)) return nil } -// Convert_v1_ProjectTemplatesList_To_management_ProjectTemplatesList is an autogenerated conversion function. -func Convert_v1_ProjectTemplatesList_To_management_ProjectTemplatesList(in *ProjectTemplatesList, out *management.ProjectTemplatesList, s conversion.Scope) error { - return autoConvert_v1_ProjectTemplatesList_To_management_ProjectTemplatesList(in, out, s) +// Convert_v1_StandalonePKI_To_management_StandalonePKI is an autogenerated conversion function. +func Convert_v1_StandalonePKI_To_management_StandalonePKI(in *StandalonePKI, out *management.StandalonePKI, s conversion.Scope) error { + return autoConvert_v1_StandalonePKI_To_management_StandalonePKI(in, out, s) } -func autoConvert_management_ProjectTemplatesList_To_v1_ProjectTemplatesList(in *management.ProjectTemplatesList, out *ProjectTemplatesList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectTemplates)(unsafe.Pointer(&in.Items)) +func autoConvert_management_StandalonePKI_To_v1_StandalonePKI(in *management.StandalonePKI, out *StandalonePKI, s conversion.Scope) error { + out.Certificates = *(*map[string][]byte)(unsafe.Pointer(&in.Certificates)) return nil } -// Convert_management_ProjectTemplatesList_To_v1_ProjectTemplatesList is an autogenerated conversion function. -func Convert_management_ProjectTemplatesList_To_v1_ProjectTemplatesList(in *management.ProjectTemplatesList, out *ProjectTemplatesList, s conversion.Scope) error { - return autoConvert_management_ProjectTemplatesList_To_v1_ProjectTemplatesList(in, out, s) +// Convert_management_StandalonePKI_To_v1_StandalonePKI is an autogenerated conversion function. +func Convert_management_StandalonePKI_To_v1_StandalonePKI(in *management.StandalonePKI, out *StandalonePKI, s conversion.Scope) error { + return autoConvert_management_StandalonePKI_To_v1_StandalonePKI(in, out, s) } -func autoConvert_v1_RedirectToken_To_management_RedirectToken(in *RedirectToken, out *management.RedirectToken, s conversion.Scope) error { +func autoConvert_v1_SubjectAccessReview_To_management_SubjectAccessReview(in *SubjectAccessReview, out *management.SubjectAccessReview, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_RedirectToken_To_management_RedirectToken is an autogenerated conversion function. -func Convert_v1_RedirectToken_To_management_RedirectToken(in *RedirectToken, out *management.RedirectToken, s conversion.Scope) error { - return autoConvert_v1_RedirectToken_To_management_RedirectToken(in, out, s) +// Convert_v1_SubjectAccessReview_To_management_SubjectAccessReview is an autogenerated conversion function. +func Convert_v1_SubjectAccessReview_To_management_SubjectAccessReview(in *SubjectAccessReview, out *management.SubjectAccessReview, s conversion.Scope) error { + return autoConvert_v1_SubjectAccessReview_To_management_SubjectAccessReview(in, out, s) } -func autoConvert_management_RedirectToken_To_v1_RedirectToken(in *management.RedirectToken, out *RedirectToken, s conversion.Scope) error { +func autoConvert_management_SubjectAccessReview_To_v1_SubjectAccessReview(in *management.SubjectAccessReview, out *SubjectAccessReview, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_RedirectToken_To_v1_RedirectToken is an autogenerated conversion function. -func Convert_management_RedirectToken_To_v1_RedirectToken(in *management.RedirectToken, out *RedirectToken, s conversion.Scope) error { - return autoConvert_management_RedirectToken_To_v1_RedirectToken(in, out, s) +// Convert_management_SubjectAccessReview_To_v1_SubjectAccessReview is an autogenerated conversion function. +func Convert_management_SubjectAccessReview_To_v1_SubjectAccessReview(in *management.SubjectAccessReview, out *SubjectAccessReview, s conversion.Scope) error { + return autoConvert_management_SubjectAccessReview_To_v1_SubjectAccessReview(in, out, s) } -func autoConvert_v1_RedirectTokenList_To_management_RedirectTokenList(in *RedirectTokenList, out *management.RedirectTokenList, s conversion.Scope) error { +func autoConvert_v1_SubjectAccessReviewList_To_management_SubjectAccessReviewList(in *SubjectAccessReviewList, out *management.SubjectAccessReviewList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.RedirectToken)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.SubjectAccessReview)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_RedirectTokenList_To_management_RedirectTokenList is an autogenerated conversion function. -func Convert_v1_RedirectTokenList_To_management_RedirectTokenList(in *RedirectTokenList, out *management.RedirectTokenList, s conversion.Scope) error { - return autoConvert_v1_RedirectTokenList_To_management_RedirectTokenList(in, out, s) +// Convert_v1_SubjectAccessReviewList_To_management_SubjectAccessReviewList is an autogenerated conversion function. +func Convert_v1_SubjectAccessReviewList_To_management_SubjectAccessReviewList(in *SubjectAccessReviewList, out *management.SubjectAccessReviewList, s conversion.Scope) error { + return autoConvert_v1_SubjectAccessReviewList_To_management_SubjectAccessReviewList(in, out, s) } -func autoConvert_management_RedirectTokenList_To_v1_RedirectTokenList(in *management.RedirectTokenList, out *RedirectTokenList, s conversion.Scope) error { +func autoConvert_management_SubjectAccessReviewList_To_v1_SubjectAccessReviewList(in *management.SubjectAccessReviewList, out *SubjectAccessReviewList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]RedirectToken)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]SubjectAccessReview)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_RedirectTokenList_To_v1_RedirectTokenList is an autogenerated conversion function. -func Convert_management_RedirectTokenList_To_v1_RedirectTokenList(in *management.RedirectTokenList, out *RedirectTokenList, s conversion.Scope) error { - return autoConvert_management_RedirectTokenList_To_v1_RedirectTokenList(in, out, s) +// Convert_management_SubjectAccessReviewList_To_v1_SubjectAccessReviewList is an autogenerated conversion function. +func Convert_management_SubjectAccessReviewList_To_v1_SubjectAccessReviewList(in *management.SubjectAccessReviewList, out *SubjectAccessReviewList, s conversion.Scope) error { + return autoConvert_management_SubjectAccessReviewList_To_v1_SubjectAccessReviewList(in, out, s) } -func autoConvert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec(in *RedirectTokenSpec, out *management.RedirectTokenSpec, s conversion.Scope) error { - out.Token = in.Token +func autoConvert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec(in *SubjectAccessReviewSpec, out *management.SubjectAccessReviewSpec, s conversion.Scope) error { + out.SubjectAccessReviewSpec = in.SubjectAccessReviewSpec return nil } -// Convert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec is an autogenerated conversion function. -func Convert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec(in *RedirectTokenSpec, out *management.RedirectTokenSpec, s conversion.Scope) error { - return autoConvert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec(in, out, s) +// Convert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec is an autogenerated conversion function. +func Convert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec(in *SubjectAccessReviewSpec, out *management.SubjectAccessReviewSpec, s conversion.Scope) error { + return autoConvert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec(in, out, s) } -func autoConvert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec(in *management.RedirectTokenSpec, out *RedirectTokenSpec, s conversion.Scope) error { - out.Token = in.Token +func autoConvert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec(in *management.SubjectAccessReviewSpec, out *SubjectAccessReviewSpec, s conversion.Scope) error { + out.SubjectAccessReviewSpec = in.SubjectAccessReviewSpec return nil } -// Convert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec is an autogenerated conversion function. -func Convert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec(in *management.RedirectTokenSpec, out *RedirectTokenSpec, s conversion.Scope) error { - return autoConvert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec(in, out, s) +// Convert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec is an autogenerated conversion function. +func Convert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec(in *management.SubjectAccessReviewSpec, out *SubjectAccessReviewSpec, s conversion.Scope) error { + return autoConvert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec(in, out, s) } -func autoConvert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus(in *RedirectTokenStatus, out *management.RedirectTokenStatus, s conversion.Scope) error { - out.RedirectURL = in.RedirectURL +func autoConvert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus(in *SubjectAccessReviewStatus, out *management.SubjectAccessReviewStatus, s conversion.Scope) error { + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus return nil } -// Convert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus is an autogenerated conversion function. -func Convert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus(in *RedirectTokenStatus, out *management.RedirectTokenStatus, s conversion.Scope) error { - return autoConvert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus(in, out, s) +// Convert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus is an autogenerated conversion function. +func Convert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus(in *SubjectAccessReviewStatus, out *management.SubjectAccessReviewStatus, s conversion.Scope) error { + return autoConvert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus(in, out, s) } -func autoConvert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus(in *management.RedirectTokenStatus, out *RedirectTokenStatus, s conversion.Scope) error { - out.RedirectURL = in.RedirectURL +func autoConvert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus(in *management.SubjectAccessReviewStatus, out *SubjectAccessReviewStatus, s conversion.Scope) error { + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus return nil } -// Convert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus is an autogenerated conversion function. -func Convert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus(in *management.RedirectTokenStatus, out *RedirectTokenStatus, s conversion.Scope) error { - return autoConvert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus(in, out, s) +// Convert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus is an autogenerated conversion function. +func Convert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus(in *management.SubjectAccessReviewStatus, out *SubjectAccessReviewStatus, s conversion.Scope) error { + return autoConvert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus(in, out, s) } -func autoConvert_v1_RegisterVirtualCluster_To_management_RegisterVirtualCluster(in *RegisterVirtualCluster, out *management.RegisterVirtualCluster, s conversion.Scope) error { +func autoConvert_v1_Task_To_management_Task(in *Task, out *management.Task, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_TaskSpec_To_management_TaskSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_TaskStatus_To_management_TaskStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_RegisterVirtualCluster_To_management_RegisterVirtualCluster is an autogenerated conversion function. -func Convert_v1_RegisterVirtualCluster_To_management_RegisterVirtualCluster(in *RegisterVirtualCluster, out *management.RegisterVirtualCluster, s conversion.Scope) error { - return autoConvert_v1_RegisterVirtualCluster_To_management_RegisterVirtualCluster(in, out, s) +// Convert_v1_Task_To_management_Task is an autogenerated conversion function. +func Convert_v1_Task_To_management_Task(in *Task, out *management.Task, s conversion.Scope) error { + return autoConvert_v1_Task_To_management_Task(in, out, s) } -func autoConvert_management_RegisterVirtualCluster_To_v1_RegisterVirtualCluster(in *management.RegisterVirtualCluster, out *RegisterVirtualCluster, s conversion.Scope) error { +func autoConvert_management_Task_To_v1_Task(in *management.Task, out *Task, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_TaskSpec_To_v1_TaskSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_TaskStatus_To_v1_TaskStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_RegisterVirtualCluster_To_v1_RegisterVirtualCluster is an autogenerated conversion function. -func Convert_management_RegisterVirtualCluster_To_v1_RegisterVirtualCluster(in *management.RegisterVirtualCluster, out *RegisterVirtualCluster, s conversion.Scope) error { - return autoConvert_management_RegisterVirtualCluster_To_v1_RegisterVirtualCluster(in, out, s) +// Convert_management_Task_To_v1_Task is an autogenerated conversion function. +func Convert_management_Task_To_v1_Task(in *management.Task, out *Task, s conversion.Scope) error { + return autoConvert_management_Task_To_v1_Task(in, out, s) } -func autoConvert_v1_RegisterVirtualClusterList_To_management_RegisterVirtualClusterList(in *RegisterVirtualClusterList, out *management.RegisterVirtualClusterList, s conversion.Scope) error { +func autoConvert_v1_TaskList_To_management_TaskList(in *TaskList, out *management.TaskList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.RegisterVirtualCluster)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.Task)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_RegisterVirtualClusterList_To_management_RegisterVirtualClusterList is an autogenerated conversion function. -func Convert_v1_RegisterVirtualClusterList_To_management_RegisterVirtualClusterList(in *RegisterVirtualClusterList, out *management.RegisterVirtualClusterList, s conversion.Scope) error { - return autoConvert_v1_RegisterVirtualClusterList_To_management_RegisterVirtualClusterList(in, out, s) +// Convert_v1_TaskList_To_management_TaskList is an autogenerated conversion function. +func Convert_v1_TaskList_To_management_TaskList(in *TaskList, out *management.TaskList, s conversion.Scope) error { + return autoConvert_v1_TaskList_To_management_TaskList(in, out, s) } -func autoConvert_management_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterList(in *management.RegisterVirtualClusterList, out *RegisterVirtualClusterList, s conversion.Scope) error { +func autoConvert_management_TaskList_To_v1_TaskList(in *management.TaskList, out *TaskList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]RegisterVirtualCluster)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterList is an autogenerated conversion function. -func Convert_management_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterList(in *management.RegisterVirtualClusterList, out *RegisterVirtualClusterList, s conversion.Scope) error { - return autoConvert_management_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterList(in, out, s) -} - -func autoConvert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec(in *RegisterVirtualClusterSpec, out *management.RegisterVirtualClusterSpec, s conversion.Scope) error { - out.ServiceUID = in.ServiceUID - out.Project = in.Project - out.Name = in.Name - out.ForceName = in.ForceName - out.Chart = in.Chart - out.Version = in.Version - out.Values = in.Values + out.Items = *(*[]Task)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec is an autogenerated conversion function. -func Convert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec(in *RegisterVirtualClusterSpec, out *management.RegisterVirtualClusterSpec, s conversion.Scope) error { - return autoConvert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec(in, out, s) +// Convert_management_TaskList_To_v1_TaskList is an autogenerated conversion function. +func Convert_management_TaskList_To_v1_TaskList(in *management.TaskList, out *TaskList, s conversion.Scope) error { + return autoConvert_management_TaskList_To_v1_TaskList(in, out, s) } -func autoConvert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec(in *management.RegisterVirtualClusterSpec, out *RegisterVirtualClusterSpec, s conversion.Scope) error { - out.ServiceUID = in.ServiceUID - out.Project = in.Project - out.Name = in.Name - out.ForceName = in.ForceName - out.Chart = in.Chart - out.Version = in.Version - out.Values = in.Values +func autoConvert_v1_TaskLog_To_management_TaskLog(in *TaskLog, out *management.TaskLog, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta return nil } -// Convert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec is an autogenerated conversion function. -func Convert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec(in *management.RegisterVirtualClusterSpec, out *RegisterVirtualClusterSpec, s conversion.Scope) error { - return autoConvert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec(in, out, s) +// Convert_v1_TaskLog_To_management_TaskLog is an autogenerated conversion function. +func Convert_v1_TaskLog_To_management_TaskLog(in *TaskLog, out *management.TaskLog, s conversion.Scope) error { + return autoConvert_v1_TaskLog_To_management_TaskLog(in, out, s) } -func autoConvert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(in *RegisterVirtualClusterStatus, out *management.RegisterVirtualClusterStatus, s conversion.Scope) error { - out.Name = in.Name +func autoConvert_management_TaskLog_To_v1_TaskLog(in *management.TaskLog, out *TaskLog, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta return nil } -// Convert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus is an autogenerated conversion function. -func Convert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(in *RegisterVirtualClusterStatus, out *management.RegisterVirtualClusterStatus, s conversion.Scope) error { - return autoConvert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(in, out, s) +// Convert_management_TaskLog_To_v1_TaskLog is an autogenerated conversion function. +func Convert_management_TaskLog_To_v1_TaskLog(in *management.TaskLog, out *TaskLog, s conversion.Scope) error { + return autoConvert_management_TaskLog_To_v1_TaskLog(in, out, s) } -func autoConvert_management_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(in *management.RegisterVirtualClusterStatus, out *RegisterVirtualClusterStatus, s conversion.Scope) error { - out.Name = in.Name +func autoConvert_v1_TaskLogList_To_management_TaskLogList(in *TaskLogList, out *management.TaskLogList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.TaskLog)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus is an autogenerated conversion function. -func Convert_management_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(in *management.RegisterVirtualClusterStatus, out *RegisterVirtualClusterStatus, s conversion.Scope) error { - return autoConvert_management_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(in, out, s) -} - -func autoConvert_v1_ResetAccessKey_To_management_ResetAccessKey(in *ResetAccessKey, out *management.ResetAccessKey, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(&in.Status, &out.Status, s); err != nil { - return err - } +// Convert_v1_TaskLogList_To_management_TaskLogList is an autogenerated conversion function. +func Convert_v1_TaskLogList_To_management_TaskLogList(in *TaskLogList, out *management.TaskLogList, s conversion.Scope) error { + return autoConvert_v1_TaskLogList_To_management_TaskLogList(in, out, s) +} + +func autoConvert_management_TaskLogList_To_v1_TaskLogList(in *management.TaskLogList, out *TaskLogList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]TaskLog)(unsafe.Pointer(&in.Items)) 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) +// Convert_management_TaskLogList_To_v1_TaskLogList is an autogenerated conversion function. +func Convert_management_TaskLogList_To_v1_TaskLogList(in *management.TaskLogList, out *TaskLogList, s conversion.Scope) error { + return autoConvert_management_TaskLogList_To_v1_TaskLogList(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 - } +func autoConvert_v1_TaskLogOptions_To_management_TaskLogOptions(in *TaskLogOptions, out *management.TaskLogOptions, s conversion.Scope) error { + out.Follow = in.Follow + out.Previous = in.Previous + out.SinceSeconds = (*int64)(unsafe.Pointer(in.SinceSeconds)) + out.SinceTime = (*metav1.Time)(unsafe.Pointer(in.SinceTime)) + out.Timestamps = in.Timestamps + out.TailLines = (*int64)(unsafe.Pointer(in.TailLines)) + out.LimitBytes = (*int64)(unsafe.Pointer(in.LimitBytes)) + out.InsecureSkipTLSVerifyBackend = in.InsecureSkipTLSVerifyBackend 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) +// Convert_v1_TaskLogOptions_To_management_TaskLogOptions is an autogenerated conversion function. +func Convert_v1_TaskLogOptions_To_management_TaskLogOptions(in *TaskLogOptions, out *management.TaskLogOptions, s conversion.Scope) error { + return autoConvert_v1_TaskLogOptions_To_management_TaskLogOptions(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)) +func autoConvert_management_TaskLogOptions_To_v1_TaskLogOptions(in *management.TaskLogOptions, out *TaskLogOptions, s conversion.Scope) error { + out.Follow = in.Follow + out.Previous = in.Previous + out.SinceSeconds = (*int64)(unsafe.Pointer(in.SinceSeconds)) + out.SinceTime = (*metav1.Time)(unsafe.Pointer(in.SinceTime)) + out.Timestamps = in.Timestamps + out.TailLines = (*int64)(unsafe.Pointer(in.TailLines)) + out.LimitBytes = (*int64)(unsafe.Pointer(in.LimitBytes)) + out.InsecureSkipTLSVerifyBackend = in.InsecureSkipTLSVerifyBackend 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) +// Convert_management_TaskLogOptions_To_v1_TaskLogOptions is an autogenerated conversion function. +func Convert_management_TaskLogOptions_To_v1_TaskLogOptions(in *management.TaskLogOptions, out *TaskLogOptions, s conversion.Scope) error { + return autoConvert_management_TaskLogOptions_To_v1_TaskLogOptions(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)) +func autoConvert_url_Values_To_v1_TaskLogOptions(in *url.Values, out *TaskLogOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + 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.Follow = false + } + if values, ok := map[string][]string(*in)["previous"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_bool(&values, &out.Previous, s); err != nil { + return err + } + } else { + out.Previous = false + } + if values, ok := map[string][]string(*in)["sinceSeconds"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.SinceSeconds, s); err != nil { + return err + } + } else { + out.SinceSeconds = nil + } + if values, ok := map[string][]string(*in)["sinceTime"]; ok && len(values) > 0 { + if err := metav1.Convert_Slice_string_To_Pointer_v1_Time(&values, &out.SinceTime, s); err != nil { + return err + } + } else { + out.SinceTime = nil + } + if values, ok := map[string][]string(*in)["timestamps"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_bool(&values, &out.Timestamps, s); err != nil { + return err + } + } else { + out.Timestamps = false + } + if values, ok := map[string][]string(*in)["tailLines"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.TailLines, s); err != nil { + return err + } + } else { + out.TailLines = nil + } + if values, ok := map[string][]string(*in)["limitBytes"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.LimitBytes, s); err != nil { + return err + } + } else { + out.LimitBytes = nil + } + if values, ok := map[string][]string(*in)["insecureSkipTLSVerifyBackend"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_bool(&values, &out.InsecureSkipTLSVerifyBackend, s); err != nil { + return err + } + } else { + out.InsecureSkipTLSVerifyBackend = false + } 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) +// Convert_url_Values_To_v1_TaskLogOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_TaskLogOptions(in *url.Values, out *TaskLogOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_TaskLogOptions(in, out, s) } -func autoConvert_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(in *ResetAccessKeySpec, out *management.ResetAccessKeySpec, s conversion.Scope) error { - out.AccessKeySpec = in.AccessKeySpec +func autoConvert_v1_TaskSpec_To_management_TaskSpec(in *TaskSpec, out *management.TaskSpec, s conversion.Scope) error { + out.TaskSpec = in.TaskSpec 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) +// Convert_v1_TaskSpec_To_management_TaskSpec is an autogenerated conversion function. +func Convert_v1_TaskSpec_To_management_TaskSpec(in *TaskSpec, out *management.TaskSpec, s conversion.Scope) error { + return autoConvert_v1_TaskSpec_To_management_TaskSpec(in, out, s) } -func autoConvert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(in *management.ResetAccessKeySpec, out *ResetAccessKeySpec, s conversion.Scope) error { - out.AccessKeySpec = in.AccessKeySpec +func autoConvert_management_TaskSpec_To_v1_TaskSpec(in *management.TaskSpec, out *TaskSpec, s conversion.Scope) error { + out.TaskSpec = in.TaskSpec 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) +// Convert_management_TaskSpec_To_v1_TaskSpec is an autogenerated conversion function. +func Convert_management_TaskSpec_To_v1_TaskSpec(in *management.TaskSpec, out *TaskSpec, s conversion.Scope) error { + return autoConvert_management_TaskSpec_To_v1_TaskSpec(in, out, s) } -func autoConvert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(in *ResetAccessKeyStatus, out *management.ResetAccessKeyStatus, s conversion.Scope) error { - out.AccessKeyStatus = in.AccessKeyStatus +func autoConvert_v1_TaskStatus_To_management_TaskStatus(in *TaskStatus, out *management.TaskStatus, s conversion.Scope) error { + out.TaskStatus = in.TaskStatus + out.Owner = (*storagev1.UserOrTeamEntity)(unsafe.Pointer(in.Owner)) + out.Cluster = (*storagev1.EntityInfo)(unsafe.Pointer(in.Cluster)) 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) +// Convert_v1_TaskStatus_To_management_TaskStatus is an autogenerated conversion function. +func Convert_v1_TaskStatus_To_management_TaskStatus(in *TaskStatus, out *management.TaskStatus, s conversion.Scope) error { + return autoConvert_v1_TaskStatus_To_management_TaskStatus(in, out, s) } -func autoConvert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(in *management.ResetAccessKeyStatus, out *ResetAccessKeyStatus, s conversion.Scope) error { - out.AccessKeyStatus = in.AccessKeyStatus +func autoConvert_management_TaskStatus_To_v1_TaskStatus(in *management.TaskStatus, out *TaskStatus, s conversion.Scope) error { + out.TaskStatus = in.TaskStatus + out.Owner = (*storagev1.UserOrTeamEntity)(unsafe.Pointer(in.Owner)) + out.Cluster = (*storagev1.EntityInfo)(unsafe.Pointer(in.Cluster)) 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) +// Convert_management_TaskStatus_To_v1_TaskStatus is an autogenerated conversion function. +func Convert_management_TaskStatus_To_v1_TaskStatus(in *management.TaskStatus, out *TaskStatus, s conversion.Scope) error { + return autoConvert_management_TaskStatus_To_v1_TaskStatus(in, out, s) } -func autoConvert_v1_Runner_To_management_Runner(in *Runner, out *management.Runner, s conversion.Scope) error { +func autoConvert_v1_Team_To_management_Team(in *Team, out *management.Team, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_RunnerSpec_To_management_RunnerSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_TeamSpec_To_management_TeamSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_RunnerStatus_To_management_RunnerStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_TeamStatus_To_management_TeamStatus(&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) +// Convert_v1_Team_To_management_Team is an autogenerated conversion function. +func Convert_v1_Team_To_management_Team(in *Team, out *management.Team, s conversion.Scope) error { + return autoConvert_v1_Team_To_management_Team(in, out, s) } -func autoConvert_management_Runner_To_v1_Runner(in *management.Runner, out *Runner, s conversion.Scope) error { +func autoConvert_management_Team_To_v1_Team(in *management.Team, out *Team, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_RunnerSpec_To_v1_RunnerSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_TeamSpec_To_v1_TeamSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_RunnerStatus_To_v1_RunnerStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_TeamStatus_To_v1_TeamStatus(&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) +// Convert_management_Team_To_v1_Team is an autogenerated conversion function. +func Convert_management_Team_To_v1_Team(in *management.Team, out *Team, s conversion.Scope) error { + return autoConvert_management_Team_To_v1_Team(in, out, s) } -func autoConvert_v1_RunnerAccessKey_To_management_RunnerAccessKey(in *RunnerAccessKey, out *management.RunnerAccessKey, s conversion.Scope) error { +func autoConvert_v1_TeamAccessKeys_To_management_TeamAccessKeys(in *TeamAccessKeys, out *management.TeamAccessKeys, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey + out.AccessKeys = *(*[]management.OwnedAccessKey)(unsafe.Pointer(&in.AccessKeys)) 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) +// Convert_v1_TeamAccessKeys_To_management_TeamAccessKeys is an autogenerated conversion function. +func Convert_v1_TeamAccessKeys_To_management_TeamAccessKeys(in *TeamAccessKeys, out *management.TeamAccessKeys, s conversion.Scope) error { + return autoConvert_v1_TeamAccessKeys_To_management_TeamAccessKeys(in, out, s) } -func autoConvert_management_RunnerAccessKey_To_v1_RunnerAccessKey(in *management.RunnerAccessKey, out *RunnerAccessKey, s conversion.Scope) error { +func autoConvert_management_TeamAccessKeys_To_v1_TeamAccessKeys(in *management.TeamAccessKeys, out *TeamAccessKeys, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey + out.AccessKeys = *(*[]OwnedAccessKey)(unsafe.Pointer(&in.AccessKeys)) 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) +// Convert_management_TeamAccessKeys_To_v1_TeamAccessKeys is an autogenerated conversion function. +func Convert_management_TeamAccessKeys_To_v1_TeamAccessKeys(in *management.TeamAccessKeys, out *TeamAccessKeys, s conversion.Scope) error { + return autoConvert_management_TeamAccessKeys_To_v1_TeamAccessKeys(in, out, s) } -func autoConvert_v1_RunnerAccessKeyList_To_management_RunnerAccessKeyList(in *RunnerAccessKeyList, out *management.RunnerAccessKeyList, s conversion.Scope) error { +func autoConvert_v1_TeamAccessKeysList_To_management_TeamAccessKeysList(in *TeamAccessKeysList, out *management.TeamAccessKeysList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.RunnerAccessKey)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.TeamAccessKeys)(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) +// Convert_v1_TeamAccessKeysList_To_management_TeamAccessKeysList is an autogenerated conversion function. +func Convert_v1_TeamAccessKeysList_To_management_TeamAccessKeysList(in *TeamAccessKeysList, out *management.TeamAccessKeysList, s conversion.Scope) error { + return autoConvert_v1_TeamAccessKeysList_To_management_TeamAccessKeysList(in, out, s) } -func autoConvert_management_RunnerAccessKeyList_To_v1_RunnerAccessKeyList(in *management.RunnerAccessKeyList, out *RunnerAccessKeyList, s conversion.Scope) error { +func autoConvert_management_TeamAccessKeysList_To_v1_TeamAccessKeysList(in *management.TeamAccessKeysList, out *TeamAccessKeysList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]RunnerAccessKey)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]TeamAccessKeys)(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) +// Convert_management_TeamAccessKeysList_To_v1_TeamAccessKeysList is an autogenerated conversion function. +func Convert_management_TeamAccessKeysList_To_v1_TeamAccessKeysList(in *management.TeamAccessKeysList, out *TeamAccessKeysList, s conversion.Scope) error { + return autoConvert_management_TeamAccessKeysList_To_v1_TeamAccessKeysList(in, out, s) } -func autoConvert_v1_RunnerConfig_To_management_RunnerConfig(in *RunnerConfig, out *management.RunnerConfig, s conversion.Scope) error { +func autoConvert_v1_TeamClusters_To_management_TeamClusters(in *TeamClusters, out *management.TeamClusters, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) + out.Clusters = *(*[]management.ClusterAccounts)(unsafe.Pointer(&in.Clusters)) 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) +// Convert_v1_TeamClusters_To_management_TeamClusters is an autogenerated conversion function. +func Convert_v1_TeamClusters_To_management_TeamClusters(in *TeamClusters, out *management.TeamClusters, s conversion.Scope) error { + return autoConvert_v1_TeamClusters_To_management_TeamClusters(in, out, s) } -func autoConvert_management_RunnerConfig_To_v1_RunnerConfig(in *management.RunnerConfig, out *RunnerConfig, s conversion.Scope) error { +func autoConvert_management_TeamClusters_To_v1_TeamClusters(in *management.TeamClusters, out *TeamClusters, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) + out.Clusters = *(*[]ClusterAccounts)(unsafe.Pointer(&in.Clusters)) 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) +// Convert_management_TeamClusters_To_v1_TeamClusters is an autogenerated conversion function. +func Convert_management_TeamClusters_To_v1_TeamClusters(in *management.TeamClusters, out *TeamClusters, s conversion.Scope) error { + return autoConvert_management_TeamClusters_To_v1_TeamClusters(in, out, s) } -func autoConvert_v1_RunnerConfigList_To_management_RunnerConfigList(in *RunnerConfigList, out *management.RunnerConfigList, s conversion.Scope) error { +func autoConvert_v1_TeamClustersList_To_management_TeamClustersList(in *TeamClustersList, out *management.TeamClustersList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.RunnerConfig)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.TeamClusters)(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_TeamClustersList_To_management_TeamClustersList is an autogenerated conversion function. +func Convert_v1_TeamClustersList_To_management_TeamClustersList(in *TeamClustersList, out *management.TeamClustersList, s conversion.Scope) error { + return autoConvert_v1_TeamClustersList_To_management_TeamClustersList(in, out, s) } -func autoConvert_management_RunnerConfigList_To_v1_RunnerConfigList(in *management.RunnerConfigList, out *RunnerConfigList, s conversion.Scope) error { +func autoConvert_management_TeamClustersList_To_v1_TeamClustersList(in *management.TeamClustersList, out *TeamClustersList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]RunnerConfig)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]TeamClusters)(unsafe.Pointer(&in.Items)) 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_TeamClustersList_To_v1_TeamClustersList is an autogenerated conversion function. +func Convert_management_TeamClustersList_To_v1_TeamClustersList(in *management.TeamClustersList, out *TeamClustersList, s conversion.Scope) error { + return autoConvert_management_TeamClustersList_To_v1_TeamClustersList(in, out, s) } -func autoConvert_v1_RunnerList_To_management_RunnerList(in *RunnerList, out *management.RunnerList, s conversion.Scope) error { +func autoConvert_v1_TeamList_To_management_TeamList(in *TeamList, out *management.TeamList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.Runner)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.Team)(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_TeamList_To_management_TeamList is an autogenerated conversion function. +func Convert_v1_TeamList_To_management_TeamList(in *TeamList, out *management.TeamList, s conversion.Scope) error { + return autoConvert_v1_TeamList_To_management_TeamList(in, out, s) } -func autoConvert_management_RunnerList_To_v1_RunnerList(in *management.RunnerList, out *RunnerList, s conversion.Scope) error { +func autoConvert_management_TeamList_To_v1_TeamList(in *management.TeamList, out *TeamList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]Runner)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]Team)(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_TeamList_To_v1_TeamList is an autogenerated conversion function. +func Convert_management_TeamList_To_v1_TeamList(in *management.TeamList, out *TeamList, s conversion.Scope) error { + return autoConvert_management_TeamList_To_v1_TeamList(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_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_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_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_RunnerSpec_To_v1_RunnerSpec(in *management.RunnerSpec, out *RunnerSpec, s conversion.Scope) error { - out.RunnerSpec = in.RunnerSpec +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_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_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_RunnerStatus_To_management_RunnerStatus(in *RunnerStatus, out *management.RunnerStatus, s conversion.Scope) error { - out.RunnerStatus = in.RunnerStatus +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_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_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_RunnerStatus_To_v1_RunnerStatus(in *management.RunnerStatus, out *RunnerStatus, s conversion.Scope) error { - out.RunnerStatus = in.RunnerStatus +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_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) -} - -func autoConvert_v1_Self_To_management_Self(in *Self, out *management.Self, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_SelfSpec_To_management_SelfSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_SelfStatus_To_management_SelfStatus(&in.Status, &out.Status, s); err != nil { - return err - } + +// 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_Self_To_management_Self is an autogenerated conversion function. -func Convert_v1_Self_To_management_Self(in *Self, out *management.Self, s conversion.Scope) error { - return autoConvert_v1_Self_To_management_Self(in, out, s) +// 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_Self_To_v1_Self(in *management.Self, out *Self, s conversion.Scope) error { +func autoConvert_management_TeamPermissions_To_v1_TeamPermissions(in *management.TeamPermissions, out *TeamPermissions, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_SelfSpec_To_v1_SelfSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_SelfStatus_To_v1_SelfStatus(&in.Status, &out.Status, s); err != nil { - return err - } + 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_Self_To_v1_Self is an autogenerated conversion function. -func Convert_management_Self_To_v1_Self(in *management.Self, out *Self, s conversion.Scope) error { - return autoConvert_management_Self_To_v1_Self(in, out, s) +// 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_SelfList_To_management_SelfList(in *SelfList, out *management.SelfList, s conversion.Scope) error { +func autoConvert_v1_TeamPermissionsList_To_management_TeamPermissionsList(in *TeamPermissionsList, out *management.TeamPermissionsList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.Self)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.TeamPermissions)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_SelfList_To_management_SelfList is an autogenerated conversion function. -func Convert_v1_SelfList_To_management_SelfList(in *SelfList, out *management.SelfList, s conversion.Scope) error { - return autoConvert_v1_SelfList_To_management_SelfList(in, out, s) +// 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_SelfList_To_v1_SelfList(in *management.SelfList, out *SelfList, s conversion.Scope) error { +func autoConvert_management_TeamPermissionsList_To_v1_TeamPermissionsList(in *management.TeamPermissionsList, out *TeamPermissionsList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]Self)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]TeamPermissions)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_SelfList_To_v1_SelfList is an autogenerated conversion function. -func Convert_management_SelfList_To_v1_SelfList(in *management.SelfList, out *SelfList, s conversion.Scope) error { - return autoConvert_management_SelfList_To_v1_SelfList(in, out, s) +// 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_SelfSpec_To_management_SelfSpec(in *SelfSpec, out *management.SelfSpec, s conversion.Scope) error { - out.AccessKey = in.AccessKey +func autoConvert_v1_TeamSpec_To_management_TeamSpec(in *TeamSpec, out *management.TeamSpec, s conversion.Scope) error { + out.TeamSpec = in.TeamSpec return nil } -// Convert_v1_SelfSpec_To_management_SelfSpec is an autogenerated conversion function. -func Convert_v1_SelfSpec_To_management_SelfSpec(in *SelfSpec, out *management.SelfSpec, s conversion.Scope) error { - return autoConvert_v1_SelfSpec_To_management_SelfSpec(in, out, s) +// Convert_v1_TeamSpec_To_management_TeamSpec is an autogenerated conversion function. +func Convert_v1_TeamSpec_To_management_TeamSpec(in *TeamSpec, out *management.TeamSpec, s conversion.Scope) error { + return autoConvert_v1_TeamSpec_To_management_TeamSpec(in, out, s) } -func autoConvert_management_SelfSpec_To_v1_SelfSpec(in *management.SelfSpec, out *SelfSpec, s conversion.Scope) error { - out.AccessKey = in.AccessKey +func autoConvert_management_TeamSpec_To_v1_TeamSpec(in *management.TeamSpec, out *TeamSpec, s conversion.Scope) error { + out.TeamSpec = in.TeamSpec return nil } -// Convert_management_SelfSpec_To_v1_SelfSpec is an autogenerated conversion function. -func Convert_management_SelfSpec_To_v1_SelfSpec(in *management.SelfSpec, out *SelfSpec, s conversion.Scope) error { - return autoConvert_management_SelfSpec_To_v1_SelfSpec(in, out, s) +// Convert_management_TeamSpec_To_v1_TeamSpec is an autogenerated conversion function. +func Convert_management_TeamSpec_To_v1_TeamSpec(in *management.TeamSpec, out *TeamSpec, s conversion.Scope) error { + return autoConvert_management_TeamSpec_To_v1_TeamSpec(in, out, s) } -func autoConvert_v1_SelfStatus_To_management_SelfStatus(in *SelfStatus, out *management.SelfStatus, s conversion.Scope) error { - out.User = (*management.UserInfo)(unsafe.Pointer(in.User)) - out.Team = (*storagev1.EntityInfo)(unsafe.Pointer(in.Team)) - out.AccessKey = in.AccessKey - out.AccessKeyScope = (*storagev1.AccessKeyScope)(unsafe.Pointer(in.AccessKeyScope)) - out.AccessKeyType = storagev1.AccessKeyType(in.AccessKeyType) - out.Subject = in.Subject - out.UID = in.UID - out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) - out.ChatAuthToken = in.ChatAuthToken - out.InstanceID = in.InstanceID - out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) +func autoConvert_v1_TeamStatus_To_management_TeamStatus(in *TeamStatus, out *management.TeamStatus, s conversion.Scope) error { + out.TeamStatus = in.TeamStatus return nil } -// Convert_v1_SelfStatus_To_management_SelfStatus is an autogenerated conversion function. -func Convert_v1_SelfStatus_To_management_SelfStatus(in *SelfStatus, out *management.SelfStatus, s conversion.Scope) error { - return autoConvert_v1_SelfStatus_To_management_SelfStatus(in, out, s) +// Convert_v1_TeamStatus_To_management_TeamStatus is an autogenerated conversion function. +func Convert_v1_TeamStatus_To_management_TeamStatus(in *TeamStatus, out *management.TeamStatus, s conversion.Scope) error { + return autoConvert_v1_TeamStatus_To_management_TeamStatus(in, out, s) } -func autoConvert_management_SelfStatus_To_v1_SelfStatus(in *management.SelfStatus, out *SelfStatus, s conversion.Scope) error { - out.User = (*UserInfo)(unsafe.Pointer(in.User)) - out.Team = (*storagev1.EntityInfo)(unsafe.Pointer(in.Team)) - out.AccessKey = in.AccessKey - out.AccessKeyScope = (*storagev1.AccessKeyScope)(unsafe.Pointer(in.AccessKeyScope)) - out.AccessKeyType = storagev1.AccessKeyType(in.AccessKeyType) - out.Subject = in.Subject - out.UID = in.UID - out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) - out.ChatAuthToken = in.ChatAuthToken - out.InstanceID = in.InstanceID - out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) +func autoConvert_management_TeamStatus_To_v1_TeamStatus(in *management.TeamStatus, out *TeamStatus, s conversion.Scope) error { + out.TeamStatus = in.TeamStatus return nil } -// Convert_management_SelfStatus_To_v1_SelfStatus is an autogenerated conversion function. -func Convert_management_SelfStatus_To_v1_SelfStatus(in *management.SelfStatus, out *SelfStatus, s conversion.Scope) error { - return autoConvert_management_SelfStatus_To_v1_SelfStatus(in, out, s) +// Convert_management_TeamStatus_To_v1_TeamStatus is an autogenerated conversion function. +func Convert_management_TeamStatus_To_v1_TeamStatus(in *management.TeamStatus, out *TeamStatus, s conversion.Scope) error { + return autoConvert_management_TeamStatus_To_v1_TeamStatus(in, out, s) } -func autoConvert_v1_SelfSubjectAccessReview_To_management_SelfSubjectAccessReview(in *SelfSubjectAccessReview, out *management.SelfSubjectAccessReview, s conversion.Scope) error { +func autoConvert_v1_TranslateVClusterResourceName_To_management_TranslateVClusterResourceName(in *TranslateVClusterResourceName, out *management.TranslateVClusterResourceName, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_SelfSubjectAccessReview_To_management_SelfSubjectAccessReview is an autogenerated conversion function. -func Convert_v1_SelfSubjectAccessReview_To_management_SelfSubjectAccessReview(in *SelfSubjectAccessReview, out *management.SelfSubjectAccessReview, s conversion.Scope) error { - return autoConvert_v1_SelfSubjectAccessReview_To_management_SelfSubjectAccessReview(in, out, s) +// Convert_v1_TranslateVClusterResourceName_To_management_TranslateVClusterResourceName is an autogenerated conversion function. +func Convert_v1_TranslateVClusterResourceName_To_management_TranslateVClusterResourceName(in *TranslateVClusterResourceName, out *management.TranslateVClusterResourceName, s conversion.Scope) error { + return autoConvert_v1_TranslateVClusterResourceName_To_management_TranslateVClusterResourceName(in, out, s) } -func autoConvert_management_SelfSubjectAccessReview_To_v1_SelfSubjectAccessReview(in *management.SelfSubjectAccessReview, out *SelfSubjectAccessReview, s conversion.Scope) error { +func autoConvert_management_TranslateVClusterResourceName_To_v1_TranslateVClusterResourceName(in *management.TranslateVClusterResourceName, out *TranslateVClusterResourceName, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_SelfSubjectAccessReview_To_v1_SelfSubjectAccessReview is an autogenerated conversion function. -func Convert_management_SelfSubjectAccessReview_To_v1_SelfSubjectAccessReview(in *management.SelfSubjectAccessReview, out *SelfSubjectAccessReview, s conversion.Scope) error { - return autoConvert_management_SelfSubjectAccessReview_To_v1_SelfSubjectAccessReview(in, out, s) +// Convert_management_TranslateVClusterResourceName_To_v1_TranslateVClusterResourceName is an autogenerated conversion function. +func Convert_management_TranslateVClusterResourceName_To_v1_TranslateVClusterResourceName(in *management.TranslateVClusterResourceName, out *TranslateVClusterResourceName, s conversion.Scope) error { + return autoConvert_management_TranslateVClusterResourceName_To_v1_TranslateVClusterResourceName(in, out, s) } -func autoConvert_v1_SelfSubjectAccessReviewList_To_management_SelfSubjectAccessReviewList(in *SelfSubjectAccessReviewList, out *management.SelfSubjectAccessReviewList, s conversion.Scope) error { +func autoConvert_v1_TranslateVClusterResourceNameList_To_management_TranslateVClusterResourceNameList(in *TranslateVClusterResourceNameList, out *management.TranslateVClusterResourceNameList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.SelfSubjectAccessReview)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.TranslateVClusterResourceName)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_SelfSubjectAccessReviewList_To_management_SelfSubjectAccessReviewList is an autogenerated conversion function. -func Convert_v1_SelfSubjectAccessReviewList_To_management_SelfSubjectAccessReviewList(in *SelfSubjectAccessReviewList, out *management.SelfSubjectAccessReviewList, s conversion.Scope) error { - return autoConvert_v1_SelfSubjectAccessReviewList_To_management_SelfSubjectAccessReviewList(in, out, s) +// Convert_v1_TranslateVClusterResourceNameList_To_management_TranslateVClusterResourceNameList is an autogenerated conversion function. +func Convert_v1_TranslateVClusterResourceNameList_To_management_TranslateVClusterResourceNameList(in *TranslateVClusterResourceNameList, out *management.TranslateVClusterResourceNameList, s conversion.Scope) error { + return autoConvert_v1_TranslateVClusterResourceNameList_To_management_TranslateVClusterResourceNameList(in, out, s) } -func autoConvert_management_SelfSubjectAccessReviewList_To_v1_SelfSubjectAccessReviewList(in *management.SelfSubjectAccessReviewList, out *SelfSubjectAccessReviewList, s conversion.Scope) error { +func autoConvert_management_TranslateVClusterResourceNameList_To_v1_TranslateVClusterResourceNameList(in *management.TranslateVClusterResourceNameList, out *TranslateVClusterResourceNameList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]SelfSubjectAccessReview)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]TranslateVClusterResourceName)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_SelfSubjectAccessReviewList_To_v1_SelfSubjectAccessReviewList is an autogenerated conversion function. -func Convert_management_SelfSubjectAccessReviewList_To_v1_SelfSubjectAccessReviewList(in *management.SelfSubjectAccessReviewList, out *SelfSubjectAccessReviewList, s conversion.Scope) error { - return autoConvert_management_SelfSubjectAccessReviewList_To_v1_SelfSubjectAccessReviewList(in, out, s) +// Convert_management_TranslateVClusterResourceNameList_To_v1_TranslateVClusterResourceNameList is an autogenerated conversion function. +func Convert_management_TranslateVClusterResourceNameList_To_v1_TranslateVClusterResourceNameList(in *management.TranslateVClusterResourceNameList, out *TranslateVClusterResourceNameList, s conversion.Scope) error { + return autoConvert_management_TranslateVClusterResourceNameList_To_v1_TranslateVClusterResourceNameList(in, out, s) } -func autoConvert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(in *SelfSubjectAccessReviewSpec, out *management.SelfSubjectAccessReviewSpec, s conversion.Scope) error { - out.SelfSubjectAccessReviewSpec = in.SelfSubjectAccessReviewSpec +func autoConvert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(in *TranslateVClusterResourceNameSpec, out *management.TranslateVClusterResourceNameSpec, s conversion.Scope) error { + out.Name = in.Name + out.Namespace = in.Namespace + out.VClusterName = in.VClusterName return nil } -// Convert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec is an autogenerated conversion function. -func Convert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(in *SelfSubjectAccessReviewSpec, out *management.SelfSubjectAccessReviewSpec, s conversion.Scope) error { - return autoConvert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(in, out, s) +// Convert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec is an autogenerated conversion function. +func Convert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(in *TranslateVClusterResourceNameSpec, out *management.TranslateVClusterResourceNameSpec, s conversion.Scope) error { + return autoConvert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(in, out, s) } -func autoConvert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(in *management.SelfSubjectAccessReviewSpec, out *SelfSubjectAccessReviewSpec, s conversion.Scope) error { - out.SelfSubjectAccessReviewSpec = in.SelfSubjectAccessReviewSpec +func autoConvert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(in *management.TranslateVClusterResourceNameSpec, out *TranslateVClusterResourceNameSpec, s conversion.Scope) error { + out.Name = in.Name + out.Namespace = in.Namespace + out.VClusterName = in.VClusterName return nil } -// Convert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec is an autogenerated conversion function. -func Convert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(in *management.SelfSubjectAccessReviewSpec, out *SelfSubjectAccessReviewSpec, s conversion.Scope) error { - return autoConvert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(in, out, s) +// Convert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec is an autogenerated conversion function. +func Convert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(in *management.TranslateVClusterResourceNameSpec, out *TranslateVClusterResourceNameSpec, s conversion.Scope) error { + return autoConvert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(in, out, s) } -func autoConvert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(in *SelfSubjectAccessReviewStatus, out *management.SelfSubjectAccessReviewStatus, s conversion.Scope) error { - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus +func autoConvert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(in *TranslateVClusterResourceNameStatus, out *management.TranslateVClusterResourceNameStatus, s conversion.Scope) error { + out.Name = in.Name return nil } -// Convert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus is an autogenerated conversion function. -func Convert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(in *SelfSubjectAccessReviewStatus, out *management.SelfSubjectAccessReviewStatus, s conversion.Scope) error { - return autoConvert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(in, out, s) +// Convert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus is an autogenerated conversion function. +func Convert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(in *TranslateVClusterResourceNameStatus, out *management.TranslateVClusterResourceNameStatus, s conversion.Scope) error { + return autoConvert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(in, out, s) } -func autoConvert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(in *management.SelfSubjectAccessReviewStatus, out *SelfSubjectAccessReviewStatus, s conversion.Scope) error { - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus +func autoConvert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(in *management.TranslateVClusterResourceNameStatus, out *TranslateVClusterResourceNameStatus, s conversion.Scope) error { + out.Name = in.Name return nil } -// Convert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus is an autogenerated conversion function. -func Convert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(in *management.SelfSubjectAccessReviewStatus, out *SelfSubjectAccessReviewStatus, s conversion.Scope) error { - return autoConvert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(in, out, s) +// Convert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus is an autogenerated conversion function. +func Convert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(in *management.TranslateVClusterResourceNameStatus, out *TranslateVClusterResourceNameStatus, s conversion.Scope) error { + return autoConvert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(in, out, s) } -func autoConvert_v1_SharedSecret_To_management_SharedSecret(in *SharedSecret, out *management.SharedSecret, s conversion.Scope) error { +func autoConvert_v1_UsageDownload_To_management_UsageDownload(in *UsageDownload, out *management.UsageDownload, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_SharedSecretSpec_To_management_SharedSecretSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_UsageDownloadSpec_To_management_UsageDownloadSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_SharedSecretStatus_To_management_SharedSecretStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_UsageDownloadStatus_To_management_UsageDownloadStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_SharedSecret_To_management_SharedSecret is an autogenerated conversion function. -func Convert_v1_SharedSecret_To_management_SharedSecret(in *SharedSecret, out *management.SharedSecret, s conversion.Scope) error { - return autoConvert_v1_SharedSecret_To_management_SharedSecret(in, out, s) +// Convert_v1_UsageDownload_To_management_UsageDownload is an autogenerated conversion function. +func Convert_v1_UsageDownload_To_management_UsageDownload(in *UsageDownload, out *management.UsageDownload, s conversion.Scope) error { + return autoConvert_v1_UsageDownload_To_management_UsageDownload(in, out, s) } -func autoConvert_management_SharedSecret_To_v1_SharedSecret(in *management.SharedSecret, out *SharedSecret, s conversion.Scope) error { +func autoConvert_management_UsageDownload_To_v1_UsageDownload(in *management.UsageDownload, out *UsageDownload, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_SharedSecretSpec_To_v1_SharedSecretSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_UsageDownloadSpec_To_v1_UsageDownloadSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_SharedSecretStatus_To_v1_SharedSecretStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_UsageDownloadStatus_To_v1_UsageDownloadStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_SharedSecret_To_v1_SharedSecret is an autogenerated conversion function. -func Convert_management_SharedSecret_To_v1_SharedSecret(in *management.SharedSecret, out *SharedSecret, s conversion.Scope) error { - return autoConvert_management_SharedSecret_To_v1_SharedSecret(in, out, s) +// Convert_management_UsageDownload_To_v1_UsageDownload is an autogenerated conversion function. +func Convert_management_UsageDownload_To_v1_UsageDownload(in *management.UsageDownload, out *UsageDownload, s conversion.Scope) error { + return autoConvert_management_UsageDownload_To_v1_UsageDownload(in, out, s) } -func autoConvert_v1_SharedSecretList_To_management_SharedSecretList(in *SharedSecretList, out *management.SharedSecretList, s conversion.Scope) error { +func autoConvert_v1_UsageDownloadList_To_management_UsageDownloadList(in *UsageDownloadList, out *management.UsageDownloadList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.SharedSecret)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.UsageDownload)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_SharedSecretList_To_management_SharedSecretList is an autogenerated conversion function. -func Convert_v1_SharedSecretList_To_management_SharedSecretList(in *SharedSecretList, out *management.SharedSecretList, s conversion.Scope) error { - return autoConvert_v1_SharedSecretList_To_management_SharedSecretList(in, out, s) +// Convert_v1_UsageDownloadList_To_management_UsageDownloadList is an autogenerated conversion function. +func Convert_v1_UsageDownloadList_To_management_UsageDownloadList(in *UsageDownloadList, out *management.UsageDownloadList, s conversion.Scope) error { + return autoConvert_v1_UsageDownloadList_To_management_UsageDownloadList(in, out, s) } -func autoConvert_management_SharedSecretList_To_v1_SharedSecretList(in *management.SharedSecretList, out *SharedSecretList, s conversion.Scope) error { +func autoConvert_management_UsageDownloadList_To_v1_UsageDownloadList(in *management.UsageDownloadList, out *UsageDownloadList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]SharedSecret)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]UsageDownload)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_SharedSecretList_To_v1_SharedSecretList is an autogenerated conversion function. -func Convert_management_SharedSecretList_To_v1_SharedSecretList(in *management.SharedSecretList, out *SharedSecretList, s conversion.Scope) error { - return autoConvert_management_SharedSecretList_To_v1_SharedSecretList(in, out, s) +// Convert_management_UsageDownloadList_To_v1_UsageDownloadList is an autogenerated conversion function. +func Convert_management_UsageDownloadList_To_v1_UsageDownloadList(in *management.UsageDownloadList, out *UsageDownloadList, s conversion.Scope) error { + return autoConvert_management_UsageDownloadList_To_v1_UsageDownloadList(in, out, s) } -func autoConvert_v1_SharedSecretSpec_To_management_SharedSecretSpec(in *SharedSecretSpec, out *management.SharedSecretSpec, s conversion.Scope) error { - out.SharedSecretSpec = in.SharedSecretSpec +func autoConvert_v1_UsageDownloadSpec_To_management_UsageDownloadSpec(in *UsageDownloadSpec, out *management.UsageDownloadSpec, s conversion.Scope) error { return nil } -// Convert_v1_SharedSecretSpec_To_management_SharedSecretSpec is an autogenerated conversion function. -func Convert_v1_SharedSecretSpec_To_management_SharedSecretSpec(in *SharedSecretSpec, out *management.SharedSecretSpec, s conversion.Scope) error { - return autoConvert_v1_SharedSecretSpec_To_management_SharedSecretSpec(in, out, s) +// Convert_v1_UsageDownloadSpec_To_management_UsageDownloadSpec is an autogenerated conversion function. +func Convert_v1_UsageDownloadSpec_To_management_UsageDownloadSpec(in *UsageDownloadSpec, out *management.UsageDownloadSpec, s conversion.Scope) error { + return autoConvert_v1_UsageDownloadSpec_To_management_UsageDownloadSpec(in, out, s) } -func autoConvert_management_SharedSecretSpec_To_v1_SharedSecretSpec(in *management.SharedSecretSpec, out *SharedSecretSpec, s conversion.Scope) error { - out.SharedSecretSpec = in.SharedSecretSpec +func autoConvert_management_UsageDownloadSpec_To_v1_UsageDownloadSpec(in *management.UsageDownloadSpec, out *UsageDownloadSpec, s conversion.Scope) error { return nil } -// Convert_management_SharedSecretSpec_To_v1_SharedSecretSpec is an autogenerated conversion function. -func Convert_management_SharedSecretSpec_To_v1_SharedSecretSpec(in *management.SharedSecretSpec, out *SharedSecretSpec, s conversion.Scope) error { - return autoConvert_management_SharedSecretSpec_To_v1_SharedSecretSpec(in, out, s) +// Convert_management_UsageDownloadSpec_To_v1_UsageDownloadSpec is an autogenerated conversion function. +func Convert_management_UsageDownloadSpec_To_v1_UsageDownloadSpec(in *management.UsageDownloadSpec, out *UsageDownloadSpec, s conversion.Scope) error { + return autoConvert_management_UsageDownloadSpec_To_v1_UsageDownloadSpec(in, out, s) } -func autoConvert_v1_SharedSecretStatus_To_management_SharedSecretStatus(in *SharedSecretStatus, out *management.SharedSecretStatus, s conversion.Scope) error { - out.SharedSecretStatus = in.SharedSecretStatus +func autoConvert_v1_UsageDownloadStatus_To_management_UsageDownloadStatus(in *UsageDownloadStatus, out *management.UsageDownloadStatus, s conversion.Scope) error { return nil } -// Convert_v1_SharedSecretStatus_To_management_SharedSecretStatus is an autogenerated conversion function. -func Convert_v1_SharedSecretStatus_To_management_SharedSecretStatus(in *SharedSecretStatus, out *management.SharedSecretStatus, s conversion.Scope) error { - return autoConvert_v1_SharedSecretStatus_To_management_SharedSecretStatus(in, out, s) +// Convert_v1_UsageDownloadStatus_To_management_UsageDownloadStatus is an autogenerated conversion function. +func Convert_v1_UsageDownloadStatus_To_management_UsageDownloadStatus(in *UsageDownloadStatus, out *management.UsageDownloadStatus, s conversion.Scope) error { + return autoConvert_v1_UsageDownloadStatus_To_management_UsageDownloadStatus(in, out, s) } -func autoConvert_management_SharedSecretStatus_To_v1_SharedSecretStatus(in *management.SharedSecretStatus, out *SharedSecretStatus, s conversion.Scope) error { - out.SharedSecretStatus = in.SharedSecretStatus +func autoConvert_management_UsageDownloadStatus_To_v1_UsageDownloadStatus(in *management.UsageDownloadStatus, out *UsageDownloadStatus, s conversion.Scope) error { return nil } -// Convert_management_SharedSecretStatus_To_v1_SharedSecretStatus is an autogenerated conversion function. -func Convert_management_SharedSecretStatus_To_v1_SharedSecretStatus(in *management.SharedSecretStatus, out *SharedSecretStatus, s conversion.Scope) error { - return autoConvert_management_SharedSecretStatus_To_v1_SharedSecretStatus(in, out, s) +// Convert_management_UsageDownloadStatus_To_v1_UsageDownloadStatus is an autogenerated conversion function. +func Convert_management_UsageDownloadStatus_To_v1_UsageDownloadStatus(in *management.UsageDownloadStatus, out *UsageDownloadStatus, s conversion.Scope) error { + return autoConvert_management_UsageDownloadStatus_To_v1_UsageDownloadStatus(in, out, s) } -func autoConvert_v1_SpaceInstance_To_management_SpaceInstance(in *SpaceInstance, out *management.SpaceInstance, s conversion.Scope) error { +func autoConvert_v1_User_To_management_User(in *User, out *management.User, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_SpaceInstanceSpec_To_management_SpaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_UserSpec_To_management_UserSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_SpaceInstanceStatus_To_management_SpaceInstanceStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_UserStatus_To_management_UserStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_SpaceInstance_To_management_SpaceInstance is an autogenerated conversion function. -func Convert_v1_SpaceInstance_To_management_SpaceInstance(in *SpaceInstance, out *management.SpaceInstance, s conversion.Scope) error { - return autoConvert_v1_SpaceInstance_To_management_SpaceInstance(in, out, s) +// Convert_v1_User_To_management_User is an autogenerated conversion function. +func Convert_v1_User_To_management_User(in *User, out *management.User, s conversion.Scope) error { + return autoConvert_v1_User_To_management_User(in, out, s) +} + +func autoConvert_management_User_To_v1_User(in *management.User, out *User, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_UserSpec_To_v1_UserSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_UserStatus_To_v1_UserStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_User_To_v1_User is an autogenerated conversion function. +func Convert_management_User_To_v1_User(in *management.User, out *User, s conversion.Scope) error { + return autoConvert_management_User_To_v1_User(in, out, s) +} + +func autoConvert_v1_UserAccessKeys_To_management_UserAccessKeys(in *UserAccessKeys, out *management.UserAccessKeys, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.AccessKeys = *(*[]management.OwnedAccessKey)(unsafe.Pointer(&in.AccessKeys)) + return nil +} + +// Convert_v1_UserAccessKeys_To_management_UserAccessKeys is an autogenerated conversion function. +func Convert_v1_UserAccessKeys_To_management_UserAccessKeys(in *UserAccessKeys, out *management.UserAccessKeys, s conversion.Scope) error { + return autoConvert_v1_UserAccessKeys_To_management_UserAccessKeys(in, out, s) } -func autoConvert_management_SpaceInstance_To_v1_SpaceInstance(in *management.SpaceInstance, out *SpaceInstance, s conversion.Scope) error { +func autoConvert_management_UserAccessKeys_To_v1_UserAccessKeys(in *management.UserAccessKeys, out *UserAccessKeys, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_SpaceInstanceSpec_To_v1_SpaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_SpaceInstanceStatus_To_v1_SpaceInstanceStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.AccessKeys = *(*[]OwnedAccessKey)(unsafe.Pointer(&in.AccessKeys)) return nil } -// Convert_management_SpaceInstance_To_v1_SpaceInstance is an autogenerated conversion function. -func Convert_management_SpaceInstance_To_v1_SpaceInstance(in *management.SpaceInstance, out *SpaceInstance, s conversion.Scope) error { - return autoConvert_management_SpaceInstance_To_v1_SpaceInstance(in, out, s) +// Convert_management_UserAccessKeys_To_v1_UserAccessKeys is an autogenerated conversion function. +func Convert_management_UserAccessKeys_To_v1_UserAccessKeys(in *management.UserAccessKeys, out *UserAccessKeys, s conversion.Scope) error { + return autoConvert_management_UserAccessKeys_To_v1_UserAccessKeys(in, out, s) } -func autoConvert_v1_SpaceInstanceList_To_management_SpaceInstanceList(in *SpaceInstanceList, out *management.SpaceInstanceList, s conversion.Scope) error { +func autoConvert_v1_UserAccessKeysList_To_management_UserAccessKeysList(in *UserAccessKeysList, out *management.UserAccessKeysList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.SpaceInstance)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.UserAccessKeys)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_SpaceInstanceList_To_management_SpaceInstanceList is an autogenerated conversion function. -func Convert_v1_SpaceInstanceList_To_management_SpaceInstanceList(in *SpaceInstanceList, out *management.SpaceInstanceList, s conversion.Scope) error { - return autoConvert_v1_SpaceInstanceList_To_management_SpaceInstanceList(in, out, s) +// Convert_v1_UserAccessKeysList_To_management_UserAccessKeysList is an autogenerated conversion function. +func Convert_v1_UserAccessKeysList_To_management_UserAccessKeysList(in *UserAccessKeysList, out *management.UserAccessKeysList, s conversion.Scope) error { + return autoConvert_v1_UserAccessKeysList_To_management_UserAccessKeysList(in, out, s) } -func autoConvert_management_SpaceInstanceList_To_v1_SpaceInstanceList(in *management.SpaceInstanceList, out *SpaceInstanceList, s conversion.Scope) error { +func autoConvert_management_UserAccessKeysList_To_v1_UserAccessKeysList(in *management.UserAccessKeysList, out *UserAccessKeysList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]SpaceInstance)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]UserAccessKeys)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_SpaceInstanceList_To_v1_SpaceInstanceList is an autogenerated conversion function. -func Convert_management_SpaceInstanceList_To_v1_SpaceInstanceList(in *management.SpaceInstanceList, out *SpaceInstanceList, s conversion.Scope) error { - return autoConvert_management_SpaceInstanceList_To_v1_SpaceInstanceList(in, out, s) +// Convert_management_UserAccessKeysList_To_v1_UserAccessKeysList is an autogenerated conversion function. +func Convert_management_UserAccessKeysList_To_v1_UserAccessKeysList(in *management.UserAccessKeysList, out *UserAccessKeysList, s conversion.Scope) error { + return autoConvert_management_UserAccessKeysList_To_v1_UserAccessKeysList(in, out, s) } -func autoConvert_v1_SpaceInstanceSpec_To_management_SpaceInstanceSpec(in *SpaceInstanceSpec, out *management.SpaceInstanceSpec, s conversion.Scope) error { - out.SpaceInstanceSpec = in.SpaceInstanceSpec +func autoConvert_v1_UserClusters_To_management_UserClusters(in *UserClusters, out *management.UserClusters, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Clusters = *(*[]management.ClusterAccounts)(unsafe.Pointer(&in.Clusters)) return nil } -// Convert_v1_SpaceInstanceSpec_To_management_SpaceInstanceSpec is an autogenerated conversion function. -func Convert_v1_SpaceInstanceSpec_To_management_SpaceInstanceSpec(in *SpaceInstanceSpec, out *management.SpaceInstanceSpec, s conversion.Scope) error { - return autoConvert_v1_SpaceInstanceSpec_To_management_SpaceInstanceSpec(in, out, s) +// Convert_v1_UserClusters_To_management_UserClusters is an autogenerated conversion function. +func Convert_v1_UserClusters_To_management_UserClusters(in *UserClusters, out *management.UserClusters, s conversion.Scope) error { + return autoConvert_v1_UserClusters_To_management_UserClusters(in, out, s) } -func autoConvert_management_SpaceInstanceSpec_To_v1_SpaceInstanceSpec(in *management.SpaceInstanceSpec, out *SpaceInstanceSpec, s conversion.Scope) error { - out.SpaceInstanceSpec = in.SpaceInstanceSpec +func autoConvert_management_UserClusters_To_v1_UserClusters(in *management.UserClusters, out *UserClusters, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Clusters = *(*[]ClusterAccounts)(unsafe.Pointer(&in.Clusters)) return nil } -// Convert_management_SpaceInstanceSpec_To_v1_SpaceInstanceSpec is an autogenerated conversion function. -func Convert_management_SpaceInstanceSpec_To_v1_SpaceInstanceSpec(in *management.SpaceInstanceSpec, out *SpaceInstanceSpec, s conversion.Scope) error { - return autoConvert_management_SpaceInstanceSpec_To_v1_SpaceInstanceSpec(in, out, s) +// Convert_management_UserClusters_To_v1_UserClusters is an autogenerated conversion function. +func Convert_management_UserClusters_To_v1_UserClusters(in *management.UserClusters, out *UserClusters, s conversion.Scope) error { + return autoConvert_management_UserClusters_To_v1_UserClusters(in, out, s) } -func autoConvert_v1_SpaceInstanceStatus_To_management_SpaceInstanceStatus(in *SpaceInstanceStatus, out *management.SpaceInstanceStatus, s conversion.Scope) error { - out.SpaceInstanceStatus = in.SpaceInstanceStatus - out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) - out.CanUse = in.CanUse - out.CanUpdate = in.CanUpdate +func autoConvert_v1_UserClustersList_To_management_UserClustersList(in *UserClustersList, out *management.UserClustersList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.UserClusters)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_SpaceInstanceStatus_To_management_SpaceInstanceStatus is an autogenerated conversion function. -func Convert_v1_SpaceInstanceStatus_To_management_SpaceInstanceStatus(in *SpaceInstanceStatus, out *management.SpaceInstanceStatus, s conversion.Scope) error { - return autoConvert_v1_SpaceInstanceStatus_To_management_SpaceInstanceStatus(in, out, s) +// Convert_v1_UserClustersList_To_management_UserClustersList is an autogenerated conversion function. +func Convert_v1_UserClustersList_To_management_UserClustersList(in *UserClustersList, out *management.UserClustersList, s conversion.Scope) error { + return autoConvert_v1_UserClustersList_To_management_UserClustersList(in, out, s) } -func autoConvert_management_SpaceInstanceStatus_To_v1_SpaceInstanceStatus(in *management.SpaceInstanceStatus, out *SpaceInstanceStatus, s conversion.Scope) error { - out.SpaceInstanceStatus = in.SpaceInstanceStatus - out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) - out.CanUse = in.CanUse - out.CanUpdate = in.CanUpdate +func autoConvert_management_UserClustersList_To_v1_UserClustersList(in *management.UserClustersList, out *UserClustersList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]UserClusters)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_SpaceInstanceStatus_To_v1_SpaceInstanceStatus is an autogenerated conversion function. -func Convert_management_SpaceInstanceStatus_To_v1_SpaceInstanceStatus(in *management.SpaceInstanceStatus, out *SpaceInstanceStatus, s conversion.Scope) error { - return autoConvert_management_SpaceInstanceStatus_To_v1_SpaceInstanceStatus(in, out, s) +// Convert_management_UserClustersList_To_v1_UserClustersList is an autogenerated conversion function. +func Convert_management_UserClustersList_To_v1_UserClustersList(in *management.UserClustersList, out *UserClustersList, s conversion.Scope) error { + return autoConvert_management_UserClustersList_To_v1_UserClustersList(in, out, s) } -func autoConvert_v1_SpaceTemplate_To_management_SpaceTemplate(in *SpaceTemplate, out *management.SpaceTemplate, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_SpaceTemplateStatus_To_management_SpaceTemplateStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_v1_UserInfo_To_management_UserInfo(in *UserInfo, out *management.UserInfo, s conversion.Scope) error { + out.EntityInfo = in.EntityInfo + out.Teams = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Teams)) return nil } -// Convert_v1_SpaceTemplate_To_management_SpaceTemplate is an autogenerated conversion function. -func Convert_v1_SpaceTemplate_To_management_SpaceTemplate(in *SpaceTemplate, out *management.SpaceTemplate, s conversion.Scope) error { - return autoConvert_v1_SpaceTemplate_To_management_SpaceTemplate(in, out, s) +// Convert_v1_UserInfo_To_management_UserInfo is an autogenerated conversion function. +func Convert_v1_UserInfo_To_management_UserInfo(in *UserInfo, out *management.UserInfo, s conversion.Scope) error { + return autoConvert_v1_UserInfo_To_management_UserInfo(in, out, s) } -func autoConvert_management_SpaceTemplate_To_v1_SpaceTemplate(in *management.SpaceTemplate, out *SpaceTemplate, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_SpaceTemplateSpec_To_v1_SpaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_SpaceTemplateStatus_To_v1_SpaceTemplateStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_management_UserInfo_To_v1_UserInfo(in *management.UserInfo, out *UserInfo, s conversion.Scope) error { + out.EntityInfo = in.EntityInfo + out.Teams = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Teams)) return nil } -// Convert_management_SpaceTemplate_To_v1_SpaceTemplate is an autogenerated conversion function. -func Convert_management_SpaceTemplate_To_v1_SpaceTemplate(in *management.SpaceTemplate, out *SpaceTemplate, s conversion.Scope) error { - return autoConvert_management_SpaceTemplate_To_v1_SpaceTemplate(in, out, s) +// Convert_management_UserInfo_To_v1_UserInfo is an autogenerated conversion function. +func Convert_management_UserInfo_To_v1_UserInfo(in *management.UserInfo, out *UserInfo, s conversion.Scope) error { + return autoConvert_management_UserInfo_To_v1_UserInfo(in, out, s) } -func autoConvert_v1_SpaceTemplateList_To_management_SpaceTemplateList(in *SpaceTemplateList, out *management.SpaceTemplateList, s conversion.Scope) error { +func autoConvert_v1_UserList_To_management_UserList(in *UserList, out *management.UserList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.SpaceTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.User)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_SpaceTemplateList_To_management_SpaceTemplateList is an autogenerated conversion function. -func Convert_v1_SpaceTemplateList_To_management_SpaceTemplateList(in *SpaceTemplateList, out *management.SpaceTemplateList, s conversion.Scope) error { - return autoConvert_v1_SpaceTemplateList_To_management_SpaceTemplateList(in, out, s) +// Convert_v1_UserList_To_management_UserList is an autogenerated conversion function. +func Convert_v1_UserList_To_management_UserList(in *UserList, out *management.UserList, s conversion.Scope) error { + return autoConvert_v1_UserList_To_management_UserList(in, out, s) } -func autoConvert_management_SpaceTemplateList_To_v1_SpaceTemplateList(in *management.SpaceTemplateList, out *SpaceTemplateList, s conversion.Scope) error { +func autoConvert_management_UserList_To_v1_UserList(in *management.UserList, out *UserList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]SpaceTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]User)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_SpaceTemplateList_To_v1_SpaceTemplateList is an autogenerated conversion function. -func Convert_management_SpaceTemplateList_To_v1_SpaceTemplateList(in *management.SpaceTemplateList, out *SpaceTemplateList, s conversion.Scope) error { - return autoConvert_management_SpaceTemplateList_To_v1_SpaceTemplateList(in, out, s) +// Convert_management_UserList_To_v1_UserList is an autogenerated conversion function. +func Convert_management_UserList_To_v1_UserList(in *management.UserList, out *UserList, s conversion.Scope) error { + return autoConvert_management_UserList_To_v1_UserList(in, out, s) } -func autoConvert_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec(in *SpaceTemplateSpec, out *management.SpaceTemplateSpec, s conversion.Scope) error { - out.SpaceTemplateSpec = in.SpaceTemplateSpec +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_SpaceTemplateSpec_To_management_SpaceTemplateSpec is an autogenerated conversion function. -func Convert_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec(in *SpaceTemplateSpec, out *management.SpaceTemplateSpec, s conversion.Scope) error { - return autoConvert_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec(in, out, s) +// 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_SpaceTemplateSpec_To_v1_SpaceTemplateSpec(in *management.SpaceTemplateSpec, out *SpaceTemplateSpec, s conversion.Scope) error { - out.SpaceTemplateSpec = in.SpaceTemplateSpec +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_SpaceTemplateSpec_To_v1_SpaceTemplateSpec is an autogenerated conversion function. -func Convert_management_SpaceTemplateSpec_To_v1_SpaceTemplateSpec(in *management.SpaceTemplateSpec, out *SpaceTemplateSpec, s conversion.Scope) error { - return autoConvert_management_SpaceTemplateSpec_To_v1_SpaceTemplateSpec(in, out, s) +// 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_SpaceTemplateStatus_To_management_SpaceTemplateStatus(in *SpaceTemplateStatus, out *management.SpaceTemplateStatus, s conversion.Scope) error { - out.SpaceTemplateStatus = in.SpaceTemplateStatus - out.Apps = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Apps)) +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_SpaceTemplateStatus_To_management_SpaceTemplateStatus is an autogenerated conversion function. -func Convert_v1_SpaceTemplateStatus_To_management_SpaceTemplateStatus(in *SpaceTemplateStatus, out *management.SpaceTemplateStatus, s conversion.Scope) error { - return autoConvert_v1_SpaceTemplateStatus_To_management_SpaceTemplateStatus(in, out, s) +// 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_SpaceTemplateStatus_To_v1_SpaceTemplateStatus(in *management.SpaceTemplateStatus, out *SpaceTemplateStatus, s conversion.Scope) error { - out.SpaceTemplateStatus = in.SpaceTemplateStatus - out.Apps = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Apps)) +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_SpaceTemplateStatus_To_v1_SpaceTemplateStatus is an autogenerated conversion function. -func Convert_management_SpaceTemplateStatus_To_v1_SpaceTemplateStatus(in *management.SpaceTemplateStatus, out *SpaceTemplateStatus, s conversion.Scope) error { - return autoConvert_management_SpaceTemplateStatus_To_v1_SpaceTemplateStatus(in, out, s) +// 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_SubjectAccessReview_To_management_SubjectAccessReview(in *SubjectAccessReview, out *management.SubjectAccessReview, s conversion.Scope) error { +func autoConvert_v1_UserPermissions_To_management_UserPermissions(in *UserPermissions, out *management.UserPermissions, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus(&in.Status, &out.Status, s); err != nil { - return err - } + 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 } -// Convert_v1_SubjectAccessReview_To_management_SubjectAccessReview is an autogenerated conversion function. -func Convert_v1_SubjectAccessReview_To_management_SubjectAccessReview(in *SubjectAccessReview, out *management.SubjectAccessReview, s conversion.Scope) error { - return autoConvert_v1_SubjectAccessReview_To_management_SubjectAccessReview(in, out, s) +// Convert_v1_UserPermissions_To_management_UserPermissions is an autogenerated conversion function. +func Convert_v1_UserPermissions_To_management_UserPermissions(in *UserPermissions, out *management.UserPermissions, s conversion.Scope) error { + return autoConvert_v1_UserPermissions_To_management_UserPermissions(in, out, s) } -func autoConvert_management_SubjectAccessReview_To_v1_SubjectAccessReview(in *management.SubjectAccessReview, out *SubjectAccessReview, s conversion.Scope) error { +func autoConvert_management_UserPermissions_To_v1_UserPermissions(in *management.UserPermissions, out *UserPermissions, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus(&in.Status, &out.Status, s); err != nil { - return err - } + 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 } -// Convert_management_SubjectAccessReview_To_v1_SubjectAccessReview is an autogenerated conversion function. -func Convert_management_SubjectAccessReview_To_v1_SubjectAccessReview(in *management.SubjectAccessReview, out *SubjectAccessReview, s conversion.Scope) error { - return autoConvert_management_SubjectAccessReview_To_v1_SubjectAccessReview(in, out, s) +// Convert_management_UserPermissions_To_v1_UserPermissions is an autogenerated conversion function. +func Convert_management_UserPermissions_To_v1_UserPermissions(in *management.UserPermissions, out *UserPermissions, s conversion.Scope) error { + return autoConvert_management_UserPermissions_To_v1_UserPermissions(in, out, s) } -func autoConvert_v1_SubjectAccessReviewList_To_management_SubjectAccessReviewList(in *SubjectAccessReviewList, out *management.SubjectAccessReviewList, s conversion.Scope) error { +func autoConvert_v1_UserPermissionsList_To_management_UserPermissionsList(in *UserPermissionsList, out *management.UserPermissionsList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.SubjectAccessReview)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.UserPermissions)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_SubjectAccessReviewList_To_management_SubjectAccessReviewList is an autogenerated conversion function. -func Convert_v1_SubjectAccessReviewList_To_management_SubjectAccessReviewList(in *SubjectAccessReviewList, out *management.SubjectAccessReviewList, s conversion.Scope) error { - return autoConvert_v1_SubjectAccessReviewList_To_management_SubjectAccessReviewList(in, out, s) +// Convert_v1_UserPermissionsList_To_management_UserPermissionsList is an autogenerated conversion function. +func Convert_v1_UserPermissionsList_To_management_UserPermissionsList(in *UserPermissionsList, out *management.UserPermissionsList, s conversion.Scope) error { + return autoConvert_v1_UserPermissionsList_To_management_UserPermissionsList(in, out, s) } -func autoConvert_management_SubjectAccessReviewList_To_v1_SubjectAccessReviewList(in *management.SubjectAccessReviewList, out *SubjectAccessReviewList, s conversion.Scope) error { +func autoConvert_management_UserPermissionsList_To_v1_UserPermissionsList(in *management.UserPermissionsList, out *UserPermissionsList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]SubjectAccessReview)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_SubjectAccessReviewList_To_v1_SubjectAccessReviewList is an autogenerated conversion function. -func Convert_management_SubjectAccessReviewList_To_v1_SubjectAccessReviewList(in *management.SubjectAccessReviewList, out *SubjectAccessReviewList, s conversion.Scope) error { - return autoConvert_management_SubjectAccessReviewList_To_v1_SubjectAccessReviewList(in, out, s) -} - -func autoConvert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec(in *SubjectAccessReviewSpec, out *management.SubjectAccessReviewSpec, s conversion.Scope) error { - out.SubjectAccessReviewSpec = in.SubjectAccessReviewSpec - return nil -} - -// Convert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec is an autogenerated conversion function. -func Convert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec(in *SubjectAccessReviewSpec, out *management.SubjectAccessReviewSpec, s conversion.Scope) error { - return autoConvert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec(in, out, s) -} - -func autoConvert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec(in *management.SubjectAccessReviewSpec, out *SubjectAccessReviewSpec, s conversion.Scope) error { - out.SubjectAccessReviewSpec = in.SubjectAccessReviewSpec + out.Items = *(*[]UserPermissions)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec is an autogenerated conversion function. -func Convert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec(in *management.SubjectAccessReviewSpec, out *SubjectAccessReviewSpec, s conversion.Scope) error { - return autoConvert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec(in, out, s) +// Convert_management_UserPermissionsList_To_v1_UserPermissionsList is an autogenerated conversion function. +func Convert_management_UserPermissionsList_To_v1_UserPermissionsList(in *management.UserPermissionsList, out *UserPermissionsList, s conversion.Scope) error { + return autoConvert_management_UserPermissionsList_To_v1_UserPermissionsList(in, out, s) } -func autoConvert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus(in *SubjectAccessReviewStatus, out *management.SubjectAccessReviewStatus, s conversion.Scope) error { - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus +func autoConvert_v1_UserPermissionsRole_To_management_UserPermissionsRole(in *UserPermissionsRole, out *management.UserPermissionsRole, s conversion.Scope) error { + out.ClusterRole = in.ClusterRole + out.Role = in.Role + out.Namespace = in.Namespace + out.Rules = *(*[]rbacv1.PolicyRule)(unsafe.Pointer(&in.Rules)) return nil } -// Convert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus is an autogenerated conversion function. -func Convert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus(in *SubjectAccessReviewStatus, out *management.SubjectAccessReviewStatus, s conversion.Scope) error { - return autoConvert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus(in, out, s) +// Convert_v1_UserPermissionsRole_To_management_UserPermissionsRole is an autogenerated conversion function. +func Convert_v1_UserPermissionsRole_To_management_UserPermissionsRole(in *UserPermissionsRole, out *management.UserPermissionsRole, s conversion.Scope) error { + return autoConvert_v1_UserPermissionsRole_To_management_UserPermissionsRole(in, out, s) } -func autoConvert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus(in *management.SubjectAccessReviewStatus, out *SubjectAccessReviewStatus, s conversion.Scope) error { - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus +func autoConvert_management_UserPermissionsRole_To_v1_UserPermissionsRole(in *management.UserPermissionsRole, out *UserPermissionsRole, s conversion.Scope) error { + out.ClusterRole = in.ClusterRole + out.Role = in.Role + out.Namespace = in.Namespace + out.Rules = *(*[]rbacv1.PolicyRule)(unsafe.Pointer(&in.Rules)) return nil } -// Convert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus is an autogenerated conversion function. -func Convert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus(in *management.SubjectAccessReviewStatus, out *SubjectAccessReviewStatus, s conversion.Scope) error { - return autoConvert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus(in, out, s) +// Convert_management_UserPermissionsRole_To_v1_UserPermissionsRole is an autogenerated conversion function. +func Convert_management_UserPermissionsRole_To_v1_UserPermissionsRole(in *management.UserPermissionsRole, out *UserPermissionsRole, s conversion.Scope) error { + return autoConvert_management_UserPermissionsRole_To_v1_UserPermissionsRole(in, out, s) } -func autoConvert_v1_Task_To_management_Task(in *Task, out *management.Task, s conversion.Scope) error { +func autoConvert_v1_UserProfile_To_management_UserProfile(in *UserProfile, out *management.UserProfile, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_TaskSpec_To_management_TaskSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_TaskStatus_To_management_TaskStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.DisplayName = in.DisplayName + out.Username = in.Username + out.Password = in.Password + out.CurrentPassword = in.CurrentPassword + 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 } -// Convert_v1_Task_To_management_Task is an autogenerated conversion function. -func Convert_v1_Task_To_management_Task(in *Task, out *management.Task, s conversion.Scope) error { - return autoConvert_v1_Task_To_management_Task(in, out, s) +// Convert_v1_UserProfile_To_management_UserProfile is an autogenerated conversion function. +func Convert_v1_UserProfile_To_management_UserProfile(in *UserProfile, out *management.UserProfile, s conversion.Scope) error { + return autoConvert_v1_UserProfile_To_management_UserProfile(in, out, s) } -func autoConvert_management_Task_To_v1_Task(in *management.Task, out *Task, s conversion.Scope) error { +func autoConvert_management_UserProfile_To_v1_UserProfile(in *management.UserProfile, out *UserProfile, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_TaskSpec_To_v1_TaskSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_TaskStatus_To_v1_TaskStatus(&in.Status, &out.Status, s); err != nil { - return err - } + out.DisplayName = in.DisplayName + out.Username = in.Username + out.Password = in.Password + out.CurrentPassword = in.CurrentPassword + 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 } -// Convert_management_Task_To_v1_Task is an autogenerated conversion function. -func Convert_management_Task_To_v1_Task(in *management.Task, out *Task, s conversion.Scope) error { - return autoConvert_management_Task_To_v1_Task(in, out, s) +// Convert_management_UserProfile_To_v1_UserProfile is an autogenerated conversion function. +func Convert_management_UserProfile_To_v1_UserProfile(in *management.UserProfile, out *UserProfile, s conversion.Scope) error { + return autoConvert_management_UserProfile_To_v1_UserProfile(in, out, s) } -func autoConvert_v1_TaskList_To_management_TaskList(in *TaskList, out *management.TaskList, s conversion.Scope) error { +func autoConvert_v1_UserProfileList_To_management_UserProfileList(in *UserProfileList, out *management.UserProfileList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.Task)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.UserProfile)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_TaskList_To_management_TaskList is an autogenerated conversion function. -func Convert_v1_TaskList_To_management_TaskList(in *TaskList, out *management.TaskList, s conversion.Scope) error { - return autoConvert_v1_TaskList_To_management_TaskList(in, out, s) +// Convert_v1_UserProfileList_To_management_UserProfileList is an autogenerated conversion function. +func Convert_v1_UserProfileList_To_management_UserProfileList(in *UserProfileList, out *management.UserProfileList, s conversion.Scope) error { + return autoConvert_v1_UserProfileList_To_management_UserProfileList(in, out, s) } -func autoConvert_management_TaskList_To_v1_TaskList(in *management.TaskList, out *TaskList, s conversion.Scope) error { +func autoConvert_management_UserProfileList_To_v1_UserProfileList(in *management.UserProfileList, out *UserProfileList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]Task)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]UserProfile)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_TaskList_To_v1_TaskList is an autogenerated conversion function. -func Convert_management_TaskList_To_v1_TaskList(in *management.TaskList, out *TaskList, s conversion.Scope) error { - return autoConvert_management_TaskList_To_v1_TaskList(in, out, s) +// Convert_management_UserProfileList_To_v1_UserProfileList is an autogenerated conversion function. +func Convert_management_UserProfileList_To_v1_UserProfileList(in *management.UserProfileList, out *UserProfileList, s conversion.Scope) error { + return autoConvert_management_UserProfileList_To_v1_UserProfileList(in, out, s) } -func autoConvert_v1_TaskLog_To_management_TaskLog(in *TaskLog, out *management.TaskLog, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta +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_TaskLog_To_management_TaskLog is an autogenerated conversion function. -func Convert_v1_TaskLog_To_management_TaskLog(in *TaskLog, out *management.TaskLog, s conversion.Scope) error { - return autoConvert_v1_TaskLog_To_management_TaskLog(in, out, s) +// 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_TaskLog_To_v1_TaskLog(in *management.TaskLog, out *TaskLog, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta +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_TaskLog_To_v1_TaskLog is an autogenerated conversion function. -func Convert_management_TaskLog_To_v1_TaskLog(in *management.TaskLog, out *TaskLog, s conversion.Scope) error { - return autoConvert_management_TaskLog_To_v1_TaskLog(in, out, s) +// 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_TaskLogList_To_management_TaskLogList(in *TaskLogList, out *management.TaskLogList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.TaskLog)(unsafe.Pointer(&in.Items)) +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 } -// Convert_v1_TaskLogList_To_management_TaskLogList is an autogenerated conversion function. -func Convert_v1_TaskLogList_To_management_TaskLogList(in *TaskLogList, out *management.TaskLogList, s conversion.Scope) error { - return autoConvert_v1_TaskLogList_To_management_TaskLogList(in, out, s) +// Convert_v1_UserQuotasOptions_To_management_UserQuotasOptions is an autogenerated conversion function. +func Convert_v1_UserQuotasOptions_To_management_UserQuotasOptions(in *UserQuotasOptions, out *management.UserQuotasOptions, s conversion.Scope) error { + return autoConvert_v1_UserQuotasOptions_To_management_UserQuotasOptions(in, out, s) } -func autoConvert_management_TaskLogList_To_v1_TaskLogList(in *management.TaskLogList, out *TaskLogList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]TaskLog)(unsafe.Pointer(&in.Items)) +func autoConvert_management_UserQuotasOptions_To_v1_UserQuotasOptions(in *management.UserQuotasOptions, out *UserQuotasOptions, s conversion.Scope) error { + out.Cluster = *(*[]string)(unsafe.Pointer(&in.Cluster)) return nil } -// Convert_management_TaskLogList_To_v1_TaskLogList is an autogenerated conversion function. -func Convert_management_TaskLogList_To_v1_TaskLogList(in *management.TaskLogList, out *TaskLogList, s conversion.Scope) error { - return autoConvert_management_TaskLogList_To_v1_TaskLogList(in, out, s) +// Convert_management_UserQuotasOptions_To_v1_UserQuotasOptions is an autogenerated conversion function. +func Convert_management_UserQuotasOptions_To_v1_UserQuotasOptions(in *management.UserQuotasOptions, out *UserQuotasOptions, s conversion.Scope) error { + return autoConvert_management_UserQuotasOptions_To_v1_UserQuotasOptions(in, out, s) } -func autoConvert_v1_TaskLogOptions_To_management_TaskLogOptions(in *TaskLogOptions, out *management.TaskLogOptions, s conversion.Scope) error { - out.Follow = in.Follow - out.Previous = in.Previous - out.SinceSeconds = (*int64)(unsafe.Pointer(in.SinceSeconds)) - out.SinceTime = (*metav1.Time)(unsafe.Pointer(in.SinceTime)) - out.Timestamps = in.Timestamps - out.TailLines = (*int64)(unsafe.Pointer(in.TailLines)) - out.LimitBytes = (*int64)(unsafe.Pointer(in.LimitBytes)) - out.InsecureSkipTLSVerifyBackend = in.InsecureSkipTLSVerifyBackend +func autoConvert_url_Values_To_v1_UserQuotasOptions(in *url.Values, out *UserQuotasOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + if values, ok := map[string][]string(*in)["cluster"]; ok && len(values) > 0 { + out.Cluster = *(*[]string)(unsafe.Pointer(&values)) + } else { + out.Cluster = nil + } return nil } -// Convert_v1_TaskLogOptions_To_management_TaskLogOptions is an autogenerated conversion function. -func Convert_v1_TaskLogOptions_To_management_TaskLogOptions(in *TaskLogOptions, out *management.TaskLogOptions, s conversion.Scope) error { - return autoConvert_v1_TaskLogOptions_To_management_TaskLogOptions(in, out, s) +// Convert_url_Values_To_v1_UserQuotasOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_UserQuotasOptions(in *url.Values, out *UserQuotasOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_UserQuotasOptions(in, out, s) } -func autoConvert_management_TaskLogOptions_To_v1_TaskLogOptions(in *management.TaskLogOptions, out *TaskLogOptions, s conversion.Scope) error { - out.Follow = in.Follow - out.Previous = in.Previous - out.SinceSeconds = (*int64)(unsafe.Pointer(in.SinceSeconds)) - out.SinceTime = (*metav1.Time)(unsafe.Pointer(in.SinceTime)) - out.Timestamps = in.Timestamps - out.TailLines = (*int64)(unsafe.Pointer(in.TailLines)) - out.LimitBytes = (*int64)(unsafe.Pointer(in.LimitBytes)) - out.InsecureSkipTLSVerifyBackend = in.InsecureSkipTLSVerifyBackend +func autoConvert_v1_UserSpacesOptions_To_management_UserSpacesOptions(in *UserSpacesOptions, out *management.UserSpacesOptions, s conversion.Scope) error { + out.Cluster = *(*[]string)(unsafe.Pointer(&in.Cluster)) return nil } -// Convert_management_TaskLogOptions_To_v1_TaskLogOptions is an autogenerated conversion function. -func Convert_management_TaskLogOptions_To_v1_TaskLogOptions(in *management.TaskLogOptions, out *TaskLogOptions, s conversion.Scope) error { - return autoConvert_management_TaskLogOptions_To_v1_TaskLogOptions(in, out, s) +// Convert_v1_UserSpacesOptions_To_management_UserSpacesOptions is an autogenerated conversion function. +func Convert_v1_UserSpacesOptions_To_management_UserSpacesOptions(in *UserSpacesOptions, out *management.UserSpacesOptions, s conversion.Scope) error { + return autoConvert_v1_UserSpacesOptions_To_management_UserSpacesOptions(in, out, s) } -func autoConvert_url_Values_To_v1_TaskLogOptions(in *url.Values, out *TaskLogOptions, s conversion.Scope) error { +func autoConvert_management_UserSpacesOptions_To_v1_UserSpacesOptions(in *management.UserSpacesOptions, out *UserSpacesOptions, s conversion.Scope) error { + out.Cluster = *(*[]string)(unsafe.Pointer(&in.Cluster)) + return nil +} + +// Convert_management_UserSpacesOptions_To_v1_UserSpacesOptions is an autogenerated conversion function. +func Convert_management_UserSpacesOptions_To_v1_UserSpacesOptions(in *management.UserSpacesOptions, out *UserSpacesOptions, s conversion.Scope) error { + return autoConvert_management_UserSpacesOptions_To_v1_UserSpacesOptions(in, out, s) +} + +func autoConvert_url_Values_To_v1_UserSpacesOptions(in *url.Values, out *UserSpacesOptions, s conversion.Scope) error { // WARNING: Field TypeMeta does not have json tag, skipping. - 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.Follow = false - } - if values, ok := map[string][]string(*in)["previous"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.Previous, s); err != nil { - return err - } - } else { - out.Previous = false - } - if values, ok := map[string][]string(*in)["sinceSeconds"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.SinceSeconds, s); err != nil { - return err - } - } else { - out.SinceSeconds = nil - } - if values, ok := map[string][]string(*in)["sinceTime"]; ok && len(values) > 0 { - if err := metav1.Convert_Slice_string_To_Pointer_v1_Time(&values, &out.SinceTime, s); err != nil { - return err - } - } else { - out.SinceTime = nil - } - if values, ok := map[string][]string(*in)["timestamps"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.Timestamps, s); err != nil { - return err - } - } else { - out.Timestamps = false - } - if values, ok := map[string][]string(*in)["tailLines"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.TailLines, s); err != nil { - return err - } - } else { - out.TailLines = nil - } - if values, ok := map[string][]string(*in)["limitBytes"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.LimitBytes, s); err != nil { - return err - } - } else { - out.LimitBytes = nil - } - if values, ok := map[string][]string(*in)["insecureSkipTLSVerifyBackend"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.InsecureSkipTLSVerifyBackend, s); err != nil { - return err - } + if values, ok := map[string][]string(*in)["cluster"]; ok && len(values) > 0 { + out.Cluster = *(*[]string)(unsafe.Pointer(&values)) } else { - out.InsecureSkipTLSVerifyBackend = false + out.Cluster = nil } return nil } -// Convert_url_Values_To_v1_TaskLogOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_TaskLogOptions(in *url.Values, out *TaskLogOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_TaskLogOptions(in, out, s) +// Convert_url_Values_To_v1_UserSpacesOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_UserSpacesOptions(in *url.Values, out *UserSpacesOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_UserSpacesOptions(in, out, s) } -func autoConvert_v1_TaskSpec_To_management_TaskSpec(in *TaskSpec, out *management.TaskSpec, s conversion.Scope) error { - out.TaskSpec = in.TaskSpec +func autoConvert_v1_UserSpec_To_management_UserSpec(in *UserSpec, out *management.UserSpec, s conversion.Scope) error { + out.UserSpec = in.UserSpec return nil } -// Convert_v1_TaskSpec_To_management_TaskSpec is an autogenerated conversion function. -func Convert_v1_TaskSpec_To_management_TaskSpec(in *TaskSpec, out *management.TaskSpec, s conversion.Scope) error { - return autoConvert_v1_TaskSpec_To_management_TaskSpec(in, out, s) +// Convert_v1_UserSpec_To_management_UserSpec is an autogenerated conversion function. +func Convert_v1_UserSpec_To_management_UserSpec(in *UserSpec, out *management.UserSpec, s conversion.Scope) error { + return autoConvert_v1_UserSpec_To_management_UserSpec(in, out, s) } -func autoConvert_management_TaskSpec_To_v1_TaskSpec(in *management.TaskSpec, out *TaskSpec, s conversion.Scope) error { - out.TaskSpec = in.TaskSpec +func autoConvert_management_UserSpec_To_v1_UserSpec(in *management.UserSpec, out *UserSpec, s conversion.Scope) error { + out.UserSpec = in.UserSpec return nil } -// Convert_management_TaskSpec_To_v1_TaskSpec is an autogenerated conversion function. -func Convert_management_TaskSpec_To_v1_TaskSpec(in *management.TaskSpec, out *TaskSpec, s conversion.Scope) error { - return autoConvert_management_TaskSpec_To_v1_TaskSpec(in, out, s) +// Convert_management_UserSpec_To_v1_UserSpec is an autogenerated conversion function. +func Convert_management_UserSpec_To_v1_UserSpec(in *management.UserSpec, out *UserSpec, s conversion.Scope) error { + return autoConvert_management_UserSpec_To_v1_UserSpec(in, out, s) } -func autoConvert_v1_TaskStatus_To_management_TaskStatus(in *TaskStatus, out *management.TaskStatus, s conversion.Scope) error { - out.TaskStatus = in.TaskStatus - out.Owner = (*storagev1.UserOrTeamEntity)(unsafe.Pointer(in.Owner)) - out.Cluster = (*storagev1.EntityInfo)(unsafe.Pointer(in.Cluster)) +func autoConvert_v1_UserStatus_To_management_UserStatus(in *UserStatus, out *management.UserStatus, s conversion.Scope) error { + out.UserStatus = in.UserStatus return nil } -// Convert_v1_TaskStatus_To_management_TaskStatus is an autogenerated conversion function. -func Convert_v1_TaskStatus_To_management_TaskStatus(in *TaskStatus, out *management.TaskStatus, s conversion.Scope) error { - return autoConvert_v1_TaskStatus_To_management_TaskStatus(in, out, s) +// Convert_v1_UserStatus_To_management_UserStatus is an autogenerated conversion function. +func Convert_v1_UserStatus_To_management_UserStatus(in *UserStatus, out *management.UserStatus, s conversion.Scope) error { + return autoConvert_v1_UserStatus_To_management_UserStatus(in, out, s) +} + +func autoConvert_management_UserStatus_To_v1_UserStatus(in *management.UserStatus, out *UserStatus, s conversion.Scope) error { + out.UserStatus = in.UserStatus + return nil +} + +// Convert_management_UserStatus_To_v1_UserStatus is an autogenerated conversion function. +func Convert_management_UserStatus_To_v1_UserStatus(in *management.UserStatus, out *UserStatus, s conversion.Scope) error { + return autoConvert_management_UserStatus_To_v1_UserStatus(in, out, s) } -func autoConvert_management_TaskStatus_To_v1_TaskStatus(in *management.TaskStatus, out *TaskStatus, s conversion.Scope) error { - out.TaskStatus = in.TaskStatus - out.Owner = (*storagev1.UserOrTeamEntity)(unsafe.Pointer(in.Owner)) - out.Cluster = (*storagev1.EntityInfo)(unsafe.Pointer(in.Cluster)) +func autoConvert_v1_UserVirtualClustersOptions_To_management_UserVirtualClustersOptions(in *UserVirtualClustersOptions, out *management.UserVirtualClustersOptions, s conversion.Scope) error { + out.Cluster = *(*[]string)(unsafe.Pointer(&in.Cluster)) return nil } -// Convert_management_TaskStatus_To_v1_TaskStatus is an autogenerated conversion function. -func Convert_management_TaskStatus_To_v1_TaskStatus(in *management.TaskStatus, out *TaskStatus, s conversion.Scope) error { - return autoConvert_management_TaskStatus_To_v1_TaskStatus(in, out, s) +// Convert_v1_UserVirtualClustersOptions_To_management_UserVirtualClustersOptions is an autogenerated conversion function. +func Convert_v1_UserVirtualClustersOptions_To_management_UserVirtualClustersOptions(in *UserVirtualClustersOptions, out *management.UserVirtualClustersOptions, s conversion.Scope) error { + return autoConvert_v1_UserVirtualClustersOptions_To_management_UserVirtualClustersOptions(in, out, s) } -func autoConvert_v1_Team_To_management_Team(in *Team, out *management.Team, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_TeamSpec_To_management_TeamSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_TeamStatus_To_management_TeamStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_management_UserVirtualClustersOptions_To_v1_UserVirtualClustersOptions(in *management.UserVirtualClustersOptions, out *UserVirtualClustersOptions, s conversion.Scope) error { + out.Cluster = *(*[]string)(unsafe.Pointer(&in.Cluster)) return nil } -// Convert_v1_Team_To_management_Team is an autogenerated conversion function. -func Convert_v1_Team_To_management_Team(in *Team, out *management.Team, s conversion.Scope) error { - return autoConvert_v1_Team_To_management_Team(in, out, s) +// Convert_management_UserVirtualClustersOptions_To_v1_UserVirtualClustersOptions is an autogenerated conversion function. +func Convert_management_UserVirtualClustersOptions_To_v1_UserVirtualClustersOptions(in *management.UserVirtualClustersOptions, out *UserVirtualClustersOptions, s conversion.Scope) error { + return autoConvert_management_UserVirtualClustersOptions_To_v1_UserVirtualClustersOptions(in, out, s) } -func autoConvert_management_Team_To_v1_Team(in *management.Team, out *Team, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_TeamSpec_To_v1_TeamSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_TeamStatus_To_v1_TeamStatus(&in.Status, &out.Status, s); err != nil { - return err +func autoConvert_url_Values_To_v1_UserVirtualClustersOptions(in *url.Values, out *UserVirtualClustersOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + if values, ok := map[string][]string(*in)["cluster"]; ok && len(values) > 0 { + out.Cluster = *(*[]string)(unsafe.Pointer(&values)) + } else { + out.Cluster = nil } return nil } -// Convert_management_Team_To_v1_Team is an autogenerated conversion function. -func Convert_management_Team_To_v1_Team(in *management.Team, out *Team, s conversion.Scope) error { - return autoConvert_management_Team_To_v1_Team(in, out, s) +// Convert_url_Values_To_v1_UserVirtualClustersOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_UserVirtualClustersOptions(in *url.Values, out *UserVirtualClustersOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_UserVirtualClustersOptions(in, out, s) } -func autoConvert_v1_TeamAccessKeys_To_management_TeamAccessKeys(in *TeamAccessKeys, out *management.TeamAccessKeys, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterAccessKey_To_management_VirtualClusterAccessKey(in *VirtualClusterAccessKey, out *management.VirtualClusterAccessKey, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.AccessKeys = *(*[]management.OwnedAccessKey)(unsafe.Pointer(&in.AccessKeys)) + out.AccessKey = in.AccessKey return nil } -// Convert_v1_TeamAccessKeys_To_management_TeamAccessKeys is an autogenerated conversion function. -func Convert_v1_TeamAccessKeys_To_management_TeamAccessKeys(in *TeamAccessKeys, out *management.TeamAccessKeys, s conversion.Scope) error { - return autoConvert_v1_TeamAccessKeys_To_management_TeamAccessKeys(in, out, s) +// Convert_v1_VirtualClusterAccessKey_To_management_VirtualClusterAccessKey is an autogenerated conversion function. +func Convert_v1_VirtualClusterAccessKey_To_management_VirtualClusterAccessKey(in *VirtualClusterAccessKey, out *management.VirtualClusterAccessKey, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterAccessKey_To_management_VirtualClusterAccessKey(in, out, s) } -func autoConvert_management_TeamAccessKeys_To_v1_TeamAccessKeys(in *management.TeamAccessKeys, out *TeamAccessKeys, s conversion.Scope) error { +func autoConvert_management_VirtualClusterAccessKey_To_v1_VirtualClusterAccessKey(in *management.VirtualClusterAccessKey, out *VirtualClusterAccessKey, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.AccessKeys = *(*[]OwnedAccessKey)(unsafe.Pointer(&in.AccessKeys)) + out.AccessKey = in.AccessKey return nil } -// Convert_management_TeamAccessKeys_To_v1_TeamAccessKeys is an autogenerated conversion function. -func Convert_management_TeamAccessKeys_To_v1_TeamAccessKeys(in *management.TeamAccessKeys, out *TeamAccessKeys, s conversion.Scope) error { - return autoConvert_management_TeamAccessKeys_To_v1_TeamAccessKeys(in, out, s) +// Convert_management_VirtualClusterAccessKey_To_v1_VirtualClusterAccessKey is an autogenerated conversion function. +func Convert_management_VirtualClusterAccessKey_To_v1_VirtualClusterAccessKey(in *management.VirtualClusterAccessKey, out *VirtualClusterAccessKey, s conversion.Scope) error { + return autoConvert_management_VirtualClusterAccessKey_To_v1_VirtualClusterAccessKey(in, out, s) } -func autoConvert_v1_TeamAccessKeysList_To_management_TeamAccessKeysList(in *TeamAccessKeysList, out *management.TeamAccessKeysList, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterAccessKeyList_To_management_VirtualClusterAccessKeyList(in *VirtualClusterAccessKeyList, out *management.VirtualClusterAccessKeyList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.TeamAccessKeys)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.VirtualClusterAccessKey)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_TeamAccessKeysList_To_management_TeamAccessKeysList is an autogenerated conversion function. -func Convert_v1_TeamAccessKeysList_To_management_TeamAccessKeysList(in *TeamAccessKeysList, out *management.TeamAccessKeysList, s conversion.Scope) error { - return autoConvert_v1_TeamAccessKeysList_To_management_TeamAccessKeysList(in, out, s) +// Convert_v1_VirtualClusterAccessKeyList_To_management_VirtualClusterAccessKeyList is an autogenerated conversion function. +func Convert_v1_VirtualClusterAccessKeyList_To_management_VirtualClusterAccessKeyList(in *VirtualClusterAccessKeyList, out *management.VirtualClusterAccessKeyList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterAccessKeyList_To_management_VirtualClusterAccessKeyList(in, out, s) } -func autoConvert_management_TeamAccessKeysList_To_v1_TeamAccessKeysList(in *management.TeamAccessKeysList, out *TeamAccessKeysList, s conversion.Scope) error { +func autoConvert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKeyList(in *management.VirtualClusterAccessKeyList, out *VirtualClusterAccessKeyList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]TeamAccessKeys)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]VirtualClusterAccessKey)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_TeamAccessKeysList_To_v1_TeamAccessKeysList is an autogenerated conversion function. -func Convert_management_TeamAccessKeysList_To_v1_TeamAccessKeysList(in *management.TeamAccessKeysList, out *TeamAccessKeysList, s conversion.Scope) error { - return autoConvert_management_TeamAccessKeysList_To_v1_TeamAccessKeysList(in, out, s) +// Convert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKeyList is an autogenerated conversion function. +func Convert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKeyList(in *management.VirtualClusterAccessKeyList, out *VirtualClusterAccessKeyList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKeyList(in, out, s) } -func autoConvert_v1_TeamClusters_To_management_TeamClusters(in *TeamClusters, out *management.TeamClusters, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterExternalDatabase_To_management_VirtualClusterExternalDatabase(in *VirtualClusterExternalDatabase, out *management.VirtualClusterExternalDatabase, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Clusters = *(*[]management.ClusterAccounts)(unsafe.Pointer(&in.Clusters)) + 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_TeamClusters_To_management_TeamClusters is an autogenerated conversion function. -func Convert_v1_TeamClusters_To_management_TeamClusters(in *TeamClusters, out *management.TeamClusters, s conversion.Scope) error { - return autoConvert_v1_TeamClusters_To_management_TeamClusters(in, out, s) +// 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_TeamClusters_To_v1_TeamClusters(in *management.TeamClusters, out *TeamClusters, s conversion.Scope) error { +func autoConvert_management_VirtualClusterExternalDatabase_To_v1_VirtualClusterExternalDatabase(in *management.VirtualClusterExternalDatabase, out *VirtualClusterExternalDatabase, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Clusters = *(*[]ClusterAccounts)(unsafe.Pointer(&in.Clusters)) + 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_TeamClusters_To_v1_TeamClusters is an autogenerated conversion function. -func Convert_management_TeamClusters_To_v1_TeamClusters(in *management.TeamClusters, out *TeamClusters, s conversion.Scope) error { - return autoConvert_management_TeamClusters_To_v1_TeamClusters(in, out, s) +// 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_TeamClustersList_To_management_TeamClustersList(in *TeamClustersList, out *management.TeamClustersList, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterExternalDatabaseList_To_management_VirtualClusterExternalDatabaseList(in *VirtualClusterExternalDatabaseList, out *management.VirtualClusterExternalDatabaseList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.TeamClusters)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.VirtualClusterExternalDatabase)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_TeamClustersList_To_management_TeamClustersList is an autogenerated conversion function. -func Convert_v1_TeamClustersList_To_management_TeamClustersList(in *TeamClustersList, out *management.TeamClustersList, s conversion.Scope) error { - return autoConvert_v1_TeamClustersList_To_management_TeamClustersList(in, out, s) +// 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_TeamClustersList_To_v1_TeamClustersList(in *management.TeamClustersList, out *TeamClustersList, s conversion.Scope) error { +func autoConvert_management_VirtualClusterExternalDatabaseList_To_v1_VirtualClusterExternalDatabaseList(in *management.VirtualClusterExternalDatabaseList, out *VirtualClusterExternalDatabaseList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]TeamClusters)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]VirtualClusterExternalDatabase)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_TeamClustersList_To_v1_TeamClustersList is an autogenerated conversion function. -func Convert_management_TeamClustersList_To_v1_TeamClustersList(in *management.TeamClustersList, out *TeamClustersList, s conversion.Scope) error { - return autoConvert_management_TeamClustersList_To_v1_TeamClustersList(in, out, s) +// 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_TeamList_To_management_TeamList(in *TeamList, out *management.TeamList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.Team)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec(in *VirtualClusterExternalDatabaseSpec, out *management.VirtualClusterExternalDatabaseSpec, s conversion.Scope) error { + out.Connector = in.Connector return nil } -// Convert_v1_TeamList_To_management_TeamList is an autogenerated conversion function. -func Convert_v1_TeamList_To_management_TeamList(in *TeamList, out *management.TeamList, s conversion.Scope) error { - return autoConvert_v1_TeamList_To_management_TeamList(in, out, s) +// 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_TeamList_To_v1_TeamList(in *management.TeamList, out *TeamList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]Team)(unsafe.Pointer(&in.Items)) +func autoConvert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec(in *management.VirtualClusterExternalDatabaseSpec, out *VirtualClusterExternalDatabaseSpec, s conversion.Scope) error { + out.Connector = in.Connector return nil } -// Convert_management_TeamList_To_v1_TeamList is an autogenerated conversion function. -func Convert_management_TeamList_To_v1_TeamList(in *management.TeamList, out *TeamList, s conversion.Scope) error { - return autoConvert_management_TeamList_To_v1_TeamList(in, out, s) +// 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_TeamSpec_To_management_TeamSpec(in *TeamSpec, out *management.TeamSpec, s conversion.Scope) error { - out.TeamSpec = in.TeamSpec +func autoConvert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualClusterExternalDatabaseStatus(in *VirtualClusterExternalDatabaseStatus, out *management.VirtualClusterExternalDatabaseStatus, s conversion.Scope) error { + out.DataSource = in.DataSource + out.IdentityProvider = in.IdentityProvider return nil } -// Convert_v1_TeamSpec_To_management_TeamSpec is an autogenerated conversion function. -func Convert_v1_TeamSpec_To_management_TeamSpec(in *TeamSpec, out *management.TeamSpec, s conversion.Scope) error { - return autoConvert_v1_TeamSpec_To_management_TeamSpec(in, out, s) +// 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_TeamSpec_To_v1_TeamSpec(in *management.TeamSpec, out *TeamSpec, s conversion.Scope) error { - out.TeamSpec = in.TeamSpec +func autoConvert_management_VirtualClusterExternalDatabaseStatus_To_v1_VirtualClusterExternalDatabaseStatus(in *management.VirtualClusterExternalDatabaseStatus, out *VirtualClusterExternalDatabaseStatus, s conversion.Scope) error { + out.DataSource = in.DataSource + out.IdentityProvider = in.IdentityProvider return nil } -// Convert_management_TeamSpec_To_v1_TeamSpec is an autogenerated conversion function. -func Convert_management_TeamSpec_To_v1_TeamSpec(in *management.TeamSpec, out *TeamSpec, s conversion.Scope) error { - return autoConvert_management_TeamSpec_To_v1_TeamSpec(in, out, s) +// 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_TeamStatus_To_management_TeamStatus(in *TeamStatus, out *management.TeamStatus, s conversion.Scope) error { - out.TeamStatus = in.TeamStatus +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 { + return err + } + if err := Convert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterInstanceStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_TeamStatus_To_management_TeamStatus is an autogenerated conversion function. -func Convert_v1_TeamStatus_To_management_TeamStatus(in *TeamStatus, out *management.TeamStatus, s conversion.Scope) error { - return autoConvert_v1_TeamStatus_To_management_TeamStatus(in, out, s) +// Convert_v1_VirtualClusterInstance_To_management_VirtualClusterInstance is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstance_To_management_VirtualClusterInstance(in *VirtualClusterInstance, out *management.VirtualClusterInstance, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstance_To_management_VirtualClusterInstance(in, out, s) } -func autoConvert_management_TeamStatus_To_v1_TeamStatus(in *management.TeamStatus, out *TeamStatus, s conversion.Scope) error { - out.TeamStatus = in.TeamStatus +func autoConvert_management_VirtualClusterInstance_To_v1_VirtualClusterInstance(in *management.VirtualClusterInstance, out *VirtualClusterInstance, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_VirtualClusterInstanceSpec_To_v1_VirtualClusterInstanceSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_TeamStatus_To_v1_TeamStatus is an autogenerated conversion function. -func Convert_management_TeamStatus_To_v1_TeamStatus(in *management.TeamStatus, out *TeamStatus, s conversion.Scope) error { - return autoConvert_management_TeamStatus_To_v1_TeamStatus(in, out, s) +// Convert_management_VirtualClusterInstance_To_v1_VirtualClusterInstance is an autogenerated conversion function. +func Convert_management_VirtualClusterInstance_To_v1_VirtualClusterInstance(in *management.VirtualClusterInstance, out *VirtualClusterInstance, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstance_To_v1_VirtualClusterInstance(in, out, s) } -func autoConvert_v1_TranslateVClusterResourceName_To_management_TranslateVClusterResourceName(in *TranslateVClusterResourceName, out *management.TranslateVClusterResourceName, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterInstanceKubeConfig_To_management_VirtualClusterInstanceKubeConfig(in *VirtualClusterInstanceKubeConfig, out *management.VirtualClusterInstanceKubeConfig, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_TranslateVClusterResourceName_To_management_TranslateVClusterResourceName is an autogenerated conversion function. -func Convert_v1_TranslateVClusterResourceName_To_management_TranslateVClusterResourceName(in *TranslateVClusterResourceName, out *management.TranslateVClusterResourceName, s conversion.Scope) error { - return autoConvert_v1_TranslateVClusterResourceName_To_management_TranslateVClusterResourceName(in, out, s) +// Convert_v1_VirtualClusterInstanceKubeConfig_To_management_VirtualClusterInstanceKubeConfig is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceKubeConfig_To_management_VirtualClusterInstanceKubeConfig(in *VirtualClusterInstanceKubeConfig, out *management.VirtualClusterInstanceKubeConfig, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceKubeConfig_To_management_VirtualClusterInstanceKubeConfig(in, out, s) } -func autoConvert_management_TranslateVClusterResourceName_To_v1_TranslateVClusterResourceName(in *management.TranslateVClusterResourceName, out *TranslateVClusterResourceName, s conversion.Scope) error { +func autoConvert_management_VirtualClusterInstanceKubeConfig_To_v1_VirtualClusterInstanceKubeConfig(in *management.VirtualClusterInstanceKubeConfig, out *VirtualClusterInstanceKubeConfig, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_TranslateVClusterResourceName_To_v1_TranslateVClusterResourceName is an autogenerated conversion function. -func Convert_management_TranslateVClusterResourceName_To_v1_TranslateVClusterResourceName(in *management.TranslateVClusterResourceName, out *TranslateVClusterResourceName, s conversion.Scope) error { - return autoConvert_management_TranslateVClusterResourceName_To_v1_TranslateVClusterResourceName(in, out, s) +// Convert_management_VirtualClusterInstanceKubeConfig_To_v1_VirtualClusterInstanceKubeConfig is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceKubeConfig_To_v1_VirtualClusterInstanceKubeConfig(in *management.VirtualClusterInstanceKubeConfig, out *VirtualClusterInstanceKubeConfig, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceKubeConfig_To_v1_VirtualClusterInstanceKubeConfig(in, out, s) } -func autoConvert_v1_TranslateVClusterResourceNameList_To_management_TranslateVClusterResourceNameList(in *TranslateVClusterResourceNameList, out *management.TranslateVClusterResourceNameList, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterInstanceKubeConfigList_To_management_VirtualClusterInstanceKubeConfigList(in *VirtualClusterInstanceKubeConfigList, out *management.VirtualClusterInstanceKubeConfigList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.TranslateVClusterResourceName)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.VirtualClusterInstanceKubeConfig)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_TranslateVClusterResourceNameList_To_management_TranslateVClusterResourceNameList is an autogenerated conversion function. -func Convert_v1_TranslateVClusterResourceNameList_To_management_TranslateVClusterResourceNameList(in *TranslateVClusterResourceNameList, out *management.TranslateVClusterResourceNameList, s conversion.Scope) error { - return autoConvert_v1_TranslateVClusterResourceNameList_To_management_TranslateVClusterResourceNameList(in, out, s) +// Convert_v1_VirtualClusterInstanceKubeConfigList_To_management_VirtualClusterInstanceKubeConfigList is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceKubeConfigList_To_management_VirtualClusterInstanceKubeConfigList(in *VirtualClusterInstanceKubeConfigList, out *management.VirtualClusterInstanceKubeConfigList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceKubeConfigList_To_management_VirtualClusterInstanceKubeConfigList(in, out, s) } -func autoConvert_management_TranslateVClusterResourceNameList_To_v1_TranslateVClusterResourceNameList(in *management.TranslateVClusterResourceNameList, out *TranslateVClusterResourceNameList, s conversion.Scope) error { +func autoConvert_management_VirtualClusterInstanceKubeConfigList_To_v1_VirtualClusterInstanceKubeConfigList(in *management.VirtualClusterInstanceKubeConfigList, out *VirtualClusterInstanceKubeConfigList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]TranslateVClusterResourceName)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_TranslateVClusterResourceNameList_To_v1_TranslateVClusterResourceNameList is an autogenerated conversion function. -func Convert_management_TranslateVClusterResourceNameList_To_v1_TranslateVClusterResourceNameList(in *management.TranslateVClusterResourceNameList, out *TranslateVClusterResourceNameList, s conversion.Scope) error { - return autoConvert_management_TranslateVClusterResourceNameList_To_v1_TranslateVClusterResourceNameList(in, out, s) -} - -func autoConvert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(in *TranslateVClusterResourceNameSpec, out *management.TranslateVClusterResourceNameSpec, s conversion.Scope) error { - out.Name = in.Name - out.Namespace = in.Namespace - out.VClusterName = in.VClusterName - return nil -} - -// Convert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec is an autogenerated conversion function. -func Convert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(in *TranslateVClusterResourceNameSpec, out *management.TranslateVClusterResourceNameSpec, s conversion.Scope) error { - return autoConvert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(in, out, s) -} - -func autoConvert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(in *management.TranslateVClusterResourceNameSpec, out *TranslateVClusterResourceNameSpec, s conversion.Scope) error { - out.Name = in.Name - out.Namespace = in.Namespace - out.VClusterName = in.VClusterName - return nil -} - -// Convert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec is an autogenerated conversion function. -func Convert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(in *management.TranslateVClusterResourceNameSpec, out *TranslateVClusterResourceNameSpec, s conversion.Scope) error { - return autoConvert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(in, out, s) -} - -func autoConvert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(in *TranslateVClusterResourceNameStatus, out *management.TranslateVClusterResourceNameStatus, s conversion.Scope) error { - out.Name = in.Name - return nil -} - -// Convert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus is an autogenerated conversion function. -func Convert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(in *TranslateVClusterResourceNameStatus, out *management.TranslateVClusterResourceNameStatus, s conversion.Scope) error { - return autoConvert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(in, out, s) -} - -func autoConvert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(in *management.TranslateVClusterResourceNameStatus, out *TranslateVClusterResourceNameStatus, s conversion.Scope) error { - out.Name = in.Name + out.Items = *(*[]VirtualClusterInstanceKubeConfig)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus is an autogenerated conversion function. -func Convert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(in *management.TranslateVClusterResourceNameStatus, out *TranslateVClusterResourceNameStatus, s conversion.Scope) error { - return autoConvert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(in, out, s) +// Convert_management_VirtualClusterInstanceKubeConfigList_To_v1_VirtualClusterInstanceKubeConfigList is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceKubeConfigList_To_v1_VirtualClusterInstanceKubeConfigList(in *management.VirtualClusterInstanceKubeConfigList, out *VirtualClusterInstanceKubeConfigList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceKubeConfigList_To_v1_VirtualClusterInstanceKubeConfigList(in, out, s) } -func autoConvert_v1_User_To_management_User(in *User, out *management.User, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_UserSpec_To_management_UserSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_UserStatus_To_management_UserStatus(&in.Status, &out.Status, s); err != nil { - return err - } +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 } -// Convert_v1_User_To_management_User is an autogenerated conversion function. -func Convert_v1_User_To_management_User(in *User, out *management.User, s conversion.Scope) error { - return autoConvert_v1_User_To_management_User(in, out, s) +// Convert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec(in *VirtualClusterInstanceKubeConfigSpec, out *management.VirtualClusterInstanceKubeConfigSpec, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec(in, out, s) } -func autoConvert_management_User_To_v1_User(in *management.User, out *User, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_UserSpec_To_v1_UserSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_UserStatus_To_v1_UserStatus(&in.Status, &out.Status, s); err != nil { - return err - } +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 } -// Convert_management_User_To_v1_User is an autogenerated conversion function. -func Convert_management_User_To_v1_User(in *management.User, out *User, s conversion.Scope) error { - return autoConvert_management_User_To_v1_User(in, out, s) +// Convert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec(in *management.VirtualClusterInstanceKubeConfigSpec, out *VirtualClusterInstanceKubeConfigSpec, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec(in, out, s) } -func autoConvert_v1_UserAccessKeys_To_management_UserAccessKeys(in *UserAccessKeys, out *management.UserAccessKeys, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.AccessKeys = *(*[]management.OwnedAccessKey)(unsafe.Pointer(&in.AccessKeys)) +func autoConvert_v1_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus(in *VirtualClusterInstanceKubeConfigStatus, out *management.VirtualClusterInstanceKubeConfigStatus, s conversion.Scope) error { + out.KubeConfig = in.KubeConfig return nil } -// Convert_v1_UserAccessKeys_To_management_UserAccessKeys is an autogenerated conversion function. -func Convert_v1_UserAccessKeys_To_management_UserAccessKeys(in *UserAccessKeys, out *management.UserAccessKeys, s conversion.Scope) error { - return autoConvert_v1_UserAccessKeys_To_management_UserAccessKeys(in, out, s) +// Convert_v1_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus(in *VirtualClusterInstanceKubeConfigStatus, out *management.VirtualClusterInstanceKubeConfigStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus(in, out, s) } -func autoConvert_management_UserAccessKeys_To_v1_UserAccessKeys(in *management.UserAccessKeys, out *UserAccessKeys, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.AccessKeys = *(*[]OwnedAccessKey)(unsafe.Pointer(&in.AccessKeys)) +func autoConvert_management_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus(in *management.VirtualClusterInstanceKubeConfigStatus, out *VirtualClusterInstanceKubeConfigStatus, s conversion.Scope) error { + out.KubeConfig = in.KubeConfig return nil } -// Convert_management_UserAccessKeys_To_v1_UserAccessKeys is an autogenerated conversion function. -func Convert_management_UserAccessKeys_To_v1_UserAccessKeys(in *management.UserAccessKeys, out *UserAccessKeys, s conversion.Scope) error { - return autoConvert_management_UserAccessKeys_To_v1_UserAccessKeys(in, out, s) +// Convert_management_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus(in *management.VirtualClusterInstanceKubeConfigStatus, out *VirtualClusterInstanceKubeConfigStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus(in, out, s) } -func autoConvert_v1_UserAccessKeysList_To_management_UserAccessKeysList(in *UserAccessKeysList, out *management.UserAccessKeysList, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterInstanceList_To_management_VirtualClusterInstanceList(in *VirtualClusterInstanceList, out *management.VirtualClusterInstanceList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.UserAccessKeys)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.VirtualClusterInstance)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_UserAccessKeysList_To_management_UserAccessKeysList is an autogenerated conversion function. -func Convert_v1_UserAccessKeysList_To_management_UserAccessKeysList(in *UserAccessKeysList, out *management.UserAccessKeysList, s conversion.Scope) error { - return autoConvert_v1_UserAccessKeysList_To_management_UserAccessKeysList(in, out, s) +// Convert_v1_VirtualClusterInstanceList_To_management_VirtualClusterInstanceList is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceList_To_management_VirtualClusterInstanceList(in *VirtualClusterInstanceList, out *management.VirtualClusterInstanceList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceList_To_management_VirtualClusterInstanceList(in, out, s) } -func autoConvert_management_UserAccessKeysList_To_v1_UserAccessKeysList(in *management.UserAccessKeysList, out *UserAccessKeysList, s conversion.Scope) error { +func autoConvert_management_VirtualClusterInstanceList_To_v1_VirtualClusterInstanceList(in *management.VirtualClusterInstanceList, out *VirtualClusterInstanceList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]UserAccessKeys)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]VirtualClusterInstance)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_UserAccessKeysList_To_v1_UserAccessKeysList is an autogenerated conversion function. -func Convert_management_UserAccessKeysList_To_v1_UserAccessKeysList(in *management.UserAccessKeysList, out *UserAccessKeysList, s conversion.Scope) error { - return autoConvert_management_UserAccessKeysList_To_v1_UserAccessKeysList(in, out, s) +// Convert_management_VirtualClusterInstanceList_To_v1_VirtualClusterInstanceList is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceList_To_v1_VirtualClusterInstanceList(in *management.VirtualClusterInstanceList, out *VirtualClusterInstanceList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceList_To_v1_VirtualClusterInstanceList(in, out, s) } -func autoConvert_v1_UserClusters_To_management_UserClusters(in *UserClusters, out *management.UserClusters, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterInstanceLog_To_management_VirtualClusterInstanceLog(in *VirtualClusterInstanceLog, out *management.VirtualClusterInstanceLog, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Clusters = *(*[]management.ClusterAccounts)(unsafe.Pointer(&in.Clusters)) return nil } -// Convert_v1_UserClusters_To_management_UserClusters is an autogenerated conversion function. -func Convert_v1_UserClusters_To_management_UserClusters(in *UserClusters, out *management.UserClusters, s conversion.Scope) error { - return autoConvert_v1_UserClusters_To_management_UserClusters(in, out, s) +// Convert_v1_VirtualClusterInstanceLog_To_management_VirtualClusterInstanceLog is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceLog_To_management_VirtualClusterInstanceLog(in *VirtualClusterInstanceLog, out *management.VirtualClusterInstanceLog, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceLog_To_management_VirtualClusterInstanceLog(in, out, s) } -func autoConvert_management_UserClusters_To_v1_UserClusters(in *management.UserClusters, out *UserClusters, s conversion.Scope) error { +func autoConvert_management_VirtualClusterInstanceLog_To_v1_VirtualClusterInstanceLog(in *management.VirtualClusterInstanceLog, out *VirtualClusterInstanceLog, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Clusters = *(*[]ClusterAccounts)(unsafe.Pointer(&in.Clusters)) return nil } -// Convert_management_UserClusters_To_v1_UserClusters is an autogenerated conversion function. -func Convert_management_UserClusters_To_v1_UserClusters(in *management.UserClusters, out *UserClusters, s conversion.Scope) error { - return autoConvert_management_UserClusters_To_v1_UserClusters(in, out, s) +// Convert_management_VirtualClusterInstanceLog_To_v1_VirtualClusterInstanceLog is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceLog_To_v1_VirtualClusterInstanceLog(in *management.VirtualClusterInstanceLog, out *VirtualClusterInstanceLog, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceLog_To_v1_VirtualClusterInstanceLog(in, out, s) } -func autoConvert_v1_UserClustersList_To_management_UserClustersList(in *UserClustersList, out *management.UserClustersList, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterInstanceLogList_To_management_VirtualClusterInstanceLogList(in *VirtualClusterInstanceLogList, out *management.VirtualClusterInstanceLogList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.UserClusters)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.VirtualClusterInstanceLog)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_UserClustersList_To_management_UserClustersList is an autogenerated conversion function. -func Convert_v1_UserClustersList_To_management_UserClustersList(in *UserClustersList, out *management.UserClustersList, s conversion.Scope) error { - return autoConvert_v1_UserClustersList_To_management_UserClustersList(in, out, s) +// Convert_v1_VirtualClusterInstanceLogList_To_management_VirtualClusterInstanceLogList is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceLogList_To_management_VirtualClusterInstanceLogList(in *VirtualClusterInstanceLogList, out *management.VirtualClusterInstanceLogList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceLogList_To_management_VirtualClusterInstanceLogList(in, out, s) } -func autoConvert_management_UserClustersList_To_v1_UserClustersList(in *management.UserClustersList, out *UserClustersList, s conversion.Scope) error { +func autoConvert_management_VirtualClusterInstanceLogList_To_v1_VirtualClusterInstanceLogList(in *management.VirtualClusterInstanceLogList, out *VirtualClusterInstanceLogList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]UserClusters)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]VirtualClusterInstanceLog)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_UserClustersList_To_v1_UserClustersList is an autogenerated conversion function. -func Convert_management_UserClustersList_To_v1_UserClustersList(in *management.UserClustersList, out *UserClustersList, s conversion.Scope) error { - return autoConvert_management_UserClustersList_To_v1_UserClustersList(in, out, s) +// Convert_management_VirtualClusterInstanceLogList_To_v1_VirtualClusterInstanceLogList is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceLogList_To_v1_VirtualClusterInstanceLogList(in *management.VirtualClusterInstanceLogList, out *VirtualClusterInstanceLogList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceLogList_To_v1_VirtualClusterInstanceLogList(in, out, s) } -func autoConvert_v1_UserInfo_To_management_UserInfo(in *UserInfo, out *management.UserInfo, s conversion.Scope) error { - out.EntityInfo = in.EntityInfo - out.Teams = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Teams)) +func autoConvert_v1_VirtualClusterInstanceLogOptions_To_management_VirtualClusterInstanceLogOptions(in *VirtualClusterInstanceLogOptions, out *management.VirtualClusterInstanceLogOptions, s conversion.Scope) error { + out.Container = in.Container + out.Follow = in.Follow + out.Previous = in.Previous + out.SinceSeconds = (*int64)(unsafe.Pointer(in.SinceSeconds)) + out.SinceTime = (*metav1.Time)(unsafe.Pointer(in.SinceTime)) + out.Timestamps = in.Timestamps + out.TailLines = (*int64)(unsafe.Pointer(in.TailLines)) + out.LimitBytes = (*int64)(unsafe.Pointer(in.LimitBytes)) + out.InsecureSkipTLSVerifyBackend = in.InsecureSkipTLSVerifyBackend return nil } -// Convert_v1_UserInfo_To_management_UserInfo is an autogenerated conversion function. -func Convert_v1_UserInfo_To_management_UserInfo(in *UserInfo, out *management.UserInfo, s conversion.Scope) error { - return autoConvert_v1_UserInfo_To_management_UserInfo(in, out, s) +// Convert_v1_VirtualClusterInstanceLogOptions_To_management_VirtualClusterInstanceLogOptions is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceLogOptions_To_management_VirtualClusterInstanceLogOptions(in *VirtualClusterInstanceLogOptions, out *management.VirtualClusterInstanceLogOptions, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceLogOptions_To_management_VirtualClusterInstanceLogOptions(in, out, s) } -func autoConvert_management_UserInfo_To_v1_UserInfo(in *management.UserInfo, out *UserInfo, s conversion.Scope) error { - out.EntityInfo = in.EntityInfo - out.Teams = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Teams)) +func autoConvert_management_VirtualClusterInstanceLogOptions_To_v1_VirtualClusterInstanceLogOptions(in *management.VirtualClusterInstanceLogOptions, out *VirtualClusterInstanceLogOptions, s conversion.Scope) error { + out.Container = in.Container + out.Follow = in.Follow + out.Previous = in.Previous + out.SinceSeconds = (*int64)(unsafe.Pointer(in.SinceSeconds)) + out.SinceTime = (*metav1.Time)(unsafe.Pointer(in.SinceTime)) + out.Timestamps = in.Timestamps + out.TailLines = (*int64)(unsafe.Pointer(in.TailLines)) + out.LimitBytes = (*int64)(unsafe.Pointer(in.LimitBytes)) + out.InsecureSkipTLSVerifyBackend = in.InsecureSkipTLSVerifyBackend return nil } -// Convert_management_UserInfo_To_v1_UserInfo is an autogenerated conversion function. -func Convert_management_UserInfo_To_v1_UserInfo(in *management.UserInfo, out *UserInfo, s conversion.Scope) error { - return autoConvert_management_UserInfo_To_v1_UserInfo(in, out, s) -} - -func autoConvert_v1_UserList_To_management_UserList(in *UserList, out *management.UserList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.User)(unsafe.Pointer(&in.Items)) - return nil +// Convert_management_VirtualClusterInstanceLogOptions_To_v1_VirtualClusterInstanceLogOptions is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceLogOptions_To_v1_VirtualClusterInstanceLogOptions(in *management.VirtualClusterInstanceLogOptions, out *VirtualClusterInstanceLogOptions, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceLogOptions_To_v1_VirtualClusterInstanceLogOptions(in, out, s) } -// Convert_v1_UserList_To_management_UserList is an autogenerated conversion function. -func Convert_v1_UserList_To_management_UserList(in *UserList, out *management.UserList, s conversion.Scope) error { - return autoConvert_v1_UserList_To_management_UserList(in, out, s) -} +func autoConvert_url_Values_To_v1_VirtualClusterInstanceLogOptions(in *url.Values, out *VirtualClusterInstanceLogOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. -func autoConvert_management_UserList_To_v1_UserList(in *management.UserList, out *UserList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]User)(unsafe.Pointer(&in.Items)) + if values, ok := map[string][]string(*in)["container"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Container, s); err != nil { + return err + } + } else { + out.Container = "" + } + 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.Follow = false + } + if values, ok := map[string][]string(*in)["previous"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_bool(&values, &out.Previous, s); err != nil { + return err + } + } else { + out.Previous = false + } + if values, ok := map[string][]string(*in)["sinceSeconds"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.SinceSeconds, s); err != nil { + return err + } + } else { + out.SinceSeconds = nil + } + if values, ok := map[string][]string(*in)["sinceTime"]; ok && len(values) > 0 { + if err := metav1.Convert_Slice_string_To_Pointer_v1_Time(&values, &out.SinceTime, s); err != nil { + return err + } + } else { + out.SinceTime = nil + } + if values, ok := map[string][]string(*in)["timestamps"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_bool(&values, &out.Timestamps, s); err != nil { + return err + } + } else { + out.Timestamps = false + } + if values, ok := map[string][]string(*in)["tailLines"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.TailLines, s); err != nil { + return err + } + } else { + out.TailLines = nil + } + if values, ok := map[string][]string(*in)["limitBytes"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.LimitBytes, s); err != nil { + return err + } + } else { + out.LimitBytes = nil + } + if values, ok := map[string][]string(*in)["insecureSkipTLSVerifyBackend"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_bool(&values, &out.InsecureSkipTLSVerifyBackend, s); err != nil { + return err + } + } else { + out.InsecureSkipTLSVerifyBackend = false + } return nil } -// Convert_management_UserList_To_v1_UserList is an autogenerated conversion function. -func Convert_management_UserList_To_v1_UserList(in *management.UserList, out *UserList, s conversion.Scope) error { - return autoConvert_management_UserList_To_v1_UserList(in, out, s) +// Convert_url_Values_To_v1_VirtualClusterInstanceLogOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_VirtualClusterInstanceLogOptions(in *url.Values, out *VirtualClusterInstanceLogOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_VirtualClusterInstanceLogOptions(in, out, s) } -func autoConvert_v1_UserPermissions_To_management_UserPermissions(in *UserPermissions, out *management.UserPermissions, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterInstanceShell_To_management_VirtualClusterInstanceShell(in *VirtualClusterInstanceShell, out *management.VirtualClusterInstanceShell, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.ClusterRoles = *(*[]management.UserPermissionsRole)(unsafe.Pointer(&in.ClusterRoles)) - out.NamespaceRoles = *(*[]management.UserPermissionsRole)(unsafe.Pointer(&in.NamespaceRoles)) + if err := Convert_v1_VirtualClusterShellSpec_To_management_VirtualClusterShellSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_VirtualClusterShellStatus_To_management_VirtualClusterShellStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_UserPermissions_To_management_UserPermissions is an autogenerated conversion function. -func Convert_v1_UserPermissions_To_management_UserPermissions(in *UserPermissions, out *management.UserPermissions, s conversion.Scope) error { - return autoConvert_v1_UserPermissions_To_management_UserPermissions(in, out, s) +// Convert_v1_VirtualClusterInstanceShell_To_management_VirtualClusterInstanceShell is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceShell_To_management_VirtualClusterInstanceShell(in *VirtualClusterInstanceShell, out *management.VirtualClusterInstanceShell, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceShell_To_management_VirtualClusterInstanceShell(in, out, s) } -func autoConvert_management_UserPermissions_To_v1_UserPermissions(in *management.UserPermissions, out *UserPermissions, s conversion.Scope) error { +func autoConvert_management_VirtualClusterInstanceShell_To_v1_VirtualClusterInstanceShell(in *management.VirtualClusterInstanceShell, out *VirtualClusterInstanceShell, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.ClusterRoles = *(*[]UserPermissionsRole)(unsafe.Pointer(&in.ClusterRoles)) - out.NamespaceRoles = *(*[]UserPermissionsRole)(unsafe.Pointer(&in.NamespaceRoles)) + if err := Convert_management_VirtualClusterShellSpec_To_v1_VirtualClusterShellSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_VirtualClusterShellStatus_To_v1_VirtualClusterShellStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_UserPermissions_To_v1_UserPermissions is an autogenerated conversion function. -func Convert_management_UserPermissions_To_v1_UserPermissions(in *management.UserPermissions, out *UserPermissions, s conversion.Scope) error { - return autoConvert_management_UserPermissions_To_v1_UserPermissions(in, out, s) +// Convert_management_VirtualClusterInstanceShell_To_v1_VirtualClusterInstanceShell is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceShell_To_v1_VirtualClusterInstanceShell(in *management.VirtualClusterInstanceShell, out *VirtualClusterInstanceShell, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceShell_To_v1_VirtualClusterInstanceShell(in, out, s) } -func autoConvert_v1_UserPermissionsList_To_management_UserPermissionsList(in *UserPermissionsList, out *management.UserPermissionsList, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterInstanceShellList_To_management_VirtualClusterInstanceShellList(in *VirtualClusterInstanceShellList, out *management.VirtualClusterInstanceShellList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.UserPermissions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.VirtualClusterInstanceShell)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_UserPermissionsList_To_management_UserPermissionsList is an autogenerated conversion function. -func Convert_v1_UserPermissionsList_To_management_UserPermissionsList(in *UserPermissionsList, out *management.UserPermissionsList, s conversion.Scope) error { - return autoConvert_v1_UserPermissionsList_To_management_UserPermissionsList(in, out, s) +// Convert_v1_VirtualClusterInstanceShellList_To_management_VirtualClusterInstanceShellList is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceShellList_To_management_VirtualClusterInstanceShellList(in *VirtualClusterInstanceShellList, out *management.VirtualClusterInstanceShellList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceShellList_To_management_VirtualClusterInstanceShellList(in, out, s) } -func autoConvert_management_UserPermissionsList_To_v1_UserPermissionsList(in *management.UserPermissionsList, out *UserPermissionsList, s conversion.Scope) error { +func autoConvert_management_VirtualClusterInstanceShellList_To_v1_VirtualClusterInstanceShellList(in *management.VirtualClusterInstanceShellList, out *VirtualClusterInstanceShellList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]UserPermissions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]VirtualClusterInstanceShell)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_UserPermissionsList_To_v1_UserPermissionsList is an autogenerated conversion function. -func Convert_management_UserPermissionsList_To_v1_UserPermissionsList(in *management.UserPermissionsList, out *UserPermissionsList, s conversion.Scope) error { - return autoConvert_management_UserPermissionsList_To_v1_UserPermissionsList(in, out, s) +// Convert_management_VirtualClusterInstanceShellList_To_v1_VirtualClusterInstanceShellList is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceShellList_To_v1_VirtualClusterInstanceShellList(in *management.VirtualClusterInstanceShellList, out *VirtualClusterInstanceShellList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceShellList_To_v1_VirtualClusterInstanceShellList(in, out, s) } -func autoConvert_v1_UserPermissionsRole_To_management_UserPermissionsRole(in *UserPermissionsRole, out *management.UserPermissionsRole, s conversion.Scope) error { - out.ClusterRole = in.ClusterRole - out.Role = in.Role - out.Namespace = in.Namespace - out.Rules = *(*[]rbacv1.PolicyRule)(unsafe.Pointer(&in.Rules)) +func autoConvert_v1_VirtualClusterInstanceSnapshot_To_management_VirtualClusterInstanceSnapshot(in *VirtualClusterInstanceSnapshot, out *management.VirtualClusterInstanceSnapshot, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_VirtualClusterInstanceSnapshotStatus_To_management_VirtualClusterInstanceSnapshotStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_UserPermissionsRole_To_management_UserPermissionsRole is an autogenerated conversion function. -func Convert_v1_UserPermissionsRole_To_management_UserPermissionsRole(in *UserPermissionsRole, out *management.UserPermissionsRole, s conversion.Scope) error { - return autoConvert_v1_UserPermissionsRole_To_management_UserPermissionsRole(in, out, s) +// Convert_v1_VirtualClusterInstanceSnapshot_To_management_VirtualClusterInstanceSnapshot is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceSnapshot_To_management_VirtualClusterInstanceSnapshot(in *VirtualClusterInstanceSnapshot, out *management.VirtualClusterInstanceSnapshot, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceSnapshot_To_management_VirtualClusterInstanceSnapshot(in, out, s) } -func autoConvert_management_UserPermissionsRole_To_v1_UserPermissionsRole(in *management.UserPermissionsRole, out *UserPermissionsRole, s conversion.Scope) error { - out.ClusterRole = in.ClusterRole - out.Role = in.Role - out.Namespace = in.Namespace - out.Rules = *(*[]rbacv1.PolicyRule)(unsafe.Pointer(&in.Rules)) +func autoConvert_management_VirtualClusterInstanceSnapshot_To_v1_VirtualClusterInstanceSnapshot(in *management.VirtualClusterInstanceSnapshot, out *VirtualClusterInstanceSnapshot, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_VirtualClusterInstanceSnapshotStatus_To_v1_VirtualClusterInstanceSnapshotStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_UserPermissionsRole_To_v1_UserPermissionsRole is an autogenerated conversion function. -func Convert_management_UserPermissionsRole_To_v1_UserPermissionsRole(in *management.UserPermissionsRole, out *UserPermissionsRole, s conversion.Scope) error { - return autoConvert_management_UserPermissionsRole_To_v1_UserPermissionsRole(in, out, s) +// Convert_management_VirtualClusterInstanceSnapshot_To_v1_VirtualClusterInstanceSnapshot is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceSnapshot_To_v1_VirtualClusterInstanceSnapshot(in *management.VirtualClusterInstanceSnapshot, out *VirtualClusterInstanceSnapshot, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceSnapshot_To_v1_VirtualClusterInstanceSnapshot(in, out, s) } -func autoConvert_v1_UserProfile_To_management_UserProfile(in *UserProfile, out *management.UserProfile, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.DisplayName = in.DisplayName - out.Username = in.Username - out.Password = in.Password - out.CurrentPassword = in.CurrentPassword - out.Email = in.Email - out.Icon = (*string)(unsafe.Pointer(in.Icon)) - out.Custom = in.Custom +func autoConvert_v1_VirtualClusterInstanceSnapshotList_To_management_VirtualClusterInstanceSnapshotList(in *VirtualClusterInstanceSnapshotList, out *management.VirtualClusterInstanceSnapshotList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.VirtualClusterInstanceSnapshot)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_UserProfile_To_management_UserProfile is an autogenerated conversion function. -func Convert_v1_UserProfile_To_management_UserProfile(in *UserProfile, out *management.UserProfile, s conversion.Scope) error { - return autoConvert_v1_UserProfile_To_management_UserProfile(in, out, s) +// Convert_v1_VirtualClusterInstanceSnapshotList_To_management_VirtualClusterInstanceSnapshotList is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceSnapshotList_To_management_VirtualClusterInstanceSnapshotList(in *VirtualClusterInstanceSnapshotList, out *management.VirtualClusterInstanceSnapshotList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceSnapshotList_To_management_VirtualClusterInstanceSnapshotList(in, out, s) } -func autoConvert_management_UserProfile_To_v1_UserProfile(in *management.UserProfile, out *UserProfile, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.DisplayName = in.DisplayName - out.Username = in.Username - out.Password = in.Password - out.CurrentPassword = in.CurrentPassword - out.Email = in.Email - out.Icon = (*string)(unsafe.Pointer(in.Icon)) - out.Custom = in.Custom +func autoConvert_management_VirtualClusterInstanceSnapshotList_To_v1_VirtualClusterInstanceSnapshotList(in *management.VirtualClusterInstanceSnapshotList, out *VirtualClusterInstanceSnapshotList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]VirtualClusterInstanceSnapshot)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_UserProfile_To_v1_UserProfile is an autogenerated conversion function. -func Convert_management_UserProfile_To_v1_UserProfile(in *management.UserProfile, out *UserProfile, s conversion.Scope) error { - return autoConvert_management_UserProfile_To_v1_UserProfile(in, out, s) +// Convert_management_VirtualClusterInstanceSnapshotList_To_v1_VirtualClusterInstanceSnapshotList is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceSnapshotList_To_v1_VirtualClusterInstanceSnapshotList(in *management.VirtualClusterInstanceSnapshotList, out *VirtualClusterInstanceSnapshotList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceSnapshotList_To_v1_VirtualClusterInstanceSnapshotList(in, out, s) } -func autoConvert_v1_UserProfileList_To_management_UserProfileList(in *UserProfileList, out *management.UserProfileList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.UserProfile)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_VirtualClusterInstanceSnapshotStatus_To_management_VirtualClusterInstanceSnapshotStatus(in *VirtualClusterInstanceSnapshotStatus, out *management.VirtualClusterInstanceSnapshotStatus, s conversion.Scope) error { + out.SnapshotsTaken = *(*[]management.SnapshotTaken)(unsafe.Pointer(&in.SnapshotsTaken)) return nil } -// Convert_v1_UserProfileList_To_management_UserProfileList is an autogenerated conversion function. -func Convert_v1_UserProfileList_To_management_UserProfileList(in *UserProfileList, out *management.UserProfileList, s conversion.Scope) error { - return autoConvert_v1_UserProfileList_To_management_UserProfileList(in, out, s) +// Convert_v1_VirtualClusterInstanceSnapshotStatus_To_management_VirtualClusterInstanceSnapshotStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceSnapshotStatus_To_management_VirtualClusterInstanceSnapshotStatus(in *VirtualClusterInstanceSnapshotStatus, out *management.VirtualClusterInstanceSnapshotStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceSnapshotStatus_To_management_VirtualClusterInstanceSnapshotStatus(in, out, s) } -func autoConvert_management_UserProfileList_To_v1_UserProfileList(in *management.UserProfileList, out *UserProfileList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]UserProfile)(unsafe.Pointer(&in.Items)) +func autoConvert_management_VirtualClusterInstanceSnapshotStatus_To_v1_VirtualClusterInstanceSnapshotStatus(in *management.VirtualClusterInstanceSnapshotStatus, out *VirtualClusterInstanceSnapshotStatus, s conversion.Scope) error { + out.SnapshotsTaken = *(*[]SnapshotTaken)(unsafe.Pointer(&in.SnapshotsTaken)) return nil } -// Convert_management_UserProfileList_To_v1_UserProfileList is an autogenerated conversion function. -func Convert_management_UserProfileList_To_v1_UserProfileList(in *management.UserProfileList, out *UserProfileList, s conversion.Scope) error { - return autoConvert_management_UserProfileList_To_v1_UserProfileList(in, out, s) +// Convert_management_VirtualClusterInstanceSnapshotStatus_To_v1_VirtualClusterInstanceSnapshotStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceSnapshotStatus_To_v1_VirtualClusterInstanceSnapshotStatus(in *management.VirtualClusterInstanceSnapshotStatus, out *VirtualClusterInstanceSnapshotStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceSnapshotStatus_To_v1_VirtualClusterInstanceSnapshotStatus(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)) +func autoConvert_v1_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec(in *VirtualClusterInstanceSpec, out *management.VirtualClusterInstanceSpec, s conversion.Scope) error { + out.VirtualClusterInstanceSpec = in.VirtualClusterInstanceSpec return nil } -// Convert_v1_UserQuotasOptions_To_management_UserQuotasOptions is an autogenerated conversion function. -func Convert_v1_UserQuotasOptions_To_management_UserQuotasOptions(in *UserQuotasOptions, out *management.UserQuotasOptions, s conversion.Scope) error { - return autoConvert_v1_UserQuotasOptions_To_management_UserQuotasOptions(in, out, s) +// Convert_v1_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec(in *VirtualClusterInstanceSpec, out *management.VirtualClusterInstanceSpec, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec(in, out, s) } -func autoConvert_management_UserQuotasOptions_To_v1_UserQuotasOptions(in *management.UserQuotasOptions, out *UserQuotasOptions, s conversion.Scope) error { - out.Cluster = *(*[]string)(unsafe.Pointer(&in.Cluster)) +func autoConvert_management_VirtualClusterInstanceSpec_To_v1_VirtualClusterInstanceSpec(in *management.VirtualClusterInstanceSpec, out *VirtualClusterInstanceSpec, s conversion.Scope) error { + out.VirtualClusterInstanceSpec = in.VirtualClusterInstanceSpec return nil } -// Convert_management_UserQuotasOptions_To_v1_UserQuotasOptions is an autogenerated conversion function. -func Convert_management_UserQuotasOptions_To_v1_UserQuotasOptions(in *management.UserQuotasOptions, out *UserQuotasOptions, s conversion.Scope) error { - return autoConvert_management_UserQuotasOptions_To_v1_UserQuotasOptions(in, out, s) +// Convert_management_VirtualClusterInstanceSpec_To_v1_VirtualClusterInstanceSpec is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceSpec_To_v1_VirtualClusterInstanceSpec(in *management.VirtualClusterInstanceSpec, out *VirtualClusterInstanceSpec, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceSpec_To_v1_VirtualClusterInstanceSpec(in, out, s) } -func autoConvert_url_Values_To_v1_UserQuotasOptions(in *url.Values, out *UserQuotasOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. - - if values, ok := map[string][]string(*in)["cluster"]; ok && len(values) > 0 { - out.Cluster = *(*[]string)(unsafe.Pointer(&values)) - } else { - out.Cluster = nil - } +func autoConvert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterInstanceStatus(in *VirtualClusterInstanceStatus, out *management.VirtualClusterInstanceStatus, s conversion.Scope) error { + out.VirtualClusterInstanceStatus = in.VirtualClusterInstanceStatus + out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) + out.CanUse = in.CanUse + out.CanUpdate = in.CanUpdate + out.Online = in.Online return nil } -// Convert_url_Values_To_v1_UserQuotasOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_UserQuotasOptions(in *url.Values, out *UserQuotasOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_UserQuotasOptions(in, out, s) +// Convert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterInstanceStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterInstanceStatus(in *VirtualClusterInstanceStatus, out *management.VirtualClusterInstanceStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterInstanceStatus(in, out, s) } -func autoConvert_v1_UserSpacesOptions_To_management_UserSpacesOptions(in *UserSpacesOptions, out *management.UserSpacesOptions, s conversion.Scope) error { - out.Cluster = *(*[]string)(unsafe.Pointer(&in.Cluster)) +func autoConvert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(in *management.VirtualClusterInstanceStatus, out *VirtualClusterInstanceStatus, s conversion.Scope) error { + out.VirtualClusterInstanceStatus = in.VirtualClusterInstanceStatus + out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) + out.CanUse = in.CanUse + out.CanUpdate = in.CanUpdate + out.Online = in.Online return nil } -// Convert_v1_UserSpacesOptions_To_management_UserSpacesOptions is an autogenerated conversion function. -func Convert_v1_UserSpacesOptions_To_management_UserSpacesOptions(in *UserSpacesOptions, out *management.UserSpacesOptions, s conversion.Scope) error { - return autoConvert_v1_UserSpacesOptions_To_management_UserSpacesOptions(in, out, s) +// Convert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(in *management.VirtualClusterInstanceStatus, out *VirtualClusterInstanceStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(in, out, s) } -func autoConvert_management_UserSpacesOptions_To_v1_UserSpacesOptions(in *management.UserSpacesOptions, out *UserSpacesOptions, s conversion.Scope) error { - out.Cluster = *(*[]string)(unsafe.Pointer(&in.Cluster)) +func autoConvert_v1_VirtualClusterNodeAccessKey_To_management_VirtualClusterNodeAccessKey(in *VirtualClusterNodeAccessKey, out *management.VirtualClusterNodeAccessKey, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_VirtualClusterNodeAccessKeySpec_To_management_VirtualClusterNodeAccessKeySpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_VirtualClusterNodeAccessKeyStatus_To_management_VirtualClusterNodeAccessKeyStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_UserSpacesOptions_To_v1_UserSpacesOptions is an autogenerated conversion function. -func Convert_management_UserSpacesOptions_To_v1_UserSpacesOptions(in *management.UserSpacesOptions, out *UserSpacesOptions, s conversion.Scope) error { - return autoConvert_management_UserSpacesOptions_To_v1_UserSpacesOptions(in, out, s) +// Convert_v1_VirtualClusterNodeAccessKey_To_management_VirtualClusterNodeAccessKey is an autogenerated conversion function. +func Convert_v1_VirtualClusterNodeAccessKey_To_management_VirtualClusterNodeAccessKey(in *VirtualClusterNodeAccessKey, out *management.VirtualClusterNodeAccessKey, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterNodeAccessKey_To_management_VirtualClusterNodeAccessKey(in, out, s) } -func autoConvert_url_Values_To_v1_UserSpacesOptions(in *url.Values, out *UserSpacesOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. - - if values, ok := map[string][]string(*in)["cluster"]; ok && len(values) > 0 { - out.Cluster = *(*[]string)(unsafe.Pointer(&values)) - } else { - out.Cluster = nil +func autoConvert_management_VirtualClusterNodeAccessKey_To_v1_VirtualClusterNodeAccessKey(in *management.VirtualClusterNodeAccessKey, out *VirtualClusterNodeAccessKey, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_VirtualClusterNodeAccessKeySpec_To_v1_VirtualClusterNodeAccessKeySpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_VirtualClusterNodeAccessKeyStatus_To_v1_VirtualClusterNodeAccessKeyStatus(&in.Status, &out.Status, s); err != nil { + return err } return nil } -// Convert_url_Values_To_v1_UserSpacesOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_UserSpacesOptions(in *url.Values, out *UserSpacesOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_UserSpacesOptions(in, out, s) +// Convert_management_VirtualClusterNodeAccessKey_To_v1_VirtualClusterNodeAccessKey is an autogenerated conversion function. +func Convert_management_VirtualClusterNodeAccessKey_To_v1_VirtualClusterNodeAccessKey(in *management.VirtualClusterNodeAccessKey, out *VirtualClusterNodeAccessKey, s conversion.Scope) error { + return autoConvert_management_VirtualClusterNodeAccessKey_To_v1_VirtualClusterNodeAccessKey(in, out, s) } -func autoConvert_v1_UserSpec_To_management_UserSpec(in *UserSpec, out *management.UserSpec, s conversion.Scope) error { - out.UserSpec = in.UserSpec +func autoConvert_v1_VirtualClusterNodeAccessKeyList_To_management_VirtualClusterNodeAccessKeyList(in *VirtualClusterNodeAccessKeyList, out *management.VirtualClusterNodeAccessKeyList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.VirtualClusterNodeAccessKey)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_UserSpec_To_management_UserSpec is an autogenerated conversion function. -func Convert_v1_UserSpec_To_management_UserSpec(in *UserSpec, out *management.UserSpec, s conversion.Scope) error { - return autoConvert_v1_UserSpec_To_management_UserSpec(in, out, s) +// Convert_v1_VirtualClusterNodeAccessKeyList_To_management_VirtualClusterNodeAccessKeyList is an autogenerated conversion function. +func Convert_v1_VirtualClusterNodeAccessKeyList_To_management_VirtualClusterNodeAccessKeyList(in *VirtualClusterNodeAccessKeyList, out *management.VirtualClusterNodeAccessKeyList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterNodeAccessKeyList_To_management_VirtualClusterNodeAccessKeyList(in, out, s) } -func autoConvert_management_UserSpec_To_v1_UserSpec(in *management.UserSpec, out *UserSpec, s conversion.Scope) error { - out.UserSpec = in.UserSpec +func autoConvert_management_VirtualClusterNodeAccessKeyList_To_v1_VirtualClusterNodeAccessKeyList(in *management.VirtualClusterNodeAccessKeyList, out *VirtualClusterNodeAccessKeyList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]VirtualClusterNodeAccessKey)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_UserSpec_To_v1_UserSpec is an autogenerated conversion function. -func Convert_management_UserSpec_To_v1_UserSpec(in *management.UserSpec, out *UserSpec, s conversion.Scope) error { - return autoConvert_management_UserSpec_To_v1_UserSpec(in, out, s) +// Convert_management_VirtualClusterNodeAccessKeyList_To_v1_VirtualClusterNodeAccessKeyList is an autogenerated conversion function. +func Convert_management_VirtualClusterNodeAccessKeyList_To_v1_VirtualClusterNodeAccessKeyList(in *management.VirtualClusterNodeAccessKeyList, out *VirtualClusterNodeAccessKeyList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterNodeAccessKeyList_To_v1_VirtualClusterNodeAccessKeyList(in, out, s) } -func autoConvert_v1_UserStatus_To_management_UserStatus(in *UserStatus, out *management.UserStatus, s conversion.Scope) error { - out.UserStatus = in.UserStatus +func autoConvert_v1_VirtualClusterNodeAccessKeySpec_To_management_VirtualClusterNodeAccessKeySpec(in *VirtualClusterNodeAccessKeySpec, out *management.VirtualClusterNodeAccessKeySpec, s conversion.Scope) error { return nil } -// Convert_v1_UserStatus_To_management_UserStatus is an autogenerated conversion function. -func Convert_v1_UserStatus_To_management_UserStatus(in *UserStatus, out *management.UserStatus, s conversion.Scope) error { - return autoConvert_v1_UserStatus_To_management_UserStatus(in, out, s) +// Convert_v1_VirtualClusterNodeAccessKeySpec_To_management_VirtualClusterNodeAccessKeySpec is an autogenerated conversion function. +func Convert_v1_VirtualClusterNodeAccessKeySpec_To_management_VirtualClusterNodeAccessKeySpec(in *VirtualClusterNodeAccessKeySpec, out *management.VirtualClusterNodeAccessKeySpec, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterNodeAccessKeySpec_To_management_VirtualClusterNodeAccessKeySpec(in, out, s) } -func autoConvert_management_UserStatus_To_v1_UserStatus(in *management.UserStatus, out *UserStatus, s conversion.Scope) error { - out.UserStatus = in.UserStatus +func autoConvert_management_VirtualClusterNodeAccessKeySpec_To_v1_VirtualClusterNodeAccessKeySpec(in *management.VirtualClusterNodeAccessKeySpec, out *VirtualClusterNodeAccessKeySpec, s conversion.Scope) error { return nil } -// Convert_management_UserStatus_To_v1_UserStatus is an autogenerated conversion function. -func Convert_management_UserStatus_To_v1_UserStatus(in *management.UserStatus, out *UserStatus, s conversion.Scope) error { - return autoConvert_management_UserStatus_To_v1_UserStatus(in, out, s) +// Convert_management_VirtualClusterNodeAccessKeySpec_To_v1_VirtualClusterNodeAccessKeySpec is an autogenerated conversion function. +func Convert_management_VirtualClusterNodeAccessKeySpec_To_v1_VirtualClusterNodeAccessKeySpec(in *management.VirtualClusterNodeAccessKeySpec, out *VirtualClusterNodeAccessKeySpec, s conversion.Scope) error { + return autoConvert_management_VirtualClusterNodeAccessKeySpec_To_v1_VirtualClusterNodeAccessKeySpec(in, out, s) } -func autoConvert_v1_UserVirtualClustersOptions_To_management_UserVirtualClustersOptions(in *UserVirtualClustersOptions, out *management.UserVirtualClustersOptions, s conversion.Scope) error { - out.Cluster = *(*[]string)(unsafe.Pointer(&in.Cluster)) +func autoConvert_v1_VirtualClusterNodeAccessKeyStatus_To_management_VirtualClusterNodeAccessKeyStatus(in *VirtualClusterNodeAccessKeyStatus, out *management.VirtualClusterNodeAccessKeyStatus, s conversion.Scope) error { + out.AccessKey = in.AccessKey return nil } -// Convert_v1_UserVirtualClustersOptions_To_management_UserVirtualClustersOptions is an autogenerated conversion function. -func Convert_v1_UserVirtualClustersOptions_To_management_UserVirtualClustersOptions(in *UserVirtualClustersOptions, out *management.UserVirtualClustersOptions, s conversion.Scope) error { - return autoConvert_v1_UserVirtualClustersOptions_To_management_UserVirtualClustersOptions(in, out, s) +// Convert_v1_VirtualClusterNodeAccessKeyStatus_To_management_VirtualClusterNodeAccessKeyStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterNodeAccessKeyStatus_To_management_VirtualClusterNodeAccessKeyStatus(in *VirtualClusterNodeAccessKeyStatus, out *management.VirtualClusterNodeAccessKeyStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterNodeAccessKeyStatus_To_management_VirtualClusterNodeAccessKeyStatus(in, out, s) } -func autoConvert_management_UserVirtualClustersOptions_To_v1_UserVirtualClustersOptions(in *management.UserVirtualClustersOptions, out *UserVirtualClustersOptions, s conversion.Scope) error { - out.Cluster = *(*[]string)(unsafe.Pointer(&in.Cluster)) +func autoConvert_management_VirtualClusterNodeAccessKeyStatus_To_v1_VirtualClusterNodeAccessKeyStatus(in *management.VirtualClusterNodeAccessKeyStatus, out *VirtualClusterNodeAccessKeyStatus, s conversion.Scope) error { + out.AccessKey = in.AccessKey return nil } -// Convert_management_UserVirtualClustersOptions_To_v1_UserVirtualClustersOptions is an autogenerated conversion function. -func Convert_management_UserVirtualClustersOptions_To_v1_UserVirtualClustersOptions(in *management.UserVirtualClustersOptions, out *UserVirtualClustersOptions, s conversion.Scope) error { - return autoConvert_management_UserVirtualClustersOptions_To_v1_UserVirtualClustersOptions(in, out, s) +// Convert_management_VirtualClusterNodeAccessKeyStatus_To_v1_VirtualClusterNodeAccessKeyStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterNodeAccessKeyStatus_To_v1_VirtualClusterNodeAccessKeyStatus(in *management.VirtualClusterNodeAccessKeyStatus, out *VirtualClusterNodeAccessKeyStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterNodeAccessKeyStatus_To_v1_VirtualClusterNodeAccessKeyStatus(in, out, s) } -func autoConvert_url_Values_To_v1_UserVirtualClustersOptions(in *url.Values, out *UserVirtualClustersOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. - - if values, ok := map[string][]string(*in)["cluster"]; ok && len(values) > 0 { - out.Cluster = *(*[]string)(unsafe.Pointer(&values)) - } else { - out.Cluster = nil +func autoConvert_v1_VirtualClusterResourceUsage_To_management_VirtualClusterResourceUsage(in *VirtualClusterResourceUsage, out *management.VirtualClusterResourceUsage, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_VirtualClusterResourceUsageStatus_To_management_VirtualClusterResourceUsageStatus(&in.Status, &out.Status, s); err != nil { + return err } return nil } -// Convert_url_Values_To_v1_UserVirtualClustersOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_UserVirtualClustersOptions(in *url.Values, out *UserVirtualClustersOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_UserVirtualClustersOptions(in, out, s) +// Convert_v1_VirtualClusterResourceUsage_To_management_VirtualClusterResourceUsage is an autogenerated conversion function. +func Convert_v1_VirtualClusterResourceUsage_To_management_VirtualClusterResourceUsage(in *VirtualClusterResourceUsage, out *management.VirtualClusterResourceUsage, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterResourceUsage_To_management_VirtualClusterResourceUsage(in, out, s) } -func autoConvert_v1_VirtualClusterAccessKey_To_management_VirtualClusterAccessKey(in *VirtualClusterAccessKey, out *management.VirtualClusterAccessKey, s conversion.Scope) error { +func autoConvert_management_VirtualClusterResourceUsage_To_v1_VirtualClusterResourceUsage(in *management.VirtualClusterResourceUsage, out *VirtualClusterResourceUsage, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey + if err := Convert_management_VirtualClusterResourceUsageStatus_To_v1_VirtualClusterResourceUsageStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_VirtualClusterAccessKey_To_management_VirtualClusterAccessKey is an autogenerated conversion function. -func Convert_v1_VirtualClusterAccessKey_To_management_VirtualClusterAccessKey(in *VirtualClusterAccessKey, out *management.VirtualClusterAccessKey, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterAccessKey_To_management_VirtualClusterAccessKey(in, out, s) +// Convert_management_VirtualClusterResourceUsage_To_v1_VirtualClusterResourceUsage is an autogenerated conversion function. +func Convert_management_VirtualClusterResourceUsage_To_v1_VirtualClusterResourceUsage(in *management.VirtualClusterResourceUsage, out *VirtualClusterResourceUsage, s conversion.Scope) error { + return autoConvert_management_VirtualClusterResourceUsage_To_v1_VirtualClusterResourceUsage(in, out, s) } -func autoConvert_management_VirtualClusterAccessKey_To_v1_VirtualClusterAccessKey(in *management.VirtualClusterAccessKey, out *VirtualClusterAccessKey, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey +func autoConvert_v1_VirtualClusterResourceUsageList_To_management_VirtualClusterResourceUsageList(in *VirtualClusterResourceUsageList, out *management.VirtualClusterResourceUsageList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.VirtualClusterResourceUsage)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_VirtualClusterAccessKey_To_v1_VirtualClusterAccessKey is an autogenerated conversion function. -func Convert_management_VirtualClusterAccessKey_To_v1_VirtualClusterAccessKey(in *management.VirtualClusterAccessKey, out *VirtualClusterAccessKey, s conversion.Scope) error { - return autoConvert_management_VirtualClusterAccessKey_To_v1_VirtualClusterAccessKey(in, out, s) +// Convert_v1_VirtualClusterResourceUsageList_To_management_VirtualClusterResourceUsageList is an autogenerated conversion function. +func Convert_v1_VirtualClusterResourceUsageList_To_management_VirtualClusterResourceUsageList(in *VirtualClusterResourceUsageList, out *management.VirtualClusterResourceUsageList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterResourceUsageList_To_management_VirtualClusterResourceUsageList(in, out, s) } -func autoConvert_v1_VirtualClusterAccessKeyList_To_management_VirtualClusterAccessKeyList(in *VirtualClusterAccessKeyList, out *management.VirtualClusterAccessKeyList, s conversion.Scope) error { +func autoConvert_management_VirtualClusterResourceUsageList_To_v1_VirtualClusterResourceUsageList(in *management.VirtualClusterResourceUsageList, out *VirtualClusterResourceUsageList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.VirtualClusterAccessKey)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]VirtualClusterResourceUsage)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_VirtualClusterAccessKeyList_To_management_VirtualClusterAccessKeyList is an autogenerated conversion function. -func Convert_v1_VirtualClusterAccessKeyList_To_management_VirtualClusterAccessKeyList(in *VirtualClusterAccessKeyList, out *management.VirtualClusterAccessKeyList, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterAccessKeyList_To_management_VirtualClusterAccessKeyList(in, out, s) +// Convert_management_VirtualClusterResourceUsageList_To_v1_VirtualClusterResourceUsageList is an autogenerated conversion function. +func Convert_management_VirtualClusterResourceUsageList_To_v1_VirtualClusterResourceUsageList(in *management.VirtualClusterResourceUsageList, out *VirtualClusterResourceUsageList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterResourceUsageList_To_v1_VirtualClusterResourceUsageList(in, out, s) } -func autoConvert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKeyList(in *management.VirtualClusterAccessKeyList, out *VirtualClusterAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]VirtualClusterAccessKey)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_VirtualClusterResourceUsageMap_To_management_VirtualClusterResourceUsageMap(in *VirtualClusterResourceUsageMap, out *management.VirtualClusterResourceUsageMap, s conversion.Scope) error { + out.Nodes = in.Nodes + out.Capacity = *(*map[string]int)(unsafe.Pointer(&in.Capacity)) return nil } -// Convert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKeyList is an autogenerated conversion function. -func Convert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKeyList(in *management.VirtualClusterAccessKeyList, out *VirtualClusterAccessKeyList, s conversion.Scope) error { - return autoConvert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKeyList(in, out, s) +// Convert_v1_VirtualClusterResourceUsageMap_To_management_VirtualClusterResourceUsageMap is an autogenerated conversion function. +func Convert_v1_VirtualClusterResourceUsageMap_To_management_VirtualClusterResourceUsageMap(in *VirtualClusterResourceUsageMap, out *management.VirtualClusterResourceUsageMap, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterResourceUsageMap_To_management_VirtualClusterResourceUsageMap(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 { +func autoConvert_management_VirtualClusterResourceUsageMap_To_v1_VirtualClusterResourceUsageMap(in *management.VirtualClusterResourceUsageMap, out *VirtualClusterResourceUsageMap, s conversion.Scope) error { + out.Nodes = in.Nodes + out.Capacity = *(*map[string]int)(unsafe.Pointer(&in.Capacity)) + return nil +} + +// Convert_management_VirtualClusterResourceUsageMap_To_v1_VirtualClusterResourceUsageMap is an autogenerated conversion function. +func Convert_management_VirtualClusterResourceUsageMap_To_v1_VirtualClusterResourceUsageMap(in *management.VirtualClusterResourceUsageMap, out *VirtualClusterResourceUsageMap, s conversion.Scope) error { + return autoConvert_management_VirtualClusterResourceUsageMap_To_v1_VirtualClusterResourceUsageMap(in, out, s) +} + +func autoConvert_v1_VirtualClusterResourceUsageStatus_To_management_VirtualClusterResourceUsageStatus(in *VirtualClusterResourceUsageStatus, out *management.VirtualClusterResourceUsageStatus, s conversion.Scope) error { + if err := Convert_v1_VirtualClusterResourceUsageMap_To_management_VirtualClusterResourceUsageMap(&in.ResourceUsage, &out.ResourceUsage, s); err != nil { return err } - if err := Convert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterInstanceStatus(&in.Status, &out.Status, s); err != nil { + return nil +} + +// Convert_v1_VirtualClusterResourceUsageStatus_To_management_VirtualClusterResourceUsageStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterResourceUsageStatus_To_management_VirtualClusterResourceUsageStatus(in *VirtualClusterResourceUsageStatus, out *management.VirtualClusterResourceUsageStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterResourceUsageStatus_To_management_VirtualClusterResourceUsageStatus(in, out, s) +} + +func autoConvert_management_VirtualClusterResourceUsageStatus_To_v1_VirtualClusterResourceUsageStatus(in *management.VirtualClusterResourceUsageStatus, out *VirtualClusterResourceUsageStatus, s conversion.Scope) error { + if err := Convert_management_VirtualClusterResourceUsageMap_To_v1_VirtualClusterResourceUsageMap(&in.ResourceUsage, &out.ResourceUsage, s); err != nil { return err } return nil } -// Convert_v1_VirtualClusterInstance_To_management_VirtualClusterInstance is an autogenerated conversion function. -func Convert_v1_VirtualClusterInstance_To_management_VirtualClusterInstance(in *VirtualClusterInstance, out *management.VirtualClusterInstance, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterInstance_To_management_VirtualClusterInstance(in, out, s) +// Convert_management_VirtualClusterResourceUsageStatus_To_v1_VirtualClusterResourceUsageStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterResourceUsageStatus_To_v1_VirtualClusterResourceUsageStatus(in *management.VirtualClusterResourceUsageStatus, out *VirtualClusterResourceUsageStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterResourceUsageStatus_To_v1_VirtualClusterResourceUsageStatus(in, out, s) } -func autoConvert_management_VirtualClusterInstance_To_v1_VirtualClusterInstance(in *management.VirtualClusterInstance, out *VirtualClusterInstance, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_VirtualClusterInstanceSpec_To_v1_VirtualClusterInstanceSpec(&in.Spec, &out.Spec, s); err != nil { +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 } - if err := Convert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(&in.Status, &out.Status, s); err != nil { + out.Role = in.Role + if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { return err } return nil } -// Convert_management_VirtualClusterInstance_To_v1_VirtualClusterInstance is an autogenerated conversion function. -func Convert_management_VirtualClusterInstance_To_v1_VirtualClusterInstance(in *management.VirtualClusterInstance, out *VirtualClusterInstance, s conversion.Scope) error { - return autoConvert_management_VirtualClusterInstance_To_v1_VirtualClusterInstance(in, out, s) +// 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 } -func autoConvert_v1_VirtualClusterInstanceKubeConfig_To_management_VirtualClusterInstanceKubeConfig(in *VirtualClusterInstanceKubeConfig, out *management.VirtualClusterInstanceKubeConfig, s conversion.Scope) error { +// 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_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_VirtualClusterInstanceKubeConfig_To_management_VirtualClusterInstanceKubeConfig is an autogenerated conversion function. -func Convert_v1_VirtualClusterInstanceKubeConfig_To_management_VirtualClusterInstanceKubeConfig(in *VirtualClusterInstanceKubeConfig, out *management.VirtualClusterInstanceKubeConfig, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterInstanceKubeConfig_To_management_VirtualClusterInstanceKubeConfig(in, out, s) +// 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_VirtualClusterInstanceKubeConfig_To_v1_VirtualClusterInstanceKubeConfig(in *management.VirtualClusterInstanceKubeConfig, out *VirtualClusterInstanceKubeConfig, s conversion.Scope) error { +func autoConvert_management_VirtualClusterSchema_To_v1_VirtualClusterSchema(in *management.VirtualClusterSchema, out *VirtualClusterSchema, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_VirtualClusterInstanceKubeConfig_To_v1_VirtualClusterInstanceKubeConfig is an autogenerated conversion function. -func Convert_management_VirtualClusterInstanceKubeConfig_To_v1_VirtualClusterInstanceKubeConfig(in *management.VirtualClusterInstanceKubeConfig, out *VirtualClusterInstanceKubeConfig, s conversion.Scope) error { - return autoConvert_management_VirtualClusterInstanceKubeConfig_To_v1_VirtualClusterInstanceKubeConfig(in, out, s) +// 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_VirtualClusterInstanceKubeConfigList_To_management_VirtualClusterInstanceKubeConfigList(in *VirtualClusterInstanceKubeConfigList, out *management.VirtualClusterInstanceKubeConfigList, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterSchemaList_To_management_VirtualClusterSchemaList(in *VirtualClusterSchemaList, out *management.VirtualClusterSchemaList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.VirtualClusterInstanceKubeConfig)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.VirtualClusterSchema)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_VirtualClusterInstanceKubeConfigList_To_management_VirtualClusterInstanceKubeConfigList is an autogenerated conversion function. -func Convert_v1_VirtualClusterInstanceKubeConfigList_To_management_VirtualClusterInstanceKubeConfigList(in *VirtualClusterInstanceKubeConfigList, out *management.VirtualClusterInstanceKubeConfigList, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterInstanceKubeConfigList_To_management_VirtualClusterInstanceKubeConfigList(in, out, s) +// 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_VirtualClusterInstanceKubeConfigList_To_v1_VirtualClusterInstanceKubeConfigList(in *management.VirtualClusterInstanceKubeConfigList, out *VirtualClusterInstanceKubeConfigList, s conversion.Scope) error { +func autoConvert_management_VirtualClusterSchemaList_To_v1_VirtualClusterSchemaList(in *management.VirtualClusterSchemaList, out *VirtualClusterSchemaList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]VirtualClusterInstanceKubeConfig)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]VirtualClusterSchema)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_VirtualClusterInstanceKubeConfigList_To_v1_VirtualClusterInstanceKubeConfigList is an autogenerated conversion function. -func Convert_management_VirtualClusterInstanceKubeConfigList_To_v1_VirtualClusterInstanceKubeConfigList(in *management.VirtualClusterInstanceKubeConfigList, out *VirtualClusterInstanceKubeConfigList, s conversion.Scope) error { - return autoConvert_management_VirtualClusterInstanceKubeConfigList_To_v1_VirtualClusterInstanceKubeConfigList(in, out, s) +// 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_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec(in *VirtualClusterInstanceKubeConfigSpec, out *management.VirtualClusterInstanceKubeConfigSpec, s conversion.Scope) error { - out.CertificateTTL = (*int32)(unsafe.Pointer(in.CertificateTTL)) +func autoConvert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(in *VirtualClusterSchemaSpec, out *management.VirtualClusterSchemaSpec, s conversion.Scope) error { + out.Version = in.Version return nil } -// Convert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec is an autogenerated conversion function. -func Convert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec(in *VirtualClusterInstanceKubeConfigSpec, out *management.VirtualClusterInstanceKubeConfigSpec, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec(in, out, s) +// 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_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec(in *management.VirtualClusterInstanceKubeConfigSpec, out *VirtualClusterInstanceKubeConfigSpec, s conversion.Scope) error { - out.CertificateTTL = (*int32)(unsafe.Pointer(in.CertificateTTL)) +func autoConvert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec(in *management.VirtualClusterSchemaSpec, out *VirtualClusterSchemaSpec, s conversion.Scope) error { + out.Version = in.Version return nil } -// Convert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec is an autogenerated conversion function. -func Convert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec(in *management.VirtualClusterInstanceKubeConfigSpec, out *VirtualClusterInstanceKubeConfigSpec, s conversion.Scope) error { - return autoConvert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec(in, out, s) +// 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_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus(in *VirtualClusterInstanceKubeConfigStatus, out *management.VirtualClusterInstanceKubeConfigStatus, s conversion.Scope) error { - out.KubeConfig = in.KubeConfig +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_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus is an autogenerated conversion function. -func Convert_v1_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus(in *VirtualClusterInstanceKubeConfigStatus, out *management.VirtualClusterInstanceKubeConfigStatus, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus(in, out, s) +// 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_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus(in *management.VirtualClusterInstanceKubeConfigStatus, out *VirtualClusterInstanceKubeConfigStatus, s conversion.Scope) error { - out.KubeConfig = in.KubeConfig +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_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus is an autogenerated conversion function. -func Convert_management_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus(in *management.VirtualClusterInstanceKubeConfigStatus, out *VirtualClusterInstanceKubeConfigStatus, s conversion.Scope) error { - return autoConvert_management_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus(in, out, s) +// 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_VirtualClusterInstanceList_To_management_VirtualClusterInstanceList(in *VirtualClusterInstanceList, out *management.VirtualClusterInstanceList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.VirtualClusterInstance)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_VirtualClusterShellSpec_To_management_VirtualClusterShellSpec(in *VirtualClusterShellSpec, out *management.VirtualClusterShellSpec, s conversion.Scope) error { return nil } -// Convert_v1_VirtualClusterInstanceList_To_management_VirtualClusterInstanceList is an autogenerated conversion function. -func Convert_v1_VirtualClusterInstanceList_To_management_VirtualClusterInstanceList(in *VirtualClusterInstanceList, out *management.VirtualClusterInstanceList, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterInstanceList_To_management_VirtualClusterInstanceList(in, out, s) +// Convert_v1_VirtualClusterShellSpec_To_management_VirtualClusterShellSpec is an autogenerated conversion function. +func Convert_v1_VirtualClusterShellSpec_To_management_VirtualClusterShellSpec(in *VirtualClusterShellSpec, out *management.VirtualClusterShellSpec, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterShellSpec_To_management_VirtualClusterShellSpec(in, out, s) } -func autoConvert_management_VirtualClusterInstanceList_To_v1_VirtualClusterInstanceList(in *management.VirtualClusterInstanceList, out *VirtualClusterInstanceList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]VirtualClusterInstance)(unsafe.Pointer(&in.Items)) +func autoConvert_management_VirtualClusterShellSpec_To_v1_VirtualClusterShellSpec(in *management.VirtualClusterShellSpec, out *VirtualClusterShellSpec, s conversion.Scope) error { return nil } -// Convert_management_VirtualClusterInstanceList_To_v1_VirtualClusterInstanceList is an autogenerated conversion function. -func Convert_management_VirtualClusterInstanceList_To_v1_VirtualClusterInstanceList(in *management.VirtualClusterInstanceList, out *VirtualClusterInstanceList, s conversion.Scope) error { - return autoConvert_management_VirtualClusterInstanceList_To_v1_VirtualClusterInstanceList(in, out, s) +// Convert_management_VirtualClusterShellSpec_To_v1_VirtualClusterShellSpec is an autogenerated conversion function. +func Convert_management_VirtualClusterShellSpec_To_v1_VirtualClusterShellSpec(in *management.VirtualClusterShellSpec, out *VirtualClusterShellSpec, s conversion.Scope) error { + return autoConvert_management_VirtualClusterShellSpec_To_v1_VirtualClusterShellSpec(in, out, s) } -func autoConvert_v1_VirtualClusterInstanceLog_To_management_VirtualClusterInstanceLog(in *VirtualClusterInstanceLog, out *management.VirtualClusterInstanceLog, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta +func autoConvert_v1_VirtualClusterShellStatus_To_management_VirtualClusterShellStatus(in *VirtualClusterShellStatus, out *management.VirtualClusterShellStatus, s conversion.Scope) error { + out.PodName = in.PodName + out.PodNamespace = in.PodNamespace return nil } -// Convert_v1_VirtualClusterInstanceLog_To_management_VirtualClusterInstanceLog is an autogenerated conversion function. -func Convert_v1_VirtualClusterInstanceLog_To_management_VirtualClusterInstanceLog(in *VirtualClusterInstanceLog, out *management.VirtualClusterInstanceLog, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterInstanceLog_To_management_VirtualClusterInstanceLog(in, out, s) +// Convert_v1_VirtualClusterShellStatus_To_management_VirtualClusterShellStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterShellStatus_To_management_VirtualClusterShellStatus(in *VirtualClusterShellStatus, out *management.VirtualClusterShellStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterShellStatus_To_management_VirtualClusterShellStatus(in, out, s) } -func autoConvert_management_VirtualClusterInstanceLog_To_v1_VirtualClusterInstanceLog(in *management.VirtualClusterInstanceLog, out *VirtualClusterInstanceLog, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta +func autoConvert_management_VirtualClusterShellStatus_To_v1_VirtualClusterShellStatus(in *management.VirtualClusterShellStatus, out *VirtualClusterShellStatus, s conversion.Scope) error { + out.PodName = in.PodName + out.PodNamespace = in.PodNamespace return nil } -// Convert_management_VirtualClusterInstanceLog_To_v1_VirtualClusterInstanceLog is an autogenerated conversion function. -func Convert_management_VirtualClusterInstanceLog_To_v1_VirtualClusterInstanceLog(in *management.VirtualClusterInstanceLog, out *VirtualClusterInstanceLog, s conversion.Scope) error { - return autoConvert_management_VirtualClusterInstanceLog_To_v1_VirtualClusterInstanceLog(in, out, s) +// Convert_management_VirtualClusterShellStatus_To_v1_VirtualClusterShellStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterShellStatus_To_v1_VirtualClusterShellStatus(in *management.VirtualClusterShellStatus, out *VirtualClusterShellStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterShellStatus_To_v1_VirtualClusterShellStatus(in, out, s) } -func autoConvert_v1_VirtualClusterInstanceLogList_To_management_VirtualClusterInstanceLogList(in *VirtualClusterInstanceLogList, out *management.VirtualClusterInstanceLogList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.VirtualClusterInstanceLog)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_VirtualClusterStandalone_To_management_VirtualClusterStandalone(in *VirtualClusterStandalone, out *management.VirtualClusterStandalone, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_VirtualClusterStandaloneSpec_To_management_VirtualClusterStandaloneSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_VirtualClusterStandaloneStatus_To_management_VirtualClusterStandaloneStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_VirtualClusterInstanceLogList_To_management_VirtualClusterInstanceLogList is an autogenerated conversion function. -func Convert_v1_VirtualClusterInstanceLogList_To_management_VirtualClusterInstanceLogList(in *VirtualClusterInstanceLogList, out *management.VirtualClusterInstanceLogList, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterInstanceLogList_To_management_VirtualClusterInstanceLogList(in, out, s) +// Convert_v1_VirtualClusterStandalone_To_management_VirtualClusterStandalone is an autogenerated conversion function. +func Convert_v1_VirtualClusterStandalone_To_management_VirtualClusterStandalone(in *VirtualClusterStandalone, out *management.VirtualClusterStandalone, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterStandalone_To_management_VirtualClusterStandalone(in, out, s) } -func autoConvert_management_VirtualClusterInstanceLogList_To_v1_VirtualClusterInstanceLogList(in *management.VirtualClusterInstanceLogList, out *VirtualClusterInstanceLogList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]VirtualClusterInstanceLog)(unsafe.Pointer(&in.Items)) +func autoConvert_management_VirtualClusterStandalone_To_v1_VirtualClusterStandalone(in *management.VirtualClusterStandalone, out *VirtualClusterStandalone, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_VirtualClusterStandaloneSpec_To_v1_VirtualClusterStandaloneSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_VirtualClusterStandaloneStatus_To_v1_VirtualClusterStandaloneStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_VirtualClusterInstanceLogList_To_v1_VirtualClusterInstanceLogList is an autogenerated conversion function. -func Convert_management_VirtualClusterInstanceLogList_To_v1_VirtualClusterInstanceLogList(in *management.VirtualClusterInstanceLogList, out *VirtualClusterInstanceLogList, s conversion.Scope) error { - return autoConvert_management_VirtualClusterInstanceLogList_To_v1_VirtualClusterInstanceLogList(in, out, s) +// Convert_management_VirtualClusterStandalone_To_v1_VirtualClusterStandalone is an autogenerated conversion function. +func Convert_management_VirtualClusterStandalone_To_v1_VirtualClusterStandalone(in *management.VirtualClusterStandalone, out *VirtualClusterStandalone, s conversion.Scope) error { + return autoConvert_management_VirtualClusterStandalone_To_v1_VirtualClusterStandalone(in, out, s) } -func autoConvert_v1_VirtualClusterInstanceLogOptions_To_management_VirtualClusterInstanceLogOptions(in *VirtualClusterInstanceLogOptions, out *management.VirtualClusterInstanceLogOptions, s conversion.Scope) error { - out.Container = in.Container - out.Follow = in.Follow - out.Previous = in.Previous - out.SinceSeconds = (*int64)(unsafe.Pointer(in.SinceSeconds)) - out.SinceTime = (*metav1.Time)(unsafe.Pointer(in.SinceTime)) - out.Timestamps = in.Timestamps - out.TailLines = (*int64)(unsafe.Pointer(in.TailLines)) - out.LimitBytes = (*int64)(unsafe.Pointer(in.LimitBytes)) - out.InsecureSkipTLSVerifyBackend = in.InsecureSkipTLSVerifyBackend +func autoConvert_v1_VirtualClusterStandaloneList_To_management_VirtualClusterStandaloneList(in *VirtualClusterStandaloneList, out *management.VirtualClusterStandaloneList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.VirtualClusterStandalone)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_VirtualClusterInstanceLogOptions_To_management_VirtualClusterInstanceLogOptions is an autogenerated conversion function. -func Convert_v1_VirtualClusterInstanceLogOptions_To_management_VirtualClusterInstanceLogOptions(in *VirtualClusterInstanceLogOptions, out *management.VirtualClusterInstanceLogOptions, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterInstanceLogOptions_To_management_VirtualClusterInstanceLogOptions(in, out, s) +// Convert_v1_VirtualClusterStandaloneList_To_management_VirtualClusterStandaloneList is an autogenerated conversion function. +func Convert_v1_VirtualClusterStandaloneList_To_management_VirtualClusterStandaloneList(in *VirtualClusterStandaloneList, out *management.VirtualClusterStandaloneList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterStandaloneList_To_management_VirtualClusterStandaloneList(in, out, s) } -func autoConvert_management_VirtualClusterInstanceLogOptions_To_v1_VirtualClusterInstanceLogOptions(in *management.VirtualClusterInstanceLogOptions, out *VirtualClusterInstanceLogOptions, s conversion.Scope) error { - out.Container = in.Container - out.Follow = in.Follow - out.Previous = in.Previous - out.SinceSeconds = (*int64)(unsafe.Pointer(in.SinceSeconds)) - out.SinceTime = (*metav1.Time)(unsafe.Pointer(in.SinceTime)) - out.Timestamps = in.Timestamps - out.TailLines = (*int64)(unsafe.Pointer(in.TailLines)) - out.LimitBytes = (*int64)(unsafe.Pointer(in.LimitBytes)) - out.InsecureSkipTLSVerifyBackend = in.InsecureSkipTLSVerifyBackend +func autoConvert_management_VirtualClusterStandaloneList_To_v1_VirtualClusterStandaloneList(in *management.VirtualClusterStandaloneList, out *VirtualClusterStandaloneList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]VirtualClusterStandalone)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_VirtualClusterInstanceLogOptions_To_v1_VirtualClusterInstanceLogOptions is an autogenerated conversion function. -func Convert_management_VirtualClusterInstanceLogOptions_To_v1_VirtualClusterInstanceLogOptions(in *management.VirtualClusterInstanceLogOptions, out *VirtualClusterInstanceLogOptions, s conversion.Scope) error { - return autoConvert_management_VirtualClusterInstanceLogOptions_To_v1_VirtualClusterInstanceLogOptions(in, out, s) +// Convert_management_VirtualClusterStandaloneList_To_v1_VirtualClusterStandaloneList is an autogenerated conversion function. +func Convert_management_VirtualClusterStandaloneList_To_v1_VirtualClusterStandaloneList(in *management.VirtualClusterStandaloneList, out *VirtualClusterStandaloneList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterStandaloneList_To_v1_VirtualClusterStandaloneList(in, out, s) } -func autoConvert_url_Values_To_v1_VirtualClusterInstanceLogOptions(in *url.Values, out *VirtualClusterInstanceLogOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. - - if values, ok := map[string][]string(*in)["container"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.Container, s); err != nil { - return err - } - } else { - out.Container = "" - } - 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.Follow = false - } - if values, ok := map[string][]string(*in)["previous"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.Previous, s); err != nil { - return err - } - } else { - out.Previous = false - } - if values, ok := map[string][]string(*in)["sinceSeconds"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.SinceSeconds, s); err != nil { - return err - } - } else { - out.SinceSeconds = nil - } - if values, ok := map[string][]string(*in)["sinceTime"]; ok && len(values) > 0 { - if err := metav1.Convert_Slice_string_To_Pointer_v1_Time(&values, &out.SinceTime, s); err != nil { - return err - } - } else { - out.SinceTime = nil - } - if values, ok := map[string][]string(*in)["timestamps"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.Timestamps, s); err != nil { - return err - } - } else { - out.Timestamps = false - } - if values, ok := map[string][]string(*in)["tailLines"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.TailLines, s); err != nil { - return err - } - } else { - out.TailLines = nil - } - if values, ok := map[string][]string(*in)["limitBytes"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.LimitBytes, s); err != nil { - return err - } - } else { - out.LimitBytes = nil +func autoConvert_v1_VirtualClusterStandaloneSpec_To_management_VirtualClusterStandaloneSpec(in *VirtualClusterStandaloneSpec, out *management.VirtualClusterStandaloneSpec, s conversion.Scope) error { + if err := Convert_v1_StandaloneEtcdPeer_To_management_StandaloneEtcdPeer(&in.CurrentPeer, &out.CurrentPeer, s); err != nil { + return err } - if values, ok := map[string][]string(*in)["insecureSkipTLSVerifyBackend"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.InsecureSkipTLSVerifyBackend, s); err != nil { - return err - } - } else { - out.InsecureSkipTLSVerifyBackend = false + if err := Convert_v1_StandalonePKI_To_management_StandalonePKI(&in.CurrentPKI, &out.CurrentPKI, s); err != nil { + return err } return nil } -// Convert_url_Values_To_v1_VirtualClusterInstanceLogOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_VirtualClusterInstanceLogOptions(in *url.Values, out *VirtualClusterInstanceLogOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_VirtualClusterInstanceLogOptions(in, out, s) -} - -func autoConvert_v1_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec(in *VirtualClusterInstanceSpec, out *management.VirtualClusterInstanceSpec, s conversion.Scope) error { - out.VirtualClusterInstanceSpec = in.VirtualClusterInstanceSpec - return nil -} - -// Convert_v1_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec is an autogenerated conversion function. -func Convert_v1_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec(in *VirtualClusterInstanceSpec, out *management.VirtualClusterInstanceSpec, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec(in, out, s) +// Convert_v1_VirtualClusterStandaloneSpec_To_management_VirtualClusterStandaloneSpec is an autogenerated conversion function. +func Convert_v1_VirtualClusterStandaloneSpec_To_management_VirtualClusterStandaloneSpec(in *VirtualClusterStandaloneSpec, out *management.VirtualClusterStandaloneSpec, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterStandaloneSpec_To_management_VirtualClusterStandaloneSpec(in, out, s) } -func autoConvert_management_VirtualClusterInstanceSpec_To_v1_VirtualClusterInstanceSpec(in *management.VirtualClusterInstanceSpec, out *VirtualClusterInstanceSpec, s conversion.Scope) error { - out.VirtualClusterInstanceSpec = in.VirtualClusterInstanceSpec +func autoConvert_management_VirtualClusterStandaloneSpec_To_v1_VirtualClusterStandaloneSpec(in *management.VirtualClusterStandaloneSpec, out *VirtualClusterStandaloneSpec, s conversion.Scope) error { + if err := Convert_management_StandaloneEtcdPeer_To_v1_StandaloneEtcdPeer(&in.CurrentPeer, &out.CurrentPeer, s); err != nil { + return err + } + if err := Convert_management_StandalonePKI_To_v1_StandalonePKI(&in.CurrentPKI, &out.CurrentPKI, s); err != nil { + return err + } return nil } -// Convert_management_VirtualClusterInstanceSpec_To_v1_VirtualClusterInstanceSpec is an autogenerated conversion function. -func Convert_management_VirtualClusterInstanceSpec_To_v1_VirtualClusterInstanceSpec(in *management.VirtualClusterInstanceSpec, out *VirtualClusterInstanceSpec, s conversion.Scope) error { - return autoConvert_management_VirtualClusterInstanceSpec_To_v1_VirtualClusterInstanceSpec(in, out, s) +// Convert_management_VirtualClusterStandaloneSpec_To_v1_VirtualClusterStandaloneSpec is an autogenerated conversion function. +func Convert_management_VirtualClusterStandaloneSpec_To_v1_VirtualClusterStandaloneSpec(in *management.VirtualClusterStandaloneSpec, out *VirtualClusterStandaloneSpec, s conversion.Scope) error { + return autoConvert_management_VirtualClusterStandaloneSpec_To_v1_VirtualClusterStandaloneSpec(in, out, s) } -func autoConvert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterInstanceStatus(in *VirtualClusterInstanceStatus, out *management.VirtualClusterInstanceStatus, s conversion.Scope) error { - out.VirtualClusterInstanceStatus = in.VirtualClusterInstanceStatus - out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) - out.CanUse = in.CanUse - out.CanUpdate = in.CanUpdate - out.Online = in.Online +func autoConvert_v1_VirtualClusterStandaloneStatus_To_management_VirtualClusterStandaloneStatus(in *VirtualClusterStandaloneStatus, out *management.VirtualClusterStandaloneStatus, s conversion.Scope) error { + out.ETCDPeers = *(*[]management.StandaloneEtcdPeerCoordinator)(unsafe.Pointer(&in.ETCDPeers)) + if err := Convert_v1_StandalonePKI_To_management_StandalonePKI(&in.PKI, &out.PKI, s); err != nil { + return err + } return nil } -// Convert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterInstanceStatus is an autogenerated conversion function. -func Convert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterInstanceStatus(in *VirtualClusterInstanceStatus, out *management.VirtualClusterInstanceStatus, s conversion.Scope) error { - return autoConvert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterInstanceStatus(in, out, s) +// Convert_v1_VirtualClusterStandaloneStatus_To_management_VirtualClusterStandaloneStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterStandaloneStatus_To_management_VirtualClusterStandaloneStatus(in *VirtualClusterStandaloneStatus, out *management.VirtualClusterStandaloneStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterStandaloneStatus_To_management_VirtualClusterStandaloneStatus(in, out, s) } -func autoConvert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(in *management.VirtualClusterInstanceStatus, out *VirtualClusterInstanceStatus, s conversion.Scope) error { - out.VirtualClusterInstanceStatus = in.VirtualClusterInstanceStatus - out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) - out.CanUse = in.CanUse - out.CanUpdate = in.CanUpdate - out.Online = in.Online +func autoConvert_management_VirtualClusterStandaloneStatus_To_v1_VirtualClusterStandaloneStatus(in *management.VirtualClusterStandaloneStatus, out *VirtualClusterStandaloneStatus, s conversion.Scope) error { + out.ETCDPeers = *(*[]StandaloneEtcdPeerCoordinator)(unsafe.Pointer(&in.ETCDPeers)) + if err := Convert_management_StandalonePKI_To_v1_StandalonePKI(&in.PKI, &out.PKI, s); err != nil { + return err + } return nil } -// Convert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus is an autogenerated conversion function. -func Convert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(in *management.VirtualClusterInstanceStatus, out *VirtualClusterInstanceStatus, s conversion.Scope) error { - return autoConvert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(in, out, s) +// Convert_management_VirtualClusterStandaloneStatus_To_v1_VirtualClusterStandaloneStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterStandaloneStatus_To_v1_VirtualClusterStandaloneStatus(in *management.VirtualClusterStandaloneStatus, out *VirtualClusterStandaloneStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterStandaloneStatus_To_v1_VirtualClusterStandaloneStatus(in, out, s) } func autoConvert_v1_VirtualClusterTemplate_To_management_VirtualClusterTemplate(in *VirtualClusterTemplate, out *management.VirtualClusterTemplate, s conversion.Scope) error { @@ -9975,3 +12088,57 @@ func autoConvert_management_VirtualClusterTemplateStatus_To_v1_VirtualClusterTem func Convert_management_VirtualClusterTemplateStatus_To_v1_VirtualClusterTemplateStatus(in *management.VirtualClusterTemplateStatus, out *VirtualClusterTemplateStatus, s conversion.Scope) error { return autoConvert_management_VirtualClusterTemplateStatus_To_v1_VirtualClusterTemplateStatus(in, out, s) } + +func autoConvert_v1_VolumeSnapshotRequestStatus_To_management_VolumeSnapshotRequestStatus(in *VolumeSnapshotRequestStatus, out *management.VolumeSnapshotRequestStatus, s conversion.Scope) error { + out.Phase = in.Phase + if err := Convert_v1_SnapshotRequestError_To_management_SnapshotRequestError(&in.Error, &out.Error, s); err != nil { + return err + } + return nil +} + +// Convert_v1_VolumeSnapshotRequestStatus_To_management_VolumeSnapshotRequestStatus is an autogenerated conversion function. +func Convert_v1_VolumeSnapshotRequestStatus_To_management_VolumeSnapshotRequestStatus(in *VolumeSnapshotRequestStatus, out *management.VolumeSnapshotRequestStatus, s conversion.Scope) error { + return autoConvert_v1_VolumeSnapshotRequestStatus_To_management_VolumeSnapshotRequestStatus(in, out, s) +} + +func autoConvert_management_VolumeSnapshotRequestStatus_To_v1_VolumeSnapshotRequestStatus(in *management.VolumeSnapshotRequestStatus, out *VolumeSnapshotRequestStatus, s conversion.Scope) error { + out.Phase = in.Phase + if err := Convert_management_SnapshotRequestError_To_v1_SnapshotRequestError(&in.Error, &out.Error, s); err != nil { + return err + } + return nil +} + +// Convert_management_VolumeSnapshotRequestStatus_To_v1_VolumeSnapshotRequestStatus is an autogenerated conversion function. +func Convert_management_VolumeSnapshotRequestStatus_To_v1_VolumeSnapshotRequestStatus(in *management.VolumeSnapshotRequestStatus, out *VolumeSnapshotRequestStatus, s conversion.Scope) error { + return autoConvert_management_VolumeSnapshotRequestStatus_To_v1_VolumeSnapshotRequestStatus(in, out, s) +} + +func autoConvert_v1_VolumeSnapshotsRequestStatus_To_management_VolumeSnapshotsRequestStatus(in *VolumeSnapshotsRequestStatus, out *management.VolumeSnapshotsRequestStatus, s conversion.Scope) error { + out.Phase = in.Phase + out.Snapshots = *(*map[string]management.VolumeSnapshotRequestStatus)(unsafe.Pointer(&in.Snapshots)) + if err := Convert_v1_SnapshotRequestError_To_management_SnapshotRequestError(&in.Error, &out.Error, s); err != nil { + return err + } + return nil +} + +// Convert_v1_VolumeSnapshotsRequestStatus_To_management_VolumeSnapshotsRequestStatus is an autogenerated conversion function. +func Convert_v1_VolumeSnapshotsRequestStatus_To_management_VolumeSnapshotsRequestStatus(in *VolumeSnapshotsRequestStatus, out *management.VolumeSnapshotsRequestStatus, s conversion.Scope) error { + return autoConvert_v1_VolumeSnapshotsRequestStatus_To_management_VolumeSnapshotsRequestStatus(in, out, s) +} + +func autoConvert_management_VolumeSnapshotsRequestStatus_To_v1_VolumeSnapshotsRequestStatus(in *management.VolumeSnapshotsRequestStatus, out *VolumeSnapshotsRequestStatus, s conversion.Scope) error { + out.Phase = in.Phase + out.Snapshots = *(*map[string]VolumeSnapshotRequestStatus)(unsafe.Pointer(&in.Snapshots)) + if err := Convert_management_SnapshotRequestError_To_v1_SnapshotRequestError(&in.Error, &out.Error, s); err != nil { + return err + } + return nil +} + +// Convert_management_VolumeSnapshotsRequestStatus_To_v1_VolumeSnapshotsRequestStatus is an autogenerated conversion function. +func Convert_management_VolumeSnapshotsRequestStatus_To_v1_VolumeSnapshotsRequestStatus(in *management.VolumeSnapshotsRequestStatus, out *VolumeSnapshotsRequestStatus, s conversion.Scope) error { + return autoConvert_management_VolumeSnapshotsRequestStatus_To_v1_VolumeSnapshotsRequestStatus(in, out, s) +} diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index 0dbb4fb9..289ff00f 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -12,7 +12,9 @@ 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" + resource "k8s.io/apimachinery/pkg/api/resource" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -153,6 +155,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 +460,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 +761,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 +1041,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 +1206,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 +1359,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 +1908,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 +1922,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 +2038,26 @@ 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.PlatformDB != nil { + in, out := &in.PlatformDB, &out.PlatformDB + *out = new(PlatformDB) + **out = **in + } + if in.ImageBuilder != nil { + in, out := &in.ImageBuilder, &out.ImageBuilder + *out = new(ImageBuilder) + (*in).DeepCopyInto(*out) + } return } @@ -2188,174 +2235,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 +2411,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 +2444,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 *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 DevPodStopOptions. -func (in *DevPodStopOptions) DeepCopy() *DevPodStopOptions { +// 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(DevPodStopOptions) + out := new(DirectClusterEndpointToken) 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 *DirectClusterEndpointToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2475,30 +2504,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 *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([]DevPodStopOptions, len(*in)) - copy(*out, *in) + *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 DevPodStopOptionsList. -func (in *DevPodStopOptionsList) DeepCopy() *DevPodStopOptionsList { +// 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(DevPodStopOptionsList) + out := new(DirectClusterEndpointTokenList) 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 *DirectClusterEndpointTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2506,83 +2537,64 @@ 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 *DirectClusterEndpointTokenSpec) DeepCopyInto(out *DirectClusterEndpointTokenSpec) { *out = *in - out.TypeMeta = in.TypeMeta + 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 DevPodUpOptions. -func (in *DevPodUpOptions) DeepCopy() *DevPodUpOptions { +// 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(DevPodUpOptions) + out := new(DirectClusterEndpointTokenSpec) 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 *DirectClusterEndpointTokenStatus) DeepCopyInto(out *DirectClusterEndpointTokenStatus) { *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 DirectClusterEndpointTokenStatus. +func (in *DirectClusterEndpointTokenStatus) DeepCopy() *DirectClusterEndpointTokenStatus { if in == nil { return nil } - out := new(DevPodUpOptionsList) + out := new(DirectClusterEndpointTokenStatus) 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) { +func (in *Event) DeepCopyInto(out *Event) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) + out.Spec = in.Spec in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstance. -func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event. +func (in *Event) DeepCopy() *Event { if in == nil { return nil } - out := new(DevPodWorkspaceInstance) + out := new(Event) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { +func (in *Event) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2590,13 +2602,13 @@ 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 *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([]DevPodWorkspaceInstance, len(*in)) + *out = make([]Event, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2604,18 +2616,18 @@ func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceList. -func (in *DevPodWorkspaceInstanceList) DeepCopy() *DevPodWorkspaceInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventList. +func (in *EventList) DeepCopy() *EventList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceList) + out := new(EventList) 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 *EventList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2623,42 +2635,60 @@ 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 *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.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) + in.Event.DeepCopyInto(&out.Event) 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 EventStatus. +func (in *EventStatus) DeepCopy() *EventStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + 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 *DevPodWorkspaceInstanceState) DeepCopyInto(out *DevPodWorkspaceInstanceState) { +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 DevPodWorkspaceInstanceState. -func (in *DevPodWorkspaceInstanceState) DeepCopy() *DevPodWorkspaceInstanceState { +// 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(DevPodWorkspaceInstanceState) + out := new(Feature) 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 *Feature) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2666,13 +2696,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 *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([]DevPodWorkspaceInstanceState, len(*in)) + *out = make([]Feature, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2680,18 +2710,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 FeatureList. +func (in *FeatureList) DeepCopy() *FeatureList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStateList) + out := new(FeatureList) 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 *FeatureList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2699,144 +2729,117 @@ 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) { +func (in *FeatureSpec) DeepCopyInto(out *FeatureSpec) { *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 { +// 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(DevPodWorkspaceInstanceStatus) + 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 *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { +func (in *FeatureStatus) DeepCopyInto(out *FeatureStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + out.Feature = in.Feature 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 FeatureStatus. +func (in *FeatureStatus) DeepCopy() *FeatureStatus { if in == nil { return nil } - out := new(DevPodWorkspaceTemplate) + out := new(FeatureStatus) 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) { +func (in *GroupResources) DeepCopyInto(out *GroupResources) { *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 + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = make([]string, len(*in)) + copy(*out, *in) } - 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 + if in.ResourceNames != nil { + in, out := &in.ResourceNames, &out.ResourceNames + *out = make([]string, len(*in)) + copy(*out, *in) } - 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 { +// 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(DevPodWorkspaceTemplateSpec) + 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 *DevPodWorkspaceTemplateStatus) DeepCopyInto(out *DevPodWorkspaceTemplateStatus) { +func (in *ImageBuilder) DeepCopyInto(out *ImageBuilder) { *out = *in - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus + 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 DevPodWorkspaceTemplateStatus. -func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { +// 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(DevPodWorkspaceTemplateStatus) + 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 *DirectClusterEndpointToken) DeepCopyInto(out *DirectClusterEndpointToken) { +func (in *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { *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 DirectClusterEndpointToken. -func (in *DirectClusterEndpointToken) DeepCopy() *DirectClusterEndpointToken { +// 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(DirectClusterEndpointToken) + out := new(IngressAuthToken) 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 *IngressAuthToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2844,13 +2847,13 @@ 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 *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([]DirectClusterEndpointToken, len(*in)) + *out = make([]IngressAuthToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2858,18 +2861,18 @@ func (in *DirectClusterEndpointTokenList) DeepCopyInto(out *DirectClusterEndpoin 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 IngressAuthTokenList. +func (in *IngressAuthTokenList) DeepCopy() *IngressAuthTokenList { if in == nil { return nil } - out := new(DirectClusterEndpointTokenList) + out := new(IngressAuthTokenList) 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 *IngressAuthTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2877,64 +2880,59 @@ 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 *IngressAuthTokenSpec) DeepCopyInto(out *IngressAuthTokenSpec) { *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 { +// 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(DirectClusterEndpointTokenSpec) + 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 *DirectClusterEndpointTokenStatus) DeepCopyInto(out *DirectClusterEndpointTokenStatus) { +func (in *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { *out = *in 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 IngressAuthTokenStatus. +func (in *IngressAuthTokenStatus) DeepCopy() *IngressAuthTokenStatus { if in == nil { return nil } - out := new(DirectClusterEndpointTokenStatus) + 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 *Event) DeepCopyInto(out *Event) { +func (in *Kiosk) DeepCopyInto(out *Kiosk) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) + in.Spec.DeepCopyInto(&out.Spec) + 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 Kiosk. +func (in *Kiosk) DeepCopy() *Kiosk { if in == nil { return nil } - out := new(Event) + out := new(Kiosk) 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 *Kiosk) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2942,13 +2940,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 *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([]Event, len(*in)) + *out = make([]Kiosk, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2956,18 +2954,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 KioskList. +func (in *KioskList) DeepCopy() *KioskList { if in == nil { return nil } - out := new(EventList) + out := new(KioskList) 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 *KioskList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2975,40 +2973,53 @@ 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 *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) + in.NodeProviderBCMNodeWithResources.DeepCopyInto(&out.NodeProviderBCMNodeWithResources) + in.NodeProviderBCMGetResourcesResult.DeepCopyInto(&out.NodeProviderBCMGetResourcesResult) + out.NodeProviderBCMTestConnectionResult = in.NodeProviderBCMTestConnectionResult + out.NodeProviderCalculateCostResult = in.NodeProviderCalculateCostResult + out.NodeProviderTerraformValidateResult = in.NodeProviderTerraformValidateResult + out.NodeProviderExecResult = in.NodeProviderExecResult + in.NodeClaimData.DeepCopyInto(&out.NodeClaimData) + in.NodeEnvironmentData.DeepCopyInto(&out.NodeEnvironmentData) 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 KioskSpec. +func (in *KioskSpec) DeepCopy() *KioskSpec { if in == nil { return nil } - out := new(EventSpec) + 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 *EventStatus) DeepCopyInto(out *EventStatus) { +func (in *KioskStatus) DeepCopyInto(out *KioskStatus) { *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 KioskStatus. +func (in *KioskStatus) DeepCopy() *KioskStatus { if in == nil { return nil } - out := new(EventStatus) + 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 *Feature) DeepCopyInto(out *Feature) { +func (in *License) DeepCopyInto(out *License) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3017,18 +3028,18 @@ func (in *Feature) DeepCopyInto(out *Feature) { 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 License. +func (in *License) DeepCopy() *License { if in == nil { return nil } - out := new(Feature) + out := new(License) 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 *License) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3036,13 +3047,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 *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([]Feature, len(*in)) + *out = make([]License, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3050,18 +3061,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 LicenseList. +func (in *LicenseList) DeepCopy() *LicenseList { if in == nil { return nil } - out := new(FeatureList) + out := new(LicenseList) 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 *LicenseList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3069,195 +3080,169 @@ 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 *LicenseRequest) DeepCopyInto(out *LicenseRequest) { *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 FeatureSpec. -func (in *FeatureSpec) DeepCopy() *FeatureSpec { +// 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(FeatureSpec) + out := new(LicenseRequest) 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 +// 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 } - out := new(FeatureStatus) - 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 *GitEnvironmentTemplate) DeepCopyInto(out *GitEnvironmentTemplate) { +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 GitEnvironmentTemplate. -func (in *GitEnvironmentTemplate) DeepCopy() *GitEnvironmentTemplate { +// 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(GitEnvironmentTemplate) + out := new(LicenseRequestList) 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 +// 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 } - out := new(GroupResources) - 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 *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { +func (in *LicenseRequestSpec) DeepCopyInto(out *LicenseRequestSpec) { *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 { +// 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(IngressAuthToken) + out := new(LicenseRequestSpec) 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) { +func (in *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { *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 { +// 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(IngressAuthTokenList) + out := new(LicenseRequestStatus) 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) { +func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec) { *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 LicenseSpec. +func (in *LicenseSpec) DeepCopy() *LicenseSpec { if in == nil { return nil } - out := new(IngressAuthTokenSpec) + 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 *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { +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() + } + } + if in.PlatformDatabase != nil { + in, out := &in.PlatformDatabase, &out.PlatformDatabase + *out = new(licenseapi.PlatformDatabase) + **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 LicenseStatus. +func (in *LicenseStatus) DeepCopy() *LicenseStatus { if in == nil { return nil } - out := new(IngressAuthTokenStatus) + 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 *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 +3250,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 +3264,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 +3283,89 @@ 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 +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NamespacedNameArgs) DeepCopyInto(out *NamespacedNameArgs) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedNameArgs. +func (in *NamespacedNameArgs) DeepCopy() *NamespacedNameArgs { + if in == nil { + return nil } - return nil + out := new(NamespacedNameArgs) + in.DeepCopyInto(out) + return out } // 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 +3374,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 +3393,49 @@ 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 *NodeClaimData) DeepCopyInto(out *NodeClaimData) { + *out = *in + if in.State != nil { + in, out := &in.State, &out.State + *out = make([]byte, len(*in)) + copy(*out, *in) + } + if in.Operations != nil { + in, out := &in.Operations, &out.Operations + *out = make(map[string]*Operation, len(*in)) + for key, val := range *in { + var outVal *Operation + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(Operation) + (*in).DeepCopyInto(*out) + } + (*out)[key] = outVal + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimData. +func (in *NodeClaimData) DeepCopy() *NodeClaimData { + if in == nil { + return nil + } + out := new(NodeClaimData) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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 +3443,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,123 +3462,116 @@ 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) { +func (in *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { *out = *in - in.Input.DeepCopyInto(&out.Input) + in.NodeClaimSpec.DeepCopyInto(&out.NodeClaimSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestSpec. -func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { +// 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(LicenseRequestSpec) + 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 *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { +func (in *NodeClaimStatus) DeepCopyInto(out *NodeClaimStatus) { *out = *in - if in.Output != nil { - in, out := &in.Output, &out.Output - *out = new(licenseapi.GenericRequestOutput) - (*in).DeepCopyInto(*out) - } + in.NodeClaimStatus.DeepCopyInto(&out.NodeClaimStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestStatus. -func (in *LicenseRequestStatus) DeepCopy() *LicenseRequestStatus { +// 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(LicenseRequestStatus) + 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 *LicenseSpec) DeepCopyInto(out *LicenseSpec) { +func (in *NodeEnvironment) DeepCopyInto(out *NodeEnvironment) { *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 LicenseSpec. -func (in *LicenseSpec) DeepCopy() *LicenseSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeEnvironment. +func (in *NodeEnvironment) DeepCopy() *NodeEnvironment { if in == nil { return nil } - out := new(LicenseSpec) + out := new(NodeEnvironment) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeEnvironment) 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 *LicenseStatus) DeepCopyInto(out *LicenseStatus) { +func (in *NodeEnvironmentData) DeepCopyInto(out *NodeEnvironmentData) { *out = *in - if in.License != nil { - in, out := &in.License, &out.License - *out = new(licenseapi.License) - (*in).DeepCopyInto(*out) + if in.Outputs != nil { + in, out := &in.Outputs, &out.Outputs + *out = make([]byte, len(*in)) + copy(*out, *in) } - if in.ResourceUsage != nil { - in, out := &in.ResourceUsage, &out.ResourceUsage - *out = make(map[string]licenseapi.ResourceCount, len(*in)) + if in.State != nil { + in, out := &in.State, &out.State + *out = make([]byte, len(*in)) + copy(*out, *in) + } + if in.Operations != nil { + in, out := &in.Operations, &out.Operations + *out = make(map[string]*Operation, len(*in)) for key, val := range *in { - (*out)[key] = *val.DeepCopy() + var outVal *Operation + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(Operation) + (*in).DeepCopyInto(*out) + } + (*out)[key] = outVal } } 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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeEnvironmentData. +func (in *NodeEnvironmentData) DeepCopy() *NodeEnvironmentData { if in == nil { return nil } - out := new(LicenseToken) + out := new(NodeEnvironmentData) 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) { +func (in *NodeEnvironmentList) DeepCopyInto(out *NodeEnvironmentList) { *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([]NodeEnvironment, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3582,18 +3579,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 NodeEnvironmentList. +func (in *NodeEnvironmentList) DeepCopy() *NodeEnvironmentList { if in == nil { return nil } - out := new(LicenseTokenList) + out := new(NodeEnvironmentList) 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 *NodeEnvironmentList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3601,64 +3598,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 *NodeEnvironmentSpec) DeepCopyInto(out *NodeEnvironmentSpec) { *out = *in + in.NodeEnvironmentSpec.DeepCopyInto(&out.NodeEnvironmentSpec) 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 NodeEnvironmentSpec. +func (in *NodeEnvironmentSpec) DeepCopy() *NodeEnvironmentSpec { if in == nil { return nil } - out := new(LicenseTokenSpec) + out := new(NodeEnvironmentSpec) 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 *NodeEnvironmentStatus) DeepCopyInto(out *NodeEnvironmentStatus) { *out = *in - if in.Token != nil { - in, out := &in.Token, &out.Token - *out = new(licenseapi.InstanceTokenAuth) - **out = **in - } + in.NodeEnvironmentStatus.DeepCopyInto(&out.NodeEnvironmentStatus) 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 NodeEnvironmentStatus. +func (in *NodeEnvironmentStatus) DeepCopy() *NodeEnvironmentStatus { if in == nil { return nil } - out := new(LicenseTokenStatus) + out := new(NodeEnvironmentStatus) 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 *NodeProvider) DeepCopyInto(out *NodeProvider) { *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 NodeProvider. +func (in *NodeProvider) DeepCopy() *NodeProvider { if in == nil { return nil } - out := new(LoftUpgrade) + out := new(NodeProvider) 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 *NodeProvider) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3666,13 +3660,18 @@ 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 *NodeProviderBCMGetResourcesResult) DeepCopyInto(out *NodeProviderBCMGetResourcesResult) { *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)) + if in.Nodes != nil { + in, out := &in.Nodes, &out.Nodes + *out = make([]NodeProviderBCMNodeWithResources, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.NodeGroups != nil { + in, out := &in.NodeGroups, &out.NodeGroups + *out = make([]NodeProviderBCMNodeGroup, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3680,101 +3679,118 @@ 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 NodeProviderBCMGetResourcesResult. +func (in *NodeProviderBCMGetResourcesResult) DeepCopy() *NodeProviderBCMGetResourcesResult { if in == nil { return nil } - out := new(LoftUpgradeList) + out := new(NodeProviderBCMGetResourcesResult) 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 { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NodeProviderBCMNodeGroup) DeepCopyInto(out *NodeProviderBCMNodeGroup) { + *out = *in + if in.Nodes != nil { + in, out := &in.Nodes, &out.Nodes + *out = make([]string, len(*in)) + copy(*out, *in) } - return nil + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderBCMNodeGroup. +func (in *NodeProviderBCMNodeGroup) DeepCopy() *NodeProviderBCMNodeGroup { + if in == nil { + return nil + } + out := new(NodeProviderBCMNodeGroup) + in.DeepCopyInto(out) + return out } // 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 *NodeProviderBCMNodeWithResources) DeepCopyInto(out *NodeProviderBCMNodeWithResources) { *out = *in + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = new(corev1.ResourceList) + if **in != nil { + in, out := *in, *out + *out = make(map[corev1.ResourceName]resource.Quantity, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } + } 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 NodeProviderBCMNodeWithResources. +func (in *NodeProviderBCMNodeWithResources) DeepCopy() *NodeProviderBCMNodeWithResources { if in == nil { return nil } - out := new(LoftUpgradeSpec) + out := new(NodeProviderBCMNodeWithResources) 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 *NodeProviderBCMTestConnectionResult) DeepCopyInto(out *NodeProviderBCMTestConnectionResult) { *out = *in 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 NodeProviderBCMTestConnectionResult. +func (in *NodeProviderBCMTestConnectionResult) DeepCopy() *NodeProviderBCMTestConnectionResult { if in == nil { return nil } - out := new(LoftUpgradeStatus) + out := new(NodeProviderBCMTestConnectionResult) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OIDC) DeepCopyInto(out *OIDC) { +func (in *NodeProviderCalculateCostResult) DeepCopyInto(out *NodeProviderCalculateCostResult) { *out = *in - if in.Clients != nil { - in, out := &in.Clients, &out.Clients - *out = make([]OIDCClientSpec, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDC. -func (in *OIDC) DeepCopy() *OIDC { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderCalculateCostResult. +func (in *NodeProviderCalculateCostResult) DeepCopy() *NodeProviderCalculateCostResult { if in == nil { return nil } - out := new(OIDC) + out := new(NodeProviderCalculateCostResult) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OIDCClient) DeepCopyInto(out *OIDCClient) { +func (in *NodeProviderExec) DeepCopyInto(out *NodeProviderExec) { *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 } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClient. -func (in *OIDCClient) DeepCopy() *OIDCClient { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderExec. +func (in *NodeProviderExec) DeepCopy() *NodeProviderExec { if in == nil { return nil } - out := new(OIDCClient) + out := new(NodeProviderExec) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OIDCClient) DeepCopyObject() runtime.Object { +func (in *NodeProviderExec) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3782,13 +3798,13 @@ func (in *OIDCClient) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OIDCClientList) DeepCopyInto(out *OIDCClientList) { +func (in *NodeProviderExecList) DeepCopyInto(out *NodeProviderExecList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]OIDCClient, len(*in)) + *out = make([]NodeProviderExec, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3796,18 +3812,18 @@ func (in *OIDCClientList) DeepCopyInto(out *OIDCClientList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClientList. -func (in *OIDCClientList) DeepCopy() *OIDCClientList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderExecList. +func (in *NodeProviderExecList) DeepCopy() *NodeProviderExecList { if in == nil { return nil } - out := new(OIDCClientList) + out := new(NodeProviderExecList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OIDCClientList) DeepCopyObject() runtime.Object { +func (in *NodeProviderExecList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3815,78 +3831,63 @@ func (in *OIDCClientList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OIDCClientSpec) DeepCopyInto(out *OIDCClientSpec) { +func (in *NodeProviderExecResult) DeepCopyInto(out *NodeProviderExecResult) { *out = *in - if in.RedirectURIs != nil { - in, out := &in.RedirectURIs, &out.RedirectURIs - *out = make([]string, len(*in)) - copy(*out, *in) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClientSpec. -func (in *OIDCClientSpec) DeepCopy() *OIDCClientSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderExecResult. +func (in *NodeProviderExecResult) DeepCopy() *NodeProviderExecResult { if in == nil { return nil } - out := new(OIDCClientSpec) + out := new(NodeProviderExecResult) 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 *NodeProviderExecSpec) DeepCopyInto(out *NodeProviderExecSpec) { *out = *in + in.Args.DeepCopyInto(&out.Args) 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 NodeProviderExecSpec. +func (in *NodeProviderExecSpec) DeepCopy() *NodeProviderExecSpec { if in == nil { return nil } - out := new(OIDCClientStatus) + out := new(NodeProviderExecSpec) 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) { +func (in *NodeProviderExecStatus) DeepCopyInto(out *NodeProviderExecStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.Result.DeepCopyInto(&out.Result) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKey. -func (in *OwnedAccessKey) DeepCopy() *OwnedAccessKey { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderExecStatus. +func (in *NodeProviderExecStatus) DeepCopy() *NodeProviderExecStatus { if in == nil { return nil } - out := new(OwnedAccessKey) + out := new(NodeProviderExecStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OwnedAccessKey) 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 *OwnedAccessKeyList) DeepCopyInto(out *OwnedAccessKeyList) { +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([]OwnedAccessKey, len(*in)) + *out = make([]NodeProvider, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3894,18 +3895,18 @@ func (in *OwnedAccessKeyList) DeepCopyInto(out *OwnedAccessKeyList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeyList. -func (in *OwnedAccessKeyList) DeepCopy() *OwnedAccessKeyList { +// 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(OwnedAccessKeyList) + out := new(NodeProviderList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OwnedAccessKeyList) DeepCopyObject() runtime.Object { +func (in *NodeProviderList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3913,90 +3914,57 @@ func (in *OwnedAccessKeyList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OwnedAccessKeySpec) DeepCopyInto(out *OwnedAccessKeySpec) { - *out = *in - in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeySpec. -func (in *OwnedAccessKeySpec) DeepCopy() *OwnedAccessKeySpec { - if in == nil { - return nil - } - out := new(OwnedAccessKeySpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OwnedAccessKeyStatus) DeepCopyInto(out *OwnedAccessKeyStatus) { +func (in *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { *out = *in - in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) + in.NodeProviderSpec.DeepCopyInto(&out.NodeProviderSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeyStatus. -func (in *OwnedAccessKeyStatus) DeepCopy() *OwnedAccessKeyStatus { +// 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(OwnedAccessKeyStatus) + 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 *PredefinedApp) DeepCopyInto(out *PredefinedApp) { +func (in *NodeProviderStatus) DeepCopyInto(out *NodeProviderStatus) { *out = *in - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make([]string, len(*in)) - copy(*out, *in) - } + in.NodeProviderStatus.DeepCopyInto(&out.NodeProviderStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PredefinedApp. -func (in *PredefinedApp) DeepCopy() *PredefinedApp { +// 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(PredefinedApp) + 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 *Project) DeepCopyInto(out *Project) { +func (in *NodeProviderTerraformValidateResult) DeepCopyInto(out *NodeProviderTerraformValidateResult) { *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 Project. -func (in *Project) DeepCopy() *Project { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderTerraformValidateResult. +func (in *NodeProviderTerraformValidateResult) DeepCopy() *NodeProviderTerraformValidateResult { if in == nil { return nil } - out := new(Project) + out := new(NodeProviderTerraformValidateResult) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Project) 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 *ProjectChartInfo) DeepCopyInto(out *ProjectChartInfo) { +func (in *NodeType) DeepCopyInto(out *NodeType) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -4005,18 +3973,18 @@ func (in *ProjectChartInfo) DeepCopyInto(out *ProjectChartInfo) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfo. -func (in *ProjectChartInfo) DeepCopy() *ProjectChartInfo { +// 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(ProjectChartInfo) + out := new(NodeType) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectChartInfo) DeepCopyObject() runtime.Object { +func (in *NodeType) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4024,13 +3992,13 @@ func (in *ProjectChartInfo) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectChartInfoList) DeepCopyInto(out *ProjectChartInfoList) { +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([]ProjectChartInfo, len(*in)) + *out = make([]NodeType, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4038,18 +4006,18 @@ func (in *ProjectChartInfoList) DeepCopyInto(out *ProjectChartInfoList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoList. -func (in *ProjectChartInfoList) DeepCopy() *ProjectChartInfoList { +// 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(ProjectChartInfoList) + out := new(NodeTypeList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectChartInfoList) DeepCopyObject() runtime.Object { +func (in *NodeTypeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4057,47 +4025,45 @@ func (in *ProjectChartInfoList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectChartInfoSpec) DeepCopyInto(out *ProjectChartInfoSpec) { +func (in *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { *out = *in - in.ChartInfoSpec.DeepCopyInto(&out.ChartInfoSpec) + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoSpec. -func (in *ProjectChartInfoSpec) DeepCopy() *ProjectChartInfoSpec { +// 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(ProjectChartInfoSpec) + 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 *ProjectChartInfoStatus) DeepCopyInto(out *ProjectChartInfoStatus) { +func (in *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { *out = *in - in.ChartInfoStatus.DeepCopyInto(&out.ChartInfoStatus) + in.NodeTypeStatus.DeepCopyInto(&out.NodeTypeStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoStatus. -func (in *ProjectChartInfoStatus) DeepCopy() *ProjectChartInfoStatus { +// 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(ProjectChartInfoStatus) + out := new(NodeTypeStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectCharts) DeepCopyInto(out *ProjectCharts) { +func (in *OIDC) DeepCopyInto(out *OIDC) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Charts != nil { - in, out := &in.Charts, &out.Charts - *out = make([]storagev1.HelmChart, len(*in)) + if in.Clients != nil { + in, out := &in.Clients, &out.Clients + *out = make([]OIDCClientSpec, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4105,18 +4071,38 @@ func (in *ProjectCharts) DeepCopyInto(out *ProjectCharts) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectCharts. -func (in *ProjectCharts) DeepCopy() *ProjectCharts { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDC. +func (in *OIDC) DeepCopy() *OIDC { if in == nil { return nil } - out := new(ProjectCharts) + out := new(OIDC) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *OIDCClient) DeepCopyInto(out *OIDCClient) { + *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 OIDCClient. +func (in *OIDCClient) DeepCopy() *OIDCClient { + if in == nil { + return nil + } + out := new(OIDCClient) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectCharts) DeepCopyObject() runtime.Object { +func (in *OIDCClient) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4124,13 +4110,13 @@ func (in *ProjectCharts) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectChartsList) DeepCopyInto(out *ProjectChartsList) { +func (in *OIDCClientList) DeepCopyInto(out *OIDCClientList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ProjectCharts, len(*in)) + *out = make([]OIDCClient, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4138,18 +4124,18 @@ func (in *ProjectChartsList) DeepCopyInto(out *ProjectChartsList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartsList. -func (in *ProjectChartsList) DeepCopy() *ProjectChartsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClientList. +func (in *OIDCClientList) DeepCopy() *OIDCClientList { if in == nil { return nil } - out := new(ProjectChartsList) + out := new(OIDCClientList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectChartsList) DeepCopyObject() runtime.Object { +func (in *OIDCClientList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4157,99 +4143,125 @@ func (in *ProjectChartsList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectClusters) DeepCopyInto(out *ProjectClusters) { +func (in *OIDCClientSpec) DeepCopyInto(out *OIDCClientSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make([]Cluster, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.RedirectURIs != nil { + in, out := &in.RedirectURIs, &out.RedirectURIs + *out = make([]string, len(*in)) + copy(*out, *in) } - 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 OIDCClientSpec. +func (in *OIDCClientSpec) DeepCopy() *OIDCClientSpec { + if in == nil { + return nil } + 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 ProjectClusters. -func (in *ProjectClusters) DeepCopy() *ProjectClusters { +// 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(ProjectClusters) + out := new(OIDCClientStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectClusters) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// 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 } - 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 *ProjectClustersList) DeepCopyInto(out *ProjectClustersList) { +func (in *ObjectPermission) DeepCopyInto(out *ObjectPermission) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ProjectClusters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + 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 ProjectClustersList. -func (in *ProjectClustersList) DeepCopy() *ProjectClustersList { +// 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(ProjectClustersList) + out := new(ObjectPermission) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectClustersList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Operation) DeepCopyInto(out *Operation) { + *out = *in + in.StartTimestamp.DeepCopyInto(&out.StartTimestamp) + in.EndTimestamp.DeepCopyInto(&out.EndTimestamp) + if in.Logs != nil { + in, out := &in.Logs, &out.Logs + *out = make([]byte, len(*in)) + copy(*out, *in) } - return nil + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Operation. +func (in *Operation) DeepCopy() *Operation { + if in == nil { + return nil + } + out := new(Operation) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectImportSpace) DeepCopyInto(out *ProjectImportSpace) { +func (in *OwnedAccessKey) DeepCopyInto(out *OwnedAccessKey) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.SourceSpace = in.SourceSpace + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectImportSpace. -func (in *ProjectImportSpace) DeepCopy() *ProjectImportSpace { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKey. +func (in *OwnedAccessKey) DeepCopy() *OwnedAccessKey { if in == nil { return nil } - out := new(ProjectImportSpace) + out := new(OwnedAccessKey) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectImportSpace) DeepCopyObject() runtime.Object { +func (in *OwnedAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4257,13 +4269,13 @@ func (in *ProjectImportSpace) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectImportSpaceList) DeepCopyInto(out *ProjectImportSpaceList) { +func (in *OwnedAccessKeyList) DeepCopyInto(out *OwnedAccessKeyList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ProjectImportSpace, len(*in)) + *out = make([]OwnedAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4271,18 +4283,18 @@ func (in *ProjectImportSpaceList) DeepCopyInto(out *ProjectImportSpaceList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectImportSpaceList. -func (in *ProjectImportSpaceList) DeepCopy() *ProjectImportSpaceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeyList. +func (in *OwnedAccessKeyList) DeepCopy() *OwnedAccessKeyList { if in == nil { return nil } - out := new(ProjectImportSpaceList) + out := new(OwnedAccessKeyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectImportSpaceList) DeepCopyObject() runtime.Object { +func (in *OwnedAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4290,101 +4302,98 @@ func (in *ProjectImportSpaceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectImportSpaceSource) DeepCopyInto(out *ProjectImportSpaceSource) { +func (in *OwnedAccessKeySpec) DeepCopyInto(out *OwnedAccessKeySpec) { *out = *in + in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectImportSpaceSource. -func (in *ProjectImportSpaceSource) DeepCopy() *ProjectImportSpaceSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeySpec. +func (in *OwnedAccessKeySpec) DeepCopy() *OwnedAccessKeySpec { if in == nil { return nil } - out := new(ProjectImportSpaceSource) + out := new(OwnedAccessKeySpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectList) DeepCopyInto(out *ProjectList) { +func (in *OwnedAccessKeyStatus) DeepCopyInto(out *OwnedAccessKeyStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Project, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectList. -func (in *ProjectList) DeepCopy() *ProjectList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeyStatus. +func (in *OwnedAccessKeyStatus) DeepCopy() *OwnedAccessKeyStatus { if in == nil { return nil } - out := new(ProjectList) + out := new(OwnedAccessKeyStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PlatformDB) DeepCopyInto(out *PlatformDB) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformDB. +func (in *PlatformDB) DeepCopy() *PlatformDB { + if in == nil { + return nil } - return nil + out := new(PlatformDB) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMember) DeepCopyInto(out *ProjectMember) { +func (in *PredefinedApp) DeepCopyInto(out *PredefinedApp) { *out = *in - out.Info = in.Info + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make([]string, len(*in)) + copy(*out, *in) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMember. -func (in *ProjectMember) DeepCopy() *ProjectMember { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PredefinedApp. +func (in *PredefinedApp) DeepCopy() *PredefinedApp { if in == nil { return nil } - out := new(ProjectMember) + out := new(PredefinedApp) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMembers) DeepCopyInto(out *ProjectMembers) { +func (in *Project) DeepCopyInto(out *Project) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]ProjectMember, len(*in)) - copy(*out, *in) - } - if in.Users != nil { - in, out := &in.Users, &out.Users - *out = make([]ProjectMember, len(*in)) - copy(*out, *in) - } + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMembers. -func (in *ProjectMembers) DeepCopy() *ProjectMembers { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Project. +func (in *Project) DeepCopy() *Project { if in == nil { return nil } - out := new(ProjectMembers) + out := new(Project) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMembers) DeepCopyObject() runtime.Object { +func (in *Project) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4392,32 +4401,27 @@ func (in *ProjectMembers) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMembersList) DeepCopyInto(out *ProjectMembersList) { +func (in *ProjectChartInfo) DeepCopyInto(out *ProjectChartInfo) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ProjectMembers, 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 ProjectMembersList. -func (in *ProjectMembersList) DeepCopy() *ProjectMembersList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfo. +func (in *ProjectChartInfo) DeepCopy() *ProjectChartInfo { if in == nil { return nil } - out := new(ProjectMembersList) + out := new(ProjectChartInfo) 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 { +func (in *ProjectChartInfo) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4425,26 +4429,32 @@ func (in *ProjectMembersList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateSpaceInstance) DeepCopyInto(out *ProjectMigrateSpaceInstance) { +func (in *ProjectChartInfoList) DeepCopyInto(out *ProjectChartInfoList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.SourceSpaceInstance = in.SourceSpaceInstance + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ProjectChartInfo, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstance. -func (in *ProjectMigrateSpaceInstance) DeepCopy() *ProjectMigrateSpaceInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoList. +func (in *ProjectChartInfoList) DeepCopy() *ProjectChartInfoList { if in == nil { return nil } - out := new(ProjectMigrateSpaceInstance) + out := new(ProjectChartInfoList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMigrateSpaceInstance) DeepCopyObject() runtime.Object { +func (in *ProjectChartInfoList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4452,75 +4462,66 @@ func (in *ProjectMigrateSpaceInstance) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateSpaceInstanceList) DeepCopyInto(out *ProjectMigrateSpaceInstanceList) { +func (in *ProjectChartInfoSpec) DeepCopyInto(out *ProjectChartInfoSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ProjectMigrateSpaceInstance, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.ChartInfoSpec.DeepCopyInto(&out.ChartInfoSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstanceList. -func (in *ProjectMigrateSpaceInstanceList) DeepCopy() *ProjectMigrateSpaceInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoSpec. +func (in *ProjectChartInfoSpec) DeepCopy() *ProjectChartInfoSpec { if in == nil { return nil } - out := new(ProjectMigrateSpaceInstanceList) + out := new(ProjectChartInfoSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMigrateSpaceInstanceList) 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 *ProjectMigrateSpaceInstanceSource) DeepCopyInto(out *ProjectMigrateSpaceInstanceSource) { +func (in *ProjectChartInfoStatus) DeepCopyInto(out *ProjectChartInfoStatus) { *out = *in + in.ChartInfoStatus.DeepCopyInto(&out.ChartInfoStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstanceSource. -func (in *ProjectMigrateSpaceInstanceSource) DeepCopy() *ProjectMigrateSpaceInstanceSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoStatus. +func (in *ProjectChartInfoStatus) DeepCopy() *ProjectChartInfoStatus { if in == nil { return nil } - out := new(ProjectMigrateSpaceInstanceSource) + out := new(ProjectChartInfoStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateVirtualClusterInstance) DeepCopyInto(out *ProjectMigrateVirtualClusterInstance) { +func (in *ProjectCharts) DeepCopyInto(out *ProjectCharts) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.SourceVirtualClusterInstance = in.SourceVirtualClusterInstance + if in.Charts != nil { + in, out := &in.Charts, &out.Charts + *out = make([]storagev1.HelmChart, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstance. -func (in *ProjectMigrateVirtualClusterInstance) DeepCopy() *ProjectMigrateVirtualClusterInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectCharts. +func (in *ProjectCharts) DeepCopy() *ProjectCharts { if in == nil { return nil } - out := new(ProjectMigrateVirtualClusterInstance) + out := new(ProjectCharts) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMigrateVirtualClusterInstance) DeepCopyObject() runtime.Object { +func (in *ProjectCharts) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4528,13 +4529,13 @@ func (in *ProjectMigrateVirtualClusterInstance) DeepCopyObject() runtime.Object } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyInto(out *ProjectMigrateVirtualClusterInstanceList) { +func (in *ProjectChartsList) DeepCopyInto(out *ProjectChartsList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ProjectMigrateVirtualClusterInstance, len(*in)) + *out = make([]ProjectCharts, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4542,18 +4543,18 @@ func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyInto(out *ProjectMig return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstanceList. -func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopy() *ProjectMigrateVirtualClusterInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartsList. +func (in *ProjectChartsList) DeepCopy() *ProjectChartsList { if in == nil { return nil } - out := new(ProjectMigrateVirtualClusterInstanceList) + out := new(ProjectChartsList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyObject() runtime.Object { +func (in *ProjectChartsList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4561,29 +4562,13 @@ func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyObject() runtime.Obj } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopyInto(out *ProjectMigrateVirtualClusterInstanceSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstanceSource. -func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrateVirtualClusterInstanceSource { - if in == nil { - return nil - } - out := new(ProjectMigrateVirtualClusterInstanceSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectRunners) DeepCopyInto(out *ProjectRunners) { +func (in *ProjectClusters) DeepCopyInto(out *ProjectClusters) { *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)) + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make([]Cluster, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4591,18 +4576,18 @@ func (in *ProjectRunners) DeepCopyInto(out *ProjectRunners) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRunners. -func (in *ProjectRunners) DeepCopy() *ProjectRunners { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectClusters. +func (in *ProjectClusters) DeepCopy() *ProjectClusters { if in == nil { return nil } - out := new(ProjectRunners) + out := new(ProjectClusters) 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 { +func (in *ProjectClusters) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4610,13 +4595,13 @@ func (in *ProjectRunners) DeepCopyObject() runtime.Object { } // 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 *ProjectClustersList) DeepCopyInto(out *ProjectClustersList) { *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)) + *out = make([]ProjectClusters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4624,18 +4609,18 @@ func (in *ProjectRunnersList) DeepCopyInto(out *ProjectRunnersList) { 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 ProjectClustersList. +func (in *ProjectClustersList) DeepCopy() *ProjectClustersList { if in == nil { return nil } - out := new(ProjectRunnersList) + out := new(ProjectClustersList) 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 { +func (in *ProjectClustersList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4643,27 +4628,26 @@ func (in *ProjectRunnersList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectSecret) DeepCopyInto(out *ProjectSecret) { +func (in *ProjectImportSpace) DeepCopyInto(out *ProjectImportSpace) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.SourceSpace = in.SourceSpace return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSecret. -func (in *ProjectSecret) DeepCopy() *ProjectSecret { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectImportSpace. +func (in *ProjectImportSpace) DeepCopy() *ProjectImportSpace { if in == nil { return nil } - out := new(ProjectSecret) + out := new(ProjectImportSpace) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectSecret) DeepCopyObject() runtime.Object { +func (in *ProjectImportSpace) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4671,13 +4655,13 @@ func (in *ProjectSecret) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectSecretList) DeepCopyInto(out *ProjectSecretList) { +func (in *ProjectImportSpaceList) DeepCopyInto(out *ProjectImportSpaceList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ProjectSecret, len(*in)) + *out = make([]ProjectImportSpace, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4685,18 +4669,18 @@ func (in *ProjectSecretList) DeepCopyInto(out *ProjectSecretList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSecretList. -func (in *ProjectSecretList) DeepCopy() *ProjectSecretList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectImportSpaceList. +func (in *ProjectImportSpaceList) DeepCopy() *ProjectImportSpaceList { if in == nil { return nil } - out := new(ProjectSecretList) + out := new(ProjectImportSpaceList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectSecretList) DeepCopyObject() runtime.Object { +func (in *ProjectImportSpaceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4704,54 +4688,29 @@ func (in *ProjectSecretList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectSecretSpec) DeepCopyInto(out *ProjectSecretSpec) { +func (in *ProjectImportSpaceSource) DeepCopyInto(out *ProjectImportSpaceSource) { *out = *in - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(storagev1.UserOrTeam) - **out = **in - } - if in.Data != nil { - in, out := &in.Data, &out.Data - *out = make(map[string][]byte, len(*in)) - for key, val := range *in { - var outVal []byte - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make([]byte, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal - } - } - if in.Access != nil { - in, out := &in.Access, &out.Access - *out = make([]storagev1.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 ProjectSecretSpec. -func (in *ProjectSecretSpec) DeepCopy() *ProjectSecretSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectImportSpaceSource. +func (in *ProjectImportSpaceSource) DeepCopy() *ProjectImportSpaceSource { if in == nil { return nil } - out := new(ProjectSecretSpec) + out := new(ProjectImportSpaceSource) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectSecretStatus) DeepCopyInto(out *ProjectSecretStatus) { +func (in *ProjectList) DeepCopyInto(out *ProjectList) { *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make(loftstoragev1.Conditions, len(*in)) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Project, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4759,98 +4718,71 @@ func (in *ProjectSecretStatus) DeepCopyInto(out *ProjectSecretStatus) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSecretStatus. -func (in *ProjectSecretStatus) DeepCopy() *ProjectSecretStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectList. +func (in *ProjectList) DeepCopy() *ProjectList { if in == nil { return nil } - out := new(ProjectSecretStatus) + out := new(ProjectList) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec) { - *out = *in - in.ProjectSpec.DeepCopyInto(&out.ProjectSpec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSpec. -func (in *ProjectSpec) DeepCopy() *ProjectSpec { - if in == nil { - return nil +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - out := new(ProjectSpec) - 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 *ProjectStatus) DeepCopyInto(out *ProjectStatus) { +func (in *ProjectMember) DeepCopyInto(out *ProjectMember) { *out = *in - in.ProjectStatus.DeepCopyInto(&out.ProjectStatus) + out.Info = in.Info return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectStatus. -func (in *ProjectStatus) DeepCopy() *ProjectStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMember. +func (in *ProjectMember) DeepCopy() *ProjectMember { if in == nil { return nil } - out := new(ProjectStatus) + out := new(ProjectMember) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { +func (in *ProjectMembers) DeepCopyInto(out *ProjectMembers) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.VirtualClusterTemplates != nil { - in, out := &in.VirtualClusterTemplates, &out.VirtualClusterTemplates - *out = make([]VirtualClusterTemplate, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.SpaceTemplates != nil { - in, out := &in.SpaceTemplates, &out.SpaceTemplates - *out = make([]SpaceTemplate, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.DevPodWorkspaceTemplates != nil { - in, out := &in.DevPodWorkspaceTemplates, &out.DevPodWorkspaceTemplates - *out = make([]DevPodWorkspaceTemplate, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make([]ProjectMember, len(*in)) + copy(*out, *in) } - if in.DevPodEnvironmentTemplates != nil { - in, out := &in.DevPodEnvironmentTemplates, &out.DevPodEnvironmentTemplates - *out = make([]DevPodEnvironmentTemplate, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = make([]ProjectMember, len(*in)) + copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectTemplates. -func (in *ProjectTemplates) DeepCopy() *ProjectTemplates { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMembers. +func (in *ProjectMembers) DeepCopy() *ProjectMembers { if in == nil { return nil } - out := new(ProjectTemplates) + out := new(ProjectMembers) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectTemplates) DeepCopyObject() runtime.Object { +func (in *ProjectMembers) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4858,13 +4790,13 @@ func (in *ProjectTemplates) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectTemplatesList) DeepCopyInto(out *ProjectTemplatesList) { +func (in *ProjectMembersList) DeepCopyInto(out *ProjectMembersList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ProjectTemplates, len(*in)) + *out = make([]ProjectMembers, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4872,18 +4804,18 @@ func (in *ProjectTemplatesList) DeepCopyInto(out *ProjectTemplatesList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectTemplatesList. -func (in *ProjectTemplatesList) DeepCopy() *ProjectTemplatesList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMembersList. +func (in *ProjectMembersList) DeepCopy() *ProjectMembersList { if in == nil { return nil } - out := new(ProjectTemplatesList) + out := new(ProjectMembersList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectTemplatesList) DeepCopyObject() runtime.Object { +func (in *ProjectMembersList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4891,57 +4823,59 @@ func (in *ProjectTemplatesList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RedirectToken) DeepCopyInto(out *RedirectToken) { +func (in *ProjectMembership) DeepCopyInto(out *ProjectMembership) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + 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 RedirectToken. -func (in *RedirectToken) DeepCopy() *RedirectToken { +// 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(RedirectToken) + out := new(ProjectMembership) 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) { +func (in *ProjectMigrateSpaceInstance) DeepCopyInto(out *ProjectMigrateSpaceInstance) { *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.SourceSpaceInstance = in.SourceSpaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenClaims. -func (in *RedirectTokenClaims) DeepCopy() *RedirectTokenClaims { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstance. +func (in *ProjectMigrateSpaceInstance) DeepCopy() *ProjectMigrateSpaceInstance { if in == nil { return nil } - out := new(RedirectTokenClaims) + out := new(ProjectMigrateSpaceInstance) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectMigrateSpaceInstance) 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) { +func (in *ProjectMigrateSpaceInstanceList) DeepCopyInto(out *ProjectMigrateSpaceInstanceList) { *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)) + *out = make([]ProjectMigrateSpaceInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4949,18 +4883,18 @@ func (in *RedirectTokenList) DeepCopyInto(out *RedirectTokenList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenList. -func (in *RedirectTokenList) DeepCopy() *RedirectTokenList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstanceList. +func (in *ProjectMigrateSpaceInstanceList) DeepCopy() *ProjectMigrateSpaceInstanceList { if in == nil { return nil } - out := new(RedirectTokenList) + out := new(ProjectMigrateSpaceInstanceList) 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 { +func (in *ProjectMigrateSpaceInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4968,59 +4902,42 @@ func (in *RedirectTokenList) DeepCopyObject() runtime.Object { } // 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) { +func (in *ProjectMigrateSpaceInstanceSource) DeepCopyInto(out *ProjectMigrateSpaceInstanceSource) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenStatus. -func (in *RedirectTokenStatus) DeepCopy() *RedirectTokenStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstanceSource. +func (in *ProjectMigrateSpaceInstanceSource) DeepCopy() *ProjectMigrateSpaceInstanceSource { if in == nil { return nil } - out := new(RedirectTokenStatus) + out := new(ProjectMigrateSpaceInstanceSource) 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) { +func (in *ProjectMigrateVirtualClusterInstance) DeepCopyInto(out *ProjectMigrateVirtualClusterInstance) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + out.SourceVirtualClusterInstance = in.SourceVirtualClusterInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualCluster. -func (in *RegisterVirtualCluster) DeepCopy() *RegisterVirtualCluster { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstance. +func (in *ProjectMigrateVirtualClusterInstance) DeepCopy() *ProjectMigrateVirtualClusterInstance { if in == nil { return nil } - out := new(RegisterVirtualCluster) + out := new(ProjectMigrateVirtualClusterInstance) 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 { +func (in *ProjectMigrateVirtualClusterInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5028,13 +4945,13 @@ func (in *RegisterVirtualCluster) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RegisterVirtualClusterList) DeepCopyInto(out *RegisterVirtualClusterList) { +func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyInto(out *ProjectMigrateVirtualClusterInstanceList) { *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)) + *out = make([]ProjectMigrateVirtualClusterInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5042,18 +4959,18 @@ func (in *RegisterVirtualClusterList) DeepCopyInto(out *RegisterVirtualClusterLi return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterList. -func (in *RegisterVirtualClusterList) DeepCopy() *RegisterVirtualClusterList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstanceList. +func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopy() *ProjectMigrateVirtualClusterInstanceList { if in == nil { return nil } - out := new(RegisterVirtualClusterList) + out := new(ProjectMigrateVirtualClusterInstanceList) 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 { +func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5061,59 +4978,55 @@ func (in *RegisterVirtualClusterList) DeepCopyObject() runtime.Object { } // 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) { +func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopyInto(out *ProjectMigrateVirtualClusterInstanceSource) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterStatus. -func (in *RegisterVirtualClusterStatus) DeepCopy() *RegisterVirtualClusterStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstanceSource. +func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrateVirtualClusterInstanceSource { if in == nil { return nil } - out := new(RegisterVirtualClusterStatus) + out := new(ProjectMigrateVirtualClusterInstanceSource) 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) { +func (in *ProjectNodeTypes) DeepCopyInto(out *ProjectNodeTypes) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + if in.NodeProviders != nil { + in, out := &in.NodeProviders, &out.NodeProviders + *out = make([]storagev1.NodeProvider, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.NodeTypes != nil { + in, out := &in.NodeTypes, &out.NodeTypes + *out = make([]storagev1.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 ResetAccessKey. -func (in *ResetAccessKey) DeepCopy() *ResetAccessKey { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectNodeTypes. +func (in *ProjectNodeTypes) DeepCopy() *ProjectNodeTypes { if in == nil { return nil } - out := new(ResetAccessKey) + out := new(ProjectNodeTypes) 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 *ProjectNodeTypes) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5121,13 +5034,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 *ProjectNodeTypesList) DeepCopyInto(out *ProjectNodeTypesList) { *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([]ProjectNodeTypes, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5135,18 +5048,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 ProjectNodeTypesList. +func (in *ProjectNodeTypesList) DeepCopy() *ProjectNodeTypesList { if in == nil { return nil } - out := new(ResetAccessKeyList) + out := new(ProjectNodeTypesList) 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 *ProjectNodeTypesList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5154,41 +5067,24 @@ 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) { - *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 { - if in == nil { - return nil - } - 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 *ResetAccessKeyStatus) DeepCopyInto(out *ResetAccessKeyStatus) { +func (in *ProjectRole) DeepCopyInto(out *ProjectRole) { *out = *in - in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) + out.ObjectName = in.ObjectName 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 ProjectRole. +func (in *ProjectRole) DeepCopy() *ProjectRole { if in == nil { return nil } - out := new(ResetAccessKeyStatus) + out := new(ProjectRole) 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 *ProjectSecret) DeepCopyInto(out *ProjectSecret) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -5197,18 +5093,18 @@ func (in *Runner) DeepCopyInto(out *Runner) { 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 ProjectSecret. +func (in *ProjectSecret) DeepCopy() *ProjectSecret { if in == nil { return nil } - out := new(Runner) + out := new(ProjectSecret) 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 *ProjectSecret) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5216,25 +5112,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 *ProjectSecretList) DeepCopyInto(out *ProjectSecretList) { *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([]ProjectSecret, 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 ProjectSecretList. +func (in *ProjectSecretList) DeepCopy() *ProjectSecretList { if in == nil { return nil } - out := new(RunnerAccessKey) + out := new(ProjectSecretList) 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 *ProjectSecretList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5242,13 +5145,31 @@ 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 *ProjectSecretSpec) DeepCopyInto(out *ProjectSecretSpec) { *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)) + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = new(storagev1.UserOrTeam) + **out = **in + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make(map[string][]byte, len(*in)) + for key, val := range *in { + var outVal []byte + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = make([]byte, len(*in)) + copy(*out, *in) + } + (*out)[key] = outVal + } + } + if in.Access != nil { + in, out := &in.Access, &out.Access + *out = make([]storagev1.Access, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5256,63 +5177,88 @@ func (in *RunnerAccessKeyList) DeepCopyInto(out *RunnerAccessKeyList) { 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 ProjectSecretSpec. +func (in *ProjectSecretSpec) DeepCopy() *ProjectSecretSpec { if in == nil { return nil } - out := new(RunnerAccessKeyList) + out := new(ProjectSecretSpec) 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 *ProjectSecretStatus) DeepCopyInto(out *ProjectSecretStatus) { *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) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make(loftstoragev1.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 RunnerConfig. -func (in *RunnerConfig) DeepCopy() *RunnerConfig { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSecretStatus. +func (in *ProjectSecretStatus) DeepCopy() *ProjectSecretStatus { if in == nil { return nil } - out := new(RunnerConfig) + out := new(ProjectSecretStatus) 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 *ProjectSpec) DeepCopyInto(out *ProjectSpec) { + *out = *in + in.ProjectSpec.DeepCopyInto(&out.ProjectSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSpec. +func (in *ProjectSpec) DeepCopy() *ProjectSpec { + if in == nil { + return nil + } + out := new(ProjectSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus) { + *out = *in + in.ProjectStatus.DeepCopyInto(&out.ProjectStatus) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectStatus. +func (in *ProjectStatus) DeepCopy() *ProjectStatus { + if in == nil { + return nil + } + out := new(ProjectStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { *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)) + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.VirtualClusterTemplates != nil { + in, out := &in.VirtualClusterTemplates, &out.VirtualClusterTemplates + *out = make([]VirtualClusterTemplate, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.SpaceTemplates != nil { + in, out := &in.SpaceTemplates, &out.SpaceTemplates + *out = make([]SpaceTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5320,18 +5266,18 @@ func (in *RunnerConfigList) DeepCopyInto(out *RunnerConfigList) { 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 ProjectTemplates. +func (in *ProjectTemplates) DeepCopy() *ProjectTemplates { if in == nil { return nil } - out := new(RunnerConfigList) + out := new(ProjectTemplates) 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 *ProjectTemplates) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5339,13 +5285,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 *ProjectTemplatesList) DeepCopyInto(out *ProjectTemplatesList) { *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([]ProjectTemplates, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5353,18 +5299,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 ProjectTemplatesList. +func (in *ProjectTemplatesList) DeepCopy() *ProjectTemplatesList { if in == nil { return nil } - out := new(RunnerList) + out := new(ProjectTemplatesList) 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 *ProjectTemplatesList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5372,75 +5318,57 @@ 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 *RedirectToken) DeepCopyInto(out *RedirectToken) { *out = *in - in.RunnerSpec.DeepCopyInto(&out.RunnerSpec) + 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 RunnerSpec. -func (in *RunnerSpec) DeepCopy() *RunnerSpec { +// 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(RunnerSpec) + out := new(RedirectToken) 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) { - *out = *in - in.RunnerStatus.DeepCopyInto(&out.RunnerStatus) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerStatus. -func (in *RunnerStatus) DeepCopy() *RunnerStatus { - if in == nil { - return nil +// 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 } - out := new(RunnerStatus) - 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 *Self) DeepCopyInto(out *Self) { +func (in *RedirectTokenClaims) DeepCopyInto(out *RedirectTokenClaims) { *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 Self. -func (in *Self) DeepCopy() *Self { +// 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(Self) + out := new(RedirectTokenClaims) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Self) 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 *SelfList) DeepCopyInto(out *SelfList) { +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([]Self, len(*in)) + *out = make([]RedirectToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5448,18 +5376,18 @@ func (in *SelfList) DeepCopyInto(out *SelfList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfList. -func (in *SelfList) DeepCopy() *SelfList { +// 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(SelfList) + out := new(RedirectTokenList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SelfList) DeepCopyObject() runtime.Object { +func (in *RedirectTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5467,84 +5395,59 @@ func (in *SelfList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSpec) DeepCopyInto(out *SelfSpec) { +func (in *RedirectTokenSpec) DeepCopyInto(out *RedirectTokenSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSpec. -func (in *SelfSpec) DeepCopy() *SelfSpec { +// 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(SelfSpec) + 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 *SelfStatus) DeepCopyInto(out *SelfStatus) { +func (in *RedirectTokenStatus) DeepCopyInto(out *RedirectTokenStatus) { *out = *in - if in.User != nil { - in, out := &in.User, &out.User - *out = new(UserInfo) - (*in).DeepCopyInto(*out) - } - if in.Team != nil { - in, out := &in.Team, &out.Team - *out = new(storagev1.EntityInfo) - **out = **in - } - if in.AccessKeyScope != nil { - in, out := &in.AccessKeyScope, &out.AccessKeyScope - *out = new(storagev1.AccessKeyScope) - (*in).DeepCopyInto(*out) - } - if in.Groups != nil { - in, out := &in.Groups, &out.Groups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ProjectNamespacePrefix != nil { - in, out := &in.ProjectNamespacePrefix, &out.ProjectNamespacePrefix - *out = new(string) - **out = **in - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfStatus. -func (in *SelfStatus) DeepCopy() *SelfStatus { +// 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(SelfStatus) + 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 *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) { +func (in *RegisterVirtualCluster) DeepCopyInto(out *RegisterVirtualCluster) { *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 SelfSubjectAccessReview. -func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview { +// 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(SelfSubjectAccessReview) + out := new(RegisterVirtualCluster) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object { +func (in *RegisterVirtualCluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5552,13 +5455,13 @@ func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectAccessReviewList) DeepCopyInto(out *SelfSubjectAccessReviewList) { +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([]SelfSubjectAccessReview, len(*in)) + *out = make([]RegisterVirtualCluster, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5566,18 +5469,18 @@ func (in *SelfSubjectAccessReviewList) DeepCopyInto(out *SelfSubjectAccessReview return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewList. -func (in *SelfSubjectAccessReviewList) DeepCopy() *SelfSubjectAccessReviewList { +// 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(SelfSubjectAccessReviewList) + out := new(RegisterVirtualClusterList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SelfSubjectAccessReviewList) DeepCopyObject() runtime.Object { +func (in *RegisterVirtualClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5585,41 +5488,39 @@ func (in *SelfSubjectAccessReviewList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) { +func (in *RegisterVirtualClusterSpec) DeepCopyInto(out *RegisterVirtualClusterSpec) { *out = *in - in.SelfSubjectAccessReviewSpec.DeepCopyInto(&out.SelfSubjectAccessReviewSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec. -func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec { +// 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(SelfSubjectAccessReviewSpec) + 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 *SelfSubjectAccessReviewStatus) DeepCopyInto(out *SelfSubjectAccessReviewStatus) { +func (in *RegisterVirtualClusterStatus) DeepCopyInto(out *RegisterVirtualClusterStatus) { *out = *in - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewStatus. -func (in *SelfSubjectAccessReviewStatus) DeepCopy() *SelfSubjectAccessReviewStatus { +// 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(SelfSubjectAccessReviewStatus) + 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 *SharedSecret) DeepCopyInto(out *SharedSecret) { +func (in *ResetAccessKey) DeepCopyInto(out *ResetAccessKey) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -5628,18 +5529,18 @@ func (in *SharedSecret) DeepCopyInto(out *SharedSecret) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecret. -func (in *SharedSecret) DeepCopy() *SharedSecret { +// 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(SharedSecret) + out := new(ResetAccessKey) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SharedSecret) DeepCopyObject() runtime.Object { +func (in *ResetAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5647,13 +5548,13 @@ func (in *SharedSecret) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SharedSecretList) DeepCopyInto(out *SharedSecretList) { +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([]SharedSecret, len(*in)) + *out = make([]ResetAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5661,18 +5562,18 @@ func (in *SharedSecretList) DeepCopyInto(out *SharedSecretList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecretList. -func (in *SharedSecretList) DeepCopy() *SharedSecretList { +// 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(SharedSecretList) + out := new(ResetAccessKeyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SharedSecretList) DeepCopyObject() runtime.Object { +func (in *ResetAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5680,61 +5581,61 @@ func (in *SharedSecretList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SharedSecretSpec) DeepCopyInto(out *SharedSecretSpec) { +func (in *ResetAccessKeySpec) DeepCopyInto(out *ResetAccessKeySpec) { *out = *in - in.SharedSecretSpec.DeepCopyInto(&out.SharedSecretSpec) + in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecretSpec. -func (in *SharedSecretSpec) DeepCopy() *SharedSecretSpec { +// 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(SharedSecretSpec) + 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 *SharedSecretStatus) DeepCopyInto(out *SharedSecretStatus) { +func (in *ResetAccessKeyStatus) DeepCopyInto(out *ResetAccessKeyStatus) { *out = *in - in.SharedSecretStatus.DeepCopyInto(&out.SharedSecretStatus) + in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecretStatus. -func (in *SharedSecretStatus) DeepCopy() *SharedSecretStatus { +// 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(SharedSecretStatus) + out := new(ResetAccessKeyStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceInstance) DeepCopyInto(out *SpaceInstance) { +func (in *Self) DeepCopyInto(out *Self) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) + out.Spec = in.Spec in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceInstance. -func (in *SpaceInstance) DeepCopy() *SpaceInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Self. +func (in *Self) DeepCopy() *Self { if in == nil { return nil } - out := new(SpaceInstance) + out := new(Self) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SpaceInstance) DeepCopyObject() runtime.Object { +func (in *Self) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5742,13 +5643,13 @@ func (in *SpaceInstance) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceInstanceList) DeepCopyInto(out *SpaceInstanceList) { +func (in *SelfList) DeepCopyInto(out *SelfList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]SpaceInstance, len(*in)) + *out = make([]Self, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5756,18 +5657,1517 @@ func (in *SpaceInstanceList) DeepCopyInto(out *SpaceInstanceList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceInstanceList. -func (in *SpaceInstanceList) DeepCopy() *SpaceInstanceList { - if in == nil { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfList. +func (in *SelfList) DeepCopy() *SelfList { + if in == nil { + return nil + } + out := new(SelfList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SelfList) 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 *SelfSpec) DeepCopyInto(out *SelfSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSpec. +func (in *SelfSpec) DeepCopy() *SelfSpec { + if in == nil { + return nil + } + out := new(SelfSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SelfStatus) DeepCopyInto(out *SelfStatus) { + *out = *in + if in.User != nil { + in, out := &in.User, &out.User + *out = new(UserInfo) + (*in).DeepCopyInto(*out) + } + if in.Team != nil { + in, out := &in.Team, &out.Team + *out = new(storagev1.EntityInfo) + **out = **in + } + if in.AccessKeyScope != nil { + in, out := &in.AccessKeyScope, &out.AccessKeyScope + *out = new(storagev1.AccessKeyScope) + (*in).DeepCopyInto(*out) + } + if in.Groups != nil { + in, out := &in.Groups, &out.Groups + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ProjectNamespacePrefix != nil { + in, out := &in.ProjectNamespacePrefix, &out.ProjectNamespacePrefix + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfStatus. +func (in *SelfStatus) DeepCopy() *SelfStatus { + if in == nil { + return nil + } + out := new(SelfStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) { + *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 SelfSubjectAccessReview. +func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview { + if in == nil { + return nil + } + out := new(SelfSubjectAccessReview) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SelfSubjectAccessReview) 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 *SelfSubjectAccessReviewList) DeepCopyInto(out *SelfSubjectAccessReviewList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SelfSubjectAccessReview, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewList. +func (in *SelfSubjectAccessReviewList) DeepCopy() *SelfSubjectAccessReviewList { + if in == nil { + return nil + } + out := new(SelfSubjectAccessReviewList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SelfSubjectAccessReviewList) 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 *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) { + *out = *in + in.SelfSubjectAccessReviewSpec.DeepCopyInto(&out.SelfSubjectAccessReviewSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec. +func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec { + if in == nil { + return nil + } + out := new(SelfSubjectAccessReviewSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SelfSubjectAccessReviewStatus) DeepCopyInto(out *SelfSubjectAccessReviewStatus) { + *out = *in + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewStatus. +func (in *SelfSubjectAccessReviewStatus) DeepCopy() *SelfSubjectAccessReviewStatus { + if in == nil { + return nil + } + out := new(SelfSubjectAccessReviewStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SharedSecret) DeepCopyInto(out *SharedSecret) { + *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 SharedSecret. +func (in *SharedSecret) DeepCopy() *SharedSecret { + if in == nil { + return nil + } + out := new(SharedSecret) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SharedSecret) 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 *SharedSecretList) DeepCopyInto(out *SharedSecretList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SharedSecret, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecretList. +func (in *SharedSecretList) DeepCopy() *SharedSecretList { + if in == nil { + return nil + } + out := new(SharedSecretList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SharedSecretList) 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 *SharedSecretSpec) DeepCopyInto(out *SharedSecretSpec) { + *out = *in + in.SharedSecretSpec.DeepCopyInto(&out.SharedSecretSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecretSpec. +func (in *SharedSecretSpec) DeepCopy() *SharedSecretSpec { + if in == nil { + return nil + } + out := new(SharedSecretSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SharedSecretStatus) DeepCopyInto(out *SharedSecretStatus) { + *out = *in + in.SharedSecretStatus.DeepCopyInto(&out.SharedSecretStatus) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecretStatus. +func (in *SharedSecretStatus) DeepCopy() *SharedSecretStatus { + if in == nil { + return nil + } + out := new(SharedSecretStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SnapshotRequest) DeepCopyInto(out *SnapshotRequest) { + *out = *in + in.Metadata.DeepCopyInto(&out.Metadata) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotRequest. +func (in *SnapshotRequest) DeepCopy() *SnapshotRequest { + if in == nil { + return nil + } + out := new(SnapshotRequest) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SnapshotRequestError) DeepCopyInto(out *SnapshotRequestError) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotRequestError. +func (in *SnapshotRequestError) DeepCopy() *SnapshotRequestError { + if in == nil { + return nil + } + out := new(SnapshotRequestError) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SnapshotRequestMetadata) DeepCopyInto(out *SnapshotRequestMetadata) { + *out = *in + in.CreationTimestamp.DeepCopyInto(&out.CreationTimestamp) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotRequestMetadata. +func (in *SnapshotRequestMetadata) DeepCopy() *SnapshotRequestMetadata { + if in == nil { + return nil + } + out := new(SnapshotRequestMetadata) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SnapshotRequestStatus) DeepCopyInto(out *SnapshotRequestStatus) { + *out = *in + in.VolumeSnapshots.DeepCopyInto(&out.VolumeSnapshots) + out.Error = in.Error + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotRequestStatus. +func (in *SnapshotRequestStatus) DeepCopy() *SnapshotRequestStatus { + if in == nil { + return nil + } + out := new(SnapshotRequestStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SnapshotTaken) DeepCopyInto(out *SnapshotTaken) { + *out = *in + in.Request.DeepCopyInto(&out.Request) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotTaken. +func (in *SnapshotTaken) DeepCopy() *SnapshotTaken { + if in == nil { + return nil + } + out := new(SnapshotTaken) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpaceInstance) DeepCopyInto(out *SpaceInstance) { + *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 SpaceInstance. +func (in *SpaceInstance) DeepCopy() *SpaceInstance { + if in == nil { + return nil + } + out := new(SpaceInstance) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SpaceInstance) 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 *SpaceInstanceList) DeepCopyInto(out *SpaceInstanceList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SpaceInstance, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceInstanceList. +func (in *SpaceInstanceList) DeepCopy() *SpaceInstanceList { + if in == nil { + return nil + } + out := new(SpaceInstanceList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SpaceInstanceList) 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 *SpaceInstanceSpec) DeepCopyInto(out *SpaceInstanceSpec) { + *out = *in + in.SpaceInstanceSpec.DeepCopyInto(&out.SpaceInstanceSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceInstanceSpec. +func (in *SpaceInstanceSpec) DeepCopy() *SpaceInstanceSpec { + if in == nil { + return nil + } + out := new(SpaceInstanceSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpaceInstanceStatus) DeepCopyInto(out *SpaceInstanceStatus) { + *out = *in + in.SpaceInstanceStatus.DeepCopyInto(&out.SpaceInstanceStatus) + 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 SpaceInstanceStatus. +func (in *SpaceInstanceStatus) DeepCopy() *SpaceInstanceStatus { + if in == nil { + return nil + } + out := new(SpaceInstanceStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpaceTemplate) DeepCopyInto(out *SpaceTemplate) { + *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 SpaceTemplate. +func (in *SpaceTemplate) DeepCopy() *SpaceTemplate { + if in == nil { + return nil + } + out := new(SpaceTemplate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SpaceTemplate) 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 *SpaceTemplateList) DeepCopyInto(out *SpaceTemplateList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SpaceTemplate, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateList. +func (in *SpaceTemplateList) DeepCopy() *SpaceTemplateList { + if in == nil { + return nil + } + out := new(SpaceTemplateList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SpaceTemplateList) 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 *SpaceTemplateSpec) DeepCopyInto(out *SpaceTemplateSpec) { + *out = *in + in.SpaceTemplateSpec.DeepCopyInto(&out.SpaceTemplateSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateSpec. +func (in *SpaceTemplateSpec) DeepCopy() *SpaceTemplateSpec { + if in == nil { + return nil + } + out := new(SpaceTemplateSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpaceTemplateStatus) DeepCopyInto(out *SpaceTemplateStatus) { + *out = *in + out.SpaceTemplateStatus = in.SpaceTemplateStatus + if in.Apps != nil { + in, out := &in.Apps, &out.Apps + *out = make([]*storagev1.EntityInfo, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(storagev1.EntityInfo) + **out = **in + } + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateStatus. +func (in *SpaceTemplateStatus) DeepCopy() *SpaceTemplateStatus { + if in == nil { + return nil + } + out := new(SpaceTemplateStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StandaloneEtcdPeer) DeepCopyInto(out *StandaloneEtcdPeer) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandaloneEtcdPeer. +func (in *StandaloneEtcdPeer) DeepCopy() *StandaloneEtcdPeer { + if in == nil { + return nil + } + out := new(StandaloneEtcdPeer) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StandaloneEtcdPeerCoordinator) DeepCopyInto(out *StandaloneEtcdPeerCoordinator) { + *out = *in + out.StandaloneEtcdPeer = in.StandaloneEtcdPeer + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandaloneEtcdPeerCoordinator. +func (in *StandaloneEtcdPeerCoordinator) DeepCopy() *StandaloneEtcdPeerCoordinator { + if in == nil { + return nil + } + out := new(StandaloneEtcdPeerCoordinator) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StandalonePKI) DeepCopyInto(out *StandalonePKI) { + *out = *in + if in.Certificates != nil { + in, out := &in.Certificates, &out.Certificates + *out = make(map[string][]byte, len(*in)) + for key, val := range *in { + var outVal []byte + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = make([]byte, len(*in)) + copy(*out, *in) + } + (*out)[key] = outVal + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandalonePKI. +func (in *StandalonePKI) DeepCopy() *StandalonePKI { + if in == nil { + return nil + } + out := new(StandalonePKI) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) { + *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 SubjectAccessReview. +func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview { + if in == nil { + return nil + } + out := new(SubjectAccessReview) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SubjectAccessReview) 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 *SubjectAccessReviewList) DeepCopyInto(out *SubjectAccessReviewList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SubjectAccessReview, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewList. +func (in *SubjectAccessReviewList) DeepCopy() *SubjectAccessReviewList { + if in == nil { + return nil + } + out := new(SubjectAccessReviewList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SubjectAccessReviewList) 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 *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) { + *out = *in + in.SubjectAccessReviewSpec.DeepCopyInto(&out.SubjectAccessReviewSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec. +func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec { + if in == nil { + return nil + } + out := new(SubjectAccessReviewSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) { + *out = *in + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus. +func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus { + if in == nil { + return nil + } + out := new(SubjectAccessReviewStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Task) DeepCopyInto(out *Task) { + *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 Task. +func (in *Task) DeepCopy() *Task { + if in == nil { + return nil + } + out := new(Task) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Task) 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 *TaskList) DeepCopyInto(out *TaskList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Task, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList. +func (in *TaskList) DeepCopy() *TaskList { + if in == nil { + return nil + } + out := new(TaskList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TaskList) 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 *TaskLog) DeepCopyInto(out *TaskLog) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskLog. +func (in *TaskLog) DeepCopy() *TaskLog { + if in == nil { + return nil + } + out := new(TaskLog) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TaskLog) 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 *TaskLogList) DeepCopyInto(out *TaskLogList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TaskLog, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskLogList. +func (in *TaskLogList) DeepCopy() *TaskLogList { + if in == nil { + return nil + } + out := new(TaskLogList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TaskLogList) 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 *TaskLogOptions) DeepCopyInto(out *TaskLogOptions) { + *out = *in + out.TypeMeta = in.TypeMeta + if in.SinceSeconds != nil { + in, out := &in.SinceSeconds, &out.SinceSeconds + *out = new(int64) + **out = **in + } + if in.SinceTime != nil { + in, out := &in.SinceTime, &out.SinceTime + *out = (*in).DeepCopy() + } + if in.TailLines != nil { + in, out := &in.TailLines, &out.TailLines + *out = new(int64) + **out = **in + } + if in.LimitBytes != nil { + in, out := &in.LimitBytes, &out.LimitBytes + *out = new(int64) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskLogOptions. +func (in *TaskLogOptions) DeepCopy() *TaskLogOptions { + if in == nil { + return nil + } + out := new(TaskLogOptions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TaskLogOptions) 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 *TaskSpec) DeepCopyInto(out *TaskSpec) { + *out = *in + in.TaskSpec.DeepCopyInto(&out.TaskSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec. +func (in *TaskSpec) DeepCopy() *TaskSpec { + if in == nil { + return nil + } + out := new(TaskSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TaskStatus) DeepCopyInto(out *TaskStatus) { + *out = *in + in.TaskStatus.DeepCopyInto(&out.TaskStatus) + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = new(storagev1.UserOrTeamEntity) + (*in).DeepCopyInto(*out) + } + if in.Cluster != nil { + in, out := &in.Cluster, &out.Cluster + *out = new(storagev1.EntityInfo) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskStatus. +func (in *TaskStatus) DeepCopy() *TaskStatus { + if in == nil { + return nil + } + out := new(TaskStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Team) DeepCopyInto(out *Team) { + *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 Team. +func (in *Team) DeepCopy() *Team { + if in == nil { + return nil + } + out := new(Team) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Team) 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 *TeamAccessKeys) DeepCopyInto(out *TeamAccessKeys) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.AccessKeys != nil { + in, out := &in.AccessKeys, &out.AccessKeys + *out = make([]OwnedAccessKey, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAccessKeys. +func (in *TeamAccessKeys) DeepCopy() *TeamAccessKeys { + if in == nil { + return nil + } + out := new(TeamAccessKeys) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamAccessKeys) 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 *TeamAccessKeysList) DeepCopyInto(out *TeamAccessKeysList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TeamAccessKeys, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAccessKeysList. +func (in *TeamAccessKeysList) DeepCopy() *TeamAccessKeysList { + if in == nil { + return nil + } + out := new(TeamAccessKeysList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamAccessKeysList) 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 *TeamClusters) DeepCopyInto(out *TeamClusters) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make([]ClusterAccounts, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamClusters. +func (in *TeamClusters) DeepCopy() *TeamClusters { + if in == nil { + return nil + } + out := new(TeamClusters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamClusters) 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 *TeamClustersList) DeepCopyInto(out *TeamClustersList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TeamClusters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// 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(TeamPermissions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamPermissions) 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 *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([]TeamPermissions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// 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(TeamPermissionsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamPermissionsList) 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 *TeamSpec) DeepCopyInto(out *TeamSpec) { + *out = *in + in.TeamSpec.DeepCopyInto(&out.TeamSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamSpec. +func (in *TeamSpec) DeepCopy() *TeamSpec { + if in == nil { + return nil + } + out := new(TeamSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TeamStatus) DeepCopyInto(out *TeamStatus) { + *out = *in + out.TeamStatus = in.TeamStatus + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamStatus. +func (in *TeamStatus) DeepCopy() *TeamStatus { + if in == nil { + return nil + } + out := new(TeamStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TranslateVClusterResourceName) DeepCopyInto(out *TranslateVClusterResourceName) { + *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 TranslateVClusterResourceName. +func (in *TranslateVClusterResourceName) DeepCopy() *TranslateVClusterResourceName { + if in == nil { + return nil + } + out := new(TranslateVClusterResourceName) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TranslateVClusterResourceName) 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 *TranslateVClusterResourceNameList) DeepCopyInto(out *TranslateVClusterResourceNameList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TranslateVClusterResourceName, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameList. +func (in *TranslateVClusterResourceNameList) DeepCopy() *TranslateVClusterResourceNameList { + if in == nil { + return nil + } + out := new(TranslateVClusterResourceNameList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TranslateVClusterResourceNameList) 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 *TranslateVClusterResourceNameSpec) DeepCopyInto(out *TranslateVClusterResourceNameSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameSpec. +func (in *TranslateVClusterResourceNameSpec) DeepCopy() *TranslateVClusterResourceNameSpec { + if in == nil { + return nil + } + out := new(TranslateVClusterResourceNameSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TranslateVClusterResourceNameStatus) DeepCopyInto(out *TranslateVClusterResourceNameStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameStatus. +func (in *TranslateVClusterResourceNameStatus) DeepCopy() *TranslateVClusterResourceNameStatus { + if in == nil { + return nil + } + out := new(TranslateVClusterResourceNameStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UsageDownload) DeepCopyInto(out *UsageDownload) { + *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 UsageDownload. +func (in *UsageDownload) DeepCopy() *UsageDownload { + if in == nil { + return nil + } + out := new(UsageDownload) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UsageDownload) 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 *UsageDownloadList) DeepCopyInto(out *UsageDownloadList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UsageDownload, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UsageDownloadList. +func (in *UsageDownloadList) DeepCopy() *UsageDownloadList { + if in == nil { + return nil + } + out := new(UsageDownloadList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UsageDownloadList) 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 *UsageDownloadSpec) DeepCopyInto(out *UsageDownloadSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UsageDownloadSpec. +func (in *UsageDownloadSpec) DeepCopy() *UsageDownloadSpec { + if in == nil { + return nil + } + out := new(UsageDownloadSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UsageDownloadStatus) DeepCopyInto(out *UsageDownloadStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UsageDownloadStatus. +func (in *UsageDownloadStatus) DeepCopy() *UsageDownloadStatus { + if in == nil { + return nil + } + out := new(UsageDownloadStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *User) DeepCopyInto(out *User) { + *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 User. +func (in *User) DeepCopy() *User { + if in == nil { return nil } - out := new(SpaceInstanceList) + out := new(User) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SpaceInstanceList) DeepCopyObject() runtime.Object { +func (in *User) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5775,66 +7175,98 @@ func (in *SpaceInstanceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceInstanceSpec) DeepCopyInto(out *SpaceInstanceSpec) { +func (in *UserAccessKeys) DeepCopyInto(out *UserAccessKeys) { *out = *in - in.SpaceInstanceSpec.DeepCopyInto(&out.SpaceInstanceSpec) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.AccessKeys != nil { + in, out := &in.AccessKeys, &out.AccessKeys + *out = make([]OwnedAccessKey, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceInstanceSpec. -func (in *SpaceInstanceSpec) DeepCopy() *SpaceInstanceSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccessKeys. +func (in *UserAccessKeys) DeepCopy() *UserAccessKeys { if in == nil { return nil } - out := new(SpaceInstanceSpec) + out := new(UserAccessKeys) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserAccessKeys) 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 *SpaceInstanceStatus) DeepCopyInto(out *SpaceInstanceStatus) { +func (in *UserAccessKeysList) DeepCopyInto(out *UserAccessKeysList) { *out = *in - in.SpaceInstanceStatus.DeepCopyInto(&out.SpaceInstanceStatus) - if in.SleepModeConfig != nil { - in, out := &in.SleepModeConfig, &out.SleepModeConfig - *out = new(clusterv1.SleepModeConfig) - (*in).DeepCopyInto(*out) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UserAccessKeys, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceInstanceStatus. -func (in *SpaceInstanceStatus) DeepCopy() *SpaceInstanceStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccessKeysList. +func (in *UserAccessKeysList) DeepCopy() *UserAccessKeysList { if in == nil { return nil } - out := new(SpaceInstanceStatus) + out := new(UserAccessKeysList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserAccessKeysList) 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 *SpaceTemplate) DeepCopyInto(out *SpaceTemplate) { +func (in *UserClusters) DeepCopyInto(out *UserClusters) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make([]ClusterAccounts, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplate. -func (in *SpaceTemplate) DeepCopy() *SpaceTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserClusters. +func (in *UserClusters) DeepCopy() *UserClusters { if in == nil { return nil } - out := new(SpaceTemplate) + out := new(UserClusters) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SpaceTemplate) DeepCopyObject() runtime.Object { +func (in *UserClusters) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5842,13 +7274,13 @@ func (in *SpaceTemplate) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceTemplateList) DeepCopyInto(out *SpaceTemplateList) { +func (in *UserClustersList) DeepCopyInto(out *UserClustersList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]SpaceTemplate, len(*in)) + *out = make([]UserClusters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5856,18 +7288,18 @@ func (in *SpaceTemplateList) DeepCopyInto(out *SpaceTemplateList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateList. -func (in *SpaceTemplateList) DeepCopy() *SpaceTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserClustersList. +func (in *UserClustersList) DeepCopy() *UserClustersList { if in == nil { return nil } - out := new(SpaceTemplateList) + out := new(UserClustersList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SpaceTemplateList) DeepCopyObject() runtime.Object { +func (in *UserClustersList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5875,72 +7307,93 @@ func (in *SpaceTemplateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceTemplateSpec) DeepCopyInto(out *SpaceTemplateSpec) { +func (in *UserInfo) DeepCopyInto(out *UserInfo) { *out = *in - in.SpaceTemplateSpec.DeepCopyInto(&out.SpaceTemplateSpec) + out.EntityInfo = in.EntityInfo + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make([]*storagev1.EntityInfo, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(storagev1.EntityInfo) + **out = **in + } + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateSpec. -func (in *SpaceTemplateSpec) DeepCopy() *SpaceTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo. +func (in *UserInfo) DeepCopy() *UserInfo { if in == nil { return nil } - out := new(SpaceTemplateSpec) + out := new(UserInfo) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceTemplateStatus) DeepCopyInto(out *SpaceTemplateStatus) { +func (in *UserList) DeepCopyInto(out *UserList) { *out = *in - out.SpaceTemplateStatus = in.SpaceTemplateStatus - if in.Apps != nil { - in, out := &in.Apps, &out.Apps - *out = make([]*storagev1.EntityInfo, len(*in)) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]User, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(storagev1.EntityInfo) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateStatus. -func (in *SpaceTemplateStatus) DeepCopy() *SpaceTemplateStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserList. +func (in *UserList) DeepCopy() *UserList { if in == nil { return nil } - out := new(SpaceTemplateStatus) + out := new(UserList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserList) 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 *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) { +func (in *UserObjectPermissions) DeepCopyInto(out *UserObjectPermissions) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + 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 SubjectAccessReview. -func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview { +// 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(SubjectAccessReview) + out := new(UserObjectPermissions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SubjectAccessReview) DeepCopyObject() runtime.Object { +func (in *UserObjectPermissions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5948,13 +7401,13 @@ func (in *SubjectAccessReview) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectAccessReviewList) DeepCopyInto(out *SubjectAccessReviewList) { +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([]SubjectAccessReview, len(*in)) + *out = make([]UserObjectPermissions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5962,18 +7415,18 @@ func (in *SubjectAccessReviewList) DeepCopyInto(out *SubjectAccessReviewList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewList. -func (in *SubjectAccessReviewList) DeepCopy() *SubjectAccessReviewList { +// 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(SubjectAccessReviewList) + out := new(UserObjectPermissionsList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SubjectAccessReviewList) DeepCopyObject() runtime.Object { +func (in *UserObjectPermissionsList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5981,61 +7434,172 @@ func (in *SubjectAccessReviewList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) { +func (in *UserPermissions) DeepCopyInto(out *UserPermissions) { *out = *in - in.SubjectAccessReviewSpec.DeepCopyInto(&out.SubjectAccessReviewSpec) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.ClusterRoles != nil { + in, out := &in.ClusterRoles, &out.ClusterRoles + *out = make([]UserPermissionsRole, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.NamespaceRoles != nil { + in, out := &in.NamespaceRoles, &out.NamespaceRoles + *out = make([]UserPermissionsRole, len(*in)) + for i := range *in { + (*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 } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec. -func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissions. +func (in *UserPermissions) DeepCopy() *UserPermissions { if in == nil { return nil } - out := new(SubjectAccessReviewSpec) + out := new(UserPermissions) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserPermissions) 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 *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) { +func (in *UserPermissionsList) DeepCopyInto(out *UserPermissionsList) { *out = *in - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UserPermissions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus. -func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissionsList. +func (in *UserPermissionsList) DeepCopy() *UserPermissionsList { + if in == nil { + return nil + } + out := new(UserPermissionsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserPermissionsList) 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 *UserPermissionsRole) DeepCopyInto(out *UserPermissionsRole) { + *out = *in + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]rbacv1.PolicyRule, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissionsRole. +func (in *UserPermissionsRole) DeepCopy() *UserPermissionsRole { if in == nil { return nil } - out := new(SubjectAccessReviewStatus) + out := new(UserPermissionsRole) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Task) DeepCopyInto(out *Task) { +func (in *UserProfile) DeepCopyInto(out *UserProfile) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + if in.Icon != nil { + in, out := &in.Icon, &out.Icon + *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 } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Task. -func (in *Task) DeepCopy() *Task { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProfile. +func (in *UserProfile) DeepCopy() *UserProfile { if in == nil { return nil } - out := new(Task) + out := new(UserProfile) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Task) DeepCopyObject() runtime.Object { +func (in *UserProfile) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6043,13 +7607,13 @@ func (in *Task) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TaskList) DeepCopyInto(out *TaskList) { +func (in *UserProfileList) DeepCopyInto(out *UserProfileList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Task, len(*in)) + *out = make([]UserProfile, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6057,18 +7621,18 @@ func (in *TaskList) DeepCopyInto(out *TaskList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList. -func (in *TaskList) DeepCopy() *TaskList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProfileList. +func (in *UserProfileList) DeepCopy() *UserProfileList { if in == nil { return nil } - out := new(TaskList) + out := new(UserProfileList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TaskList) DeepCopyObject() runtime.Object { +func (in *UserProfileList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6076,58 +7640,45 @@ func (in *TaskList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TaskLog) DeepCopyInto(out *TaskLog) { +func (in *UserProfileSecret) DeepCopyInto(out *UserProfileSecret) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskLog. -func (in *TaskLog) DeepCopy() *TaskLog { +// 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(TaskLog) + out := new(UserProfileSecret) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TaskLog) 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 *TaskLogList) DeepCopyInto(out *TaskLogList) { +func (in *UserQuotasOptions) DeepCopyInto(out *UserQuotasOptions) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]TaskLog, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.Cluster != nil { + in, out := &in.Cluster, &out.Cluster + *out = make([]string, len(*in)) + copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskLogList. -func (in *TaskLogList) DeepCopy() *TaskLogList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserQuotasOptions. +func (in *UserQuotasOptions) DeepCopy() *UserQuotasOptions { if in == nil { return nil } - out := new(TaskLogList) + out := new(UserQuotasOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TaskLogList) DeepCopyObject() runtime.Object { +func (in *UserQuotasOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6135,43 +7686,29 @@ func (in *TaskLogList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TaskLogOptions) DeepCopyInto(out *TaskLogOptions) { +func (in *UserSpacesOptions) DeepCopyInto(out *UserSpacesOptions) { *out = *in out.TypeMeta = in.TypeMeta - if in.SinceSeconds != nil { - in, out := &in.SinceSeconds, &out.SinceSeconds - *out = new(int64) - **out = **in - } - if in.SinceTime != nil { - in, out := &in.SinceTime, &out.SinceTime - *out = (*in).DeepCopy() - } - if in.TailLines != nil { - in, out := &in.TailLines, &out.TailLines - *out = new(int64) - **out = **in - } - if in.LimitBytes != nil { - in, out := &in.LimitBytes, &out.LimitBytes - *out = new(int64) - **out = **in + if in.Cluster != nil { + in, out := &in.Cluster, &out.Cluster + *out = make([]string, len(*in)) + copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskLogOptions. -func (in *TaskLogOptions) DeepCopy() *TaskLogOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpacesOptions. +func (in *UserSpacesOptions) DeepCopy() *UserSpacesOptions { if in == nil { return nil } - out := new(TaskLogOptions) + out := new(UserSpacesOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TaskLogOptions) DeepCopyObject() runtime.Object { +func (in *UserSpacesOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6179,71 +7716,63 @@ func (in *TaskLogOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TaskSpec) DeepCopyInto(out *TaskSpec) { +func (in *UserSpec) DeepCopyInto(out *UserSpec) { *out = *in - in.TaskSpec.DeepCopyInto(&out.TaskSpec) + in.UserSpec.DeepCopyInto(&out.UserSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec. -func (in *TaskSpec) DeepCopy() *TaskSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpec. +func (in *UserSpec) DeepCopy() *UserSpec { if in == nil { return nil } - out := new(TaskSpec) + out := new(UserSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TaskStatus) DeepCopyInto(out *TaskStatus) { +func (in *UserStatus) DeepCopyInto(out *UserStatus) { *out = *in - in.TaskStatus.DeepCopyInto(&out.TaskStatus) - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(storagev1.UserOrTeamEntity) - (*in).DeepCopyInto(*out) - } - if in.Cluster != nil { - in, out := &in.Cluster, &out.Cluster - *out = new(storagev1.EntityInfo) - **out = **in - } + in.UserStatus.DeepCopyInto(&out.UserStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskStatus. -func (in *TaskStatus) DeepCopy() *TaskStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserStatus. +func (in *UserStatus) DeepCopy() *UserStatus { if in == nil { return nil } - out := new(TaskStatus) + out := new(UserStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Team) DeepCopyInto(out *Team) { +func (in *UserVirtualClustersOptions) DeepCopyInto(out *UserVirtualClustersOptions) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + if in.Cluster != nil { + in, out := &in.Cluster, &out.Cluster + *out = make([]string, len(*in)) + copy(*out, *in) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Team. -func (in *Team) DeepCopy() *Team { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserVirtualClustersOptions. +func (in *UserVirtualClustersOptions) DeepCopy() *UserVirtualClustersOptions { if in == nil { return nil } - out := new(Team) + out := new(UserVirtualClustersOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Team) DeepCopyObject() runtime.Object { +func (in *UserVirtualClustersOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6251,32 +7780,25 @@ func (in *Team) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamAccessKeys) DeepCopyInto(out *TeamAccessKeys) { +func (in *VirtualClusterAccessKey) DeepCopyInto(out *VirtualClusterAccessKey) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.AccessKeys != nil { - in, out := &in.AccessKeys, &out.AccessKeys - *out = make([]OwnedAccessKey, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAccessKeys. -func (in *TeamAccessKeys) DeepCopy() *TeamAccessKeys { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterAccessKey. +func (in *VirtualClusterAccessKey) DeepCopy() *VirtualClusterAccessKey { if in == nil { return nil } - out := new(TeamAccessKeys) + out := new(VirtualClusterAccessKey) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamAccessKeys) DeepCopyObject() runtime.Object { +func (in *VirtualClusterAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6284,13 +7806,13 @@ func (in *TeamAccessKeys) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamAccessKeysList) DeepCopyInto(out *TeamAccessKeysList) { +func (in *VirtualClusterAccessKeyList) DeepCopyInto(out *VirtualClusterAccessKeyList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]TeamAccessKeys, len(*in)) + *out = make([]VirtualClusterAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6298,18 +7820,18 @@ func (in *TeamAccessKeysList) DeepCopyInto(out *TeamAccessKeysList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAccessKeysList. -func (in *TeamAccessKeysList) DeepCopy() *TeamAccessKeysList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterAccessKeyList. +func (in *VirtualClusterAccessKeyList) DeepCopy() *VirtualClusterAccessKeyList { if in == nil { return nil } - out := new(TeamAccessKeysList) + out := new(VirtualClusterAccessKeyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamAccessKeysList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6317,32 +7839,27 @@ func (in *TeamAccessKeysList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamClusters) DeepCopyInto(out *TeamClusters) { +func (in *VirtualClusterExternalDatabase) DeepCopyInto(out *VirtualClusterExternalDatabase) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make([]ClusterAccounts, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + out.Spec = in.Spec + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamClusters. -func (in *TeamClusters) DeepCopy() *TeamClusters { +// 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(TeamClusters) + out := new(VirtualClusterExternalDatabase) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamClusters) DeepCopyObject() runtime.Object { +func (in *VirtualClusterExternalDatabase) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6350,13 +7867,13 @@ func (in *TeamClusters) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamClustersList) DeepCopyInto(out *TeamClustersList) { +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([]TeamClusters, len(*in)) + *out = make([]VirtualClusterExternalDatabase, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6364,18 +7881,18 @@ 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 VirtualClusterExternalDatabaseList. +func (in *VirtualClusterExternalDatabaseList) DeepCopy() *VirtualClusterExternalDatabaseList { if in == nil { return nil } - out := new(TeamClustersList) + out := new(VirtualClusterExternalDatabaseList) 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 *VirtualClusterExternalDatabaseList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6383,94 +7900,87 @@ 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 *VirtualClusterExternalDatabaseSpec) DeepCopyInto(out *VirtualClusterExternalDatabaseSpec) { *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 { +// 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(TeamList) + out := new(VirtualClusterExternalDatabaseSpec) 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 *TeamSpec) DeepCopyInto(out *TeamSpec) { +func (in *VirtualClusterExternalDatabaseStatus) DeepCopyInto(out *VirtualClusterExternalDatabaseStatus) { *out = *in - in.TeamSpec.DeepCopyInto(&out.TeamSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamSpec. -func (in *TeamSpec) DeepCopy() *TeamSpec { +// 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(TeamSpec) + 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 *TeamStatus) DeepCopyInto(out *TeamStatus) { +func (in *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { *out = *in - out.TeamStatus = in.TeamStatus + 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 TeamStatus. -func (in *TeamStatus) DeepCopy() *TeamStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstance. +func (in *VirtualClusterInstance) DeepCopy() *VirtualClusterInstance { if in == nil { return nil } - out := new(TeamStatus) + out := new(VirtualClusterInstance) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterInstance) 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 *TranslateVClusterResourceName) DeepCopyInto(out *TranslateVClusterResourceName) { +func (in *VirtualClusterInstanceKubeConfig) DeepCopyInto(out *VirtualClusterInstanceKubeConfig) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec + in.Spec.DeepCopyInto(&out.Spec) out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceName. -func (in *TranslateVClusterResourceName) DeepCopy() *TranslateVClusterResourceName { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfig. +func (in *VirtualClusterInstanceKubeConfig) DeepCopy() *VirtualClusterInstanceKubeConfig { if in == nil { return nil } - out := new(TranslateVClusterResourceName) + out := new(VirtualClusterInstanceKubeConfig) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TranslateVClusterResourceName) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceKubeConfig) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6478,13 +7988,13 @@ func (in *TranslateVClusterResourceName) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TranslateVClusterResourceNameList) DeepCopyInto(out *TranslateVClusterResourceNameList) { +func (in *VirtualClusterInstanceKubeConfigList) DeepCopyInto(out *VirtualClusterInstanceKubeConfigList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]TranslateVClusterResourceName, len(*in)) + *out = make([]VirtualClusterInstanceKubeConfig, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6492,18 +8002,18 @@ func (in *TranslateVClusterResourceNameList) DeepCopyInto(out *TranslateVCluster return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameList. -func (in *TranslateVClusterResourceNameList) DeepCopy() *TranslateVClusterResourceNameList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfigList. +func (in *VirtualClusterInstanceKubeConfigList) DeepCopy() *VirtualClusterInstanceKubeConfigList { if in == nil { return nil } - out := new(TranslateVClusterResourceNameList) + out := new(VirtualClusterInstanceKubeConfigList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TranslateVClusterResourceNameList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceKubeConfigList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6511,59 +8021,69 @@ func (in *TranslateVClusterResourceNameList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TranslateVClusterResourceNameSpec) DeepCopyInto(out *TranslateVClusterResourceNameSpec) { +func (in *VirtualClusterInstanceKubeConfigSpec) DeepCopyInto(out *VirtualClusterInstanceKubeConfigSpec) { *out = *in + if in.CertificateTTL != nil { + in, out := &in.CertificateTTL, &out.CertificateTTL + *out = new(int32) + **out = **in + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameSpec. -func (in *TranslateVClusterResourceNameSpec) DeepCopy() *TranslateVClusterResourceNameSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfigSpec. +func (in *VirtualClusterInstanceKubeConfigSpec) DeepCopy() *VirtualClusterInstanceKubeConfigSpec { if in == nil { return nil } - out := new(TranslateVClusterResourceNameSpec) + out := new(VirtualClusterInstanceKubeConfigSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TranslateVClusterResourceNameStatus) DeepCopyInto(out *TranslateVClusterResourceNameStatus) { +func (in *VirtualClusterInstanceKubeConfigStatus) DeepCopyInto(out *VirtualClusterInstanceKubeConfigStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameStatus. -func (in *TranslateVClusterResourceNameStatus) DeepCopy() *TranslateVClusterResourceNameStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfigStatus. +func (in *VirtualClusterInstanceKubeConfigStatus) DeepCopy() *VirtualClusterInstanceKubeConfigStatus { if in == nil { return nil } - out := new(TranslateVClusterResourceNameStatus) + out := new(VirtualClusterInstanceKubeConfigStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *User) DeepCopyInto(out *User) { +func (in *VirtualClusterInstanceList) DeepCopyInto(out *VirtualClusterInstanceList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterInstance, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User. -func (in *User) DeepCopy() *User { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceList. +func (in *VirtualClusterInstanceList) DeepCopy() *VirtualClusterInstanceList { if in == nil { return nil } - out := new(User) + out := new(VirtualClusterInstanceList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *User) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6571,32 +8091,25 @@ func (in *User) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserAccessKeys) DeepCopyInto(out *UserAccessKeys) { +func (in *VirtualClusterInstanceLog) DeepCopyInto(out *VirtualClusterInstanceLog) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.AccessKeys != nil { - in, out := &in.AccessKeys, &out.AccessKeys - *out = make([]OwnedAccessKey, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccessKeys. -func (in *UserAccessKeys) DeepCopy() *UserAccessKeys { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceLog. +func (in *VirtualClusterInstanceLog) DeepCopy() *VirtualClusterInstanceLog { if in == nil { return nil } - out := new(UserAccessKeys) + out := new(VirtualClusterInstanceLog) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserAccessKeys) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceLog) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6604,13 +8117,13 @@ func (in *UserAccessKeys) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserAccessKeysList) DeepCopyInto(out *UserAccessKeysList) { +func (in *VirtualClusterInstanceLogList) DeepCopyInto(out *VirtualClusterInstanceLogList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]UserAccessKeys, len(*in)) + *out = make([]VirtualClusterInstanceLog, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6618,18 +8131,18 @@ func (in *UserAccessKeysList) DeepCopyInto(out *UserAccessKeysList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccessKeysList. -func (in *UserAccessKeysList) DeepCopy() *UserAccessKeysList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceLogList. +func (in *VirtualClusterInstanceLogList) DeepCopy() *VirtualClusterInstanceLogList { if in == nil { return nil } - out := new(UserAccessKeysList) + out := new(VirtualClusterInstanceLogList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserAccessKeysList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceLogList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6637,32 +8150,43 @@ func (in *UserAccessKeysList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserClusters) DeepCopyInto(out *UserClusters) { +func (in *VirtualClusterInstanceLogOptions) DeepCopyInto(out *VirtualClusterInstanceLogOptions) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make([]ClusterAccounts, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.SinceSeconds != nil { + in, out := &in.SinceSeconds, &out.SinceSeconds + *out = new(int64) + **out = **in + } + if in.SinceTime != nil { + in, out := &in.SinceTime, &out.SinceTime + *out = (*in).DeepCopy() + } + if in.TailLines != nil { + in, out := &in.TailLines, &out.TailLines + *out = new(int64) + **out = **in + } + if in.LimitBytes != nil { + in, out := &in.LimitBytes, &out.LimitBytes + *out = new(int64) + **out = **in } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserClusters. -func (in *UserClusters) DeepCopy() *UserClusters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceLogOptions. +func (in *VirtualClusterInstanceLogOptions) DeepCopy() *VirtualClusterInstanceLogOptions { if in == nil { return nil } - out := new(UserClusters) + out := new(VirtualClusterInstanceLogOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserClusters) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceLogOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6670,32 +8194,27 @@ func (in *UserClusters) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserClustersList) DeepCopyInto(out *UserClustersList) { +func (in *VirtualClusterInstanceShell) DeepCopyInto(out *VirtualClusterInstanceShell) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]UserClusters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + 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 UserClustersList. -func (in *UserClustersList) DeepCopy() *UserClustersList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceShell. +func (in *VirtualClusterInstanceShell) DeepCopy() *VirtualClusterInstanceShell { if in == nil { return nil } - out := new(UserClustersList) + out := new(VirtualClusterInstanceShell) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserClustersList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceShell) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6703,41 +8222,13 @@ func (in *UserClustersList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserInfo) DeepCopyInto(out *UserInfo) { - *out = *in - out.EntityInfo = in.EntityInfo - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]*storagev1.EntityInfo, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(storagev1.EntityInfo) - **out = **in - } - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo. -func (in *UserInfo) DeepCopy() *UserInfo { - if in == nil { - return nil - } - out := new(UserInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserList) DeepCopyInto(out *UserList) { +func (in *VirtualClusterInstanceShellList) DeepCopyInto(out *VirtualClusterInstanceShellList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]User, len(*in)) + *out = make([]VirtualClusterInstanceShell, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6745,18 +8236,18 @@ func (in *UserList) DeepCopyInto(out *UserList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserList. -func (in *UserList) DeepCopy() *UserList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceShellList. +func (in *VirtualClusterInstanceShellList) DeepCopy() *VirtualClusterInstanceShellList { if in == nil { return nil } - out := new(UserList) + out := new(VirtualClusterInstanceShellList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceShellList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6764,39 +8255,26 @@ func (in *UserList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserPermissions) DeepCopyInto(out *UserPermissions) { +func (in *VirtualClusterInstanceSnapshot) DeepCopyInto(out *VirtualClusterInstanceSnapshot) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.ClusterRoles != nil { - in, out := &in.ClusterRoles, &out.ClusterRoles - *out = make([]UserPermissionsRole, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.NamespaceRoles != nil { - in, out := &in.NamespaceRoles, &out.NamespaceRoles - *out = make([]UserPermissionsRole, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissions. -func (in *UserPermissions) DeepCopy() *UserPermissions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceSnapshot. +func (in *VirtualClusterInstanceSnapshot) DeepCopy() *VirtualClusterInstanceSnapshot { if in == nil { return nil } - out := new(UserPermissions) + out := new(VirtualClusterInstanceSnapshot) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserPermissions) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceSnapshot) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6804,13 +8282,13 @@ func (in *UserPermissions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserPermissionsList) DeepCopyInto(out *UserPermissionsList) { +func (in *VirtualClusterInstanceSnapshotList) DeepCopyInto(out *VirtualClusterInstanceSnapshotList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]UserPermissions, len(*in)) + *out = make([]VirtualClusterInstanceSnapshot, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6818,18 +8296,18 @@ func (in *UserPermissionsList) DeepCopyInto(out *UserPermissionsList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissionsList. -func (in *UserPermissionsList) DeepCopy() *UserPermissionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceSnapshotList. +func (in *VirtualClusterInstanceSnapshotList) DeepCopy() *VirtualClusterInstanceSnapshotList { if in == nil { return nil } - out := new(UserPermissionsList) + out := new(VirtualClusterInstanceSnapshotList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserPermissionsList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceSnapshotList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6837,11 +8315,11 @@ func (in *UserPermissionsList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserPermissionsRole) DeepCopyInto(out *UserPermissionsRole) { +func (in *VirtualClusterInstanceSnapshotStatus) DeepCopyInto(out *VirtualClusterInstanceSnapshotStatus) { *out = *in - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]rbacv1.PolicyRule, len(*in)) + if in.SnapshotsTaken != nil { + in, out := &in.SnapshotsTaken, &out.SnapshotsTaken + *out = make([]SnapshotTaken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6849,104 +8327,77 @@ func (in *UserPermissionsRole) DeepCopyInto(out *UserPermissionsRole) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissionsRole. -func (in *UserPermissionsRole) DeepCopy() *UserPermissionsRole { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceSnapshotStatus. +func (in *VirtualClusterInstanceSnapshotStatus) DeepCopy() *VirtualClusterInstanceSnapshotStatus { if in == nil { return nil } - out := new(UserPermissionsRole) + out := new(VirtualClusterInstanceSnapshotStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserProfile) DeepCopyInto(out *UserProfile) { +func (in *VirtualClusterInstanceSpec) DeepCopyInto(out *VirtualClusterInstanceSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Icon != nil { - in, out := &in.Icon, &out.Icon - *out = new(string) - **out = **in - } + in.VirtualClusterInstanceSpec.DeepCopyInto(&out.VirtualClusterInstanceSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProfile. -func (in *UserProfile) DeepCopy() *UserProfile { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceSpec. +func (in *VirtualClusterInstanceSpec) DeepCopy() *VirtualClusterInstanceSpec { if in == nil { return nil } - out := new(UserProfile) + out := new(VirtualClusterInstanceSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserProfile) 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 *UserProfileList) DeepCopyInto(out *UserProfileList) { +func (in *VirtualClusterInstanceStatus) DeepCopyInto(out *VirtualClusterInstanceStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]UserProfile, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + in.VirtualClusterInstanceStatus.DeepCopyInto(&out.VirtualClusterInstanceStatus) + 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 UserProfileList. -func (in *UserProfileList) DeepCopy() *UserProfileList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceStatus. +func (in *VirtualClusterInstanceStatus) DeepCopy() *VirtualClusterInstanceStatus { if in == nil { return nil } - out := new(UserProfileList) + out := new(VirtualClusterInstanceStatus) in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserProfileList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil + 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) { +func (in *VirtualClusterNodeAccessKey) DeepCopyInto(out *VirtualClusterNodeAccessKey) { *out = *in out.TypeMeta = in.TypeMeta - if in.Cluster != nil { - in, out := &in.Cluster, &out.Cluster - *out = make([]string, len(*in)) - copy(*out, *in) - } + 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 UserQuotasOptions. -func (in *UserQuotasOptions) DeepCopy() *UserQuotasOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterNodeAccessKey. +func (in *VirtualClusterNodeAccessKey) DeepCopy() *VirtualClusterNodeAccessKey { if in == nil { return nil } - out := new(UserQuotasOptions) + out := new(VirtualClusterNodeAccessKey) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserQuotasOptions) DeepCopyObject() runtime.Object { +func (in *VirtualClusterNodeAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6954,29 +8405,32 @@ func (in *UserQuotasOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserSpacesOptions) DeepCopyInto(out *UserSpacesOptions) { +func (in *VirtualClusterNodeAccessKeyList) DeepCopyInto(out *VirtualClusterNodeAccessKeyList) { *out = *in out.TypeMeta = in.TypeMeta - if in.Cluster != nil { - in, out := &in.Cluster, &out.Cluster - *out = make([]string, len(*in)) - copy(*out, *in) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterNodeAccessKey, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpacesOptions. -func (in *UserSpacesOptions) DeepCopy() *UserSpacesOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterNodeAccessKeyList. +func (in *VirtualClusterNodeAccessKeyList) DeepCopy() *VirtualClusterNodeAccessKeyList { if in == nil { return nil } - out := new(UserSpacesOptions) + out := new(VirtualClusterNodeAccessKeyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserSpacesOptions) DeepCopyObject() runtime.Object { +func (in *VirtualClusterNodeAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6984,63 +8438,58 @@ func (in *UserSpacesOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserSpec) DeepCopyInto(out *UserSpec) { +func (in *VirtualClusterNodeAccessKeySpec) DeepCopyInto(out *VirtualClusterNodeAccessKeySpec) { *out = *in - in.UserSpec.DeepCopyInto(&out.UserSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpec. -func (in *UserSpec) DeepCopy() *UserSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterNodeAccessKeySpec. +func (in *VirtualClusterNodeAccessKeySpec) DeepCopy() *VirtualClusterNodeAccessKeySpec { if in == nil { return nil } - out := new(UserSpec) + out := new(VirtualClusterNodeAccessKeySpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserStatus) DeepCopyInto(out *UserStatus) { +func (in *VirtualClusterNodeAccessKeyStatus) DeepCopyInto(out *VirtualClusterNodeAccessKeyStatus) { *out = *in - in.UserStatus.DeepCopyInto(&out.UserStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserStatus. -func (in *UserStatus) DeepCopy() *UserStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterNodeAccessKeyStatus. +func (in *VirtualClusterNodeAccessKeyStatus) DeepCopy() *VirtualClusterNodeAccessKeyStatus { if in == nil { return nil } - out := new(UserStatus) + out := new(VirtualClusterNodeAccessKeyStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserVirtualClustersOptions) DeepCopyInto(out *UserVirtualClustersOptions) { +func (in *VirtualClusterResourceUsage) DeepCopyInto(out *VirtualClusterResourceUsage) { *out = *in out.TypeMeta = in.TypeMeta - if in.Cluster != nil { - in, out := &in.Cluster, &out.Cluster - *out = make([]string, len(*in)) - copy(*out, *in) - } + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserVirtualClustersOptions. -func (in *UserVirtualClustersOptions) DeepCopy() *UserVirtualClustersOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterResourceUsage. +func (in *VirtualClusterResourceUsage) DeepCopy() *VirtualClusterResourceUsage { if in == nil { return nil } - out := new(UserVirtualClustersOptions) + out := new(VirtualClusterResourceUsage) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserVirtualClustersOptions) DeepCopyObject() runtime.Object { +func (in *VirtualClusterResourceUsage) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7048,25 +8497,32 @@ func (in *UserVirtualClustersOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterAccessKey) DeepCopyInto(out *VirtualClusterAccessKey) { +func (in *VirtualClusterResourceUsageList) DeepCopyInto(out *VirtualClusterResourceUsageList) { *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([]VirtualClusterResourceUsage, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterAccessKey. -func (in *VirtualClusterAccessKey) DeepCopy() *VirtualClusterAccessKey { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterResourceUsageList. +func (in *VirtualClusterResourceUsageList) DeepCopy() *VirtualClusterResourceUsageList { if in == nil { return nil } - out := new(VirtualClusterAccessKey) + out := new(VirtualClusterResourceUsageList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterAccessKey) DeepCopyObject() runtime.Object { +func (in *VirtualClusterResourceUsageList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7074,88 +8530,85 @@ func (in *VirtualClusterAccessKey) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterAccessKeyList) DeepCopyInto(out *VirtualClusterAccessKeyList) { +func (in *VirtualClusterResourceUsageMap) DeepCopyInto(out *VirtualClusterResourceUsageMap) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VirtualClusterAccessKey, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(map[string]int, len(*in)) + for key, val := range *in { + (*out)[key] = val } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterAccessKeyList. -func (in *VirtualClusterAccessKeyList) DeepCopy() *VirtualClusterAccessKeyList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterResourceUsageMap. +func (in *VirtualClusterResourceUsageMap) DeepCopy() *VirtualClusterResourceUsageMap { if in == nil { return nil } - out := new(VirtualClusterAccessKeyList) + out := new(VirtualClusterResourceUsageMap) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterAccessKeyList) 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 *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { +func (in *VirtualClusterResourceUsageStatus) DeepCopyInto(out *VirtualClusterResourceUsageStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.ResourceUsage.DeepCopyInto(&out.ResourceUsage) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstance. -func (in *VirtualClusterInstance) DeepCopy() *VirtualClusterInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterResourceUsageStatus. +func (in *VirtualClusterResourceUsageStatus) DeepCopy() *VirtualClusterResourceUsageStatus { if in == nil { return nil } - out := new(VirtualClusterInstance) + out := new(VirtualClusterResourceUsageStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstance) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// 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 } - 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 *VirtualClusterInstanceKubeConfig) DeepCopyInto(out *VirtualClusterInstanceKubeConfig) { +func (in *VirtualClusterSchema) DeepCopyInto(out *VirtualClusterSchema) { *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 VirtualClusterInstanceKubeConfig. -func (in *VirtualClusterInstanceKubeConfig) DeepCopy() *VirtualClusterInstanceKubeConfig { +// 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(VirtualClusterInstanceKubeConfig) + out := new(VirtualClusterSchema) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstanceKubeConfig) DeepCopyObject() runtime.Object { +func (in *VirtualClusterSchema) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7163,13 +8616,13 @@ func (in *VirtualClusterInstanceKubeConfig) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstanceKubeConfigList) DeepCopyInto(out *VirtualClusterInstanceKubeConfigList) { +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([]VirtualClusterInstanceKubeConfig, len(*in)) + *out = make([]VirtualClusterSchema, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7177,18 +8630,18 @@ func (in *VirtualClusterInstanceKubeConfigList) DeepCopyInto(out *VirtualCluster return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfigList. -func (in *VirtualClusterInstanceKubeConfigList) DeepCopy() *VirtualClusterInstanceKubeConfigList { +// 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(VirtualClusterInstanceKubeConfigList) + out := new(VirtualClusterSchemaList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstanceKubeConfigList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterSchemaList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7196,128 +8649,91 @@ func (in *VirtualClusterInstanceKubeConfigList) DeepCopyObject() runtime.Object } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstanceKubeConfigSpec) DeepCopyInto(out *VirtualClusterInstanceKubeConfigSpec) { +func (in *VirtualClusterSchemaSpec) DeepCopyInto(out *VirtualClusterSchemaSpec) { *out = *in - if in.CertificateTTL != nil { - in, out := &in.CertificateTTL, &out.CertificateTTL - *out = new(int32) - **out = **in - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfigSpec. -func (in *VirtualClusterInstanceKubeConfigSpec) DeepCopy() *VirtualClusterInstanceKubeConfigSpec { +// 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(VirtualClusterInstanceKubeConfigSpec) + 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 *VirtualClusterInstanceKubeConfigStatus) DeepCopyInto(out *VirtualClusterInstanceKubeConfigStatus) { +func (in *VirtualClusterSchemaStatus) DeepCopyInto(out *VirtualClusterSchemaStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfigStatus. -func (in *VirtualClusterInstanceKubeConfigStatus) DeepCopy() *VirtualClusterInstanceKubeConfigStatus { +// 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(VirtualClusterInstanceKubeConfigStatus) + 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 *VirtualClusterInstanceList) DeepCopyInto(out *VirtualClusterInstanceList) { +func (in *VirtualClusterShellSpec) DeepCopyInto(out *VirtualClusterShellSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VirtualClusterInstance, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceList. -func (in *VirtualClusterInstanceList) DeepCopy() *VirtualClusterInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterShellSpec. +func (in *VirtualClusterShellSpec) DeepCopy() *VirtualClusterShellSpec { if in == nil { return nil } - out := new(VirtualClusterInstanceList) + out := new(VirtualClusterShellSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstanceList) 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 *VirtualClusterInstanceLog) DeepCopyInto(out *VirtualClusterInstanceLog) { +func (in *VirtualClusterShellStatus) DeepCopyInto(out *VirtualClusterShellStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceLog. -func (in *VirtualClusterInstanceLog) DeepCopy() *VirtualClusterInstanceLog { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterShellStatus. +func (in *VirtualClusterShellStatus) DeepCopy() *VirtualClusterShellStatus { if in == nil { return nil } - out := new(VirtualClusterInstanceLog) + out := new(VirtualClusterShellStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstanceLog) 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 *VirtualClusterInstanceLogList) DeepCopyInto(out *VirtualClusterInstanceLogList) { +func (in *VirtualClusterStandalone) DeepCopyInto(out *VirtualClusterStandalone) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VirtualClusterInstanceLog, 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 VirtualClusterInstanceLogList. -func (in *VirtualClusterInstanceLogList) DeepCopy() *VirtualClusterInstanceLogList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterStandalone. +func (in *VirtualClusterStandalone) DeepCopy() *VirtualClusterStandalone { if in == nil { return nil } - out := new(VirtualClusterInstanceLogList) + out := new(VirtualClusterStandalone) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstanceLogList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterStandalone) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7325,43 +8741,32 @@ func (in *VirtualClusterInstanceLogList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstanceLogOptions) DeepCopyInto(out *VirtualClusterInstanceLogOptions) { +func (in *VirtualClusterStandaloneList) DeepCopyInto(out *VirtualClusterStandaloneList) { *out = *in out.TypeMeta = in.TypeMeta - if in.SinceSeconds != nil { - in, out := &in.SinceSeconds, &out.SinceSeconds - *out = new(int64) - **out = **in - } - if in.SinceTime != nil { - in, out := &in.SinceTime, &out.SinceTime - *out = (*in).DeepCopy() - } - if in.TailLines != nil { - in, out := &in.TailLines, &out.TailLines - *out = new(int64) - **out = **in - } - if in.LimitBytes != nil { - in, out := &in.LimitBytes, &out.LimitBytes - *out = new(int64) - **out = **in + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterStandalone, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceLogOptions. -func (in *VirtualClusterInstanceLogOptions) DeepCopy() *VirtualClusterInstanceLogOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterStandaloneList. +func (in *VirtualClusterStandaloneList) DeepCopy() *VirtualClusterStandaloneList { if in == nil { return nil } - out := new(VirtualClusterInstanceLogOptions) + out := new(VirtualClusterStandaloneList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstanceLogOptions) DeepCopyObject() runtime.Object { +func (in *VirtualClusterStandaloneList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7369,40 +8774,41 @@ func (in *VirtualClusterInstanceLogOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstanceSpec) DeepCopyInto(out *VirtualClusterInstanceSpec) { +func (in *VirtualClusterStandaloneSpec) DeepCopyInto(out *VirtualClusterStandaloneSpec) { *out = *in - in.VirtualClusterInstanceSpec.DeepCopyInto(&out.VirtualClusterInstanceSpec) + out.CurrentPeer = in.CurrentPeer + in.CurrentPKI.DeepCopyInto(&out.CurrentPKI) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceSpec. -func (in *VirtualClusterInstanceSpec) DeepCopy() *VirtualClusterInstanceSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterStandaloneSpec. +func (in *VirtualClusterStandaloneSpec) DeepCopy() *VirtualClusterStandaloneSpec { if in == nil { return nil } - out := new(VirtualClusterInstanceSpec) + out := new(VirtualClusterStandaloneSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstanceStatus) DeepCopyInto(out *VirtualClusterInstanceStatus) { +func (in *VirtualClusterStandaloneStatus) DeepCopyInto(out *VirtualClusterStandaloneStatus) { *out = *in - in.VirtualClusterInstanceStatus.DeepCopyInto(&out.VirtualClusterInstanceStatus) - if in.SleepModeConfig != nil { - in, out := &in.SleepModeConfig, &out.SleepModeConfig - *out = new(clusterv1.SleepModeConfig) - (*in).DeepCopyInto(*out) + if in.ETCDPeers != nil { + in, out := &in.ETCDPeers, &out.ETCDPeers + *out = make([]StandaloneEtcdPeerCoordinator, len(*in)) + copy(*out, *in) } + in.PKI.DeepCopyInto(&out.PKI) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceStatus. -func (in *VirtualClusterInstanceStatus) DeepCopy() *VirtualClusterInstanceStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterStandaloneStatus. +func (in *VirtualClusterStandaloneStatus) DeepCopy() *VirtualClusterStandaloneStatus { if in == nil { return nil } - out := new(VirtualClusterInstanceStatus) + out := new(VirtualClusterStandaloneStatus) in.DeepCopyInto(out) return out } @@ -7512,3 +8918,44 @@ func (in *VirtualClusterTemplateStatus) DeepCopy() *VirtualClusterTemplateStatus in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotRequestStatus) DeepCopyInto(out *VolumeSnapshotRequestStatus) { + *out = *in + out.Error = in.Error + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotRequestStatus. +func (in *VolumeSnapshotRequestStatus) DeepCopy() *VolumeSnapshotRequestStatus { + if in == nil { + return nil + } + out := new(VolumeSnapshotRequestStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotsRequestStatus) DeepCopyInto(out *VolumeSnapshotsRequestStatus) { + *out = *in + if in.Snapshots != nil { + in, out := &in.Snapshots, &out.Snapshots + *out = make(map[string]VolumeSnapshotRequestStatus, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + out.Error = in.Error + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotsRequestStatus. +func (in *VolumeSnapshotsRequestStatus) DeepCopy() *VolumeSnapshotsRequestStatus { + if in == nil { + return nil + } + out := new(VolumeSnapshotsRequestStatus) + in.DeepCopyInto(out) + return out +} diff --git a/pkg/apis/management/v1/zz_generated.defaults.go b/pkg/apis/management/v1/zz_generated.defaults.go index d7e43310..88694caa 100644 --- a/pkg/apis/management/v1/zz_generated.defaults.go +++ b/pkg/apis/management/v1/zz_generated.defaults.go @@ -6,7 +6,6 @@ package v1 import ( - v1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -14,131 +13,5 @@ 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)) }) return nil } - -func SetObjectDefaults_ProjectClusters(in *ProjectClusters) { - for i := range in.Runners { - a := &in.Runners[i] - SetObjectDefaults_Runner(a) - } -} - -func SetObjectDefaults_ProjectClustersList(in *ProjectClustersList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_ProjectClusters(a) - } -} - -func SetObjectDefaults_ProjectRunners(in *ProjectRunners) { - for i := range in.Runners { - a := &in.Runners[i] - SetObjectDefaults_Runner(a) - } -} - -func SetObjectDefaults_ProjectRunnersList(in *ProjectRunnersList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_ProjectRunners(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] - 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.RunnerSpec.ClusterRef.PodTemplate.Spec.InitContainers { - a := &in.Spec.RunnerSpec.ClusterRef.PodTemplate.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 - } - } - } - } - } - } -} - -func SetObjectDefaults_RunnerList(in *RunnerList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_Runner(a) - } -} diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 15c51fdc..488262e9 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -15,10 +15,12 @@ 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" "k8s.io/apimachinery/pkg/runtime" + pkgruntime "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apiserver/pkg/registry/generic" "k8s.io/apiserver/pkg/registry/rest" @@ -76,7 +78,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,37 +122,17 @@ var ( NewConvertVirtualClusterConfigREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewConvertVirtualClusterConfigRESTFunc(Factory) } - NewConvertVirtualClusterConfigRESTFunc NewRESTFunc - ManagementDevPodEnvironmentTemplateStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalDevPodEnvironmentTemplate, - func() runtime.Object { return &DevPodEnvironmentTemplate{} }, // Register versioned resource - func() runtime.Object { return &DevPodEnvironmentTemplateList{} }, // Register versioned resource list - NewDevPodEnvironmentTemplateREST, - ) - NewDevPodEnvironmentTemplateREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodEnvironmentTemplateRESTFunc(Factory) - } - NewDevPodEnvironmentTemplateRESTFunc NewRESTFunc - ManagementDevPodWorkspaceInstanceStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalDevPodWorkspaceInstance, - func() runtime.Object { return &DevPodWorkspaceInstance{} }, // Register versioned resource - func() runtime.Object { return &DevPodWorkspaceInstanceList{} }, // Register versioned resource list - NewDevPodWorkspaceInstanceREST, - ) - NewDevPodWorkspaceInstanceREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceRESTFunc(Factory) - } - NewDevPodWorkspaceInstanceRESTFunc NewRESTFunc - ManagementDevPodWorkspaceTemplateStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalDevPodWorkspaceTemplate, - func() runtime.Object { return &DevPodWorkspaceTemplate{} }, // Register versioned resource - func() runtime.Object { return &DevPodWorkspaceTemplateList{} }, // Register versioned resource list - NewDevPodWorkspaceTemplateREST, - ) - NewDevPodWorkspaceTemplateREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceTemplateRESTFunc(Factory) - } - NewDevPodWorkspaceTemplateRESTFunc NewRESTFunc + 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 ManagementDirectClusterEndpointTokenStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalDirectClusterEndpointToken, func() runtime.Object { return &DirectClusterEndpointToken{} }, // Register versioned resource @@ -210,17 +196,7 @@ var ( NewLicenseREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewLicenseRESTFunc(Factory) } - NewLicenseRESTFunc NewRESTFunc - ManagementLicenseTokenStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalLicenseToken, - func() runtime.Object { return &LicenseToken{} }, // Register versioned resource - func() runtime.Object { return &LicenseTokenList{} }, // Register versioned resource list - NewLicenseTokenREST, - ) - NewLicenseTokenREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewLicenseTokenRESTFunc(Factory) - } - NewLicenseTokenRESTFunc NewRESTFunc + NewLicenseRESTFunc NewRESTFunc ManagementLoftUpgradeStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalLoftUpgrade, func() runtime.Object { return &LoftUpgrade{} }, // Register versioned resource @@ -230,7 +206,63 @@ 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 + ManagementNodeEnvironmentStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalNodeEnvironment, + func() runtime.Object { return &NodeEnvironment{} }, // Register versioned resource + func() runtime.Object { return &NodeEnvironmentList{} }, // Register versioned resource list + NewNodeEnvironmentREST, + ) + NewNodeEnvironmentREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeEnvironmentRESTFunc(Factory) + } + NewNodeEnvironmentRESTFunc NewRESTFunc + NewNodeEnvironmentStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeEnvironmentStatusRESTFunc(Factory) + } + NewNodeEnvironmentStatusRESTFunc 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 +337,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 @@ -409,7 +427,17 @@ var ( return NewTranslateVClusterResourceNameRESTFunc(Factory) } NewTranslateVClusterResourceNameRESTFunc NewRESTFunc - ManagementUserStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + ManagementUsageDownloadStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalUsageDownload, + func() runtime.Object { return &UsageDownload{} }, // Register versioned resource + func() runtime.Object { return &UsageDownloadList{} }, // Register versioned resource list + NewUsageDownloadREST, + ) + NewUsageDownloadREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewUsageDownloadRESTFunc(Factory) + } + NewUsageDownloadRESTFunc NewRESTFunc + ManagementUserStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalUser, func() runtime.Object { return &User{} }, // Register versioned resource func() runtime.Object { return &UserList{} }, // Register versioned resource list @@ -428,7 +456,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 +608,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,89 +657,17 @@ var ( func() runtime.Object { return &ConvertVirtualClusterConfig{} }, func() runtime.Object { return &ConvertVirtualClusterConfigList{} }, ) - InternalDevPodEnvironmentTemplate = builders.NewInternalResource( - "devpodenvironmenttemplates", - "DevPodEnvironmentTemplate", - func() runtime.Object { return &DevPodEnvironmentTemplate{} }, - func() runtime.Object { return &DevPodEnvironmentTemplateList{} }, - ) - InternalDevPodEnvironmentTemplateStatus = builders.NewInternalResourceStatus( - "devpodenvironmenttemplates", - "DevPodEnvironmentTemplateStatus", - func() runtime.Object { return &DevPodEnvironmentTemplate{} }, - func() runtime.Object { return &DevPodEnvironmentTemplateList{} }, - ) - InternalDevPodWorkspaceInstance = builders.NewInternalResource( - "devpodworkspaceinstances", - "DevPodWorkspaceInstance", - func() runtime.Object { return &DevPodWorkspaceInstance{} }, - func() runtime.Object { return &DevPodWorkspaceInstanceList{} }, - ) - InternalDevPodWorkspaceInstanceStatus = builders.NewInternalResourceStatus( - "devpodworkspaceinstances", - "DevPodWorkspaceInstanceStatus", - func() runtime.Object { return &DevPodWorkspaceInstance{} }, - func() runtime.Object { return &DevPodWorkspaceInstanceList{} }, - ) - InternalDevPodDeleteOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodDeleteOptions", "delete", - func() runtime.Object { return &DevPodDeleteOptions{} }, - ) - NewDevPodDeleteOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodDeleteOptionsRESTFunc(Factory) - } - NewDevPodDeleteOptionsRESTFunc NewRESTFunc - InternalDevPodStatusOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodStatusOptions", "getstatus", - func() runtime.Object { return &DevPodStatusOptions{} }, - ) - NewDevPodStatusOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodStatusOptionsRESTFunc(Factory) - } - NewDevPodStatusOptionsRESTFunc NewRESTFunc - InternalDevPodSshOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodSshOptions", "ssh", - func() runtime.Object { return &DevPodSshOptions{} }, - ) - NewDevPodSshOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodSshOptionsRESTFunc(Factory) - } - NewDevPodSshOptionsRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceStateREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceState", "state", - func() runtime.Object { return &DevPodWorkspaceInstanceState{} }, - ) - NewDevPodWorkspaceInstanceStateREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceStateRESTFunc(Factory) - } - NewDevPodWorkspaceInstanceStateRESTFunc NewRESTFunc - InternalDevPodStopOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodStopOptions", "stop", - func() runtime.Object { return &DevPodStopOptions{} }, - ) - NewDevPodStopOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodStopOptionsRESTFunc(Factory) - } - NewDevPodStopOptionsRESTFunc NewRESTFunc - InternalDevPodUpOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodUpOptions", "up", - func() runtime.Object { return &DevPodUpOptions{} }, - ) - NewDevPodUpOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodUpOptionsRESTFunc(Factory) - } - NewDevPodUpOptionsRESTFunc NewRESTFunc - InternalDevPodWorkspaceTemplate = builders.NewInternalResource( - "devpodworkspacetemplates", - "DevPodWorkspaceTemplate", - func() runtime.Object { return &DevPodWorkspaceTemplate{} }, - func() runtime.Object { return &DevPodWorkspaceTemplateList{} }, - ) - InternalDevPodWorkspaceTemplateStatus = builders.NewInternalResourceStatus( - "devpodworkspacetemplates", - "DevPodWorkspaceTemplateStatus", - func() runtime.Object { return &DevPodWorkspaceTemplate{} }, - func() runtime.Object { return &DevPodWorkspaceTemplateList{} }, + 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{} }, ) InternalDirectClusterEndpointToken = builders.NewInternalResource( "directclusterendpointtokens", @@ -791,19 +749,7 @@ var ( return NewLicenseRequestRESTFunc(Factory) } NewLicenseRequestRESTFunc NewRESTFunc - InternalLicenseToken = builders.NewInternalResource( - "licensetokens", - "LicenseToken", - func() runtime.Object { return &LicenseToken{} }, - func() runtime.Object { return &LicenseTokenList{} }, - ) - InternalLicenseTokenStatus = builders.NewInternalResourceStatus( - "licensetokens", - "LicenseTokenStatus", - func() runtime.Object { return &LicenseToken{} }, - func() runtime.Object { return &LicenseTokenList{} }, - ) - InternalLoftUpgrade = builders.NewInternalResource( + InternalLoftUpgrade = builders.NewInternalResource( "loftupgrades", "LoftUpgrade", func() runtime.Object { return &LoftUpgrade{} }, @@ -815,6 +761,62 @@ 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{} }, + ) + InternalNodeEnvironment = builders.NewInternalResource( + "nodeenvironments", + "NodeEnvironment", + func() runtime.Object { return &NodeEnvironment{} }, + func() runtime.Object { return &NodeEnvironmentList{} }, + ) + InternalNodeEnvironmentStatus = builders.NewInternalResourceStatus( + "nodeenvironments", + "NodeEnvironmentStatus", + func() runtime.Object { return &NodeEnvironment{} }, + func() runtime.Object { return &NodeEnvironmentList{} }, + ) + 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{} }, + ) + InternalNodeProviderExecREST = builders.NewInternalSubresource( + "nodeproviders", "NodeProviderExec", "exec", + func() runtime.Object { return &NodeProviderExec{} }, + ) + NewNodeProviderExecREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeProviderExecRESTFunc(Factory) + } + NewNodeProviderExecRESTFunc NewRESTFunc + 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,14 +909,14 @@ var ( return NewProjectMigrateVirtualClusterInstanceRESTFunc(Factory) } NewProjectMigrateVirtualClusterInstanceRESTFunc NewRESTFunc - InternalProjectRunnersREST = builders.NewInternalSubresource( - "projects", "ProjectRunners", "runners", - func() runtime.Object { return &ProjectRunners{} }, + InternalProjectNodeTypesREST = builders.NewInternalSubresource( + "projects", "ProjectNodeTypes", "nodetypes", + func() runtime.Object { return &ProjectNodeTypes{} }, ) - NewProjectRunnersREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewProjectRunnersRESTFunc(Factory) + NewProjectNodeTypesREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewProjectNodeTypesRESTFunc(Factory) } - NewProjectRunnersRESTFunc NewRESTFunc + NewProjectNodeTypesRESTFunc NewRESTFunc InternalProjectTemplatesREST = builders.NewInternalSubresource( "projects", "ProjectTemplates", "templates", func() runtime.Object { return &ProjectTemplates{} }, @@ -971,35 +973,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 +1092,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", @@ -1131,6 +1121,18 @@ var ( func() runtime.Object { return &TranslateVClusterResourceName{} }, func() runtime.Object { return &TranslateVClusterResourceNameList{} }, ) + InternalUsageDownload = builders.NewInternalResource( + "usagedownload", + "UsageDownload", + func() runtime.Object { return &UsageDownload{} }, + func() runtime.Object { return &UsageDownloadList{} }, + ) + InternalUsageDownloadStatus = builders.NewInternalResourceStatus( + "usagedownload", + "UsageDownloadStatus", + func() runtime.Object { return &UsageDownload{} }, + func() runtime.Object { return &UsageDownloadList{} }, + ) InternalUser = builders.NewInternalResource( "users", "User", @@ -1158,8 +1160,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 +1204,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{} }, @@ -1210,8 +1228,60 @@ var ( NewVirtualClusterInstanceLogREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewVirtualClusterInstanceLogRESTFunc(Factory) } - NewVirtualClusterInstanceLogRESTFunc NewRESTFunc - InternalVirtualClusterTemplate = builders.NewInternalResource( + NewVirtualClusterInstanceLogRESTFunc NewRESTFunc + InternalVirtualClusterNodeAccessKeyREST = builders.NewInternalSubresource( + "virtualclusterinstances", "VirtualClusterNodeAccessKey", "nodeaccesskey", + func() runtime.Object { return &VirtualClusterNodeAccessKey{} }, + ) + NewVirtualClusterNodeAccessKeyREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewVirtualClusterNodeAccessKeyRESTFunc(Factory) + } + NewVirtualClusterNodeAccessKeyRESTFunc NewRESTFunc + InternalVirtualClusterResourceUsageREST = builders.NewInternalSubresource( + "virtualclusterinstances", "VirtualClusterResourceUsage", "resourceusage", + func() runtime.Object { return &VirtualClusterResourceUsage{} }, + ) + NewVirtualClusterResourceUsageREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewVirtualClusterResourceUsageRESTFunc(Factory) + } + NewVirtualClusterResourceUsageRESTFunc NewRESTFunc + InternalVirtualClusterInstanceShellREST = builders.NewInternalSubresource( + "virtualclusterinstances", "VirtualClusterInstanceShell", "shell", + func() runtime.Object { return &VirtualClusterInstanceShell{} }, + ) + NewVirtualClusterInstanceShellREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewVirtualClusterInstanceShellRESTFunc(Factory) + } + NewVirtualClusterInstanceShellRESTFunc NewRESTFunc + InternalVirtualClusterInstanceSnapshotREST = builders.NewInternalSubresource( + "virtualclusterinstances", "VirtualClusterInstanceSnapshot", "snapshot", + func() runtime.Object { return &VirtualClusterInstanceSnapshot{} }, + ) + NewVirtualClusterInstanceSnapshotREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewVirtualClusterInstanceSnapshotRESTFunc(Factory) + } + NewVirtualClusterInstanceSnapshotRESTFunc NewRESTFunc + InternalVirtualClusterStandaloneREST = builders.NewInternalSubresource( + "virtualclusterinstances", "VirtualClusterStandalone", "standalone", + func() runtime.Object { return &VirtualClusterStandalone{} }, + ) + NewVirtualClusterStandaloneREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewVirtualClusterStandaloneRESTFunc(Factory) + } + NewVirtualClusterStandaloneRESTFunc NewRESTFunc + 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 +1314,6 @@ var ( InternalClusterMemberAccessREST, InternalClusterMembersREST, InternalClusterResetREST, - InternalClusterVirtualClusterDefaultsREST, InternalClusterAccess, InternalClusterAccessStatus, InternalClusterRoleTemplate, @@ -1253,18 +1322,8 @@ var ( InternalConfigStatus, InternalConvertVirtualClusterConfig, InternalConvertVirtualClusterConfigStatus, - InternalDevPodEnvironmentTemplate, - InternalDevPodEnvironmentTemplateStatus, - InternalDevPodWorkspaceInstance, - InternalDevPodWorkspaceInstanceStatus, - InternalDevPodDeleteOptionsREST, - InternalDevPodStatusOptionsREST, - InternalDevPodSshOptionsREST, - InternalDevPodWorkspaceInstanceStateREST, - InternalDevPodStopOptionsREST, - InternalDevPodUpOptionsREST, - InternalDevPodWorkspaceTemplate, - InternalDevPodWorkspaceTemplateStatus, + InternalDatabaseConnector, + InternalDatabaseConnectorStatus, InternalDirectClusterEndpointToken, InternalDirectClusterEndpointTokenStatus, InternalEvent, @@ -1278,10 +1337,17 @@ var ( InternalLicense, InternalLicenseStatus, InternalLicenseRequestREST, - InternalLicenseToken, - InternalLicenseTokenStatus, InternalLoftUpgrade, InternalLoftUpgradeStatus, + InternalNodeClaim, + InternalNodeClaimStatus, + InternalNodeEnvironment, + InternalNodeEnvironmentStatus, + InternalNodeProvider, + InternalNodeProviderStatus, + InternalNodeProviderExecREST, + InternalNodeType, + InternalNodeTypeStatus, InternalOIDCClient, InternalOIDCClientStatus, InternalOwnedAccessKey, @@ -1295,7 +1361,7 @@ var ( InternalProjectMembersREST, InternalProjectMigrateSpaceInstanceREST, InternalProjectMigrateVirtualClusterInstanceREST, - InternalProjectRunnersREST, + InternalProjectNodeTypesREST, InternalProjectTemplatesREST, InternalProjectSecret, InternalProjectSecretStatus, @@ -1305,10 +1371,6 @@ var ( InternalRegisterVirtualClusterStatus, InternalResetAccessKey, InternalResetAccessKeyStatus, - InternalRunner, - InternalRunnerStatus, - InternalRunnerAccessKeyREST, - InternalRunnerConfigREST, InternalSelf, InternalSelfStatus, InternalSelfSubjectAccessReview, @@ -1328,19 +1390,32 @@ var ( InternalTeamStatus, InternalTeamAccessKeysREST, InternalTeamClustersREST, + InternalTeamObjectPermissionsREST, + InternalTeamPermissionsREST, InternalTranslateVClusterResourceName, InternalTranslateVClusterResourceNameStatus, + InternalUsageDownload, + InternalUsageDownloadStatus, InternalUser, InternalUserStatus, InternalUserAccessKeysREST, InternalUserClustersREST, + InternalUserObjectPermissionsREST, InternalUserPermissionsREST, InternalUserProfileREST, InternalVirtualClusterInstance, InternalVirtualClusterInstanceStatus, InternalVirtualClusterAccessKeyREST, + InternalVirtualClusterExternalDatabaseREST, InternalVirtualClusterInstanceKubeConfigREST, InternalVirtualClusterInstanceLogREST, + InternalVirtualClusterNodeAccessKeyREST, + InternalVirtualClusterResourceUsageREST, + InternalVirtualClusterInstanceShellREST, + InternalVirtualClusterInstanceSnapshotREST, + InternalVirtualClusterStandaloneREST, + InternalVirtualClusterSchema, + InternalVirtualClusterSchemaStatus, InternalVirtualClusterTemplate, InternalVirtualClusterTemplateStatus, ) @@ -1369,7 +1444,10 @@ func Resource(resource string) schema.GroupResource { type AccessKeyType string type Level string +type OperationPhase string type RequestTarget string +type SnapshotRequestPhase string +type SnapshotTakenStatus string type Stage string type AgentAnalyticsSpec struct { @@ -1406,6 +1484,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 +1540,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 +1646,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"` @@ -1564,6 +1654,7 @@ type AuthenticationOIDC struct { GetUserInfo bool `json:"getUserInfo,omitempty"` GroupsPrefix string `json:"groupsPrefix,omitempty"` Type string `json:"type,omitempty"` + Resource string `json:"resource,omitempty"` } type AuthenticationPassword struct { @@ -1623,6 +1714,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 +1752,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 +1783,16 @@ 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"` + AuthenticateVersionEndpoint bool `json:"authenticateVersionEndpoint,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -1769,17 +1873,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 @@ -1796,16 +1889,21 @@ type ConfigSpec struct { } type ConfigStatus struct { - Authentication Authentication `json:"auth,omitempty"` - OIDC *OIDC `json:"oidc,omitempty"` - Apps *Apps `json:"apps,omitempty"` - Audit *Audit `json:"audit,omitempty"` - LoftHost string `json:"loftHost,omitempty"` - ProjectNamespacePrefix *string `json:"projectNamespacePrefix,omitempty"` - DevPodSubDomain string `json:"devPodSubDomain,omitempty"` - UISettings *uiv1.UISettingsConfig `json:"uiSettings,omitempty"` - VaultIntegration *storagev1.VaultIntegrationSpec `json:"vault,omitempty"` - DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` + Authentication Authentication `json:"auth,omitempty"` + OIDC *OIDC `json:"oidc,omitempty"` + Apps *Apps `json:"apps,omitempty"` + Audit *Audit `json:"audit,omitempty"` + LoftHost string `json:"loftHost,omitempty"` + ProjectNamespacePrefix *string `json:"projectNamespacePrefix,omitempty"` + DevPodSubDomain string `json:"devPodSubDomain,omitempty"` + UISettings *uiv1.UISettingsConfig `json:"uiSettings,omitempty"` + VaultIntegration *storagev1.VaultIntegrationSpec `json:"vault,omitempty"` + DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` + AuthenticateVersionEndpoint bool `json:"authenticateVersionEndpoint,omitempty"` + Cloud *Cloud `json:"cloud,omitempty"` + CostControl *CostControl `json:"costControl,omitempty"` + PlatformDB *PlatformDB `json:"platformDB,omitempty"` + ImageBuilder *ImageBuilder `json:"imageBuilder,omitempty"` } type Connector struct { @@ -1845,107 +1943,57 @@ type ConvertVirtualClusterConfigStatus struct { Converted bool `json:"converted"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodDeleteOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` -} - -// +genclient -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodEnvironmentTemplate struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodEnvironmentTemplateSpec `json:"spec,omitempty"` - Status DevPodEnvironmentTemplateStatus `json:"status,omitempty"` -} - -type DevPodEnvironmentTemplateSpec struct { - storagev1.DevPodEnvironmentTemplateSpec `json:",inline"` -} - -type DevPodEnvironmentTemplateStatus struct { -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodSshOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodStatusOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodStopOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` +type CostControl struct { + Enabled *bool `json:"enabled,omitempty"` + Global CostControlGlobalConfig `json:"global,omitempty"` + Cluster CostControlClusterConfig `json:"cluster,omitempty"` + Settings *CostControlSettings `json:"settings,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 CostControlClusterConfig struct { + Metrics *storagev1.Metrics `json:"metrics,omitempty"` + OpenCost *storagev1.OpenCost `json:"opencost,omitempty"` } -// +genclient -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstance struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceInstanceSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStatus `json:"status,omitempty"` +type CostControlGPUSettings struct { + Enabled bool `json:"enabled,omitempty"` + AvgGPUPrice *CostControlResourcePrice `json:"averageGPUPrice,omitempty"` } -type DevPodWorkspaceInstanceSpec struct { - storagev1.DevPodWorkspaceInstanceSpec `json:",inline"` +type CostControlGlobalConfig struct { + Metrics *storagev1.Metrics `json:"metrics,omitempty"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceState struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - State string `json:"state,omitempty"` +type CostControlResourcePrice struct { + Price float64 `json:"price,omitempty"` + TimePeriod string `json:"timePeriod,omitempty"` } -type DevPodWorkspaceInstanceStatus struct { - storagev1.DevPodWorkspaceInstanceStatus `json:",inline"` - SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,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 +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceTemplate struct { +type DatabaseConnector struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceTemplateSpec `json:"spec,omitempty"` - Status DevPodWorkspaceTemplateStatus `json:"status,omitempty"` + Spec DatabaseConnectorSpec `json:"spec,omitempty"` + Status DatabaseConnectorStatus `json:"status,omitempty"` } -type DevPodWorkspaceTemplateSpec struct { - storagev1.DevPodWorkspaceTemplateSpec `json:",inline"` +type DatabaseConnectorSpec struct { + Type string `json:"type,omitempty"` + DisplayName string `json:"displayName,omitempty"` } -type DevPodWorkspaceTemplateStatus struct { - storagev1.DevPodWorkspaceTemplateStatus `json:",inline"` +type DatabaseConnectorStatus struct { } // +genclient @@ -2012,6 +2060,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 @@ -2044,12 +2098,20 @@ type Kiosk struct { } type KioskSpec struct { - HelmRelease clusterv1.HelmRelease `json:"helmRelease,omitempty"` - SleepModeConfig clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` - ChartInfo clusterv1.ChartInfo `json:"chartInfo,omitempty"` - StorageClusterQuota agentstoragev1.ClusterQuota `json:"storageClusterQuota,omitempty"` - UISettings uiv1.UISettings `json:"UISettings,omitempty"` - License License `json:"license,omitempty"` + HelmRelease clusterv1.HelmRelease `json:"helmRelease,omitempty"` + SleepModeConfig clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` + ChartInfo clusterv1.ChartInfo `json:"chartInfo,omitempty"` + StorageClusterQuota agentstoragev1.ClusterQuota `json:"storageClusterQuota,omitempty"` + UISettings uiv1.UISettings `json:"UISettings,omitempty"` + License License `json:"license,omitempty"` + NodeProviderBCMNodeWithResources NodeProviderBCMNodeWithResources `json:"nodeProviderBCMNodeWithResources,omitempty"` + NodeProviderBCMGetResourcesResult NodeProviderBCMGetResourcesResult `json:"nodeProviderBCMGetResourcesResult,omitempty"` + NodeProviderBCMTestConnectionResult NodeProviderBCMTestConnectionResult `json:"nodeProviderBCMTestConnectionResult,omitempty"` + NodeProviderCalculateCostResult NodeProviderCalculateCostResult `json:"nodeProviderCalculateCostResult,omitempty"` + NodeProviderTerraformValidateResult NodeProviderTerraformValidateResult `json:"nodeProviderTerraformValidateResult,omitempty"` + NodeProviderExecResult NodeProviderExecResult `json:"nodeProviderExecResult,omitempty"` + NodeClaimData NodeClaimData `json:"nodeClaimData,omitempty"` + NodeEnvironmentData NodeEnvironmentData `json:"nodeEnvironmentData,omitempty"` } type KioskStatus struct { @@ -2076,60 +2138,191 @@ type LicenseRequest struct { } type LicenseRequestSpec struct { - URL string `json:"url,omitempty"` - Input pkglicenseapi.GenericRequestInput `json:"input,omitempty"` + URL string `json:"url,omitempty"` + Input string `json:"input,omitempty"` } type LicenseRequestStatus struct { - Output *pkglicenseapi.GenericRequestOutput `json:"output,omitempty"` + Output string `json:"output,omitempty"` } type LicenseSpec struct { } type LicenseStatus struct { - License *pkglicenseapi.License `json:"license,omitempty"` - ResourceUsage map[string]pkglicenseapi.ResourceCount `json:"resourceUsage,omitempty"` + License *pkglicenseapi.License `json:"license,omitempty"` + ResourceUsage map[string]pkglicenseapi.ResourceCount `json:"resourceUsage,omitempty"` + PlatformDatabase *pkglicenseapi.PlatformDatabase `json:"platformDatabase,omitempty"` +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type LoftUpgrade struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec LoftUpgradeSpec `json:"spec,omitempty"` + Status LoftUpgradeStatus `json:"status,omitempty"` +} + +type LoftUpgradeSpec struct { + Namespace string `json:"namespace,omitempty"` + Release string `json:"release,omitempty"` + Version string `json:"version,omitempty"` +} + +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 NodeClaimData struct { + UserData string `json:"userData,omitempty"` + State []byte `json:"state,omitempty"` + Operations map[string]*Operation `json:"operations,omitempty"` +} + +type NodeClaimSpec struct { + storagev1.NodeClaimSpec `json:",inline"` +} + +type NodeClaimStatus struct { + storagev1.NodeClaimStatus `json:",inline"` +} + +// +genclient +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeEnvironment struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec NodeEnvironmentSpec `json:"spec,omitempty"` + Status NodeEnvironmentStatus `json:"status,omitempty"` +} + +type NodeEnvironmentData struct { + Outputs []byte `json:"outputs,omitempty"` + State []byte `json:"state,omitempty"` + Operations map[string]*Operation `json:"operations,omitempty"` +} + +type NodeEnvironmentSpec struct { + storagev1.NodeEnvironmentSpec `json:",inline"` +} + +type NodeEnvironmentStatus struct { + storagev1.NodeEnvironmentStatus `json:",inline"` } // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseToken struct { +type NodeProvider struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec NodeProviderSpec `json:"spec,omitempty"` + Status NodeProviderStatus `json:"status,omitempty"` +} + +type NodeProviderBCMGetResourcesResult struct { + Nodes []NodeProviderBCMNodeWithResources `json:"nodes"` + NodeGroups []NodeProviderBCMNodeGroup `json:"nodeGroups"` +} + +type NodeProviderBCMNodeGroup struct { + Name string `json:"name"` + Nodes []string `json:"nodes"` +} + +type NodeProviderBCMNodeWithResources struct { + Name string `json:"name"` + Resources *corev1.ResourceList `json:"resources,omitempty"` +} + +type NodeProviderBCMTestConnectionResult struct { + Success bool `json:"success"` + Message string `json:"message"` +} + +type NodeProviderCalculateCostResult struct { + Cost int64 `json:"cost"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeProviderExec struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec LicenseTokenSpec `json:"spec,omitempty"` - Status LicenseTokenStatus `json:"status,omitempty"` + Spec NodeProviderExecSpec `json:"spec"` + Status NodeProviderExecStatus `json:"status,omitempty"` +} + +type NodeProviderExecResult struct { + Success bool `json:"success"` + Message string `json:"message"` +} + +type NodeProviderExecSpec struct { + Command string `json:"command"` + Args pkgruntime.RawExtension `json:"args,omitempty"` +} + +type NodeProviderExecStatus struct { + Result pkgruntime.RawExtension `json:"result,omitempty"` +} + +type NodeProviderSpec struct { + storagev1.NodeProviderSpec `json:",inline"` } -type LicenseTokenSpec struct { - URL string `json:"url,omitempty"` - Payload string `json:"payload,omitempty"` +type NodeProviderStatus struct { + storagev1.NodeProviderStatus `json:",inline"` } -type LicenseTokenStatus struct { - Token *pkglicenseapi.InstanceTokenAuth `json:"token,omitempty"` +type NodeProviderTerraformValidateResult struct { + Success bool `json:"success"` + Output string `json:"output"` } // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LoftUpgrade struct { +type NodeType struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec LoftUpgradeSpec `json:"spec,omitempty"` - Status LoftUpgradeStatus `json:"status,omitempty"` + Spec NodeTypeSpec `json:"spec,omitempty"` + Status NodeTypeStatus `json:"status,omitempty"` } -type LoftUpgradeSpec struct { - Namespace string `json:"namespace,omitempty"` - Release string `json:"release,omitempty"` - Version string `json:"version,omitempty"` +type NodeTypeSpec struct { + storagev1.NodeTypeSpec `json:",inline"` } -type LoftUpgradeStatus struct { +type NodeTypeStatus struct { + storagev1.NodeTypeStatus `json:",inline"` } type OIDC struct { @@ -2159,6 +2352,25 @@ 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"` +} + +type Operation struct { + StartTimestamp metav1.Time `json:"startTimestamp,omitempty"` + EndTimestamp metav1.Time `json:"endTimestamp,omitempty"` + Phase OperationPhase `json:"phase,omitempty"` + Logs []byte `json:"logs,omitempty"` + Error string `json:"error,omitempty"` +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2178,6 +2390,10 @@ type OwnedAccessKeyStatus struct { storagev1.AccessKeyStatus `json:",inline"` } +type PlatformDB struct { + StorageClass string `json:"storageClass,omitempty"` +} + type PredefinedApp struct { Chart string `json:"chart"` InitialVersion string `json:"initialVersion,omitempty"` @@ -2231,7 +2447,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 +2476,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 { @@ -2289,10 +2510,16 @@ type ProjectMigrateVirtualClusterInstanceSource struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type ProjectRunners struct { +type ProjectNodeTypes struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Runners []Runner `json:"runners,omitempty"` + NodeProviders []storagev1.NodeProvider `json:"nodeProviders,omitempty"` + NodeTypes []storagev1.NodeType `json:"nodeTypes,omitempty"` +} + +type ProjectRole struct { + ObjectName `json:",inline"` + IsAdmin bool `json:"isAdmin,omitempty"` } // +genclient @@ -2329,16 +2556,12 @@ type ProjectStatus struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type ProjectTemplates struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - DefaultVirtualClusterTemplate string `json:"defaultVirtualClusterTemplate,omitempty"` - VirtualClusterTemplates []VirtualClusterTemplate `json:"virtualClusterTemplates,omitempty"` - DefaultSpaceTemplate string `json:"defaultSpaceTemplate,omitempty"` - SpaceTemplates []SpaceTemplate `json:"spaceTemplates,omitempty"` - DefaultDevPodWorkspaceTemplate string `json:"defaultDevPodWorkspaceTemplate,omitempty"` - DevPodWorkspaceTemplates []DevPodWorkspaceTemplate `json:"devPodWorkspaceTemplates,omitempty"` - DevPodEnvironmentTemplates []DevPodEnvironmentTemplate `json:"devPodEnvironmentTemplates,omitempty"` - DefaultDevPodEnvironmentTemplate string `json:"defaultDevPodEnvironmentTemplate,omitempty"` + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + DefaultVirtualClusterTemplate string `json:"defaultVirtualClusterTemplate,omitempty"` + VirtualClusterTemplates []VirtualClusterTemplate `json:"virtualClusterTemplates,omitempty"` + DefaultSpaceTemplate string `json:"defaultSpaceTemplate,omitempty"` + SpaceTemplates []SpaceTemplate `json:"spaceTemplates,omitempty"` } // +genclient @@ -2372,17 +2595,19 @@ type RegisterVirtualCluster struct { } type RegisterVirtualClusterSpec struct { - ServiceUID string `json:"serviceUID,omitempty"` - Project string `json:"project,omitempty"` - Name string `json:"name,omitempty"` - ForceName bool `json:"forceName,omitempty"` - Chart string `json:"chart,omitempty"` - Version string `json:"version,omitempty"` - Values string `json:"values,omitempty"` + ServiceUID string `json:"serviceUID,omitempty"` + KubernetesVersion string `json:"kubernetesVersion,omitempty"` + Project string `json:"project,omitempty"` + Name string `json:"name,omitempty"` + ForceName bool `json:"forceName,omitempty"` + Chart string `json:"chart,omitempty"` + Version string `json:"version,omitempty"` + Values string `json:"values,omitempty"` } type RegisterVirtualClusterStatus struct { - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty"` + Namespace string `json:"namespace,omitempty"` } // +genclient @@ -2404,41 +2629,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 @@ -2465,6 +2655,7 @@ type SelfStatus struct { Groups []string `json:"groups,omitempty"` ChatAuthToken string `json:"chatAuthToken,omitempty"` InstanceID string `json:"instanceID,omitempty"` + LoftHost string `json:"loftHost,omitempty"` ProjectNamespacePrefix *string `json:"projectNamespacePrefix,omitempty"` } @@ -2506,6 +2697,36 @@ type SharedSecretStatus struct { storagev1.SharedSecretStatus `json:",inline"` } +type SnapshotRequest struct { + Metadata SnapshotRequestMetadata `json:"metadata,omitempty"` + Status SnapshotRequestStatus `json:"status"` +} + +type SnapshotRequestError struct { + Message string `json:"message,omitempty"` +} + +type SnapshotRequestMetadata struct { + Name string `json:"name"` + CreationTimestamp metav1.Time `json:"creationTimestamp"` +} + +type SnapshotRequestStatus struct { + Phase SnapshotRequestPhase `json:"phase,omitempty"` + VolumeSnapshots VolumeSnapshotsRequestStatus `json:"volumeSnapshots"` + Error SnapshotRequestError `json:"error,omitempty"` +} + +type SnapshotTaken struct { + Id string `json:"id,omitempty"` + Url string `json:"url,omitempty"` + Timestamp string `json:"timestamp,omitempty"` + Reason string `json:"reason,omitempty"` + Request SnapshotRequest `json:"snapshotRequest,omitempty"` + TotalPV int `json:"totalPV"` + Status SnapshotTakenStatus `json:"status,omitempty"` +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2548,6 +2769,21 @@ type SpaceTemplateStatus struct { Apps []*storagev1.EntityInfo `json:"apps,omitempty"` } +type StandaloneEtcdPeer struct { + Name string `json:"name"` + NodeClaim string `json:"nodeClaim,omitempty"` + Address string `json:"address"` +} + +type StandaloneEtcdPeerCoordinator struct { + StandaloneEtcdPeer `json:",inline"` + IsCoordinator bool `json:"isCoordinator"` +} + +type StandalonePKI struct { + Certificates map[string][]byte `json:"certificates"` +} + // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2622,11 +2858,31 @@ type TeamClusters struct { Clusters []ClusterAccounts `json:"clusters,omitempty"` } -type TeamSpec struct { - storagev1.TeamSpec `json:",inline"` +// +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"` } -type TeamStatus struct { +// +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"` +} + +type TeamStatus struct { storagev1.TeamStatus `json:",inline"` } @@ -2655,6 +2911,23 @@ type TranslateVClusterResourceNameStatus struct { // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type UsageDownload struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec UsageDownloadSpec `json:"spec,omitempty"` + Status UsageDownloadStatus `json:"status,omitempty"` +} + +type UsageDownloadSpec struct { +} + +type UsageDownloadStatus struct { +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type User struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` @@ -2685,11 +2958,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 +2990,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 +3021,24 @@ 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"` + IdentityProvider string `json:"identityProvider,omitempty"` +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2751,6 +3061,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 { @@ -2764,6 +3076,27 @@ type VirtualClusterInstanceLog struct { metav1.ObjectMeta `json:"metadata,omitempty"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterInstanceShell struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec VirtualClusterShellSpec `json:"spec,omitempty"` + Status VirtualClusterShellStatus `json:"status,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterInstanceSnapshot struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Status VirtualClusterInstanceSnapshotStatus `json:"status,omitempty"` +} + +type VirtualClusterInstanceSnapshotStatus struct { + SnapshotsTaken []SnapshotTaken `json:"snapshotTaken,omitempty"` +} + type VirtualClusterInstanceSpec struct { storagev1.VirtualClusterInstanceSpec `json:",inline"` } @@ -2776,6 +3109,92 @@ type VirtualClusterInstanceStatus struct { Online bool `json:"online,omitempty"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterNodeAccessKey struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec VirtualClusterNodeAccessKeySpec `json:"spec,omitempty"` + Status VirtualClusterNodeAccessKeyStatus `json:"status,omitempty"` +} + +type VirtualClusterNodeAccessKeySpec struct { +} + +type VirtualClusterNodeAccessKeyStatus struct { + AccessKey string `json:"accessKey,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterResourceUsage struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Status VirtualClusterResourceUsageStatus `json:"status,omitempty"` +} + +type VirtualClusterResourceUsageMap struct { + Nodes int `json:"nodes"` + Capacity map[string]int `json:"capacity,omitempty"` +} + +type VirtualClusterResourceUsageStatus struct { + ResourceUsage VirtualClusterResourceUsageMap `json:"resourceUsage,omitempty"` +} + +type VirtualClusterRole struct { + ObjectName `json:",inline"` + Role string `json:"role,omitempty"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterSchema struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec VirtualClusterSchemaSpec `json:"spec,omitempty"` + Status VirtualClusterSchemaStatus `json:"status,omitempty"` +} + +type VirtualClusterSchemaSpec struct { + Version string `json:"version,omitempty"` +} + +type VirtualClusterSchemaStatus struct { + Schema string `json:"schema,omitempty"` + DefaultValues string `json:"defaultValues,omitempty"` +} + +type VirtualClusterShellSpec struct { +} + +type VirtualClusterShellStatus struct { + PodName string `json:"podName,omitempty"` + PodNamespace string `json:"podNamespace,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterStandalone struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec VirtualClusterStandaloneSpec `json:"spec,omitempty"` + Status VirtualClusterStandaloneStatus `json:"status,omitempty"` +} + +type VirtualClusterStandaloneSpec struct { + CurrentPeer StandaloneEtcdPeer `json:"currentPeer"` + CurrentPKI StandalonePKI `json:"currentPKI"` +} + +type VirtualClusterStandaloneStatus struct { + ETCDPeers []StandaloneEtcdPeerCoordinator `json:"etcdPeers"` + PKI StandalonePKI `json:"currentPKI"` +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2796,6 +3215,17 @@ type VirtualClusterTemplateStatus struct { Apps []*storagev1.EntityInfo `json:"apps,omitempty"` } +type VolumeSnapshotRequestStatus struct { + Phase string `json:"phase,omitempty"` + Error SnapshotRequestError `json:"error"` +} + +type VolumeSnapshotsRequestStatus struct { + Phase string `json:"phase,omitempty"` + Snapshots map[string]VolumeSnapshotRequestStatus `json:"snapshots,omitempty"` + Error SnapshotRequestError `json:"error"` +} + // AgentAuditEvent Functions and Structs // // +k8s:deepcopy-gen=false @@ -3364,14 +3794,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,81 +4369,81 @@ func (s *storageConvertVirtualClusterConfig) DeleteConvertVirtualClusterConfig(c return sync, err } -// DevPodEnvironmentTemplate Functions and Structs +// DatabaseConnector Functions and Structs // // +k8s:deepcopy-gen=false -type DevPodEnvironmentTemplateStrategy struct { +type DatabaseConnectorStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type DevPodEnvironmentTemplateStatusStrategy struct { +type DatabaseConnectorStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodEnvironmentTemplateList struct { +type DatabaseConnectorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodEnvironmentTemplate `json:"items"` + Items []DatabaseConnector `json:"items"` } -func (DevPodEnvironmentTemplate) NewStatus() interface{} { - return DevPodEnvironmentTemplateStatus{} +func (DatabaseConnector) NewStatus() interface{} { + return DatabaseConnectorStatus{} } -func (pc *DevPodEnvironmentTemplate) GetStatus() interface{} { +func (pc *DatabaseConnector) GetStatus() interface{} { return pc.Status } -func (pc *DevPodEnvironmentTemplate) SetStatus(s interface{}) { - pc.Status = s.(DevPodEnvironmentTemplateStatus) +func (pc *DatabaseConnector) SetStatus(s interface{}) { + pc.Status = s.(DatabaseConnectorStatus) } -func (pc *DevPodEnvironmentTemplate) GetSpec() interface{} { +func (pc *DatabaseConnector) GetSpec() interface{} { return pc.Spec } -func (pc *DevPodEnvironmentTemplate) SetSpec(s interface{}) { - pc.Spec = s.(DevPodEnvironmentTemplateSpec) +func (pc *DatabaseConnector) SetSpec(s interface{}) { + pc.Spec = s.(DatabaseConnectorSpec) } -func (pc *DevPodEnvironmentTemplate) GetObjectMeta() *metav1.ObjectMeta { +func (pc *DatabaseConnector) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *DevPodEnvironmentTemplate) SetGeneration(generation int64) { +func (pc *DatabaseConnector) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc DevPodEnvironmentTemplate) GetGeneration() int64 { +func (pc DatabaseConnector) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store DevPodEnvironmentTemplate. +// Registry is an interface for things that know how to store DatabaseConnector. // +k8s:deepcopy-gen=false -type DevPodEnvironmentTemplateRegistry interface { - ListDevPodEnvironmentTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevPodEnvironmentTemplateList, error) - GetDevPodEnvironmentTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodEnvironmentTemplate, error) - CreateDevPodEnvironmentTemplate(ctx context.Context, id *DevPodEnvironmentTemplate) (*DevPodEnvironmentTemplate, error) - UpdateDevPodEnvironmentTemplate(ctx context.Context, id *DevPodEnvironmentTemplate) (*DevPodEnvironmentTemplate, error) - DeleteDevPodEnvironmentTemplate(ctx context.Context, id string) (bool, error) +type 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 NewDevPodEnvironmentTemplateRegistry(sp builders.StandardStorageProvider) DevPodEnvironmentTemplateRegistry { - return &storageDevPodEnvironmentTemplate{sp} +func NewDatabaseConnectorRegistry(sp builders.StandardStorageProvider) DatabaseConnectorRegistry { + return &storageDatabaseConnector{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageDevPodEnvironmentTemplate struct { +type storageDatabaseConnector struct { builders.StandardStorageProvider } -func (s *storageDevPodEnvironmentTemplate) ListDevPodEnvironmentTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevPodEnvironmentTemplateList, error) { +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") } @@ -4030,165 +4452,117 @@ func (s *storageDevPodEnvironmentTemplate) ListDevPodEnvironmentTemplates(ctx co if err != nil { return nil, err } - return obj.(*DevPodEnvironmentTemplateList), err + return obj.(*DatabaseConnectorList), err } -func (s *storageDevPodEnvironmentTemplate) GetDevPodEnvironmentTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodEnvironmentTemplate, error) { +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.(*DevPodEnvironmentTemplate), nil + return obj.(*DatabaseConnector), nil } -func (s *storageDevPodEnvironmentTemplate) CreateDevPodEnvironmentTemplate(ctx context.Context, object *DevPodEnvironmentTemplate) (*DevPodEnvironmentTemplate, error) { +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.(*DevPodEnvironmentTemplate), nil + return obj.(*DatabaseConnector), nil } -func (s *storageDevPodEnvironmentTemplate) UpdateDevPodEnvironmentTemplate(ctx context.Context, object *DevPodEnvironmentTemplate) (*DevPodEnvironmentTemplate, error) { +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.(*DevPodEnvironmentTemplate), nil + return obj.(*DatabaseConnector), nil } -func (s *storageDevPodEnvironmentTemplate) DeleteDevPodEnvironmentTemplate(ctx context.Context, id string) (bool, error) { +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 } -// DevPodWorkspaceInstance Functions and Structs +// DirectClusterEndpointToken Functions and Structs // // +k8s:deepcopy-gen=false -type DevPodWorkspaceInstanceStrategy struct { +type DirectClusterEndpointTokenStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type DevPodWorkspaceInstanceStatusStrategy struct { +type DirectClusterEndpointTokenStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstance `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodDeleteOptionsList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodDeleteOptions `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodStatusOptionsList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodStatusOptions `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodSshOptionsList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodSshOptions `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceStateList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceState `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodStopOptionsList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodStopOptions `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodUpOptionsList struct { +type DirectClusterEndpointTokenList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodUpOptions `json:"items"` + Items []DirectClusterEndpointToken `json:"items"` } -func (DevPodWorkspaceInstance) NewStatus() interface{} { - return DevPodWorkspaceInstanceStatus{} +func (DirectClusterEndpointToken) NewStatus() interface{} { + return DirectClusterEndpointTokenStatus{} } -func (pc *DevPodWorkspaceInstance) GetStatus() interface{} { +func (pc *DirectClusterEndpointToken) GetStatus() interface{} { return pc.Status } -func (pc *DevPodWorkspaceInstance) SetStatus(s interface{}) { - pc.Status = s.(DevPodWorkspaceInstanceStatus) +func (pc *DirectClusterEndpointToken) SetStatus(s interface{}) { + pc.Status = s.(DirectClusterEndpointTokenStatus) } -func (pc *DevPodWorkspaceInstance) GetSpec() interface{} { +func (pc *DirectClusterEndpointToken) GetSpec() interface{} { return pc.Spec } -func (pc *DevPodWorkspaceInstance) SetSpec(s interface{}) { - pc.Spec = s.(DevPodWorkspaceInstanceSpec) +func (pc *DirectClusterEndpointToken) SetSpec(s interface{}) { + pc.Spec = s.(DirectClusterEndpointTokenSpec) } -func (pc *DevPodWorkspaceInstance) GetObjectMeta() *metav1.ObjectMeta { +func (pc *DirectClusterEndpointToken) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *DevPodWorkspaceInstance) SetGeneration(generation int64) { +func (pc *DirectClusterEndpointToken) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc DevPodWorkspaceInstance) GetGeneration() int64 { +func (pc DirectClusterEndpointToken) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store DevPodWorkspaceInstance. +// Registry is an interface for things that know how to store DirectClusterEndpointToken. // +k8s:deepcopy-gen=false -type DevPodWorkspaceInstanceRegistry interface { - ListDevPodWorkspaceInstances(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspaceInstanceList, error) - GetDevPodWorkspaceInstance(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspaceInstance, error) - CreateDevPodWorkspaceInstance(ctx context.Context, id *DevPodWorkspaceInstance) (*DevPodWorkspaceInstance, error) - UpdateDevPodWorkspaceInstance(ctx context.Context, id *DevPodWorkspaceInstance) (*DevPodWorkspaceInstance, error) - DeleteDevPodWorkspaceInstance(ctx context.Context, id string) (bool, error) +type DirectClusterEndpointTokenRegistry interface { + ListDirectClusterEndpointTokens(ctx context.Context, options *internalversion.ListOptions) (*DirectClusterEndpointTokenList, error) + GetDirectClusterEndpointToken(ctx context.Context, id string, options *metav1.GetOptions) (*DirectClusterEndpointToken, error) + CreateDirectClusterEndpointToken(ctx context.Context, id *DirectClusterEndpointToken) (*DirectClusterEndpointToken, error) + UpdateDirectClusterEndpointToken(ctx context.Context, id *DirectClusterEndpointToken) (*DirectClusterEndpointToken, error) + DeleteDirectClusterEndpointToken(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewDevPodWorkspaceInstanceRegistry(sp builders.StandardStorageProvider) DevPodWorkspaceInstanceRegistry { - return &storageDevPodWorkspaceInstance{sp} +func NewDirectClusterEndpointTokenRegistry(sp builders.StandardStorageProvider) DirectClusterEndpointTokenRegistry { + return &storageDirectClusterEndpointToken{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageDevPodWorkspaceInstance struct { +type storageDirectClusterEndpointToken struct { builders.StandardStorageProvider } -func (s *storageDevPodWorkspaceInstance) ListDevPodWorkspaceInstances(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspaceInstanceList, error) { +func (s *storageDirectClusterEndpointToken) ListDirectClusterEndpointTokens(ctx context.Context, options *internalversion.ListOptions) (*DirectClusterEndpointTokenList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -4197,117 +4571,117 @@ func (s *storageDevPodWorkspaceInstance) ListDevPodWorkspaceInstances(ctx contex if err != nil { return nil, err } - return obj.(*DevPodWorkspaceInstanceList), err + return obj.(*DirectClusterEndpointTokenList), err } -func (s *storageDevPodWorkspaceInstance) GetDevPodWorkspaceInstance(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspaceInstance, error) { +func (s *storageDirectClusterEndpointToken) GetDirectClusterEndpointToken(ctx context.Context, id string, options *metav1.GetOptions) (*DirectClusterEndpointToken, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*DevPodWorkspaceInstance), nil + return obj.(*DirectClusterEndpointToken), nil } -func (s *storageDevPodWorkspaceInstance) CreateDevPodWorkspaceInstance(ctx context.Context, object *DevPodWorkspaceInstance) (*DevPodWorkspaceInstance, error) { +func (s *storageDirectClusterEndpointToken) CreateDirectClusterEndpointToken(ctx context.Context, object *DirectClusterEndpointToken) (*DirectClusterEndpointToken, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*DevPodWorkspaceInstance), nil + return obj.(*DirectClusterEndpointToken), nil } -func (s *storageDevPodWorkspaceInstance) UpdateDevPodWorkspaceInstance(ctx context.Context, object *DevPodWorkspaceInstance) (*DevPodWorkspaceInstance, error) { +func (s *storageDirectClusterEndpointToken) UpdateDirectClusterEndpointToken(ctx context.Context, object *DirectClusterEndpointToken) (*DirectClusterEndpointToken, error) { st := s.GetStandardStorage() obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) if err != nil { return nil, err } - return obj.(*DevPodWorkspaceInstance), nil + return obj.(*DirectClusterEndpointToken), nil } -func (s *storageDevPodWorkspaceInstance) DeleteDevPodWorkspaceInstance(ctx context.Context, id string) (bool, error) { +func (s *storageDirectClusterEndpointToken) DeleteDirectClusterEndpointToken(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 +// Event Functions and Structs // // +k8s:deepcopy-gen=false -type DevPodWorkspaceTemplateStrategy struct { +type EventStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type DevPodWorkspaceTemplateStatusStrategy struct { +type EventStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceTemplateList struct { +type EventList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceTemplate `json:"items"` + Items []Event `json:"items"` } -func (DevPodWorkspaceTemplate) NewStatus() interface{} { - return DevPodWorkspaceTemplateStatus{} +func (Event) NewStatus() interface{} { + return EventStatus{} } -func (pc *DevPodWorkspaceTemplate) GetStatus() interface{} { +func (pc *Event) GetStatus() interface{} { return pc.Status } -func (pc *DevPodWorkspaceTemplate) SetStatus(s interface{}) { - pc.Status = s.(DevPodWorkspaceTemplateStatus) +func (pc *Event) SetStatus(s interface{}) { + pc.Status = s.(EventStatus) } -func (pc *DevPodWorkspaceTemplate) GetSpec() interface{} { +func (pc *Event) GetSpec() interface{} { return pc.Spec } -func (pc *DevPodWorkspaceTemplate) SetSpec(s interface{}) { - pc.Spec = s.(DevPodWorkspaceTemplateSpec) +func (pc *Event) SetSpec(s interface{}) { + pc.Spec = s.(EventSpec) } -func (pc *DevPodWorkspaceTemplate) GetObjectMeta() *metav1.ObjectMeta { +func (pc *Event) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *DevPodWorkspaceTemplate) SetGeneration(generation int64) { +func (pc *Event) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc DevPodWorkspaceTemplate) GetGeneration() int64 { +func (pc Event) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store DevPodWorkspaceTemplate. +// Registry is an interface for things that know how to store Event. // +k8s:deepcopy-gen=false -type DevPodWorkspaceTemplateRegistry interface { - ListDevPodWorkspaceTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspaceTemplateList, error) - GetDevPodWorkspaceTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspaceTemplate, error) - CreateDevPodWorkspaceTemplate(ctx context.Context, id *DevPodWorkspaceTemplate) (*DevPodWorkspaceTemplate, error) - UpdateDevPodWorkspaceTemplate(ctx context.Context, id *DevPodWorkspaceTemplate) (*DevPodWorkspaceTemplate, error) - DeleteDevPodWorkspaceTemplate(ctx context.Context, id string) (bool, error) +type EventRegistry interface { + ListEvents(ctx context.Context, options *internalversion.ListOptions) (*EventList, error) + GetEvent(ctx context.Context, id string, options *metav1.GetOptions) (*Event, error) + CreateEvent(ctx context.Context, id *Event) (*Event, error) + UpdateEvent(ctx context.Context, id *Event) (*Event, error) + DeleteEvent(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewDevPodWorkspaceTemplateRegistry(sp builders.StandardStorageProvider) DevPodWorkspaceTemplateRegistry { - return &storageDevPodWorkspaceTemplate{sp} +func NewEventRegistry(sp builders.StandardStorageProvider) EventRegistry { + return &storageEvent{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageDevPodWorkspaceTemplate struct { +type storageEvent struct { builders.StandardStorageProvider } -func (s *storageDevPodWorkspaceTemplate) ListDevPodWorkspaceTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspaceTemplateList, error) { +func (s *storageEvent) ListEvents(ctx context.Context, options *internalversion.ListOptions) (*EventList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -4316,117 +4690,117 @@ func (s *storageDevPodWorkspaceTemplate) ListDevPodWorkspaceTemplates(ctx contex if err != nil { return nil, err } - return obj.(*DevPodWorkspaceTemplateList), err + return obj.(*EventList), err } -func (s *storageDevPodWorkspaceTemplate) GetDevPodWorkspaceTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspaceTemplate, error) { +func (s *storageEvent) GetEvent(ctx context.Context, id string, options *metav1.GetOptions) (*Event, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*DevPodWorkspaceTemplate), nil + return obj.(*Event), nil } -func (s *storageDevPodWorkspaceTemplate) CreateDevPodWorkspaceTemplate(ctx context.Context, object *DevPodWorkspaceTemplate) (*DevPodWorkspaceTemplate, error) { +func (s *storageEvent) CreateEvent(ctx context.Context, object *Event) (*Event, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*DevPodWorkspaceTemplate), nil + return obj.(*Event), nil } -func (s *storageDevPodWorkspaceTemplate) UpdateDevPodWorkspaceTemplate(ctx context.Context, object *DevPodWorkspaceTemplate) (*DevPodWorkspaceTemplate, error) { +func (s *storageEvent) UpdateEvent(ctx context.Context, object *Event) (*Event, error) { st := s.GetStandardStorage() obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) if err != nil { return nil, err } - return obj.(*DevPodWorkspaceTemplate), nil + return obj.(*Event), nil } -func (s *storageDevPodWorkspaceTemplate) DeleteDevPodWorkspaceTemplate(ctx context.Context, id string) (bool, error) { +func (s *storageEvent) DeleteEvent(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err } -// DirectClusterEndpointToken Functions and Structs +// Feature Functions and Structs // // +k8s:deepcopy-gen=false -type DirectClusterEndpointTokenStrategy struct { +type FeatureStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type DirectClusterEndpointTokenStatusStrategy struct { +type FeatureStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DirectClusterEndpointTokenList struct { +type FeatureList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DirectClusterEndpointToken `json:"items"` + Items []Feature `json:"items"` } -func (DirectClusterEndpointToken) NewStatus() interface{} { - return DirectClusterEndpointTokenStatus{} +func (Feature) NewStatus() interface{} { + return FeatureStatus{} } -func (pc *DirectClusterEndpointToken) GetStatus() interface{} { +func (pc *Feature) GetStatus() interface{} { return pc.Status } -func (pc *DirectClusterEndpointToken) SetStatus(s interface{}) { - pc.Status = s.(DirectClusterEndpointTokenStatus) +func (pc *Feature) SetStatus(s interface{}) { + pc.Status = s.(FeatureStatus) } -func (pc *DirectClusterEndpointToken) GetSpec() interface{} { +func (pc *Feature) GetSpec() interface{} { return pc.Spec } -func (pc *DirectClusterEndpointToken) SetSpec(s interface{}) { - pc.Spec = s.(DirectClusterEndpointTokenSpec) +func (pc *Feature) SetSpec(s interface{}) { + pc.Spec = s.(FeatureSpec) } -func (pc *DirectClusterEndpointToken) GetObjectMeta() *metav1.ObjectMeta { +func (pc *Feature) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *DirectClusterEndpointToken) SetGeneration(generation int64) { +func (pc *Feature) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc DirectClusterEndpointToken) GetGeneration() int64 { +func (pc Feature) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store DirectClusterEndpointToken. +// Registry is an interface for things that know how to store Feature. // +k8s:deepcopy-gen=false -type DirectClusterEndpointTokenRegistry interface { - ListDirectClusterEndpointTokens(ctx context.Context, options *internalversion.ListOptions) (*DirectClusterEndpointTokenList, error) - GetDirectClusterEndpointToken(ctx context.Context, id string, options *metav1.GetOptions) (*DirectClusterEndpointToken, error) - CreateDirectClusterEndpointToken(ctx context.Context, id *DirectClusterEndpointToken) (*DirectClusterEndpointToken, error) - UpdateDirectClusterEndpointToken(ctx context.Context, id *DirectClusterEndpointToken) (*DirectClusterEndpointToken, error) - DeleteDirectClusterEndpointToken(ctx context.Context, id string) (bool, error) +type FeatureRegistry interface { + ListFeatures(ctx context.Context, options *internalversion.ListOptions) (*FeatureList, error) + GetFeature(ctx context.Context, id string, options *metav1.GetOptions) (*Feature, error) + CreateFeature(ctx context.Context, id *Feature) (*Feature, error) + UpdateFeature(ctx context.Context, id *Feature) (*Feature, error) + DeleteFeature(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewDirectClusterEndpointTokenRegistry(sp builders.StandardStorageProvider) DirectClusterEndpointTokenRegistry { - return &storageDirectClusterEndpointToken{sp} +func NewFeatureRegistry(sp builders.StandardStorageProvider) FeatureRegistry { + return &storageFeature{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageDirectClusterEndpointToken struct { +type storageFeature struct { builders.StandardStorageProvider } -func (s *storageDirectClusterEndpointToken) ListDirectClusterEndpointTokens(ctx context.Context, options *internalversion.ListOptions) (*DirectClusterEndpointTokenList, error) { +func (s *storageFeature) ListFeatures(ctx context.Context, options *internalversion.ListOptions) (*FeatureList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -4435,117 +4809,117 @@ func (s *storageDirectClusterEndpointToken) ListDirectClusterEndpointTokens(ctx if err != nil { return nil, err } - return obj.(*DirectClusterEndpointTokenList), err + return obj.(*FeatureList), err } -func (s *storageDirectClusterEndpointToken) GetDirectClusterEndpointToken(ctx context.Context, id string, options *metav1.GetOptions) (*DirectClusterEndpointToken, error) { +func (s *storageFeature) GetFeature(ctx context.Context, id string, options *metav1.GetOptions) (*Feature, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*DirectClusterEndpointToken), nil + return obj.(*Feature), nil } -func (s *storageDirectClusterEndpointToken) CreateDirectClusterEndpointToken(ctx context.Context, object *DirectClusterEndpointToken) (*DirectClusterEndpointToken, error) { +func (s *storageFeature) CreateFeature(ctx context.Context, object *Feature) (*Feature, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*DirectClusterEndpointToken), nil + return obj.(*Feature), nil } -func (s *storageDirectClusterEndpointToken) UpdateDirectClusterEndpointToken(ctx context.Context, object *DirectClusterEndpointToken) (*DirectClusterEndpointToken, error) { +func (s *storageFeature) UpdateFeature(ctx context.Context, object *Feature) (*Feature, 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.(*DirectClusterEndpointToken), nil + return obj.(*Feature), nil } -func (s *storageDirectClusterEndpointToken) DeleteDirectClusterEndpointToken(ctx context.Context, id string) (bool, error) { +func (s *storageFeature) DeleteFeature(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err } -// Event Functions and Structs +// IngressAuthToken Functions and Structs // // +k8s:deepcopy-gen=false -type EventStrategy struct { +type IngressAuthTokenStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type EventStatusStrategy struct { +type IngressAuthTokenStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type EventList struct { +type IngressAuthTokenList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Event `json:"items"` + Items []IngressAuthToken `json:"items"` } -func (Event) NewStatus() interface{} { - return EventStatus{} +func (IngressAuthToken) NewStatus() interface{} { + return IngressAuthTokenStatus{} } -func (pc *Event) GetStatus() interface{} { +func (pc *IngressAuthToken) GetStatus() interface{} { return pc.Status } -func (pc *Event) SetStatus(s interface{}) { - pc.Status = s.(EventStatus) +func (pc *IngressAuthToken) SetStatus(s interface{}) { + pc.Status = s.(IngressAuthTokenStatus) } -func (pc *Event) GetSpec() interface{} { +func (pc *IngressAuthToken) GetSpec() interface{} { return pc.Spec } -func (pc *Event) SetSpec(s interface{}) { - pc.Spec = s.(EventSpec) +func (pc *IngressAuthToken) SetSpec(s interface{}) { + pc.Spec = s.(IngressAuthTokenSpec) } -func (pc *Event) GetObjectMeta() *metav1.ObjectMeta { +func (pc *IngressAuthToken) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *Event) SetGeneration(generation int64) { +func (pc *IngressAuthToken) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc Event) GetGeneration() int64 { +func (pc IngressAuthToken) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store Event. +// Registry is an interface for things that know how to store IngressAuthToken. // +k8s:deepcopy-gen=false -type EventRegistry interface { - ListEvents(ctx context.Context, options *internalversion.ListOptions) (*EventList, error) - GetEvent(ctx context.Context, id string, options *metav1.GetOptions) (*Event, error) - CreateEvent(ctx context.Context, id *Event) (*Event, error) - UpdateEvent(ctx context.Context, id *Event) (*Event, error) - DeleteEvent(ctx context.Context, id string) (bool, error) +type IngressAuthTokenRegistry interface { + ListIngressAuthTokens(ctx context.Context, options *internalversion.ListOptions) (*IngressAuthTokenList, error) + GetIngressAuthToken(ctx context.Context, id string, options *metav1.GetOptions) (*IngressAuthToken, error) + CreateIngressAuthToken(ctx context.Context, id *IngressAuthToken) (*IngressAuthToken, error) + UpdateIngressAuthToken(ctx context.Context, id *IngressAuthToken) (*IngressAuthToken, error) + DeleteIngressAuthToken(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewEventRegistry(sp builders.StandardStorageProvider) EventRegistry { - return &storageEvent{sp} +func NewIngressAuthTokenRegistry(sp builders.StandardStorageProvider) IngressAuthTokenRegistry { + return &storageIngressAuthToken{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageEvent struct { +type storageIngressAuthToken struct { builders.StandardStorageProvider } -func (s *storageEvent) ListEvents(ctx context.Context, options *internalversion.ListOptions) (*EventList, error) { +func (s *storageIngressAuthToken) ListIngressAuthTokens(ctx context.Context, options *internalversion.ListOptions) (*IngressAuthTokenList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -4554,117 +4928,117 @@ func (s *storageEvent) ListEvents(ctx context.Context, options *internalversion. if err != nil { return nil, err } - return obj.(*EventList), err + return obj.(*IngressAuthTokenList), err } -func (s *storageEvent) GetEvent(ctx context.Context, id string, options *metav1.GetOptions) (*Event, error) { +func (s *storageIngressAuthToken) GetIngressAuthToken(ctx context.Context, id string, options *metav1.GetOptions) (*IngressAuthToken, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*Event), nil + return obj.(*IngressAuthToken), nil } -func (s *storageEvent) CreateEvent(ctx context.Context, object *Event) (*Event, error) { +func (s *storageIngressAuthToken) CreateIngressAuthToken(ctx context.Context, object *IngressAuthToken) (*IngressAuthToken, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*Event), nil + return obj.(*IngressAuthToken), nil } -func (s *storageEvent) UpdateEvent(ctx context.Context, object *Event) (*Event, error) { +func (s *storageIngressAuthToken) UpdateIngressAuthToken(ctx context.Context, object *IngressAuthToken) (*IngressAuthToken, 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.(*Event), nil + return obj.(*IngressAuthToken), nil } -func (s *storageEvent) DeleteEvent(ctx context.Context, id string) (bool, error) { +func (s *storageIngressAuthToken) DeleteIngressAuthToken(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err } -// Feature Functions and Structs +// Kiosk Functions and Structs // // +k8s:deepcopy-gen=false -type FeatureStrategy struct { +type KioskStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type FeatureStatusStrategy struct { +type KioskStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type FeatureList struct { +type KioskList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Feature `json:"items"` + Items []Kiosk `json:"items"` } -func (Feature) NewStatus() interface{} { - return FeatureStatus{} +func (Kiosk) NewStatus() interface{} { + return KioskStatus{} } -func (pc *Feature) GetStatus() interface{} { +func (pc *Kiosk) GetStatus() interface{} { return pc.Status } -func (pc *Feature) SetStatus(s interface{}) { - pc.Status = s.(FeatureStatus) +func (pc *Kiosk) SetStatus(s interface{}) { + pc.Status = s.(KioskStatus) } -func (pc *Feature) GetSpec() interface{} { +func (pc *Kiosk) GetSpec() interface{} { return pc.Spec } -func (pc *Feature) SetSpec(s interface{}) { - pc.Spec = s.(FeatureSpec) +func (pc *Kiosk) SetSpec(s interface{}) { + pc.Spec = s.(KioskSpec) } -func (pc *Feature) GetObjectMeta() *metav1.ObjectMeta { +func (pc *Kiosk) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *Feature) SetGeneration(generation int64) { +func (pc *Kiosk) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc Feature) GetGeneration() int64 { +func (pc Kiosk) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store Feature. +// Registry is an interface for things that know how to store Kiosk. // +k8s:deepcopy-gen=false -type FeatureRegistry interface { - ListFeatures(ctx context.Context, options *internalversion.ListOptions) (*FeatureList, error) - GetFeature(ctx context.Context, id string, options *metav1.GetOptions) (*Feature, error) - CreateFeature(ctx context.Context, id *Feature) (*Feature, error) - UpdateFeature(ctx context.Context, id *Feature) (*Feature, error) - DeleteFeature(ctx context.Context, id string) (bool, error) +type KioskRegistry interface { + ListKiosks(ctx context.Context, options *internalversion.ListOptions) (*KioskList, error) + GetKiosk(ctx context.Context, id string, options *metav1.GetOptions) (*Kiosk, error) + CreateKiosk(ctx context.Context, id *Kiosk) (*Kiosk, error) + UpdateKiosk(ctx context.Context, id *Kiosk) (*Kiosk, error) + DeleteKiosk(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewFeatureRegistry(sp builders.StandardStorageProvider) FeatureRegistry { - return &storageFeature{sp} +func NewKioskRegistry(sp builders.StandardStorageProvider) KioskRegistry { + return &storageKiosk{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageFeature struct { +type storageKiosk struct { builders.StandardStorageProvider } -func (s *storageFeature) ListFeatures(ctx context.Context, options *internalversion.ListOptions) (*FeatureList, error) { +func (s *storageKiosk) ListKiosks(ctx context.Context, options *internalversion.ListOptions) (*KioskList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -4673,117 +5047,125 @@ func (s *storageFeature) ListFeatures(ctx context.Context, options *internalvers if err != nil { return nil, err } - return obj.(*FeatureList), err + return obj.(*KioskList), err } -func (s *storageFeature) GetFeature(ctx context.Context, id string, options *metav1.GetOptions) (*Feature, error) { +func (s *storageKiosk) GetKiosk(ctx context.Context, id string, options *metav1.GetOptions) (*Kiosk, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*Feature), nil + return obj.(*Kiosk), nil } -func (s *storageFeature) CreateFeature(ctx context.Context, object *Feature) (*Feature, error) { +func (s *storageKiosk) CreateKiosk(ctx context.Context, object *Kiosk) (*Kiosk, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*Feature), nil + return obj.(*Kiosk), nil } -func (s *storageFeature) UpdateFeature(ctx context.Context, object *Feature) (*Feature, error) { +func (s *storageKiosk) UpdateKiosk(ctx context.Context, object *Kiosk) (*Kiosk, 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.(*Feature), nil + return obj.(*Kiosk), nil } -func (s *storageFeature) DeleteFeature(ctx context.Context, id string) (bool, error) { +func (s *storageKiosk) DeleteKiosk(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err } -// IngressAuthToken Functions and Structs +// License Functions and Structs // // +k8s:deepcopy-gen=false -type IngressAuthTokenStrategy struct { +type LicenseStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type IngressAuthTokenStatusStrategy struct { +type LicenseStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type IngressAuthTokenList struct { +type LicenseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []IngressAuthToken `json:"items"` + Items []License `json:"items"` } -func (IngressAuthToken) NewStatus() interface{} { - return IngressAuthTokenStatus{} +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type LicenseRequestList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []LicenseRequest `json:"items"` } -func (pc *IngressAuthToken) GetStatus() interface{} { +func (License) NewStatus() interface{} { + return LicenseStatus{} +} + +func (pc *License) GetStatus() interface{} { return pc.Status } -func (pc *IngressAuthToken) SetStatus(s interface{}) { - pc.Status = s.(IngressAuthTokenStatus) +func (pc *License) SetStatus(s interface{}) { + pc.Status = s.(LicenseStatus) } -func (pc *IngressAuthToken) GetSpec() interface{} { +func (pc *License) GetSpec() interface{} { return pc.Spec } -func (pc *IngressAuthToken) SetSpec(s interface{}) { - pc.Spec = s.(IngressAuthTokenSpec) +func (pc *License) SetSpec(s interface{}) { + pc.Spec = s.(LicenseSpec) } -func (pc *IngressAuthToken) GetObjectMeta() *metav1.ObjectMeta { +func (pc *License) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *IngressAuthToken) SetGeneration(generation int64) { +func (pc *License) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc IngressAuthToken) GetGeneration() int64 { +func (pc License) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store IngressAuthToken. +// Registry is an interface for things that know how to store License. // +k8s:deepcopy-gen=false -type IngressAuthTokenRegistry interface { - ListIngressAuthTokens(ctx context.Context, options *internalversion.ListOptions) (*IngressAuthTokenList, error) - GetIngressAuthToken(ctx context.Context, id string, options *metav1.GetOptions) (*IngressAuthToken, error) - CreateIngressAuthToken(ctx context.Context, id *IngressAuthToken) (*IngressAuthToken, error) - UpdateIngressAuthToken(ctx context.Context, id *IngressAuthToken) (*IngressAuthToken, error) - DeleteIngressAuthToken(ctx context.Context, id string) (bool, error) +type LicenseRegistry interface { + ListLicenses(ctx context.Context, options *internalversion.ListOptions) (*LicenseList, error) + GetLicense(ctx context.Context, id string, options *metav1.GetOptions) (*License, error) + CreateLicense(ctx context.Context, id *License) (*License, error) + UpdateLicense(ctx context.Context, id *License) (*License, error) + DeleteLicense(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewIngressAuthTokenRegistry(sp builders.StandardStorageProvider) IngressAuthTokenRegistry { - return &storageIngressAuthToken{sp} +func NewLicenseRegistry(sp builders.StandardStorageProvider) LicenseRegistry { + return &storageLicense{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageIngressAuthToken struct { +type storageLicense struct { builders.StandardStorageProvider } -func (s *storageIngressAuthToken) ListIngressAuthTokens(ctx context.Context, options *internalversion.ListOptions) (*IngressAuthTokenList, error) { +func (s *storageLicense) ListLicenses(ctx context.Context, options *internalversion.ListOptions) (*LicenseList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -4792,117 +5174,236 @@ func (s *storageIngressAuthToken) ListIngressAuthTokens(ctx context.Context, opt if err != nil { return nil, err } - return obj.(*IngressAuthTokenList), err + return obj.(*LicenseList), err } -func (s *storageIngressAuthToken) GetIngressAuthToken(ctx context.Context, id string, options *metav1.GetOptions) (*IngressAuthToken, error) { +func (s *storageLicense) GetLicense(ctx context.Context, id string, options *metav1.GetOptions) (*License, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*IngressAuthToken), nil + return obj.(*License), nil } -func (s *storageIngressAuthToken) CreateIngressAuthToken(ctx context.Context, object *IngressAuthToken) (*IngressAuthToken, error) { +func (s *storageLicense) CreateLicense(ctx context.Context, object *License) (*License, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*IngressAuthToken), nil + return obj.(*License), nil +} + +func (s *storageLicense) UpdateLicense(ctx context.Context, object *License) (*License, 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.(*License), nil +} + +func (s *storageLicense) DeleteLicense(ctx context.Context, id string) (bool, error) { + st := s.GetStandardStorage() + _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) + return sync, err +} + +// LoftUpgrade Functions and Structs +// +// +k8s:deepcopy-gen=false +type LoftUpgradeStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type LoftUpgradeStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type LoftUpgradeList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []LoftUpgrade `json:"items"` +} + +func (LoftUpgrade) NewStatus() interface{} { + return LoftUpgradeStatus{} +} + +func (pc *LoftUpgrade) GetStatus() interface{} { + return pc.Status +} + +func (pc *LoftUpgrade) SetStatus(s interface{}) { + pc.Status = s.(LoftUpgradeStatus) +} + +func (pc *LoftUpgrade) GetSpec() interface{} { + return pc.Spec +} + +func (pc *LoftUpgrade) SetSpec(s interface{}) { + pc.Spec = s.(LoftUpgradeSpec) +} + +func (pc *LoftUpgrade) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *LoftUpgrade) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc LoftUpgrade) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store LoftUpgrade. +// +k8s:deepcopy-gen=false +type LoftUpgradeRegistry interface { + ListLoftUpgrades(ctx context.Context, options *internalversion.ListOptions) (*LoftUpgradeList, error) + GetLoftUpgrade(ctx context.Context, id string, options *metav1.GetOptions) (*LoftUpgrade, error) + CreateLoftUpgrade(ctx context.Context, id *LoftUpgrade) (*LoftUpgrade, error) + UpdateLoftUpgrade(ctx context.Context, id *LoftUpgrade) (*LoftUpgrade, error) + DeleteLoftUpgrade(ctx context.Context, id string) (bool, error) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewLoftUpgradeRegistry(sp builders.StandardStorageProvider) LoftUpgradeRegistry { + return &storageLoftUpgrade{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageLoftUpgrade struct { + builders.StandardStorageProvider +} + +func (s *storageLoftUpgrade) ListLoftUpgrades(ctx context.Context, options *internalversion.ListOptions) (*LoftUpgradeList, 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.(*LoftUpgradeList), err +} + +func (s *storageLoftUpgrade) GetLoftUpgrade(ctx context.Context, id string, options *metav1.GetOptions) (*LoftUpgrade, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*LoftUpgrade), nil +} + +func (s *storageLoftUpgrade) CreateLoftUpgrade(ctx context.Context, object *LoftUpgrade) (*LoftUpgrade, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*LoftUpgrade), nil } -func (s *storageIngressAuthToken) UpdateIngressAuthToken(ctx context.Context, object *IngressAuthToken) (*IngressAuthToken, error) { +func (s *storageLoftUpgrade) UpdateLoftUpgrade(ctx context.Context, object *LoftUpgrade) (*LoftUpgrade, 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.(*IngressAuthToken), nil + return obj.(*LoftUpgrade), nil } -func (s *storageIngressAuthToken) DeleteIngressAuthToken(ctx context.Context, id string) (bool, error) { +func (s *storageLoftUpgrade) DeleteLoftUpgrade(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err } -// Kiosk Functions and Structs +// NodeClaim Functions and Structs // // +k8s:deepcopy-gen=false -type KioskStrategy struct { +type NodeClaimStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type KioskStatusStrategy struct { +type NodeClaimStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type KioskList struct { +type NodeClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Kiosk `json:"items"` + Items []NodeClaim `json:"items"` } -func (Kiosk) NewStatus() interface{} { - return KioskStatus{} +func (NodeClaim) NewStatus() interface{} { + return NodeClaimStatus{} } -func (pc *Kiosk) GetStatus() interface{} { +func (pc *NodeClaim) GetStatus() interface{} { return pc.Status } -func (pc *Kiosk) SetStatus(s interface{}) { - pc.Status = s.(KioskStatus) +func (pc *NodeClaim) SetStatus(s interface{}) { + pc.Status = s.(NodeClaimStatus) } -func (pc *Kiosk) GetSpec() interface{} { +func (pc *NodeClaim) GetSpec() interface{} { return pc.Spec } -func (pc *Kiosk) SetSpec(s interface{}) { - pc.Spec = s.(KioskSpec) +func (pc *NodeClaim) SetSpec(s interface{}) { + pc.Spec = s.(NodeClaimSpec) } -func (pc *Kiosk) GetObjectMeta() *metav1.ObjectMeta { +func (pc *NodeClaim) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *Kiosk) SetGeneration(generation int64) { +func (pc *NodeClaim) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc Kiosk) GetGeneration() int64 { +func (pc NodeClaim) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store Kiosk. +// Registry is an interface for things that know how to store NodeClaim. // +k8s:deepcopy-gen=false -type KioskRegistry interface { - ListKiosks(ctx context.Context, options *internalversion.ListOptions) (*KioskList, error) - GetKiosk(ctx context.Context, id string, options *metav1.GetOptions) (*Kiosk, error) - CreateKiosk(ctx context.Context, id *Kiosk) (*Kiosk, error) - UpdateKiosk(ctx context.Context, id *Kiosk) (*Kiosk, error) - DeleteKiosk(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 NewKioskRegistry(sp builders.StandardStorageProvider) KioskRegistry { - return &storageKiosk{sp} +func NewNodeClaimRegistry(sp builders.StandardStorageProvider) NodeClaimRegistry { + return &storageNodeClaim{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageKiosk struct { +type storageNodeClaim struct { builders.StandardStorageProvider } -func (s *storageKiosk) ListKiosks(ctx context.Context, options *internalversion.ListOptions) (*KioskList, 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") } @@ -4911,125 +5412,117 @@ func (s *storageKiosk) ListKiosks(ctx context.Context, options *internalversion. if err != nil { return nil, err } - return obj.(*KioskList), err + return obj.(*NodeClaimList), err } -func (s *storageKiosk) GetKiosk(ctx context.Context, id string, options *metav1.GetOptions) (*Kiosk, 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.(*Kiosk), nil + return obj.(*NodeClaim), nil } -func (s *storageKiosk) CreateKiosk(ctx context.Context, object *Kiosk) (*Kiosk, 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.(*Kiosk), nil + return obj.(*NodeClaim), nil } -func (s *storageKiosk) UpdateKiosk(ctx context.Context, object *Kiosk) (*Kiosk, 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.(*Kiosk), nil + return obj.(*NodeClaim), nil } -func (s *storageKiosk) DeleteKiosk(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 } -// License Functions and Structs +// NodeEnvironment Functions and Structs // // +k8s:deepcopy-gen=false -type LicenseStrategy struct { +type NodeEnvironmentStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type LicenseStatusStrategy struct { +type NodeEnvironmentStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []License `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type LicenseRequestList struct { +type NodeEnvironmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LicenseRequest `json:"items"` + Items []NodeEnvironment `json:"items"` } -func (License) NewStatus() interface{} { - return LicenseStatus{} +func (NodeEnvironment) NewStatus() interface{} { + return NodeEnvironmentStatus{} } -func (pc *License) GetStatus() interface{} { +func (pc *NodeEnvironment) GetStatus() interface{} { return pc.Status } -func (pc *License) SetStatus(s interface{}) { - pc.Status = s.(LicenseStatus) +func (pc *NodeEnvironment) SetStatus(s interface{}) { + pc.Status = s.(NodeEnvironmentStatus) } -func (pc *License) GetSpec() interface{} { +func (pc *NodeEnvironment) GetSpec() interface{} { return pc.Spec } -func (pc *License) SetSpec(s interface{}) { - pc.Spec = s.(LicenseSpec) +func (pc *NodeEnvironment) SetSpec(s interface{}) { + pc.Spec = s.(NodeEnvironmentSpec) } -func (pc *License) GetObjectMeta() *metav1.ObjectMeta { +func (pc *NodeEnvironment) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *License) SetGeneration(generation int64) { +func (pc *NodeEnvironment) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc License) GetGeneration() int64 { +func (pc NodeEnvironment) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store License. +// Registry is an interface for things that know how to store NodeEnvironment. // +k8s:deepcopy-gen=false -type LicenseRegistry interface { - ListLicenses(ctx context.Context, options *internalversion.ListOptions) (*LicenseList, error) - GetLicense(ctx context.Context, id string, options *metav1.GetOptions) (*License, error) - CreateLicense(ctx context.Context, id *License) (*License, error) - UpdateLicense(ctx context.Context, id *License) (*License, error) - DeleteLicense(ctx context.Context, id string) (bool, error) +type NodeEnvironmentRegistry interface { + ListNodeEnvironments(ctx context.Context, options *internalversion.ListOptions) (*NodeEnvironmentList, error) + GetNodeEnvironment(ctx context.Context, id string, options *metav1.GetOptions) (*NodeEnvironment, error) + CreateNodeEnvironment(ctx context.Context, id *NodeEnvironment) (*NodeEnvironment, error) + UpdateNodeEnvironment(ctx context.Context, id *NodeEnvironment) (*NodeEnvironment, error) + DeleteNodeEnvironment(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewLicenseRegistry(sp builders.StandardStorageProvider) LicenseRegistry { - return &storageLicense{sp} +func NewNodeEnvironmentRegistry(sp builders.StandardStorageProvider) NodeEnvironmentRegistry { + return &storageNodeEnvironment{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageLicense struct { +type storageNodeEnvironment struct { builders.StandardStorageProvider } -func (s *storageLicense) ListLicenses(ctx context.Context, options *internalversion.ListOptions) (*LicenseList, error) { +func (s *storageNodeEnvironment) ListNodeEnvironments(ctx context.Context, options *internalversion.ListOptions) (*NodeEnvironmentList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -5038,117 +5531,125 @@ func (s *storageLicense) ListLicenses(ctx context.Context, options *internalvers if err != nil { return nil, err } - return obj.(*LicenseList), err + return obj.(*NodeEnvironmentList), err } -func (s *storageLicense) GetLicense(ctx context.Context, id string, options *metav1.GetOptions) (*License, error) { +func (s *storageNodeEnvironment) GetNodeEnvironment(ctx context.Context, id string, options *metav1.GetOptions) (*NodeEnvironment, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*License), nil + return obj.(*NodeEnvironment), nil } -func (s *storageLicense) CreateLicense(ctx context.Context, object *License) (*License, error) { +func (s *storageNodeEnvironment) CreateNodeEnvironment(ctx context.Context, object *NodeEnvironment) (*NodeEnvironment, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*License), nil + return obj.(*NodeEnvironment), nil } -func (s *storageLicense) UpdateLicense(ctx context.Context, object *License) (*License, error) { +func (s *storageNodeEnvironment) UpdateNodeEnvironment(ctx context.Context, object *NodeEnvironment) (*NodeEnvironment, 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.(*License), nil + return obj.(*NodeEnvironment), nil } -func (s *storageLicense) DeleteLicense(ctx context.Context, id string) (bool, error) { +func (s *storageNodeEnvironment) DeleteNodeEnvironment(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err } -// LicenseToken Functions and Structs +// NodeProvider Functions and Structs // // +k8s:deepcopy-gen=false -type LicenseTokenStrategy struct { +type NodeProviderStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type LicenseTokenStatusStrategy struct { +type NodeProviderStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseTokenList struct { +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 NodeProviderExecList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LicenseToken `json:"items"` + Items []NodeProviderExec `json:"items"` } -func (LicenseToken) NewStatus() interface{} { - return LicenseTokenStatus{} +func (NodeProvider) NewStatus() interface{} { + return NodeProviderStatus{} } -func (pc *LicenseToken) GetStatus() interface{} { +func (pc *NodeProvider) GetStatus() interface{} { return pc.Status } -func (pc *LicenseToken) SetStatus(s interface{}) { - pc.Status = s.(LicenseTokenStatus) +func (pc *NodeProvider) SetStatus(s interface{}) { + pc.Status = s.(NodeProviderStatus) } -func (pc *LicenseToken) GetSpec() interface{} { +func (pc *NodeProvider) GetSpec() interface{} { return pc.Spec } -func (pc *LicenseToken) SetSpec(s interface{}) { - pc.Spec = s.(LicenseTokenSpec) +func (pc *NodeProvider) SetSpec(s interface{}) { + pc.Spec = s.(NodeProviderSpec) } -func (pc *LicenseToken) GetObjectMeta() *metav1.ObjectMeta { +func (pc *NodeProvider) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *LicenseToken) SetGeneration(generation int64) { +func (pc *NodeProvider) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc LicenseToken) GetGeneration() int64 { +func (pc NodeProvider) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store LicenseToken. +// Registry is an interface for things that know how to store NodeProvider. // +k8s:deepcopy-gen=false -type LicenseTokenRegistry interface { - ListLicenseTokens(ctx context.Context, options *internalversion.ListOptions) (*LicenseTokenList, error) - GetLicenseToken(ctx context.Context, id string, options *metav1.GetOptions) (*LicenseToken, error) - CreateLicenseToken(ctx context.Context, id *LicenseToken) (*LicenseToken, error) - UpdateLicenseToken(ctx context.Context, id *LicenseToken) (*LicenseToken, error) - DeleteLicenseToken(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 NewLicenseTokenRegistry(sp builders.StandardStorageProvider) LicenseTokenRegistry { - return &storageLicenseToken{sp} +func NewNodeProviderRegistry(sp builders.StandardStorageProvider) NodeProviderRegistry { + return &storageNodeProvider{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageLicenseToken struct { +type storageNodeProvider struct { builders.StandardStorageProvider } -func (s *storageLicenseToken) ListLicenseTokens(ctx context.Context, options *internalversion.ListOptions) (*LicenseTokenList, error) { +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") } @@ -5157,117 +5658,117 @@ func (s *storageLicenseToken) ListLicenseTokens(ctx context.Context, options *in if err != nil { return nil, err } - return obj.(*LicenseTokenList), err + return obj.(*NodeProviderList), err } -func (s *storageLicenseToken) GetLicenseToken(ctx context.Context, id string, options *metav1.GetOptions) (*LicenseToken, error) { +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.(*LicenseToken), nil + return obj.(*NodeProvider), nil } -func (s *storageLicenseToken) CreateLicenseToken(ctx context.Context, object *LicenseToken) (*LicenseToken, error) { +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.(*LicenseToken), nil + return obj.(*NodeProvider), nil } -func (s *storageLicenseToken) UpdateLicenseToken(ctx context.Context, object *LicenseToken) (*LicenseToken, error) { +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.(*LicenseToken), nil + return obj.(*NodeProvider), nil } -func (s *storageLicenseToken) DeleteLicenseToken(ctx context.Context, id string) (bool, error) { +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 } -// LoftUpgrade Functions and Structs +// NodeType Functions and Structs // // +k8s:deepcopy-gen=false -type LoftUpgradeStrategy struct { +type NodeTypeStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type LoftUpgradeStatusStrategy struct { +type NodeTypeStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LoftUpgradeList struct { +type NodeTypeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LoftUpgrade `json:"items"` + Items []NodeType `json:"items"` } -func (LoftUpgrade) NewStatus() interface{} { - return LoftUpgradeStatus{} +func (NodeType) NewStatus() interface{} { + return NodeTypeStatus{} } -func (pc *LoftUpgrade) GetStatus() interface{} { +func (pc *NodeType) GetStatus() interface{} { return pc.Status } -func (pc *LoftUpgrade) SetStatus(s interface{}) { - pc.Status = s.(LoftUpgradeStatus) +func (pc *NodeType) SetStatus(s interface{}) { + pc.Status = s.(NodeTypeStatus) } -func (pc *LoftUpgrade) GetSpec() interface{} { +func (pc *NodeType) GetSpec() interface{} { return pc.Spec } -func (pc *LoftUpgrade) SetSpec(s interface{}) { - pc.Spec = s.(LoftUpgradeSpec) +func (pc *NodeType) SetSpec(s interface{}) { + pc.Spec = s.(NodeTypeSpec) } -func (pc *LoftUpgrade) GetObjectMeta() *metav1.ObjectMeta { +func (pc *NodeType) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *LoftUpgrade) SetGeneration(generation int64) { +func (pc *NodeType) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc LoftUpgrade) GetGeneration() int64 { +func (pc NodeType) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store LoftUpgrade. +// Registry is an interface for things that know how to store NodeType. // +k8s:deepcopy-gen=false -type LoftUpgradeRegistry interface { - ListLoftUpgrades(ctx context.Context, options *internalversion.ListOptions) (*LoftUpgradeList, error) - GetLoftUpgrade(ctx context.Context, id string, options *metav1.GetOptions) (*LoftUpgrade, error) - CreateLoftUpgrade(ctx context.Context, id *LoftUpgrade) (*LoftUpgrade, error) - UpdateLoftUpgrade(ctx context.Context, id *LoftUpgrade) (*LoftUpgrade, error) - DeleteLoftUpgrade(ctx context.Context, id string) (bool, error) +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 NewLoftUpgradeRegistry(sp builders.StandardStorageProvider) LoftUpgradeRegistry { - return &storageLoftUpgrade{sp} +func NewNodeTypeRegistry(sp builders.StandardStorageProvider) NodeTypeRegistry { + return &storageNodeType{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageLoftUpgrade struct { +type storageNodeType struct { builders.StandardStorageProvider } -func (s *storageLoftUpgrade) ListLoftUpgrades(ctx context.Context, options *internalversion.ListOptions) (*LoftUpgradeList, error) { +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") } @@ -5276,37 +5777,37 @@ func (s *storageLoftUpgrade) ListLoftUpgrades(ctx context.Context, options *inte if err != nil { return nil, err } - return obj.(*LoftUpgradeList), err + return obj.(*NodeTypeList), err } -func (s *storageLoftUpgrade) GetLoftUpgrade(ctx context.Context, id string, options *metav1.GetOptions) (*LoftUpgrade, error) { +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.(*LoftUpgrade), nil + return obj.(*NodeType), nil } -func (s *storageLoftUpgrade) CreateLoftUpgrade(ctx context.Context, object *LoftUpgrade) (*LoftUpgrade, error) { +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.(*LoftUpgrade), nil + return obj.(*NodeType), nil } -func (s *storageLoftUpgrade) UpdateLoftUpgrade(ctx context.Context, object *LoftUpgrade) (*LoftUpgrade, error) { +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.(*LoftUpgrade), nil + return obj.(*NodeType), nil } -func (s *storageLoftUpgrade) DeleteLoftUpgrade(ctx context.Context, id string) (bool, error) { +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 @@ -5628,10 +6129,10 @@ type ProjectMigrateVirtualClusterInstanceList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type ProjectRunnersList struct { +type ProjectNodeTypesList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ProjectRunners `json:"items"` + Items []ProjectNodeTypes `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -6106,208 +6607,73 @@ type ResetAccessKeyStrategy struct { } // +k8s:deepcopy-gen=false -type ResetAccessKeyStatusStrategy struct { - builders.DefaultStatusStorageStrategy -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type ResetAccessKeyList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []ResetAccessKey `json:"items"` -} - -func (ResetAccessKey) NewStatus() interface{} { - return ResetAccessKeyStatus{} -} - -func (pc *ResetAccessKey) GetStatus() interface{} { - return pc.Status -} - -func (pc *ResetAccessKey) SetStatus(s interface{}) { - pc.Status = s.(ResetAccessKeyStatus) -} - -func (pc *ResetAccessKey) GetSpec() interface{} { - return pc.Spec -} - -func (pc *ResetAccessKey) SetSpec(s interface{}) { - pc.Spec = s.(ResetAccessKeySpec) -} - -func (pc *ResetAccessKey) GetObjectMeta() *metav1.ObjectMeta { - return &pc.ObjectMeta -} - -func (pc *ResetAccessKey) SetGeneration(generation int64) { - pc.ObjectMeta.Generation = generation -} - -func (pc ResetAccessKey) GetGeneration() int64 { - return pc.ObjectMeta.Generation -} - -// Registry is an interface for things that know how to store ResetAccessKey. -// +k8s:deepcopy-gen=false -type ResetAccessKeyRegistry interface { - ListResetAccessKeys(ctx context.Context, options *internalversion.ListOptions) (*ResetAccessKeyList, error) - GetResetAccessKey(ctx context.Context, id string, options *metav1.GetOptions) (*ResetAccessKey, error) - CreateResetAccessKey(ctx context.Context, id *ResetAccessKey) (*ResetAccessKey, error) - UpdateResetAccessKey(ctx context.Context, id *ResetAccessKey) (*ResetAccessKey, error) - DeleteResetAccessKey(ctx context.Context, id string) (bool, error) -} - -// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewResetAccessKeyRegistry(sp builders.StandardStorageProvider) ResetAccessKeyRegistry { - return &storageResetAccessKey{sp} -} - -// Implement Registry -// storage puts strong typing around storage calls -// +k8s:deepcopy-gen=false -type storageResetAccessKey struct { - builders.StandardStorageProvider -} - -func (s *storageResetAccessKey) ListResetAccessKeys(ctx context.Context, options *internalversion.ListOptions) (*ResetAccessKeyList, 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.(*ResetAccessKeyList), err -} - -func (s *storageResetAccessKey) GetResetAccessKey(ctx context.Context, id string, options *metav1.GetOptions) (*ResetAccessKey, error) { - st := s.GetStandardStorage() - obj, err := st.Get(ctx, id, options) - if err != nil { - return nil, err - } - return obj.(*ResetAccessKey), nil -} - -func (s *storageResetAccessKey) CreateResetAccessKey(ctx context.Context, object *ResetAccessKey) (*ResetAccessKey, error) { - st := s.GetStandardStorage() - obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) - if err != nil { - return nil, err - } - return obj.(*ResetAccessKey), nil -} - -func (s *storageResetAccessKey) UpdateResetAccessKey(ctx context.Context, object *ResetAccessKey) (*ResetAccessKey, 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.(*ResetAccessKey), nil -} - -func (s *storageResetAccessKey) DeleteResetAccessKey(ctx context.Context, id string) (bool, error) { - st := s.GetStandardStorage() - _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) - 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"` +type ResetAccessKeyStatusStrategy struct { + builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type RunnerConfigList struct { +type ResetAccessKeyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []RunnerConfig `json:"items"` + Items []ResetAccessKey `json:"items"` } -func (Runner) NewStatus() interface{} { - return RunnerStatus{} +func (ResetAccessKey) NewStatus() interface{} { + return ResetAccessKeyStatus{} } -func (pc *Runner) GetStatus() interface{} { +func (pc *ResetAccessKey) GetStatus() interface{} { return pc.Status } -func (pc *Runner) SetStatus(s interface{}) { - pc.Status = s.(RunnerStatus) +func (pc *ResetAccessKey) SetStatus(s interface{}) { + pc.Status = s.(ResetAccessKeyStatus) } -func (pc *Runner) GetSpec() interface{} { +func (pc *ResetAccessKey) GetSpec() interface{} { return pc.Spec } -func (pc *Runner) SetSpec(s interface{}) { - pc.Spec = s.(RunnerSpec) +func (pc *ResetAccessKey) SetSpec(s interface{}) { + pc.Spec = s.(ResetAccessKeySpec) } -func (pc *Runner) GetObjectMeta() *metav1.ObjectMeta { +func (pc *ResetAccessKey) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *Runner) SetGeneration(generation int64) { +func (pc *ResetAccessKey) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc Runner) GetGeneration() int64 { +func (pc ResetAccessKey) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store Runner. +// Registry is an interface for things that know how to store ResetAccessKey. // +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) +type ResetAccessKeyRegistry interface { + ListResetAccessKeys(ctx context.Context, options *internalversion.ListOptions) (*ResetAccessKeyList, error) + GetResetAccessKey(ctx context.Context, id string, options *metav1.GetOptions) (*ResetAccessKey, error) + CreateResetAccessKey(ctx context.Context, id *ResetAccessKey) (*ResetAccessKey, error) + UpdateResetAccessKey(ctx context.Context, id *ResetAccessKey) (*ResetAccessKey, error) + DeleteResetAccessKey(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} +func NewResetAccessKeyRegistry(sp builders.StandardStorageProvider) ResetAccessKeyRegistry { + return &storageResetAccessKey{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageRunner struct { +type storageResetAccessKey struct { builders.StandardStorageProvider } -func (s *storageRunner) ListRunners(ctx context.Context, options *internalversion.ListOptions) (*RunnerList, error) { +func (s *storageResetAccessKey) ListResetAccessKeys(ctx context.Context, options *internalversion.ListOptions) (*ResetAccessKeyList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -6316,37 +6682,37 @@ func (s *storageRunner) ListRunners(ctx context.Context, options *internalversio if err != nil { return nil, err } - return obj.(*RunnerList), err + return obj.(*ResetAccessKeyList), err } -func (s *storageRunner) GetRunner(ctx context.Context, id string, options *metav1.GetOptions) (*Runner, error) { +func (s *storageResetAccessKey) GetResetAccessKey(ctx context.Context, id string, options *metav1.GetOptions) (*ResetAccessKey, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*Runner), nil + return obj.(*ResetAccessKey), nil } -func (s *storageRunner) CreateRunner(ctx context.Context, object *Runner) (*Runner, error) { +func (s *storageResetAccessKey) CreateResetAccessKey(ctx context.Context, object *ResetAccessKey) (*ResetAccessKey, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*Runner), nil + return obj.(*ResetAccessKey), nil } -func (s *storageRunner) UpdateRunner(ctx context.Context, object *Runner) (*Runner, error) { +func (s *storageResetAccessKey) UpdateResetAccessKey(ctx context.Context, object *ResetAccessKey) (*ResetAccessKey, 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 + return obj.(*ResetAccessKey), nil } -func (s *storageRunner) DeleteRunner(ctx context.Context, id string) (bool, error) { +func (s *storageResetAccessKey) DeleteResetAccessKey(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err @@ -7229,6 +7595,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{} } @@ -7447,6 +7829,125 @@ func (s *storageTranslateVClusterResourceName) DeleteTranslateVClusterResourceNa return sync, err } +// UsageDownload Functions and Structs +// +// +k8s:deepcopy-gen=false +type UsageDownloadStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type UsageDownloadStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type UsageDownloadList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []UsageDownload `json:"items"` +} + +func (UsageDownload) NewStatus() interface{} { + return UsageDownloadStatus{} +} + +func (pc *UsageDownload) GetStatus() interface{} { + return pc.Status +} + +func (pc *UsageDownload) SetStatus(s interface{}) { + pc.Status = s.(UsageDownloadStatus) +} + +func (pc *UsageDownload) GetSpec() interface{} { + return pc.Spec +} + +func (pc *UsageDownload) SetSpec(s interface{}) { + pc.Spec = s.(UsageDownloadSpec) +} + +func (pc *UsageDownload) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *UsageDownload) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc UsageDownload) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store UsageDownload. +// +k8s:deepcopy-gen=false +type UsageDownloadRegistry interface { + ListUsageDownloads(ctx context.Context, options *internalversion.ListOptions) (*UsageDownloadList, error) + GetUsageDownload(ctx context.Context, id string, options *metav1.GetOptions) (*UsageDownload, error) + CreateUsageDownload(ctx context.Context, id *UsageDownload) (*UsageDownload, error) + UpdateUsageDownload(ctx context.Context, id *UsageDownload) (*UsageDownload, error) + DeleteUsageDownload(ctx context.Context, id string) (bool, error) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewUsageDownloadRegistry(sp builders.StandardStorageProvider) UsageDownloadRegistry { + return &storageUsageDownload{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageUsageDownload struct { + builders.StandardStorageProvider +} + +func (s *storageUsageDownload) ListUsageDownloads(ctx context.Context, options *internalversion.ListOptions) (*UsageDownloadList, 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.(*UsageDownloadList), err +} + +func (s *storageUsageDownload) GetUsageDownload(ctx context.Context, id string, options *metav1.GetOptions) (*UsageDownload, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*UsageDownload), nil +} + +func (s *storageUsageDownload) CreateUsageDownload(ctx context.Context, object *UsageDownload) (*UsageDownload, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*UsageDownload), nil +} + +func (s *storageUsageDownload) UpdateUsageDownload(ctx context.Context, object *UsageDownload) (*UsageDownload, 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.(*UsageDownload), nil +} + +func (s *storageUsageDownload) DeleteUsageDownload(ctx context.Context, id string) (bool, error) { + st := s.GetStandardStorage() + _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) + return sync, err +} + // User Functions and Structs // // +k8s:deepcopy-gen=false @@ -7485,6 +7986,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 +8137,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"` @@ -7642,6 +8159,46 @@ type VirtualClusterInstanceLogList struct { Items []VirtualClusterInstanceLog `json:"items"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterNodeAccessKeyList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterNodeAccessKey `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterResourceUsageList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterResourceUsage `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterInstanceShellList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterInstanceShell `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterInstanceSnapshotList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterInstanceSnapshot `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterStandaloneList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterStandalone `json:"items"` +} + func (VirtualClusterInstance) NewStatus() interface{} { return VirtualClusterInstanceStatus{} } @@ -7741,6 +8298,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..8ef843cf 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -12,7 +12,9 @@ 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" + resource "k8s.io/apimachinery/pkg/api/resource" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -153,6 +155,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 +460,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 +761,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 +1016,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 +1181,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 +1334,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 +1883,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 +1897,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 +2013,26 @@ 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.PlatformDB != nil { + in, out := &in.PlatformDB, &out.PlatformDB + *out = new(PlatformDB) + **out = **in + } + if in.ImageBuilder != nil { + in, out := &in.ImageBuilder, &out.ImageBuilder + *out = new(ImageBuilder) + (*in).DeepCopyInto(*out) + } return } @@ -2163,174 +2210,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 +2386,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 +2419,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 *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 DevPodStopOptions. -func (in *DevPodStopOptions) DeepCopy() *DevPodStopOptions { +// 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(DevPodStopOptions) + out := new(DirectClusterEndpointToken) 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 *DirectClusterEndpointToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2450,30 +2479,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 *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([]DevPodStopOptions, len(*in)) - copy(*out, *in) + *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 DevPodStopOptionsList. -func (in *DevPodStopOptionsList) DeepCopy() *DevPodStopOptionsList { +// 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(DevPodStopOptionsList) + out := new(DirectClusterEndpointTokenList) 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 *DirectClusterEndpointTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2481,83 +2512,64 @@ 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 *DirectClusterEndpointTokenSpec) DeepCopyInto(out *DirectClusterEndpointTokenSpec) { *out = *in - out.TypeMeta = in.TypeMeta + 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 DevPodUpOptions. -func (in *DevPodUpOptions) DeepCopy() *DevPodUpOptions { +// 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(DevPodUpOptions) + out := new(DirectClusterEndpointTokenSpec) 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 *DirectClusterEndpointTokenStatus) DeepCopyInto(out *DirectClusterEndpointTokenStatus) { *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 DirectClusterEndpointTokenStatus. +func (in *DirectClusterEndpointTokenStatus) DeepCopy() *DirectClusterEndpointTokenStatus { if in == nil { return nil } - out := new(DevPodUpOptionsList) + out := new(DirectClusterEndpointTokenStatus) 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) { +func (in *Event) DeepCopyInto(out *Event) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) + out.Spec = in.Spec in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstance. -func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event. +func (in *Event) DeepCopy() *Event { if in == nil { return nil } - out := new(DevPodWorkspaceInstance) + out := new(Event) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { +func (in *Event) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2565,13 +2577,13 @@ 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 *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([]DevPodWorkspaceInstance, len(*in)) + *out = make([]Event, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2579,18 +2591,18 @@ func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceList. -func (in *DevPodWorkspaceInstanceList) DeepCopy() *DevPodWorkspaceInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventList. +func (in *EventList) DeepCopy() *EventList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceList) + out := new(EventList) 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 *EventList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2598,42 +2610,60 @@ 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 *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.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) + in.Event.DeepCopyInto(&out.Event) 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 EventStatus. +func (in *EventStatus) DeepCopy() *EventStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + 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 *DevPodWorkspaceInstanceState) DeepCopyInto(out *DevPodWorkspaceInstanceState) { +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 DevPodWorkspaceInstanceState. -func (in *DevPodWorkspaceInstanceState) DeepCopy() *DevPodWorkspaceInstanceState { +// 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(DevPodWorkspaceInstanceState) + out := new(Feature) 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 *Feature) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2641,13 +2671,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 *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([]DevPodWorkspaceInstanceState, len(*in)) + *out = make([]Feature, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2655,18 +2685,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 FeatureList. +func (in *FeatureList) DeepCopy() *FeatureList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStateList) + out := new(FeatureList) 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 *FeatureList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2674,144 +2704,117 @@ 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) { +func (in *FeatureSpec) DeepCopyInto(out *FeatureSpec) { *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 { +// 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(DevPodWorkspaceInstanceStatus) + 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 *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { +func (in *FeatureStatus) DeepCopyInto(out *FeatureStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + out.Feature = in.Feature 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 FeatureStatus. +func (in *FeatureStatus) DeepCopy() *FeatureStatus { if in == nil { return nil } - out := new(DevPodWorkspaceTemplate) + out := new(FeatureStatus) 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) { +func (in *GroupResources) DeepCopyInto(out *GroupResources) { *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 + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = make([]string, len(*in)) + copy(*out, *in) } - 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 + if in.ResourceNames != nil { + in, out := &in.ResourceNames, &out.ResourceNames + *out = make([]string, len(*in)) + copy(*out, *in) } - 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 { +// 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(DevPodWorkspaceTemplateSpec) + 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 *DevPodWorkspaceTemplateStatus) DeepCopyInto(out *DevPodWorkspaceTemplateStatus) { +func (in *ImageBuilder) DeepCopyInto(out *ImageBuilder) { *out = *in - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus + 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 DevPodWorkspaceTemplateStatus. -func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { +// 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(DevPodWorkspaceTemplateStatus) + 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 *DirectClusterEndpointToken) DeepCopyInto(out *DirectClusterEndpointToken) { +func (in *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { *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 DirectClusterEndpointToken. -func (in *DirectClusterEndpointToken) DeepCopy() *DirectClusterEndpointToken { +// 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(DirectClusterEndpointToken) + out := new(IngressAuthToken) 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 *IngressAuthToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2819,13 +2822,13 @@ 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 *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([]DirectClusterEndpointToken, len(*in)) + *out = make([]IngressAuthToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2833,18 +2836,18 @@ func (in *DirectClusterEndpointTokenList) DeepCopyInto(out *DirectClusterEndpoin 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 IngressAuthTokenList. +func (in *IngressAuthTokenList) DeepCopy() *IngressAuthTokenList { if in == nil { return nil } - out := new(DirectClusterEndpointTokenList) + out := new(IngressAuthTokenList) 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 *IngressAuthTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2852,64 +2855,59 @@ 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 *IngressAuthTokenSpec) DeepCopyInto(out *IngressAuthTokenSpec) { *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 { +// 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(DirectClusterEndpointTokenSpec) + 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 *DirectClusterEndpointTokenStatus) DeepCopyInto(out *DirectClusterEndpointTokenStatus) { +func (in *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { *out = *in 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 IngressAuthTokenStatus. +func (in *IngressAuthTokenStatus) DeepCopy() *IngressAuthTokenStatus { if in == nil { return nil } - out := new(DirectClusterEndpointTokenStatus) + 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 *Event) DeepCopyInto(out *Event) { +func (in *Kiosk) DeepCopyInto(out *Kiosk) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) + in.Spec.DeepCopyInto(&out.Spec) + 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 Kiosk. +func (in *Kiosk) DeepCopy() *Kiosk { if in == nil { return nil } - out := new(Event) + out := new(Kiosk) 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 *Kiosk) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2917,13 +2915,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 *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([]Event, len(*in)) + *out = make([]Kiosk, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2931,18 +2929,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 KioskList. +func (in *KioskList) DeepCopy() *KioskList { if in == nil { return nil } - out := new(EventList) + out := new(KioskList) 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 *KioskList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2950,40 +2948,53 @@ 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 *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) + in.NodeProviderBCMNodeWithResources.DeepCopyInto(&out.NodeProviderBCMNodeWithResources) + in.NodeProviderBCMGetResourcesResult.DeepCopyInto(&out.NodeProviderBCMGetResourcesResult) + out.NodeProviderBCMTestConnectionResult = in.NodeProviderBCMTestConnectionResult + out.NodeProviderCalculateCostResult = in.NodeProviderCalculateCostResult + out.NodeProviderTerraformValidateResult = in.NodeProviderTerraformValidateResult + out.NodeProviderExecResult = in.NodeProviderExecResult + in.NodeClaimData.DeepCopyInto(&out.NodeClaimData) + in.NodeEnvironmentData.DeepCopyInto(&out.NodeEnvironmentData) 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 KioskSpec. +func (in *KioskSpec) DeepCopy() *KioskSpec { if in == nil { return nil } - out := new(EventSpec) + 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 *EventStatus) DeepCopyInto(out *EventStatus) { +func (in *KioskStatus) DeepCopyInto(out *KioskStatus) { *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 KioskStatus. +func (in *KioskStatus) DeepCopy() *KioskStatus { if in == nil { return nil } - out := new(EventStatus) + 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 *Feature) DeepCopyInto(out *Feature) { +func (in *License) DeepCopyInto(out *License) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2992,18 +3003,18 @@ func (in *Feature) DeepCopyInto(out *Feature) { 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 License. +func (in *License) DeepCopy() *License { if in == nil { return nil } - out := new(Feature) + out := new(License) 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 *License) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3011,13 +3022,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 *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([]Feature, len(*in)) + *out = make([]License, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3025,18 +3036,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 LicenseList. +func (in *LicenseList) DeepCopy() *LicenseList { if in == nil { return nil } - out := new(FeatureList) + out := new(LicenseList) 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 *LicenseList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3044,179 +3055,169 @@ 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 *LicenseRequest) DeepCopyInto(out *LicenseRequest) { *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 FeatureSpec. -func (in *FeatureSpec) DeepCopy() *FeatureSpec { +// 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(FeatureSpec) + out := new(LicenseRequest) 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 +// 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 } - out := new(FeatureStatus) - 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 *GroupResources) DeepCopyInto(out *GroupResources) { +func (in *LicenseRequestList) DeepCopyInto(out *LicenseRequestList) { *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.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 GroupResources. -func (in *GroupResources) DeepCopy() *GroupResources { +// 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(GroupResources) + 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 *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { +func (in *LicenseRequestSpec) DeepCopyInto(out *LicenseRequestSpec) { *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 { +// 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(IngressAuthToken) + out := new(LicenseRequestSpec) 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) { +func (in *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { *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 { +// 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(IngressAuthTokenList) + out := new(LicenseRequestStatus) 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) { +func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec) { *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 LicenseSpec. +func (in *LicenseSpec) DeepCopy() *LicenseSpec { if in == nil { return nil } - out := new(IngressAuthTokenSpec) + 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 *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { +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() + } + } + if in.PlatformDatabase != nil { + in, out := &in.PlatformDatabase, &out.PlatformDatabase + *out = new(licenseapi.PlatformDatabase) + **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 LicenseStatus. +func (in *LicenseStatus) DeepCopy() *LicenseStatus { if in == nil { return nil } - out := new(IngressAuthTokenStatus) + 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 *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 +3225,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 +3239,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 +3258,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 +3333,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 +3352,49 @@ 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 *NodeClaimData) DeepCopyInto(out *NodeClaimData) { + *out = *in + if in.State != nil { + in, out := &in.State, &out.State + *out = make([]byte, len(*in)) + copy(*out, *in) + } + if in.Operations != nil { + in, out := &in.Operations, &out.Operations + *out = make(map[string]*Operation, len(*in)) + for key, val := range *in { + var outVal *Operation + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(Operation) + (*in).DeepCopyInto(*out) + } + (*out)[key] = outVal + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimData. +func (in *NodeClaimData) DeepCopy() *NodeClaimData { + if in == nil { + return nil + } + out := new(NodeClaimData) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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 +3402,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,123 +3421,116 @@ 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) { +func (in *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { *out = *in - in.Input.DeepCopyInto(&out.Input) + in.NodeClaimSpec.DeepCopyInto(&out.NodeClaimSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestSpec. -func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { +// 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(LicenseRequestSpec) + 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 *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { +func (in *NodeClaimStatus) DeepCopyInto(out *NodeClaimStatus) { *out = *in - if in.Output != nil { - in, out := &in.Output, &out.Output - *out = new(licenseapi.GenericRequestOutput) - (*in).DeepCopyInto(*out) - } + in.NodeClaimStatus.DeepCopyInto(&out.NodeClaimStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestStatus. -func (in *LicenseRequestStatus) DeepCopy() *LicenseRequestStatus { +// 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(LicenseRequestStatus) + 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 *LicenseSpec) DeepCopyInto(out *LicenseSpec) { +func (in *NodeEnvironment) DeepCopyInto(out *NodeEnvironment) { *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 LicenseSpec. -func (in *LicenseSpec) DeepCopy() *LicenseSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeEnvironment. +func (in *NodeEnvironment) DeepCopy() *NodeEnvironment { if in == nil { return nil } - out := new(LicenseSpec) + out := new(NodeEnvironment) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeEnvironment) 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 *LicenseStatus) DeepCopyInto(out *LicenseStatus) { +func (in *NodeEnvironmentData) DeepCopyInto(out *NodeEnvironmentData) { *out = *in - if in.License != nil { - in, out := &in.License, &out.License - *out = new(licenseapi.License) - (*in).DeepCopyInto(*out) + if in.Outputs != nil { + in, out := &in.Outputs, &out.Outputs + *out = make([]byte, len(*in)) + copy(*out, *in) } - if in.ResourceUsage != nil { - in, out := &in.ResourceUsage, &out.ResourceUsage - *out = make(map[string]licenseapi.ResourceCount, len(*in)) + if in.State != nil { + in, out := &in.State, &out.State + *out = make([]byte, len(*in)) + copy(*out, *in) + } + if in.Operations != nil { + in, out := &in.Operations, &out.Operations + *out = make(map[string]*Operation, len(*in)) for key, val := range *in { - (*out)[key] = *val.DeepCopy() + var outVal *Operation + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(Operation) + (*in).DeepCopyInto(*out) + } + (*out)[key] = outVal } } 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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeEnvironmentData. +func (in *NodeEnvironmentData) DeepCopy() *NodeEnvironmentData { if in == nil { return nil } - out := new(LicenseToken) + out := new(NodeEnvironmentData) 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) { +func (in *NodeEnvironmentList) DeepCopyInto(out *NodeEnvironmentList) { *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([]NodeEnvironment, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3541,18 +3538,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 NodeEnvironmentList. +func (in *NodeEnvironmentList) DeepCopy() *NodeEnvironmentList { if in == nil { return nil } - out := new(LicenseTokenList) + out := new(NodeEnvironmentList) 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 *NodeEnvironmentList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3560,64 +3557,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 *NodeEnvironmentSpec) DeepCopyInto(out *NodeEnvironmentSpec) { *out = *in + in.NodeEnvironmentSpec.DeepCopyInto(&out.NodeEnvironmentSpec) 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 NodeEnvironmentSpec. +func (in *NodeEnvironmentSpec) DeepCopy() *NodeEnvironmentSpec { if in == nil { return nil } - out := new(LicenseTokenSpec) + out := new(NodeEnvironmentSpec) 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 *NodeEnvironmentStatus) DeepCopyInto(out *NodeEnvironmentStatus) { *out = *in - if in.Token != nil { - in, out := &in.Token, &out.Token - *out = new(licenseapi.InstanceTokenAuth) - **out = **in - } + in.NodeEnvironmentStatus.DeepCopyInto(&out.NodeEnvironmentStatus) 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 NodeEnvironmentStatus. +func (in *NodeEnvironmentStatus) DeepCopy() *NodeEnvironmentStatus { if in == nil { return nil } - out := new(LicenseTokenStatus) + out := new(NodeEnvironmentStatus) 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 *NodeProvider) DeepCopyInto(out *NodeProvider) { *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 NodeProvider. +func (in *NodeProvider) DeepCopy() *NodeProvider { if in == nil { return nil } - out := new(LoftUpgrade) + out := new(NodeProvider) 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 *NodeProvider) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3625,13 +3619,18 @@ 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 *NodeProviderBCMGetResourcesResult) DeepCopyInto(out *NodeProviderBCMGetResourcesResult) { *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)) + if in.Nodes != nil { + in, out := &in.Nodes, &out.Nodes + *out = make([]NodeProviderBCMNodeWithResources, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.NodeGroups != nil { + in, out := &in.NodeGroups, &out.NodeGroups + *out = make([]NodeProviderBCMNodeGroup, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3639,101 +3638,118 @@ 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 NodeProviderBCMGetResourcesResult. +func (in *NodeProviderBCMGetResourcesResult) DeepCopy() *NodeProviderBCMGetResourcesResult { if in == nil { return nil } - out := new(LoftUpgradeList) + out := new(NodeProviderBCMGetResourcesResult) 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 { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NodeProviderBCMNodeGroup) DeepCopyInto(out *NodeProviderBCMNodeGroup) { + *out = *in + if in.Nodes != nil { + in, out := &in.Nodes, &out.Nodes + *out = make([]string, len(*in)) + copy(*out, *in) } - return nil + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderBCMNodeGroup. +func (in *NodeProviderBCMNodeGroup) DeepCopy() *NodeProviderBCMNodeGroup { + if in == nil { + return nil + } + out := new(NodeProviderBCMNodeGroup) + in.DeepCopyInto(out) + return out } // 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 *NodeProviderBCMNodeWithResources) DeepCopyInto(out *NodeProviderBCMNodeWithResources) { *out = *in + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = new(corev1.ResourceList) + if **in != nil { + in, out := *in, *out + *out = make(map[corev1.ResourceName]resource.Quantity, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } + } 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 NodeProviderBCMNodeWithResources. +func (in *NodeProviderBCMNodeWithResources) DeepCopy() *NodeProviderBCMNodeWithResources { if in == nil { return nil } - out := new(LoftUpgradeSpec) + out := new(NodeProviderBCMNodeWithResources) 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 *NodeProviderBCMTestConnectionResult) DeepCopyInto(out *NodeProviderBCMTestConnectionResult) { *out = *in 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 NodeProviderBCMTestConnectionResult. +func (in *NodeProviderBCMTestConnectionResult) DeepCopy() *NodeProviderBCMTestConnectionResult { if in == nil { return nil } - out := new(LoftUpgradeStatus) + out := new(NodeProviderBCMTestConnectionResult) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OIDC) DeepCopyInto(out *OIDC) { +func (in *NodeProviderCalculateCostResult) DeepCopyInto(out *NodeProviderCalculateCostResult) { *out = *in - if in.Clients != nil { - in, out := &in.Clients, &out.Clients - *out = make([]OIDCClientSpec, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDC. -func (in *OIDC) DeepCopy() *OIDC { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderCalculateCostResult. +func (in *NodeProviderCalculateCostResult) DeepCopy() *NodeProviderCalculateCostResult { if in == nil { return nil } - out := new(OIDC) + out := new(NodeProviderCalculateCostResult) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OIDCClient) DeepCopyInto(out *OIDCClient) { +func (in *NodeProviderExec) DeepCopyInto(out *NodeProviderExec) { *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 } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClient. -func (in *OIDCClient) DeepCopy() *OIDCClient { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderExec. +func (in *NodeProviderExec) DeepCopy() *NodeProviderExec { if in == nil { return nil } - out := new(OIDCClient) + out := new(NodeProviderExec) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OIDCClient) DeepCopyObject() runtime.Object { +func (in *NodeProviderExec) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3741,13 +3757,13 @@ func (in *OIDCClient) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OIDCClientList) DeepCopyInto(out *OIDCClientList) { +func (in *NodeProviderExecList) DeepCopyInto(out *NodeProviderExecList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]OIDCClient, len(*in)) + *out = make([]NodeProviderExec, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3755,18 +3771,18 @@ func (in *OIDCClientList) DeepCopyInto(out *OIDCClientList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClientList. -func (in *OIDCClientList) DeepCopy() *OIDCClientList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderExecList. +func (in *NodeProviderExecList) DeepCopy() *NodeProviderExecList { if in == nil { return nil } - out := new(OIDCClientList) + out := new(NodeProviderExecList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OIDCClientList) DeepCopyObject() runtime.Object { +func (in *NodeProviderExecList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3774,78 +3790,63 @@ func (in *OIDCClientList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OIDCClientSpec) DeepCopyInto(out *OIDCClientSpec) { +func (in *NodeProviderExecResult) DeepCopyInto(out *NodeProviderExecResult) { *out = *in - if in.RedirectURIs != nil { - in, out := &in.RedirectURIs, &out.RedirectURIs - *out = make([]string, len(*in)) - copy(*out, *in) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClientSpec. -func (in *OIDCClientSpec) DeepCopy() *OIDCClientSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderExecResult. +func (in *NodeProviderExecResult) DeepCopy() *NodeProviderExecResult { if in == nil { return nil } - out := new(OIDCClientSpec) + out := new(NodeProviderExecResult) 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 *NodeProviderExecSpec) DeepCopyInto(out *NodeProviderExecSpec) { *out = *in + in.Args.DeepCopyInto(&out.Args) 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 NodeProviderExecSpec. +func (in *NodeProviderExecSpec) DeepCopy() *NodeProviderExecSpec { if in == nil { return nil } - out := new(OIDCClientStatus) + out := new(NodeProviderExecSpec) 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) { +func (in *NodeProviderExecStatus) DeepCopyInto(out *NodeProviderExecStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.Result.DeepCopyInto(&out.Result) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKey. -func (in *OwnedAccessKey) DeepCopy() *OwnedAccessKey { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderExecStatus. +func (in *NodeProviderExecStatus) DeepCopy() *NodeProviderExecStatus { if in == nil { return nil } - out := new(OwnedAccessKey) + out := new(NodeProviderExecStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OwnedAccessKey) 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 *OwnedAccessKeyList) DeepCopyInto(out *OwnedAccessKeyList) { +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([]OwnedAccessKey, len(*in)) + *out = make([]NodeProvider, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3853,18 +3854,18 @@ func (in *OwnedAccessKeyList) DeepCopyInto(out *OwnedAccessKeyList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeyList. -func (in *OwnedAccessKeyList) DeepCopy() *OwnedAccessKeyList { +// 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(OwnedAccessKeyList) + out := new(NodeProviderList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OwnedAccessKeyList) DeepCopyObject() runtime.Object { +func (in *NodeProviderList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3872,90 +3873,57 @@ func (in *OwnedAccessKeyList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OwnedAccessKeySpec) DeepCopyInto(out *OwnedAccessKeySpec) { - *out = *in - in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeySpec. -func (in *OwnedAccessKeySpec) DeepCopy() *OwnedAccessKeySpec { - if in == nil { - return nil - } - out := new(OwnedAccessKeySpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OwnedAccessKeyStatus) DeepCopyInto(out *OwnedAccessKeyStatus) { +func (in *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { *out = *in - in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) + in.NodeProviderSpec.DeepCopyInto(&out.NodeProviderSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeyStatus. -func (in *OwnedAccessKeyStatus) DeepCopy() *OwnedAccessKeyStatus { +// 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(OwnedAccessKeyStatus) + 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 *PredefinedApp) DeepCopyInto(out *PredefinedApp) { +func (in *NodeProviderStatus) DeepCopyInto(out *NodeProviderStatus) { *out = *in - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make([]string, len(*in)) - copy(*out, *in) - } + in.NodeProviderStatus.DeepCopyInto(&out.NodeProviderStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PredefinedApp. -func (in *PredefinedApp) DeepCopy() *PredefinedApp { +// 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(PredefinedApp) + 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 *Project) DeepCopyInto(out *Project) { +func (in *NodeProviderTerraformValidateResult) DeepCopyInto(out *NodeProviderTerraformValidateResult) { *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 Project. -func (in *Project) DeepCopy() *Project { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderTerraformValidateResult. +func (in *NodeProviderTerraformValidateResult) DeepCopy() *NodeProviderTerraformValidateResult { if in == nil { return nil } - out := new(Project) + out := new(NodeProviderTerraformValidateResult) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Project) 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 *ProjectChartInfo) DeepCopyInto(out *ProjectChartInfo) { +func (in *NodeType) DeepCopyInto(out *NodeType) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3964,18 +3932,18 @@ func (in *ProjectChartInfo) DeepCopyInto(out *ProjectChartInfo) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfo. -func (in *ProjectChartInfo) DeepCopy() *ProjectChartInfo { +// 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(ProjectChartInfo) + out := new(NodeType) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectChartInfo) DeepCopyObject() runtime.Object { +func (in *NodeType) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3983,13 +3951,13 @@ func (in *ProjectChartInfo) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectChartInfoList) DeepCopyInto(out *ProjectChartInfoList) { +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([]ProjectChartInfo, len(*in)) + *out = make([]NodeType, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3997,18 +3965,18 @@ func (in *ProjectChartInfoList) DeepCopyInto(out *ProjectChartInfoList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoList. -func (in *ProjectChartInfoList) DeepCopy() *ProjectChartInfoList { +// 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(ProjectChartInfoList) + out := new(NodeTypeList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectChartInfoList) DeepCopyObject() runtime.Object { +func (in *NodeTypeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4016,47 +3984,45 @@ func (in *ProjectChartInfoList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectChartInfoSpec) DeepCopyInto(out *ProjectChartInfoSpec) { +func (in *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { *out = *in - in.ChartInfoSpec.DeepCopyInto(&out.ChartInfoSpec) + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoSpec. -func (in *ProjectChartInfoSpec) DeepCopy() *ProjectChartInfoSpec { +// 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(ProjectChartInfoSpec) + 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 *ProjectChartInfoStatus) DeepCopyInto(out *ProjectChartInfoStatus) { +func (in *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { *out = *in - in.ChartInfoStatus.DeepCopyInto(&out.ChartInfoStatus) + in.NodeTypeStatus.DeepCopyInto(&out.NodeTypeStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoStatus. -func (in *ProjectChartInfoStatus) DeepCopy() *ProjectChartInfoStatus { +// 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(ProjectChartInfoStatus) + out := new(NodeTypeStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectCharts) DeepCopyInto(out *ProjectCharts) { +func (in *OIDC) DeepCopyInto(out *OIDC) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Charts != nil { - in, out := &in.Charts, &out.Charts - *out = make([]storagev1.HelmChart, len(*in)) + if in.Clients != nil { + in, out := &in.Clients, &out.Clients + *out = make([]OIDCClientSpec, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4064,18 +4030,38 @@ func (in *ProjectCharts) DeepCopyInto(out *ProjectCharts) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectCharts. -func (in *ProjectCharts) DeepCopy() *ProjectCharts { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDC. +func (in *OIDC) DeepCopy() *OIDC { if in == nil { return nil } - out := new(ProjectCharts) + out := new(OIDC) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectCharts) DeepCopyObject() runtime.Object { +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *OIDCClient) DeepCopyInto(out *OIDCClient) { + *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 OIDCClient. +func (in *OIDCClient) DeepCopy() *OIDCClient { + if in == nil { + return nil + } + out := new(OIDCClient) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *OIDCClient) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4083,13 +4069,13 @@ func (in *ProjectCharts) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectChartsList) DeepCopyInto(out *ProjectChartsList) { +func (in *OIDCClientList) DeepCopyInto(out *OIDCClientList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ProjectCharts, len(*in)) + *out = make([]OIDCClient, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4097,18 +4083,18 @@ func (in *ProjectChartsList) DeepCopyInto(out *ProjectChartsList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartsList. -func (in *ProjectChartsList) DeepCopy() *ProjectChartsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClientList. +func (in *OIDCClientList) DeepCopy() *OIDCClientList { if in == nil { return nil } - out := new(ProjectChartsList) + out := new(OIDCClientList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectChartsList) DeepCopyObject() runtime.Object { +func (in *OIDCClientList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4116,99 +4102,125 @@ func (in *ProjectChartsList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectClusters) DeepCopyInto(out *ProjectClusters) { +func (in *OIDCClientSpec) DeepCopyInto(out *OIDCClientSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make([]Cluster, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.RedirectURIs != nil { + in, out := &in.RedirectURIs, &out.RedirectURIs + *out = make([]string, len(*in)) + copy(*out, *in) } - 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 OIDCClientSpec. +func (in *OIDCClientSpec) DeepCopy() *OIDCClientSpec { + if in == nil { + return nil } + 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 ProjectClusters. -func (in *ProjectClusters) DeepCopy() *ProjectClusters { +// 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(ProjectClusters) + out := new(OIDCClientStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectClusters) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// 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 } - 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 *ProjectClustersList) DeepCopyInto(out *ProjectClustersList) { +func (in *ObjectPermission) DeepCopyInto(out *ObjectPermission) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ProjectClusters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + 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 ProjectClustersList. -func (in *ProjectClustersList) DeepCopy() *ProjectClustersList { +// 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(ProjectClustersList) + out := new(ObjectPermission) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectClustersList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Operation) DeepCopyInto(out *Operation) { + *out = *in + in.StartTimestamp.DeepCopyInto(&out.StartTimestamp) + in.EndTimestamp.DeepCopyInto(&out.EndTimestamp) + if in.Logs != nil { + in, out := &in.Logs, &out.Logs + *out = make([]byte, len(*in)) + copy(*out, *in) } - return nil + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Operation. +func (in *Operation) DeepCopy() *Operation { + if in == nil { + return nil + } + out := new(Operation) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectImportSpace) DeepCopyInto(out *ProjectImportSpace) { +func (in *OwnedAccessKey) DeepCopyInto(out *OwnedAccessKey) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.SourceSpace = in.SourceSpace + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectImportSpace. -func (in *ProjectImportSpace) DeepCopy() *ProjectImportSpace { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKey. +func (in *OwnedAccessKey) DeepCopy() *OwnedAccessKey { if in == nil { return nil } - out := new(ProjectImportSpace) + out := new(OwnedAccessKey) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectImportSpace) DeepCopyObject() runtime.Object { +func (in *OwnedAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4216,13 +4228,13 @@ func (in *ProjectImportSpace) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectImportSpaceList) DeepCopyInto(out *ProjectImportSpaceList) { +func (in *OwnedAccessKeyList) DeepCopyInto(out *OwnedAccessKeyList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ProjectImportSpace, len(*in)) + *out = make([]OwnedAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4230,18 +4242,18 @@ func (in *ProjectImportSpaceList) DeepCopyInto(out *ProjectImportSpaceList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectImportSpaceList. -func (in *ProjectImportSpaceList) DeepCopy() *ProjectImportSpaceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeyList. +func (in *OwnedAccessKeyList) DeepCopy() *OwnedAccessKeyList { if in == nil { return nil } - out := new(ProjectImportSpaceList) + out := new(OwnedAccessKeyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectImportSpaceList) DeepCopyObject() runtime.Object { +func (in *OwnedAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4249,134 +4261,98 @@ func (in *ProjectImportSpaceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectImportSpaceSource) DeepCopyInto(out *ProjectImportSpaceSource) { +func (in *OwnedAccessKeySpec) DeepCopyInto(out *OwnedAccessKeySpec) { *out = *in + in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectImportSpaceSource. -func (in *ProjectImportSpaceSource) DeepCopy() *ProjectImportSpaceSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeySpec. +func (in *OwnedAccessKeySpec) DeepCopy() *OwnedAccessKeySpec { if in == nil { return nil } - out := new(ProjectImportSpaceSource) + out := new(OwnedAccessKeySpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectList) DeepCopyInto(out *ProjectList) { +func (in *OwnedAccessKeyStatus) DeepCopyInto(out *OwnedAccessKeyStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Project, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectList. -func (in *ProjectList) DeepCopy() *ProjectList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeyStatus. +func (in *OwnedAccessKeyStatus) DeepCopy() *OwnedAccessKeyStatus { if in == nil { return nil } - out := new(ProjectList) + out := new(OwnedAccessKeyStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectList) 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 *ProjectMember) DeepCopyInto(out *ProjectMember) { +func (in *PlatformDB) DeepCopyInto(out *PlatformDB) { *out = *in - out.Info = in.Info return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMember. -func (in *ProjectMember) DeepCopy() *ProjectMember { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformDB. +func (in *PlatformDB) DeepCopy() *PlatformDB { if in == nil { return nil } - out := new(ProjectMember) + out := new(PlatformDB) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMembers) DeepCopyInto(out *ProjectMembers) { +func (in *PredefinedApp) DeepCopyInto(out *PredefinedApp) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]ProjectMember, len(*in)) - copy(*out, *in) - } - if in.Users != nil { - in, out := &in.Users, &out.Users - *out = make([]ProjectMember, len(*in)) + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make([]string, len(*in)) copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMembers. -func (in *ProjectMembers) DeepCopy() *ProjectMembers { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PredefinedApp. +func (in *PredefinedApp) DeepCopy() *PredefinedApp { if in == nil { return nil } - out := new(ProjectMembers) + out := new(PredefinedApp) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMembers) 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 *ProjectMembersList) DeepCopyInto(out *ProjectMembersList) { +func (in *Project) DeepCopyInto(out *Project) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ProjectMembers, 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 ProjectMembersList. -func (in *ProjectMembersList) DeepCopy() *ProjectMembersList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Project. +func (in *Project) DeepCopy() *Project { if in == nil { return nil } - out := new(ProjectMembersList) + out := new(Project) 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 { +func (in *Project) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4384,26 +4360,27 @@ func (in *ProjectMembersList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateSpaceInstance) DeepCopyInto(out *ProjectMigrateSpaceInstance) { +func (in *ProjectChartInfo) DeepCopyInto(out *ProjectChartInfo) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.SourceSpaceInstance = in.SourceSpaceInstance + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstance. -func (in *ProjectMigrateSpaceInstance) DeepCopy() *ProjectMigrateSpaceInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfo. +func (in *ProjectChartInfo) DeepCopy() *ProjectChartInfo { if in == nil { return nil } - out := new(ProjectMigrateSpaceInstance) + out := new(ProjectChartInfo) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMigrateSpaceInstance) DeepCopyObject() runtime.Object { +func (in *ProjectChartInfo) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4411,13 +4388,13 @@ func (in *ProjectMigrateSpaceInstance) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateSpaceInstanceList) DeepCopyInto(out *ProjectMigrateSpaceInstanceList) { +func (in *ProjectChartInfoList) DeepCopyInto(out *ProjectChartInfoList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ProjectMigrateSpaceInstance, len(*in)) + *out = make([]ProjectChartInfo, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4425,18 +4402,18 @@ func (in *ProjectMigrateSpaceInstanceList) DeepCopyInto(out *ProjectMigrateSpace return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstanceList. -func (in *ProjectMigrateSpaceInstanceList) DeepCopy() *ProjectMigrateSpaceInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoList. +func (in *ProjectChartInfoList) DeepCopy() *ProjectChartInfoList { if in == nil { return nil } - out := new(ProjectMigrateSpaceInstanceList) + out := new(ProjectChartInfoList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMigrateSpaceInstanceList) DeepCopyObject() runtime.Object { +func (in *ProjectChartInfoList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4444,56 +4421,47 @@ func (in *ProjectMigrateSpaceInstanceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateSpaceInstanceSource) DeepCopyInto(out *ProjectMigrateSpaceInstanceSource) { +func (in *ProjectChartInfoSpec) DeepCopyInto(out *ProjectChartInfoSpec) { *out = *in + in.ChartInfoSpec.DeepCopyInto(&out.ChartInfoSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstanceSource. -func (in *ProjectMigrateSpaceInstanceSource) DeepCopy() *ProjectMigrateSpaceInstanceSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoSpec. +func (in *ProjectChartInfoSpec) DeepCopy() *ProjectChartInfoSpec { if in == nil { return nil } - out := new(ProjectMigrateSpaceInstanceSource) + out := new(ProjectChartInfoSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateVirtualClusterInstance) DeepCopyInto(out *ProjectMigrateVirtualClusterInstance) { +func (in *ProjectChartInfoStatus) DeepCopyInto(out *ProjectChartInfoStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.SourceVirtualClusterInstance = in.SourceVirtualClusterInstance + in.ChartInfoStatus.DeepCopyInto(&out.ChartInfoStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstance. -func (in *ProjectMigrateVirtualClusterInstance) DeepCopy() *ProjectMigrateVirtualClusterInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoStatus. +func (in *ProjectChartInfoStatus) DeepCopy() *ProjectChartInfoStatus { if in == nil { return nil } - out := new(ProjectMigrateVirtualClusterInstance) + out := new(ProjectChartInfoStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMigrateVirtualClusterInstance) 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 *ProjectMigrateVirtualClusterInstanceList) DeepCopyInto(out *ProjectMigrateVirtualClusterInstanceList) { +func (in *ProjectCharts) DeepCopyInto(out *ProjectCharts) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ProjectMigrateVirtualClusterInstance, len(*in)) + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Charts != nil { + in, out := &in.Charts, &out.Charts + *out = make([]storagev1.HelmChart, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4501,18 +4469,18 @@ func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyInto(out *ProjectMig return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstanceList. -func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopy() *ProjectMigrateVirtualClusterInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectCharts. +func (in *ProjectCharts) DeepCopy() *ProjectCharts { if in == nil { return nil } - out := new(ProjectMigrateVirtualClusterInstanceList) + out := new(ProjectCharts) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyObject() runtime.Object { +func (in *ProjectCharts) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4520,29 +4488,46 @@ func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyObject() runtime.Obj } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopyInto(out *ProjectMigrateVirtualClusterInstanceSource) { +func (in *ProjectChartsList) DeepCopyInto(out *ProjectChartsList) { *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ProjectCharts, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstanceSource. -func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrateVirtualClusterInstanceSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartsList. +func (in *ProjectChartsList) DeepCopy() *ProjectChartsList { if in == nil { return nil } - out := new(ProjectMigrateVirtualClusterInstanceSource) + out := new(ProjectChartsList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectChartsList) 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 *ProjectRunners) DeepCopyInto(out *ProjectRunners) { +func (in *ProjectClusters) DeepCopyInto(out *ProjectClusters) { *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)) + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make([]Cluster, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4550,18 +4535,18 @@ func (in *ProjectRunners) DeepCopyInto(out *ProjectRunners) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRunners. -func (in *ProjectRunners) DeepCopy() *ProjectRunners { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectClusters. +func (in *ProjectClusters) DeepCopy() *ProjectClusters { if in == nil { return nil } - out := new(ProjectRunners) + out := new(ProjectClusters) 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 { +func (in *ProjectClusters) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4569,13 +4554,13 @@ func (in *ProjectRunners) DeepCopyObject() runtime.Object { } // 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 *ProjectClustersList) DeepCopyInto(out *ProjectClustersList) { *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)) + *out = make([]ProjectClusters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4583,18 +4568,18 @@ func (in *ProjectRunnersList) DeepCopyInto(out *ProjectRunnersList) { 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 ProjectClustersList. +func (in *ProjectClustersList) DeepCopy() *ProjectClustersList { if in == nil { return nil } - out := new(ProjectRunnersList) + out := new(ProjectClustersList) 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 { +func (in *ProjectClustersList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4602,27 +4587,26 @@ func (in *ProjectRunnersList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectSecret) DeepCopyInto(out *ProjectSecret) { +func (in *ProjectImportSpace) DeepCopyInto(out *ProjectImportSpace) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.SourceSpace = in.SourceSpace return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSecret. -func (in *ProjectSecret) DeepCopy() *ProjectSecret { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectImportSpace. +func (in *ProjectImportSpace) DeepCopy() *ProjectImportSpace { if in == nil { return nil } - out := new(ProjectSecret) + out := new(ProjectImportSpace) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectSecret) DeepCopyObject() runtime.Object { +func (in *ProjectImportSpace) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4630,13 +4614,13 @@ func (in *ProjectSecret) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectSecretList) DeepCopyInto(out *ProjectSecretList) { +func (in *ProjectImportSpaceList) DeepCopyInto(out *ProjectImportSpaceList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ProjectSecret, len(*in)) + *out = make([]ProjectImportSpace, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4644,18 +4628,18 @@ func (in *ProjectSecretList) DeepCopyInto(out *ProjectSecretList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSecretList. -func (in *ProjectSecretList) DeepCopy() *ProjectSecretList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectImportSpaceList. +func (in *ProjectImportSpaceList) DeepCopy() *ProjectImportSpaceList { if in == nil { return nil } - out := new(ProjectSecretList) + out := new(ProjectImportSpaceList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectSecretList) DeepCopyObject() runtime.Object { +func (in *ProjectImportSpaceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4663,54 +4647,29 @@ func (in *ProjectSecretList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectSecretSpec) DeepCopyInto(out *ProjectSecretSpec) { +func (in *ProjectImportSpaceSource) DeepCopyInto(out *ProjectImportSpaceSource) { *out = *in - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(storagev1.UserOrTeam) - **out = **in - } - if in.Data != nil { - in, out := &in.Data, &out.Data - *out = make(map[string][]byte, len(*in)) - for key, val := range *in { - var outVal []byte - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make([]byte, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal - } - } - if in.Access != nil { - in, out := &in.Access, &out.Access - *out = make([]storagev1.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 ProjectSecretSpec. -func (in *ProjectSecretSpec) DeepCopy() *ProjectSecretSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectImportSpaceSource. +func (in *ProjectImportSpaceSource) DeepCopy() *ProjectImportSpaceSource { if in == nil { return nil } - out := new(ProjectSecretSpec) + out := new(ProjectImportSpaceSource) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectSecretStatus) DeepCopyInto(out *ProjectSecretStatus) { +func (in *ProjectList) DeepCopyInto(out *ProjectList) { *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make(loftstoragev1.Conditions, len(*in)) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Project, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4718,98 +4677,71 @@ func (in *ProjectSecretStatus) DeepCopyInto(out *ProjectSecretStatus) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSecretStatus. -func (in *ProjectSecretStatus) DeepCopy() *ProjectSecretStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectList. +func (in *ProjectList) DeepCopy() *ProjectList { if in == nil { return nil } - out := new(ProjectSecretStatus) + out := new(ProjectList) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec) { - *out = *in - in.ProjectSpec.DeepCopyInto(&out.ProjectSpec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSpec. -func (in *ProjectSpec) DeepCopy() *ProjectSpec { - if in == nil { - return nil +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - out := new(ProjectSpec) - 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 *ProjectStatus) DeepCopyInto(out *ProjectStatus) { +func (in *ProjectMember) DeepCopyInto(out *ProjectMember) { *out = *in - in.ProjectStatus.DeepCopyInto(&out.ProjectStatus) + out.Info = in.Info return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectStatus. -func (in *ProjectStatus) DeepCopy() *ProjectStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMember. +func (in *ProjectMember) DeepCopy() *ProjectMember { if in == nil { return nil } - out := new(ProjectStatus) + out := new(ProjectMember) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { +func (in *ProjectMembers) DeepCopyInto(out *ProjectMembers) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.VirtualClusterTemplates != nil { - in, out := &in.VirtualClusterTemplates, &out.VirtualClusterTemplates - *out = make([]VirtualClusterTemplate, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.SpaceTemplates != nil { - in, out := &in.SpaceTemplates, &out.SpaceTemplates - *out = make([]SpaceTemplate, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.DevPodWorkspaceTemplates != nil { - in, out := &in.DevPodWorkspaceTemplates, &out.DevPodWorkspaceTemplates - *out = make([]DevPodWorkspaceTemplate, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make([]ProjectMember, len(*in)) + copy(*out, *in) } - if in.DevPodEnvironmentTemplates != nil { - in, out := &in.DevPodEnvironmentTemplates, &out.DevPodEnvironmentTemplates - *out = make([]DevPodEnvironmentTemplate, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = make([]ProjectMember, len(*in)) + copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectTemplates. -func (in *ProjectTemplates) DeepCopy() *ProjectTemplates { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMembers. +func (in *ProjectMembers) DeepCopy() *ProjectMembers { if in == nil { return nil } - out := new(ProjectTemplates) + out := new(ProjectMembers) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectTemplates) DeepCopyObject() runtime.Object { +func (in *ProjectMembers) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4817,13 +4749,13 @@ func (in *ProjectTemplates) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectTemplatesList) DeepCopyInto(out *ProjectTemplatesList) { +func (in *ProjectMembersList) DeepCopyInto(out *ProjectMembersList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ProjectTemplates, len(*in)) + *out = make([]ProjectMembers, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4831,18 +4763,18 @@ func (in *ProjectTemplatesList) DeepCopyInto(out *ProjectTemplatesList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectTemplatesList. -func (in *ProjectTemplatesList) DeepCopy() *ProjectTemplatesList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMembersList. +func (in *ProjectMembersList) DeepCopy() *ProjectMembersList { if in == nil { return nil } - out := new(ProjectTemplatesList) + out := new(ProjectMembersList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectTemplatesList) DeepCopyObject() runtime.Object { +func (in *ProjectMembersList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4850,60 +4782,45 @@ func (in *ProjectTemplatesList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RedirectToken) DeepCopyInto(out *RedirectToken) { +func (in *ProjectMembership) DeepCopyInto(out *ProjectMembership) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + 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 RedirectToken. -func (in *RedirectToken) DeepCopy() *RedirectToken { +// 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(RedirectToken) + out := new(ProjectMembership) 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) { +func (in *ProjectMigrateSpaceInstance) DeepCopyInto(out *ProjectMigrateSpaceInstance) { *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]) - } - } + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.SourceSpaceInstance = in.SourceSpaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenList. -func (in *RedirectTokenList) DeepCopy() *RedirectTokenList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstance. +func (in *ProjectMigrateSpaceInstance) DeepCopy() *ProjectMigrateSpaceInstance { if in == nil { return nil } - out := new(RedirectTokenList) + out := new(ProjectMigrateSpaceInstance) 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 { +func (in *ProjectMigrateSpaceInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4911,59 +4828,75 @@ func (in *RedirectTokenList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RedirectTokenSpec) DeepCopyInto(out *RedirectTokenSpec) { +func (in *ProjectMigrateSpaceInstanceList) DeepCopyInto(out *ProjectMigrateSpaceInstanceList) { *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ProjectMigrateSpaceInstance, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenSpec. -func (in *RedirectTokenSpec) DeepCopy() *RedirectTokenSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstanceList. +func (in *ProjectMigrateSpaceInstanceList) DeepCopy() *ProjectMigrateSpaceInstanceList { if in == nil { return nil } - out := new(RedirectTokenSpec) + out := new(ProjectMigrateSpaceInstanceList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectMigrateSpaceInstanceList) 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 *RedirectTokenStatus) DeepCopyInto(out *RedirectTokenStatus) { +func (in *ProjectMigrateSpaceInstanceSource) DeepCopyInto(out *ProjectMigrateSpaceInstanceSource) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenStatus. -func (in *RedirectTokenStatus) DeepCopy() *RedirectTokenStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstanceSource. +func (in *ProjectMigrateSpaceInstanceSource) DeepCopy() *ProjectMigrateSpaceInstanceSource { if in == nil { return nil } - out := new(RedirectTokenStatus) + out := new(ProjectMigrateSpaceInstanceSource) 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) { +func (in *ProjectMigrateVirtualClusterInstance) DeepCopyInto(out *ProjectMigrateVirtualClusterInstance) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + out.SourceVirtualClusterInstance = in.SourceVirtualClusterInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualCluster. -func (in *RegisterVirtualCluster) DeepCopy() *RegisterVirtualCluster { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstance. +func (in *ProjectMigrateVirtualClusterInstance) DeepCopy() *ProjectMigrateVirtualClusterInstance { if in == nil { return nil } - out := new(RegisterVirtualCluster) + out := new(ProjectMigrateVirtualClusterInstance) 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 { +func (in *ProjectMigrateVirtualClusterInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4971,13 +4904,13 @@ func (in *RegisterVirtualCluster) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RegisterVirtualClusterList) DeepCopyInto(out *RegisterVirtualClusterList) { +func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyInto(out *ProjectMigrateVirtualClusterInstanceList) { *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)) + *out = make([]ProjectMigrateVirtualClusterInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4985,18 +4918,18 @@ func (in *RegisterVirtualClusterList) DeepCopyInto(out *RegisterVirtualClusterLi return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterList. -func (in *RegisterVirtualClusterList) DeepCopy() *RegisterVirtualClusterList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstanceList. +func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopy() *ProjectMigrateVirtualClusterInstanceList { if in == nil { return nil } - out := new(RegisterVirtualClusterList) + out := new(ProjectMigrateVirtualClusterInstanceList) 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 { +func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5004,59 +4937,55 @@ func (in *RegisterVirtualClusterList) DeepCopyObject() runtime.Object { } // 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) { +func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopyInto(out *ProjectMigrateVirtualClusterInstanceSource) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterStatus. -func (in *RegisterVirtualClusterStatus) DeepCopy() *RegisterVirtualClusterStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstanceSource. +func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrateVirtualClusterInstanceSource { if in == nil { return nil } - out := new(RegisterVirtualClusterStatus) + out := new(ProjectMigrateVirtualClusterInstanceSource) 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) { +func (in *ProjectNodeTypes) DeepCopyInto(out *ProjectNodeTypes) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + if in.NodeProviders != nil { + in, out := &in.NodeProviders, &out.NodeProviders + *out = make([]storagev1.NodeProvider, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.NodeTypes != nil { + in, out := &in.NodeTypes, &out.NodeTypes + *out = make([]storagev1.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 ResetAccessKey. -func (in *ResetAccessKey) DeepCopy() *ResetAccessKey { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectNodeTypes. +func (in *ProjectNodeTypes) DeepCopy() *ProjectNodeTypes { if in == nil { return nil } - out := new(ResetAccessKey) + out := new(ProjectNodeTypes) 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 *ProjectNodeTypes) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5064,13 +4993,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 *ProjectNodeTypesList) DeepCopyInto(out *ProjectNodeTypesList) { *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([]ProjectNodeTypes, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5078,18 +5007,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 ProjectNodeTypesList. +func (in *ProjectNodeTypesList) DeepCopy() *ProjectNodeTypesList { if in == nil { return nil } - out := new(ResetAccessKeyList) + out := new(ProjectNodeTypesList) 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 *ProjectNodeTypesList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5097,41 +5026,24 @@ 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) { - *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 { - if in == nil { - return nil - } - 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 *ResetAccessKeyStatus) DeepCopyInto(out *ResetAccessKeyStatus) { +func (in *ProjectRole) DeepCopyInto(out *ProjectRole) { *out = *in - in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) + out.ObjectName = in.ObjectName 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 ProjectRole. +func (in *ProjectRole) DeepCopy() *ProjectRole { if in == nil { return nil } - out := new(ResetAccessKeyStatus) + out := new(ProjectRole) 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 *ProjectSecret) DeepCopyInto(out *ProjectSecret) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -5140,44 +5052,18 @@ func (in *Runner) DeepCopyInto(out *Runner) { 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 *RunnerAccessKey) DeepCopyInto(out *RunnerAccessKey) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - 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 ProjectSecret. +func (in *ProjectSecret) DeepCopy() *ProjectSecret { if in == nil { return nil } - out := new(RunnerAccessKey) + out := new(ProjectSecret) 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 *ProjectSecret) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5185,13 +5071,13 @@ 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 *ProjectSecretList) DeepCopyInto(out *ProjectSecretList) { *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)) + *out = make([]ProjectSecret, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5199,18 +5085,18 @@ func (in *RunnerAccessKeyList) DeepCopyInto(out *RunnerAccessKeyList) { 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 ProjectSecretList. +func (in *ProjectSecretList) DeepCopy() *ProjectSecretList { if in == nil { return nil } - out := new(RunnerAccessKeyList) + out := new(ProjectSecretList) 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 { +func (in *ProjectSecretList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5218,44 +5104,54 @@ func (in *RunnerAccessKeyList) DeepCopyObject() runtime.Object { } // 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 *ProjectSecretSpec) DeepCopyInto(out *ProjectSecretSpec) { *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) + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = new(storagev1.UserOrTeam) + **out = **in + } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make(map[string][]byte, len(*in)) + for key, val := range *in { + var outVal []byte + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = make([]byte, len(*in)) + copy(*out, *in) + } + (*out)[key] = outVal + } + } + if in.Access != nil { + in, out := &in.Access, &out.Access + *out = make([]storagev1.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 RunnerConfig. -func (in *RunnerConfig) DeepCopy() *RunnerConfig { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSecretSpec. +func (in *ProjectSecretSpec) DeepCopy() *ProjectSecretSpec { if in == nil { return nil } - out := new(RunnerConfig) + out := new(ProjectSecretSpec) 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 *ProjectSecretStatus) DeepCopyInto(out *ProjectSecretStatus) { *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)) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make(loftstoragev1.Conditions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5263,113 +5159,145 @@ func (in *RunnerConfigList) DeepCopyInto(out *RunnerConfigList) { 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 ProjectSecretStatus. +func (in *ProjectSecretStatus) DeepCopy() *ProjectSecretStatus { if in == nil { return nil } - out := new(RunnerConfigList) + out := new(ProjectSecretStatus) 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 { - 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 *RunnerList) DeepCopyInto(out *RunnerList) { +func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec) { *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]) - } - } + in.ProjectSpec.DeepCopyInto(&out.ProjectSpec) 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 ProjectSpec. +func (in *ProjectSpec) DeepCopy() *ProjectSpec { if in == nil { return nil } - out := new(RunnerList) + out := new(ProjectSpec) 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 +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus) { + *out = *in + in.ProjectStatus.DeepCopyInto(&out.ProjectStatus) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectStatus. +func (in *ProjectStatus) DeepCopy() *ProjectStatus { + if in == nil { + return nil } - return nil + out := new(ProjectStatus) + 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 *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { *out = *in - in.RunnerSpec.DeepCopyInto(&out.RunnerSpec) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.VirtualClusterTemplates != nil { + in, out := &in.VirtualClusterTemplates, &out.VirtualClusterTemplates + *out = make([]VirtualClusterTemplate, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.SpaceTemplates != nil { + in, out := &in.SpaceTemplates, &out.SpaceTemplates + *out = make([]SpaceTemplate, 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 ProjectTemplates. +func (in *ProjectTemplates) DeepCopy() *ProjectTemplates { if in == nil { return nil } - out := new(RunnerSpec) + out := new(ProjectTemplates) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectTemplates) 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 *RunnerStatus) DeepCopyInto(out *RunnerStatus) { +func (in *ProjectTemplatesList) DeepCopyInto(out *ProjectTemplatesList) { *out = *in - in.RunnerStatus.DeepCopyInto(&out.RunnerStatus) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ProjectTemplates, 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 ProjectTemplatesList. +func (in *ProjectTemplatesList) DeepCopy() *ProjectTemplatesList { if in == nil { return nil } - out := new(RunnerStatus) + out := new(ProjectTemplatesList) in.DeepCopyInto(out) return out } +// 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 *Self) DeepCopyInto(out *Self) { +func (in *RedirectToken) DeepCopyInto(out *RedirectToken) { *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 Self. -func (in *Self) DeepCopy() *Self { +// 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(Self) + out := new(RedirectToken) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Self) DeepCopyObject() runtime.Object { +func (in *RedirectToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5377,13 +5305,13 @@ func (in *Self) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfList) DeepCopyInto(out *SelfList) { +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([]Self, len(*in)) + *out = make([]RedirectToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5391,18 +5319,18 @@ func (in *SelfList) DeepCopyInto(out *SelfList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfList. -func (in *SelfList) DeepCopy() *SelfList { +// 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(SelfList) + out := new(RedirectTokenList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SelfList) DeepCopyObject() runtime.Object { +func (in *RedirectTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5410,84 +5338,59 @@ func (in *SelfList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSpec) DeepCopyInto(out *SelfSpec) { +func (in *RedirectTokenSpec) DeepCopyInto(out *RedirectTokenSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSpec. -func (in *SelfSpec) DeepCopy() *SelfSpec { +// 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(SelfSpec) + 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 *SelfStatus) DeepCopyInto(out *SelfStatus) { +func (in *RedirectTokenStatus) DeepCopyInto(out *RedirectTokenStatus) { *out = *in - if in.User != nil { - in, out := &in.User, &out.User - *out = new(UserInfo) - (*in).DeepCopyInto(*out) - } - if in.Team != nil { - in, out := &in.Team, &out.Team - *out = new(storagev1.EntityInfo) - **out = **in - } - if in.AccessKeyScope != nil { - in, out := &in.AccessKeyScope, &out.AccessKeyScope - *out = new(storagev1.AccessKeyScope) - (*in).DeepCopyInto(*out) - } - if in.Groups != nil { - in, out := &in.Groups, &out.Groups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ProjectNamespacePrefix != nil { - in, out := &in.ProjectNamespacePrefix, &out.ProjectNamespacePrefix - *out = new(string) - **out = **in - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfStatus. -func (in *SelfStatus) DeepCopy() *SelfStatus { +// 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(SelfStatus) + 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 *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) { +func (in *RegisterVirtualCluster) DeepCopyInto(out *RegisterVirtualCluster) { *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 SelfSubjectAccessReview. -func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview { +// 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(SelfSubjectAccessReview) + out := new(RegisterVirtualCluster) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object { +func (in *RegisterVirtualCluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5495,13 +5398,13 @@ func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectAccessReviewList) DeepCopyInto(out *SelfSubjectAccessReviewList) { +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([]SelfSubjectAccessReview, len(*in)) + *out = make([]RegisterVirtualCluster, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5509,18 +5412,18 @@ func (in *SelfSubjectAccessReviewList) DeepCopyInto(out *SelfSubjectAccessReview return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewList. -func (in *SelfSubjectAccessReviewList) DeepCopy() *SelfSubjectAccessReviewList { +// 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(SelfSubjectAccessReviewList) + out := new(RegisterVirtualClusterList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SelfSubjectAccessReviewList) DeepCopyObject() runtime.Object { +func (in *RegisterVirtualClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5528,41 +5431,39 @@ func (in *SelfSubjectAccessReviewList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) { +func (in *RegisterVirtualClusterSpec) DeepCopyInto(out *RegisterVirtualClusterSpec) { *out = *in - in.SelfSubjectAccessReviewSpec.DeepCopyInto(&out.SelfSubjectAccessReviewSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec. -func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec { +// 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(SelfSubjectAccessReviewSpec) + 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 *SelfSubjectAccessReviewStatus) DeepCopyInto(out *SelfSubjectAccessReviewStatus) { +func (in *RegisterVirtualClusterStatus) DeepCopyInto(out *RegisterVirtualClusterStatus) { *out = *in - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewStatus. -func (in *SelfSubjectAccessReviewStatus) DeepCopy() *SelfSubjectAccessReviewStatus { +// 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(SelfSubjectAccessReviewStatus) + 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 *SharedSecret) DeepCopyInto(out *SharedSecret) { +func (in *ResetAccessKey) DeepCopyInto(out *ResetAccessKey) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -5571,18 +5472,18 @@ func (in *SharedSecret) DeepCopyInto(out *SharedSecret) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecret. -func (in *SharedSecret) DeepCopy() *SharedSecret { +// 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(SharedSecret) + out := new(ResetAccessKey) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SharedSecret) DeepCopyObject() runtime.Object { +func (in *ResetAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5590,13 +5491,13 @@ func (in *SharedSecret) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SharedSecretList) DeepCopyInto(out *SharedSecretList) { +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([]SharedSecret, len(*in)) + *out = make([]ResetAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5604,18 +5505,18 @@ func (in *SharedSecretList) DeepCopyInto(out *SharedSecretList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecretList. -func (in *SharedSecretList) DeepCopy() *SharedSecretList { +// 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(SharedSecretList) + out := new(ResetAccessKeyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SharedSecretList) DeepCopyObject() runtime.Object { +func (in *ResetAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5623,61 +5524,61 @@ func (in *SharedSecretList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SharedSecretSpec) DeepCopyInto(out *SharedSecretSpec) { +func (in *ResetAccessKeySpec) DeepCopyInto(out *ResetAccessKeySpec) { *out = *in - in.SharedSecretSpec.DeepCopyInto(&out.SharedSecretSpec) + in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecretSpec. -func (in *SharedSecretSpec) DeepCopy() *SharedSecretSpec { +// 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(SharedSecretSpec) + 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 *SharedSecretStatus) DeepCopyInto(out *SharedSecretStatus) { +func (in *ResetAccessKeyStatus) DeepCopyInto(out *ResetAccessKeyStatus) { *out = *in - in.SharedSecretStatus.DeepCopyInto(&out.SharedSecretStatus) + in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecretStatus. -func (in *SharedSecretStatus) DeepCopy() *SharedSecretStatus { +// 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(SharedSecretStatus) + out := new(ResetAccessKeyStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceInstance) DeepCopyInto(out *SpaceInstance) { +func (in *Self) DeepCopyInto(out *Self) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) + out.Spec = in.Spec in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceInstance. -func (in *SpaceInstance) DeepCopy() *SpaceInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Self. +func (in *Self) DeepCopy() *Self { if in == nil { return nil } - out := new(SpaceInstance) + out := new(Self) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SpaceInstance) DeepCopyObject() runtime.Object { +func (in *Self) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5685,13 +5586,13 @@ func (in *SpaceInstance) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceInstanceList) DeepCopyInto(out *SpaceInstanceList) { +func (in *SelfList) DeepCopyInto(out *SelfList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]SpaceInstance, len(*in)) + *out = make([]Self, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5699,18 +5600,18 @@ func (in *SpaceInstanceList) DeepCopyInto(out *SpaceInstanceList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceInstanceList. -func (in *SpaceInstanceList) DeepCopy() *SpaceInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfList. +func (in *SelfList) DeepCopy() *SelfList { if in == nil { return nil } - out := new(SpaceInstanceList) + out := new(SelfList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SpaceInstanceList) DeepCopyObject() runtime.Object { +func (in *SelfList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5718,66 +5619,1531 @@ func (in *SpaceInstanceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceInstanceSpec) DeepCopyInto(out *SpaceInstanceSpec) { +func (in *SelfSpec) DeepCopyInto(out *SelfSpec) { *out = *in - in.SpaceInstanceSpec.DeepCopyInto(&out.SpaceInstanceSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceInstanceSpec. -func (in *SpaceInstanceSpec) DeepCopy() *SpaceInstanceSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSpec. +func (in *SelfSpec) DeepCopy() *SelfSpec { if in == nil { return nil } - out := new(SpaceInstanceSpec) + out := new(SelfSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceInstanceStatus) DeepCopyInto(out *SpaceInstanceStatus) { +func (in *SelfStatus) DeepCopyInto(out *SelfStatus) { *out = *in - in.SpaceInstanceStatus.DeepCopyInto(&out.SpaceInstanceStatus) - if in.SleepModeConfig != nil { - in, out := &in.SleepModeConfig, &out.SleepModeConfig - *out = new(clusterv1.SleepModeConfig) - (*in).DeepCopyInto(*out) - } + if in.User != nil { + in, out := &in.User, &out.User + *out = new(UserInfo) + (*in).DeepCopyInto(*out) + } + if in.Team != nil { + in, out := &in.Team, &out.Team + *out = new(storagev1.EntityInfo) + **out = **in + } + if in.AccessKeyScope != nil { + in, out := &in.AccessKeyScope, &out.AccessKeyScope + *out = new(storagev1.AccessKeyScope) + (*in).DeepCopyInto(*out) + } + if in.Groups != nil { + in, out := &in.Groups, &out.Groups + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ProjectNamespacePrefix != nil { + in, out := &in.ProjectNamespacePrefix, &out.ProjectNamespacePrefix + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfStatus. +func (in *SelfStatus) DeepCopy() *SelfStatus { + if in == nil { + return nil + } + out := new(SelfStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) { + *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 SelfSubjectAccessReview. +func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview { + if in == nil { + return nil + } + out := new(SelfSubjectAccessReview) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SelfSubjectAccessReview) 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 *SelfSubjectAccessReviewList) DeepCopyInto(out *SelfSubjectAccessReviewList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SelfSubjectAccessReview, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewList. +func (in *SelfSubjectAccessReviewList) DeepCopy() *SelfSubjectAccessReviewList { + if in == nil { + return nil + } + out := new(SelfSubjectAccessReviewList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SelfSubjectAccessReviewList) 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 *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) { + *out = *in + in.SelfSubjectAccessReviewSpec.DeepCopyInto(&out.SelfSubjectAccessReviewSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec. +func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec { + if in == nil { + return nil + } + out := new(SelfSubjectAccessReviewSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SelfSubjectAccessReviewStatus) DeepCopyInto(out *SelfSubjectAccessReviewStatus) { + *out = *in + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewStatus. +func (in *SelfSubjectAccessReviewStatus) DeepCopy() *SelfSubjectAccessReviewStatus { + if in == nil { + return nil + } + out := new(SelfSubjectAccessReviewStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SharedSecret) DeepCopyInto(out *SharedSecret) { + *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 SharedSecret. +func (in *SharedSecret) DeepCopy() *SharedSecret { + if in == nil { + return nil + } + out := new(SharedSecret) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SharedSecret) 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 *SharedSecretList) DeepCopyInto(out *SharedSecretList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SharedSecret, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecretList. +func (in *SharedSecretList) DeepCopy() *SharedSecretList { + if in == nil { + return nil + } + out := new(SharedSecretList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SharedSecretList) 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 *SharedSecretSpec) DeepCopyInto(out *SharedSecretSpec) { + *out = *in + in.SharedSecretSpec.DeepCopyInto(&out.SharedSecretSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecretSpec. +func (in *SharedSecretSpec) DeepCopy() *SharedSecretSpec { + if in == nil { + return nil + } + out := new(SharedSecretSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SharedSecretStatus) DeepCopyInto(out *SharedSecretStatus) { + *out = *in + in.SharedSecretStatus.DeepCopyInto(&out.SharedSecretStatus) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecretStatus. +func (in *SharedSecretStatus) DeepCopy() *SharedSecretStatus { + if in == nil { + return nil + } + out := new(SharedSecretStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SnapshotRequest) DeepCopyInto(out *SnapshotRequest) { + *out = *in + in.Metadata.DeepCopyInto(&out.Metadata) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotRequest. +func (in *SnapshotRequest) DeepCopy() *SnapshotRequest { + if in == nil { + return nil + } + out := new(SnapshotRequest) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SnapshotRequestError) DeepCopyInto(out *SnapshotRequestError) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotRequestError. +func (in *SnapshotRequestError) DeepCopy() *SnapshotRequestError { + if in == nil { + return nil + } + out := new(SnapshotRequestError) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SnapshotRequestMetadata) DeepCopyInto(out *SnapshotRequestMetadata) { + *out = *in + in.CreationTimestamp.DeepCopyInto(&out.CreationTimestamp) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotRequestMetadata. +func (in *SnapshotRequestMetadata) DeepCopy() *SnapshotRequestMetadata { + if in == nil { + return nil + } + out := new(SnapshotRequestMetadata) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SnapshotRequestStatus) DeepCopyInto(out *SnapshotRequestStatus) { + *out = *in + in.VolumeSnapshots.DeepCopyInto(&out.VolumeSnapshots) + out.Error = in.Error + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotRequestStatus. +func (in *SnapshotRequestStatus) DeepCopy() *SnapshotRequestStatus { + if in == nil { + return nil + } + out := new(SnapshotRequestStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SnapshotTaken) DeepCopyInto(out *SnapshotTaken) { + *out = *in + in.Request.DeepCopyInto(&out.Request) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotTaken. +func (in *SnapshotTaken) DeepCopy() *SnapshotTaken { + if in == nil { + return nil + } + out := new(SnapshotTaken) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpaceInstance) DeepCopyInto(out *SpaceInstance) { + *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 SpaceInstance. +func (in *SpaceInstance) DeepCopy() *SpaceInstance { + if in == nil { + return nil + } + out := new(SpaceInstance) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SpaceInstance) 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 *SpaceInstanceList) DeepCopyInto(out *SpaceInstanceList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SpaceInstance, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceInstanceList. +func (in *SpaceInstanceList) DeepCopy() *SpaceInstanceList { + if in == nil { + return nil + } + out := new(SpaceInstanceList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SpaceInstanceList) 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 *SpaceInstanceSpec) DeepCopyInto(out *SpaceInstanceSpec) { + *out = *in + in.SpaceInstanceSpec.DeepCopyInto(&out.SpaceInstanceSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceInstanceSpec. +func (in *SpaceInstanceSpec) DeepCopy() *SpaceInstanceSpec { + if in == nil { + return nil + } + out := new(SpaceInstanceSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpaceInstanceStatus) DeepCopyInto(out *SpaceInstanceStatus) { + *out = *in + in.SpaceInstanceStatus.DeepCopyInto(&out.SpaceInstanceStatus) + 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 SpaceInstanceStatus. +func (in *SpaceInstanceStatus) DeepCopy() *SpaceInstanceStatus { + if in == nil { + return nil + } + out := new(SpaceInstanceStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpaceTemplate) DeepCopyInto(out *SpaceTemplate) { + *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 SpaceTemplate. +func (in *SpaceTemplate) DeepCopy() *SpaceTemplate { + if in == nil { + return nil + } + out := new(SpaceTemplate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SpaceTemplate) 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 *SpaceTemplateList) DeepCopyInto(out *SpaceTemplateList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SpaceTemplate, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateList. +func (in *SpaceTemplateList) DeepCopy() *SpaceTemplateList { + if in == nil { + return nil + } + out := new(SpaceTemplateList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SpaceTemplateList) 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 *SpaceTemplateSpec) DeepCopyInto(out *SpaceTemplateSpec) { + *out = *in + in.SpaceTemplateSpec.DeepCopyInto(&out.SpaceTemplateSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateSpec. +func (in *SpaceTemplateSpec) DeepCopy() *SpaceTemplateSpec { + if in == nil { + return nil + } + out := new(SpaceTemplateSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SpaceTemplateStatus) DeepCopyInto(out *SpaceTemplateStatus) { + *out = *in + out.SpaceTemplateStatus = in.SpaceTemplateStatus + if in.Apps != nil { + in, out := &in.Apps, &out.Apps + *out = make([]*storagev1.EntityInfo, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(storagev1.EntityInfo) + **out = **in + } + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateStatus. +func (in *SpaceTemplateStatus) DeepCopy() *SpaceTemplateStatus { + if in == nil { + return nil + } + out := new(SpaceTemplateStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StandaloneEtcdPeer) DeepCopyInto(out *StandaloneEtcdPeer) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandaloneEtcdPeer. +func (in *StandaloneEtcdPeer) DeepCopy() *StandaloneEtcdPeer { + if in == nil { + return nil + } + out := new(StandaloneEtcdPeer) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StandaloneEtcdPeerCoordinator) DeepCopyInto(out *StandaloneEtcdPeerCoordinator) { + *out = *in + out.StandaloneEtcdPeer = in.StandaloneEtcdPeer + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandaloneEtcdPeerCoordinator. +func (in *StandaloneEtcdPeerCoordinator) DeepCopy() *StandaloneEtcdPeerCoordinator { + if in == nil { + return nil + } + out := new(StandaloneEtcdPeerCoordinator) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StandalonePKI) DeepCopyInto(out *StandalonePKI) { + *out = *in + if in.Certificates != nil { + in, out := &in.Certificates, &out.Certificates + *out = make(map[string][]byte, len(*in)) + for key, val := range *in { + var outVal []byte + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = make([]byte, len(*in)) + copy(*out, *in) + } + (*out)[key] = outVal + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandalonePKI. +func (in *StandalonePKI) DeepCopy() *StandalonePKI { + if in == nil { + return nil + } + out := new(StandalonePKI) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) { + *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 SubjectAccessReview. +func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview { + if in == nil { + return nil + } + out := new(SubjectAccessReview) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SubjectAccessReview) 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 *SubjectAccessReviewList) DeepCopyInto(out *SubjectAccessReviewList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SubjectAccessReview, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewList. +func (in *SubjectAccessReviewList) DeepCopy() *SubjectAccessReviewList { + if in == nil { + return nil + } + out := new(SubjectAccessReviewList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SubjectAccessReviewList) 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 *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) { + *out = *in + in.SubjectAccessReviewSpec.DeepCopyInto(&out.SubjectAccessReviewSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec. +func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec { + if in == nil { + return nil + } + out := new(SubjectAccessReviewSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) { + *out = *in + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus. +func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus { + if in == nil { + return nil + } + out := new(SubjectAccessReviewStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Task) DeepCopyInto(out *Task) { + *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 Task. +func (in *Task) DeepCopy() *Task { + if in == nil { + return nil + } + out := new(Task) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Task) 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 *TaskList) DeepCopyInto(out *TaskList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Task, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList. +func (in *TaskList) DeepCopy() *TaskList { + if in == nil { + return nil + } + out := new(TaskList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TaskList) 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 *TaskLog) DeepCopyInto(out *TaskLog) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskLog. +func (in *TaskLog) DeepCopy() *TaskLog { + if in == nil { + return nil + } + out := new(TaskLog) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TaskLog) 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 *TaskLogList) DeepCopyInto(out *TaskLogList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TaskLog, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskLogList. +func (in *TaskLogList) DeepCopy() *TaskLogList { + if in == nil { + return nil + } + out := new(TaskLogList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TaskLogList) 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 *TaskLogOptions) DeepCopyInto(out *TaskLogOptions) { + *out = *in + out.TypeMeta = in.TypeMeta + if in.SinceSeconds != nil { + in, out := &in.SinceSeconds, &out.SinceSeconds + *out = new(int64) + **out = **in + } + if in.SinceTime != nil { + in, out := &in.SinceTime, &out.SinceTime + *out = (*in).DeepCopy() + } + if in.TailLines != nil { + in, out := &in.TailLines, &out.TailLines + *out = new(int64) + **out = **in + } + if in.LimitBytes != nil { + in, out := &in.LimitBytes, &out.LimitBytes + *out = new(int64) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskLogOptions. +func (in *TaskLogOptions) DeepCopy() *TaskLogOptions { + if in == nil { + return nil + } + out := new(TaskLogOptions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TaskLogOptions) 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 *TaskSpec) DeepCopyInto(out *TaskSpec) { + *out = *in + in.TaskSpec.DeepCopyInto(&out.TaskSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec. +func (in *TaskSpec) DeepCopy() *TaskSpec { + if in == nil { + return nil + } + out := new(TaskSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TaskStatus) DeepCopyInto(out *TaskStatus) { + *out = *in + in.TaskStatus.DeepCopyInto(&out.TaskStatus) + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = new(storagev1.UserOrTeamEntity) + (*in).DeepCopyInto(*out) + } + if in.Cluster != nil { + in, out := &in.Cluster, &out.Cluster + *out = new(storagev1.EntityInfo) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskStatus. +func (in *TaskStatus) DeepCopy() *TaskStatus { + if in == nil { + return nil + } + out := new(TaskStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Team) DeepCopyInto(out *Team) { + *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 Team. +func (in *Team) DeepCopy() *Team { + if in == nil { + return nil + } + out := new(Team) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Team) 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 *TeamAccessKeys) DeepCopyInto(out *TeamAccessKeys) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.AccessKeys != nil { + in, out := &in.AccessKeys, &out.AccessKeys + *out = make([]OwnedAccessKey, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAccessKeys. +func (in *TeamAccessKeys) DeepCopy() *TeamAccessKeys { + if in == nil { + return nil + } + out := new(TeamAccessKeys) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamAccessKeys) 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 *TeamAccessKeysList) DeepCopyInto(out *TeamAccessKeysList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TeamAccessKeys, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAccessKeysList. +func (in *TeamAccessKeysList) DeepCopy() *TeamAccessKeysList { + if in == nil { + return nil + } + out := new(TeamAccessKeysList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamAccessKeysList) 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 *TeamClusters) DeepCopyInto(out *TeamClusters) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make([]ClusterAccounts, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamClusters. +func (in *TeamClusters) DeepCopy() *TeamClusters { + if in == nil { + return nil + } + out := new(TeamClusters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamClusters) 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 *TeamClustersList) DeepCopyInto(out *TeamClustersList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TeamClusters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// 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 SpaceInstanceStatus. -func (in *SpaceInstanceStatus) DeepCopy() *SpaceInstanceStatus { +// 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(TeamPermissions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamPermissions) 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 *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([]TeamPermissions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// 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(TeamPermissionsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TeamPermissionsList) 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 *TeamSpec) DeepCopyInto(out *TeamSpec) { + *out = *in + in.TeamSpec.DeepCopyInto(&out.TeamSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamSpec. +func (in *TeamSpec) DeepCopy() *TeamSpec { + if in == nil { + return nil + } + out := new(TeamSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TeamStatus) DeepCopyInto(out *TeamStatus) { + *out = *in + out.TeamStatus = in.TeamStatus + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamStatus. +func (in *TeamStatus) DeepCopy() *TeamStatus { + if in == nil { + return nil + } + out := new(TeamStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TranslateVClusterResourceName) DeepCopyInto(out *TranslateVClusterResourceName) { + *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 TranslateVClusterResourceName. +func (in *TranslateVClusterResourceName) DeepCopy() *TranslateVClusterResourceName { + if in == nil { + return nil + } + out := new(TranslateVClusterResourceName) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TranslateVClusterResourceName) 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 *TranslateVClusterResourceNameList) DeepCopyInto(out *TranslateVClusterResourceNameList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TranslateVClusterResourceName, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameList. +func (in *TranslateVClusterResourceNameList) DeepCopy() *TranslateVClusterResourceNameList { + if in == nil { + return nil + } + out := new(TranslateVClusterResourceNameList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TranslateVClusterResourceNameList) 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 *TranslateVClusterResourceNameSpec) DeepCopyInto(out *TranslateVClusterResourceNameSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameSpec. +func (in *TranslateVClusterResourceNameSpec) DeepCopy() *TranslateVClusterResourceNameSpec { + if in == nil { + return nil + } + out := new(TranslateVClusterResourceNameSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TranslateVClusterResourceNameStatus) DeepCopyInto(out *TranslateVClusterResourceNameStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameStatus. +func (in *TranslateVClusterResourceNameStatus) DeepCopy() *TranslateVClusterResourceNameStatus { + if in == nil { + return nil + } + out := new(TranslateVClusterResourceNameStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UsageDownload) DeepCopyInto(out *UsageDownload) { + *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 UsageDownload. +func (in *UsageDownload) DeepCopy() *UsageDownload { + if in == nil { + return nil + } + out := new(UsageDownload) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UsageDownload) 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 *UsageDownloadList) DeepCopyInto(out *UsageDownloadList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UsageDownload, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UsageDownloadList. +func (in *UsageDownloadList) DeepCopy() *UsageDownloadList { + if in == nil { + return nil + } + out := new(UsageDownloadList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UsageDownloadList) 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 *UsageDownloadSpec) DeepCopyInto(out *UsageDownloadSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UsageDownloadSpec. +func (in *UsageDownloadSpec) DeepCopy() *UsageDownloadSpec { + if in == nil { + return nil + } + out := new(UsageDownloadSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UsageDownloadStatus) DeepCopyInto(out *UsageDownloadStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UsageDownloadStatus. +func (in *UsageDownloadStatus) DeepCopy() *UsageDownloadStatus { + if in == nil { + return nil + } + out := new(UsageDownloadStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *User) DeepCopyInto(out *User) { + *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 User. +func (in *User) DeepCopy() *User { if in == nil { return nil } - out := new(SpaceInstanceStatus) + out := new(User) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *User) 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 *SpaceTemplate) DeepCopyInto(out *SpaceTemplate) { +func (in *UserAccessKeys) DeepCopyInto(out *UserAccessKeys) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + if in.AccessKeys != nil { + in, out := &in.AccessKeys, &out.AccessKeys + *out = make([]OwnedAccessKey, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplate. -func (in *SpaceTemplate) DeepCopy() *SpaceTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccessKeys. +func (in *UserAccessKeys) DeepCopy() *UserAccessKeys { if in == nil { return nil } - out := new(SpaceTemplate) + out := new(UserAccessKeys) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SpaceTemplate) DeepCopyObject() runtime.Object { +func (in *UserAccessKeys) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5785,13 +7151,13 @@ func (in *SpaceTemplate) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceTemplateList) DeepCopyInto(out *SpaceTemplateList) { +func (in *UserAccessKeysList) DeepCopyInto(out *UserAccessKeysList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]SpaceTemplate, len(*in)) + *out = make([]UserAccessKeys, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5799,18 +7165,18 @@ func (in *SpaceTemplateList) DeepCopyInto(out *SpaceTemplateList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateList. -func (in *SpaceTemplateList) DeepCopy() *SpaceTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccessKeysList. +func (in *UserAccessKeysList) DeepCopy() *UserAccessKeysList { if in == nil { return nil } - out := new(SpaceTemplateList) + out := new(UserAccessKeysList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SpaceTemplateList) DeepCopyObject() runtime.Object { +func (in *UserAccessKeysList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5818,28 +7184,77 @@ func (in *SpaceTemplateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceTemplateSpec) DeepCopyInto(out *SpaceTemplateSpec) { +func (in *UserClusters) DeepCopyInto(out *UserClusters) { *out = *in - in.SpaceTemplateSpec.DeepCopyInto(&out.SpaceTemplateSpec) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make([]ClusterAccounts, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateSpec. -func (in *SpaceTemplateSpec) DeepCopy() *SpaceTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserClusters. +func (in *UserClusters) DeepCopy() *UserClusters { if in == nil { return nil } - out := new(SpaceTemplateSpec) + out := new(UserClusters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserClusters) 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 *UserClustersList) DeepCopyInto(out *UserClustersList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UserClusters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserClustersList. +func (in *UserClustersList) DeepCopy() *UserClustersList { + if in == nil { + return nil + } + out := new(UserClustersList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserClustersList) 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 *SpaceTemplateStatus) DeepCopyInto(out *SpaceTemplateStatus) { +func (in *UserInfo) DeepCopyInto(out *UserInfo) { *out = *in - out.SpaceTemplateStatus = in.SpaceTemplateStatus - if in.Apps != nil { - in, out := &in.Apps, &out.Apps + out.EntityInfo = in.EntityInfo + if in.Teams != nil { + in, out := &in.Teams, &out.Teams *out = make([]*storagev1.EntityInfo, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -5852,38 +7267,76 @@ func (in *SpaceTemplateStatus) DeepCopyInto(out *SpaceTemplateStatus) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateStatus. -func (in *SpaceTemplateStatus) DeepCopy() *SpaceTemplateStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo. +func (in *UserInfo) DeepCopy() *UserInfo { if in == nil { return nil } - out := new(SpaceTemplateStatus) + out := new(UserInfo) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) { +func (in *UserList) DeepCopyInto(out *UserList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]User, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserList. +func (in *UserList) DeepCopy() *UserList { + if in == nil { + return nil + } + out := new(UserList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserList) 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 *UserObjectPermissions) DeepCopyInto(out *UserObjectPermissions) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + 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 SubjectAccessReview. -func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview { +// 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(SubjectAccessReview) + out := new(UserObjectPermissions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SubjectAccessReview) DeepCopyObject() runtime.Object { +func (in *UserObjectPermissions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5891,13 +7344,13 @@ func (in *SubjectAccessReview) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectAccessReviewList) DeepCopyInto(out *SubjectAccessReviewList) { +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([]SubjectAccessReview, len(*in)) + *out = make([]UserObjectPermissions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5905,18 +7358,18 @@ func (in *SubjectAccessReviewList) DeepCopyInto(out *SubjectAccessReviewList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewList. -func (in *SubjectAccessReviewList) DeepCopy() *SubjectAccessReviewList { +// 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(SubjectAccessReviewList) + out := new(UserObjectPermissionsList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SubjectAccessReviewList) DeepCopyObject() runtime.Object { +func (in *UserObjectPermissionsList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5924,61 +7377,172 @@ func (in *SubjectAccessReviewList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) { +func (in *UserPermissions) DeepCopyInto(out *UserPermissions) { *out = *in - in.SubjectAccessReviewSpec.DeepCopyInto(&out.SubjectAccessReviewSpec) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.ClusterRoles != nil { + in, out := &in.ClusterRoles, &out.ClusterRoles + *out = make([]UserPermissionsRole, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.NamespaceRoles != nil { + in, out := &in.NamespaceRoles, &out.NamespaceRoles + *out = make([]UserPermissionsRole, len(*in)) + for i := range *in { + (*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 } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec. -func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissions. +func (in *UserPermissions) DeepCopy() *UserPermissions { if in == nil { return nil } - out := new(SubjectAccessReviewSpec) + out := new(UserPermissions) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserPermissions) 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 *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) { +func (in *UserPermissionsList) DeepCopyInto(out *UserPermissionsList) { *out = *in - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UserPermissions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus. -func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissionsList. +func (in *UserPermissionsList) DeepCopy() *UserPermissionsList { + if in == nil { + return nil + } + out := new(UserPermissionsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserPermissionsList) 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 *UserPermissionsRole) DeepCopyInto(out *UserPermissionsRole) { + *out = *in + if in.Rules != nil { + in, out := &in.Rules, &out.Rules + *out = make([]rbacv1.PolicyRule, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissionsRole. +func (in *UserPermissionsRole) DeepCopy() *UserPermissionsRole { if in == nil { return nil } - out := new(SubjectAccessReviewStatus) + out := new(UserPermissionsRole) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Task) DeepCopyInto(out *Task) { +func (in *UserProfile) DeepCopyInto(out *UserProfile) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + if in.Icon != nil { + in, out := &in.Icon, &out.Icon + *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 } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Task. -func (in *Task) DeepCopy() *Task { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProfile. +func (in *UserProfile) DeepCopy() *UserProfile { if in == nil { return nil } - out := new(Task) + out := new(UserProfile) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Task) DeepCopyObject() runtime.Object { +func (in *UserProfile) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5986,13 +7550,13 @@ func (in *Task) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TaskList) DeepCopyInto(out *TaskList) { +func (in *UserProfileList) DeepCopyInto(out *UserProfileList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Task, len(*in)) + *out = make([]UserProfile, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6000,18 +7564,18 @@ func (in *TaskList) DeepCopyInto(out *TaskList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList. -func (in *TaskList) DeepCopy() *TaskList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProfileList. +func (in *UserProfileList) DeepCopy() *UserProfileList { if in == nil { return nil } - out := new(TaskList) + out := new(UserProfileList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TaskList) DeepCopyObject() runtime.Object { +func (in *UserProfileList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6019,58 +7583,45 @@ func (in *TaskList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TaskLog) DeepCopyInto(out *TaskLog) { +func (in *UserProfileSecret) DeepCopyInto(out *UserProfileSecret) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskLog. -func (in *TaskLog) DeepCopy() *TaskLog { +// 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(TaskLog) + out := new(UserProfileSecret) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TaskLog) 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 *TaskLogList) DeepCopyInto(out *TaskLogList) { +func (in *UserQuotasOptions) DeepCopyInto(out *UserQuotasOptions) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]TaskLog, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.Cluster != nil { + in, out := &in.Cluster, &out.Cluster + *out = make([]string, len(*in)) + copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskLogList. -func (in *TaskLogList) DeepCopy() *TaskLogList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserQuotasOptions. +func (in *UserQuotasOptions) DeepCopy() *UserQuotasOptions { if in == nil { return nil } - out := new(TaskLogList) + out := new(UserQuotasOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TaskLogList) DeepCopyObject() runtime.Object { +func (in *UserQuotasOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6078,43 +7629,29 @@ func (in *TaskLogList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TaskLogOptions) DeepCopyInto(out *TaskLogOptions) { +func (in *UserSpacesOptions) DeepCopyInto(out *UserSpacesOptions) { *out = *in out.TypeMeta = in.TypeMeta - if in.SinceSeconds != nil { - in, out := &in.SinceSeconds, &out.SinceSeconds - *out = new(int64) - **out = **in - } - if in.SinceTime != nil { - in, out := &in.SinceTime, &out.SinceTime - *out = (*in).DeepCopy() - } - if in.TailLines != nil { - in, out := &in.TailLines, &out.TailLines - *out = new(int64) - **out = **in - } - if in.LimitBytes != nil { - in, out := &in.LimitBytes, &out.LimitBytes - *out = new(int64) - **out = **in + if in.Cluster != nil { + in, out := &in.Cluster, &out.Cluster + *out = make([]string, len(*in)) + copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskLogOptions. -func (in *TaskLogOptions) DeepCopy() *TaskLogOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpacesOptions. +func (in *UserSpacesOptions) DeepCopy() *UserSpacesOptions { if in == nil { return nil } - out := new(TaskLogOptions) + out := new(UserSpacesOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TaskLogOptions) DeepCopyObject() runtime.Object { +func (in *UserSpacesOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6122,71 +7659,63 @@ func (in *TaskLogOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TaskSpec) DeepCopyInto(out *TaskSpec) { +func (in *UserSpec) DeepCopyInto(out *UserSpec) { *out = *in - in.TaskSpec.DeepCopyInto(&out.TaskSpec) + in.UserSpec.DeepCopyInto(&out.UserSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec. -func (in *TaskSpec) DeepCopy() *TaskSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpec. +func (in *UserSpec) DeepCopy() *UserSpec { if in == nil { return nil } - out := new(TaskSpec) + out := new(UserSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TaskStatus) DeepCopyInto(out *TaskStatus) { +func (in *UserStatus) DeepCopyInto(out *UserStatus) { *out = *in - in.TaskStatus.DeepCopyInto(&out.TaskStatus) - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(storagev1.UserOrTeamEntity) - (*in).DeepCopyInto(*out) - } - if in.Cluster != nil { - in, out := &in.Cluster, &out.Cluster - *out = new(storagev1.EntityInfo) - **out = **in - } + in.UserStatus.DeepCopyInto(&out.UserStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskStatus. -func (in *TaskStatus) DeepCopy() *TaskStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserStatus. +func (in *UserStatus) DeepCopy() *UserStatus { if in == nil { return nil } - out := new(TaskStatus) + out := new(UserStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Team) DeepCopyInto(out *Team) { +func (in *UserVirtualClustersOptions) DeepCopyInto(out *UserVirtualClustersOptions) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + if in.Cluster != nil { + in, out := &in.Cluster, &out.Cluster + *out = make([]string, len(*in)) + copy(*out, *in) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Team. -func (in *Team) DeepCopy() *Team { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserVirtualClustersOptions. +func (in *UserVirtualClustersOptions) DeepCopy() *UserVirtualClustersOptions { if in == nil { return nil } - out := new(Team) + out := new(UserVirtualClustersOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Team) DeepCopyObject() runtime.Object { +func (in *UserVirtualClustersOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6194,32 +7723,25 @@ func (in *Team) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamAccessKeys) DeepCopyInto(out *TeamAccessKeys) { +func (in *VirtualClusterAccessKey) DeepCopyInto(out *VirtualClusterAccessKey) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.AccessKeys != nil { - in, out := &in.AccessKeys, &out.AccessKeys - *out = make([]OwnedAccessKey, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAccessKeys. -func (in *TeamAccessKeys) DeepCopy() *TeamAccessKeys { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterAccessKey. +func (in *VirtualClusterAccessKey) DeepCopy() *VirtualClusterAccessKey { if in == nil { return nil } - out := new(TeamAccessKeys) + out := new(VirtualClusterAccessKey) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamAccessKeys) DeepCopyObject() runtime.Object { +func (in *VirtualClusterAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6227,13 +7749,13 @@ func (in *TeamAccessKeys) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamAccessKeysList) DeepCopyInto(out *TeamAccessKeysList) { +func (in *VirtualClusterAccessKeyList) DeepCopyInto(out *VirtualClusterAccessKeyList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]TeamAccessKeys, len(*in)) + *out = make([]VirtualClusterAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6241,18 +7763,18 @@ func (in *TeamAccessKeysList) DeepCopyInto(out *TeamAccessKeysList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAccessKeysList. -func (in *TeamAccessKeysList) DeepCopy() *TeamAccessKeysList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterAccessKeyList. +func (in *VirtualClusterAccessKeyList) DeepCopy() *VirtualClusterAccessKeyList { if in == nil { return nil } - out := new(TeamAccessKeysList) + out := new(VirtualClusterAccessKeyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamAccessKeysList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6260,32 +7782,27 @@ func (in *TeamAccessKeysList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamClusters) DeepCopyInto(out *TeamClusters) { +func (in *VirtualClusterExternalDatabase) DeepCopyInto(out *VirtualClusterExternalDatabase) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make([]ClusterAccounts, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + out.Spec = in.Spec + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamClusters. -func (in *TeamClusters) DeepCopy() *TeamClusters { +// 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(TeamClusters) + out := new(VirtualClusterExternalDatabase) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamClusters) DeepCopyObject() runtime.Object { +func (in *VirtualClusterExternalDatabase) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6293,13 +7810,13 @@ func (in *TeamClusters) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamClustersList) DeepCopyInto(out *TeamClustersList) { +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([]TeamClusters, len(*in)) + *out = make([]VirtualClusterExternalDatabase, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6307,18 +7824,18 @@ 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 VirtualClusterExternalDatabaseList. +func (in *VirtualClusterExternalDatabaseList) DeepCopy() *VirtualClusterExternalDatabaseList { if in == nil { return nil } - out := new(TeamClustersList) + out := new(VirtualClusterExternalDatabaseList) 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 *VirtualClusterExternalDatabaseList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6326,94 +7843,87 @@ 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 *VirtualClusterExternalDatabaseSpec) DeepCopyInto(out *VirtualClusterExternalDatabaseSpec) { *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 { +// 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(TeamList) + out := new(VirtualClusterExternalDatabaseSpec) 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 *TeamSpec) DeepCopyInto(out *TeamSpec) { +func (in *VirtualClusterExternalDatabaseStatus) DeepCopyInto(out *VirtualClusterExternalDatabaseStatus) { *out = *in - in.TeamSpec.DeepCopyInto(&out.TeamSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamSpec. -func (in *TeamSpec) DeepCopy() *TeamSpec { +// 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(TeamSpec) + 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 *TeamStatus) DeepCopyInto(out *TeamStatus) { +func (in *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { *out = *in - out.TeamStatus = in.TeamStatus + 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 TeamStatus. -func (in *TeamStatus) DeepCopy() *TeamStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstance. +func (in *VirtualClusterInstance) DeepCopy() *VirtualClusterInstance { if in == nil { return nil } - out := new(TeamStatus) + out := new(VirtualClusterInstance) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterInstance) 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 *TranslateVClusterResourceName) DeepCopyInto(out *TranslateVClusterResourceName) { +func (in *VirtualClusterInstanceKubeConfig) DeepCopyInto(out *VirtualClusterInstanceKubeConfig) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec + in.Spec.DeepCopyInto(&out.Spec) out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceName. -func (in *TranslateVClusterResourceName) DeepCopy() *TranslateVClusterResourceName { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfig. +func (in *VirtualClusterInstanceKubeConfig) DeepCopy() *VirtualClusterInstanceKubeConfig { if in == nil { return nil } - out := new(TranslateVClusterResourceName) + out := new(VirtualClusterInstanceKubeConfig) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TranslateVClusterResourceName) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceKubeConfig) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6421,13 +7931,13 @@ func (in *TranslateVClusterResourceName) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TranslateVClusterResourceNameList) DeepCopyInto(out *TranslateVClusterResourceNameList) { +func (in *VirtualClusterInstanceKubeConfigList) DeepCopyInto(out *VirtualClusterInstanceKubeConfigList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]TranslateVClusterResourceName, len(*in)) + *out = make([]VirtualClusterInstanceKubeConfig, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6435,18 +7945,18 @@ func (in *TranslateVClusterResourceNameList) DeepCopyInto(out *TranslateVCluster return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameList. -func (in *TranslateVClusterResourceNameList) DeepCopy() *TranslateVClusterResourceNameList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfigList. +func (in *VirtualClusterInstanceKubeConfigList) DeepCopy() *VirtualClusterInstanceKubeConfigList { if in == nil { return nil } - out := new(TranslateVClusterResourceNameList) + out := new(VirtualClusterInstanceKubeConfigList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TranslateVClusterResourceNameList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceKubeConfigList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6454,59 +7964,69 @@ func (in *TranslateVClusterResourceNameList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TranslateVClusterResourceNameSpec) DeepCopyInto(out *TranslateVClusterResourceNameSpec) { +func (in *VirtualClusterInstanceKubeConfigSpec) DeepCopyInto(out *VirtualClusterInstanceKubeConfigSpec) { *out = *in + if in.CertificateTTL != nil { + in, out := &in.CertificateTTL, &out.CertificateTTL + *out = new(int32) + **out = **in + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameSpec. -func (in *TranslateVClusterResourceNameSpec) DeepCopy() *TranslateVClusterResourceNameSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfigSpec. +func (in *VirtualClusterInstanceKubeConfigSpec) DeepCopy() *VirtualClusterInstanceKubeConfigSpec { if in == nil { return nil } - out := new(TranslateVClusterResourceNameSpec) + out := new(VirtualClusterInstanceKubeConfigSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TranslateVClusterResourceNameStatus) DeepCopyInto(out *TranslateVClusterResourceNameStatus) { +func (in *VirtualClusterInstanceKubeConfigStatus) DeepCopyInto(out *VirtualClusterInstanceKubeConfigStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameStatus. -func (in *TranslateVClusterResourceNameStatus) DeepCopy() *TranslateVClusterResourceNameStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfigStatus. +func (in *VirtualClusterInstanceKubeConfigStatus) DeepCopy() *VirtualClusterInstanceKubeConfigStatus { if in == nil { return nil } - out := new(TranslateVClusterResourceNameStatus) + out := new(VirtualClusterInstanceKubeConfigStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *User) DeepCopyInto(out *User) { +func (in *VirtualClusterInstanceList) DeepCopyInto(out *VirtualClusterInstanceList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterInstance, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User. -func (in *User) DeepCopy() *User { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceList. +func (in *VirtualClusterInstanceList) DeepCopy() *VirtualClusterInstanceList { if in == nil { return nil } - out := new(User) + out := new(VirtualClusterInstanceList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *User) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6514,32 +8034,25 @@ func (in *User) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserAccessKeys) DeepCopyInto(out *UserAccessKeys) { +func (in *VirtualClusterInstanceLog) DeepCopyInto(out *VirtualClusterInstanceLog) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.AccessKeys != nil { - in, out := &in.AccessKeys, &out.AccessKeys - *out = make([]OwnedAccessKey, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccessKeys. -func (in *UserAccessKeys) DeepCopy() *UserAccessKeys { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceLog. +func (in *VirtualClusterInstanceLog) DeepCopy() *VirtualClusterInstanceLog { if in == nil { return nil } - out := new(UserAccessKeys) + out := new(VirtualClusterInstanceLog) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserAccessKeys) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceLog) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6547,13 +8060,13 @@ func (in *UserAccessKeys) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserAccessKeysList) DeepCopyInto(out *UserAccessKeysList) { +func (in *VirtualClusterInstanceLogList) DeepCopyInto(out *VirtualClusterInstanceLogList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]UserAccessKeys, len(*in)) + *out = make([]VirtualClusterInstanceLog, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6561,18 +8074,18 @@ func (in *UserAccessKeysList) DeepCopyInto(out *UserAccessKeysList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccessKeysList. -func (in *UserAccessKeysList) DeepCopy() *UserAccessKeysList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceLogList. +func (in *VirtualClusterInstanceLogList) DeepCopy() *VirtualClusterInstanceLogList { if in == nil { return nil } - out := new(UserAccessKeysList) + out := new(VirtualClusterInstanceLogList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserAccessKeysList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceLogList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6580,32 +8093,43 @@ func (in *UserAccessKeysList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserClusters) DeepCopyInto(out *UserClusters) { +func (in *VirtualClusterInstanceLogOptions) DeepCopyInto(out *VirtualClusterInstanceLogOptions) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make([]ClusterAccounts, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.SinceSeconds != nil { + in, out := &in.SinceSeconds, &out.SinceSeconds + *out = new(int64) + **out = **in + } + if in.SinceTime != nil { + in, out := &in.SinceTime, &out.SinceTime + *out = (*in).DeepCopy() + } + if in.TailLines != nil { + in, out := &in.TailLines, &out.TailLines + *out = new(int64) + **out = **in + } + if in.LimitBytes != nil { + in, out := &in.LimitBytes, &out.LimitBytes + *out = new(int64) + **out = **in } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserClusters. -func (in *UserClusters) DeepCopy() *UserClusters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceLogOptions. +func (in *VirtualClusterInstanceLogOptions) DeepCopy() *VirtualClusterInstanceLogOptions { if in == nil { return nil } - out := new(UserClusters) + out := new(VirtualClusterInstanceLogOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserClusters) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceLogOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6613,32 +8137,27 @@ func (in *UserClusters) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserClustersList) DeepCopyInto(out *UserClustersList) { +func (in *VirtualClusterInstanceShell) DeepCopyInto(out *VirtualClusterInstanceShell) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]UserClusters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + 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 UserClustersList. -func (in *UserClustersList) DeepCopy() *UserClustersList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceShell. +func (in *VirtualClusterInstanceShell) DeepCopy() *VirtualClusterInstanceShell { if in == nil { return nil } - out := new(UserClustersList) + out := new(VirtualClusterInstanceShell) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserClustersList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceShell) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6646,41 +8165,13 @@ func (in *UserClustersList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserInfo) DeepCopyInto(out *UserInfo) { - *out = *in - out.EntityInfo = in.EntityInfo - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]*storagev1.EntityInfo, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(storagev1.EntityInfo) - **out = **in - } - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo. -func (in *UserInfo) DeepCopy() *UserInfo { - if in == nil { - return nil - } - out := new(UserInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserList) DeepCopyInto(out *UserList) { +func (in *VirtualClusterInstanceShellList) DeepCopyInto(out *VirtualClusterInstanceShellList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]User, len(*in)) + *out = make([]VirtualClusterInstanceShell, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6688,18 +8179,18 @@ func (in *UserList) DeepCopyInto(out *UserList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserList. -func (in *UserList) DeepCopy() *UserList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceShellList. +func (in *VirtualClusterInstanceShellList) DeepCopy() *VirtualClusterInstanceShellList { if in == nil { return nil } - out := new(UserList) + out := new(VirtualClusterInstanceShellList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceShellList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6707,39 +8198,26 @@ func (in *UserList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserPermissions) DeepCopyInto(out *UserPermissions) { +func (in *VirtualClusterInstanceSnapshot) DeepCopyInto(out *VirtualClusterInstanceSnapshot) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.ClusterRoles != nil { - in, out := &in.ClusterRoles, &out.ClusterRoles - *out = make([]UserPermissionsRole, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.NamespaceRoles != nil { - in, out := &in.NamespaceRoles, &out.NamespaceRoles - *out = make([]UserPermissionsRole, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissions. -func (in *UserPermissions) DeepCopy() *UserPermissions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceSnapshot. +func (in *VirtualClusterInstanceSnapshot) DeepCopy() *VirtualClusterInstanceSnapshot { if in == nil { return nil } - out := new(UserPermissions) + out := new(VirtualClusterInstanceSnapshot) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserPermissions) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceSnapshot) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6747,13 +8225,13 @@ func (in *UserPermissions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserPermissionsList) DeepCopyInto(out *UserPermissionsList) { +func (in *VirtualClusterInstanceSnapshotList) DeepCopyInto(out *VirtualClusterInstanceSnapshotList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]UserPermissions, len(*in)) + *out = make([]VirtualClusterInstanceSnapshot, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6761,18 +8239,18 @@ func (in *UserPermissionsList) DeepCopyInto(out *UserPermissionsList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissionsList. -func (in *UserPermissionsList) DeepCopy() *UserPermissionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceSnapshotList. +func (in *VirtualClusterInstanceSnapshotList) DeepCopy() *VirtualClusterInstanceSnapshotList { if in == nil { return nil } - out := new(UserPermissionsList) + out := new(VirtualClusterInstanceSnapshotList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserPermissionsList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceSnapshotList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6780,11 +8258,11 @@ func (in *UserPermissionsList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserPermissionsRole) DeepCopyInto(out *UserPermissionsRole) { +func (in *VirtualClusterInstanceSnapshotStatus) DeepCopyInto(out *VirtualClusterInstanceSnapshotStatus) { *out = *in - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]rbacv1.PolicyRule, len(*in)) + if in.SnapshotsTaken != nil { + in, out := &in.SnapshotsTaken, &out.SnapshotsTaken + *out = make([]SnapshotTaken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6792,104 +8270,77 @@ func (in *UserPermissionsRole) DeepCopyInto(out *UserPermissionsRole) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissionsRole. -func (in *UserPermissionsRole) DeepCopy() *UserPermissionsRole { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceSnapshotStatus. +func (in *VirtualClusterInstanceSnapshotStatus) DeepCopy() *VirtualClusterInstanceSnapshotStatus { if in == nil { return nil } - out := new(UserPermissionsRole) + out := new(VirtualClusterInstanceSnapshotStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserProfile) DeepCopyInto(out *UserProfile) { +func (in *VirtualClusterInstanceSpec) DeepCopyInto(out *VirtualClusterInstanceSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Icon != nil { - in, out := &in.Icon, &out.Icon - *out = new(string) - **out = **in - } + in.VirtualClusterInstanceSpec.DeepCopyInto(&out.VirtualClusterInstanceSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProfile. -func (in *UserProfile) DeepCopy() *UserProfile { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceSpec. +func (in *VirtualClusterInstanceSpec) DeepCopy() *VirtualClusterInstanceSpec { if in == nil { return nil } - out := new(UserProfile) + out := new(VirtualClusterInstanceSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserProfile) 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 *UserProfileList) DeepCopyInto(out *UserProfileList) { +func (in *VirtualClusterInstanceStatus) DeepCopyInto(out *VirtualClusterInstanceStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]UserProfile, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + in.VirtualClusterInstanceStatus.DeepCopyInto(&out.VirtualClusterInstanceStatus) + 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 UserProfileList. -func (in *UserProfileList) DeepCopy() *UserProfileList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceStatus. +func (in *VirtualClusterInstanceStatus) DeepCopy() *VirtualClusterInstanceStatus { if in == nil { return nil } - out := new(UserProfileList) + out := new(VirtualClusterInstanceStatus) in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserProfileList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil + 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) { +func (in *VirtualClusterNodeAccessKey) DeepCopyInto(out *VirtualClusterNodeAccessKey) { *out = *in out.TypeMeta = in.TypeMeta - if in.Cluster != nil { - in, out := &in.Cluster, &out.Cluster - *out = make([]string, len(*in)) - copy(*out, *in) - } + 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 UserQuotasOptions. -func (in *UserQuotasOptions) DeepCopy() *UserQuotasOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterNodeAccessKey. +func (in *VirtualClusterNodeAccessKey) DeepCopy() *VirtualClusterNodeAccessKey { if in == nil { return nil } - out := new(UserQuotasOptions) + out := new(VirtualClusterNodeAccessKey) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserQuotasOptions) DeepCopyObject() runtime.Object { +func (in *VirtualClusterNodeAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6897,29 +8348,32 @@ func (in *UserQuotasOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserSpacesOptions) DeepCopyInto(out *UserSpacesOptions) { +func (in *VirtualClusterNodeAccessKeyList) DeepCopyInto(out *VirtualClusterNodeAccessKeyList) { *out = *in out.TypeMeta = in.TypeMeta - if in.Cluster != nil { - in, out := &in.Cluster, &out.Cluster - *out = make([]string, len(*in)) - copy(*out, *in) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterNodeAccessKey, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpacesOptions. -func (in *UserSpacesOptions) DeepCopy() *UserSpacesOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterNodeAccessKeyList. +func (in *VirtualClusterNodeAccessKeyList) DeepCopy() *VirtualClusterNodeAccessKeyList { if in == nil { return nil } - out := new(UserSpacesOptions) + out := new(VirtualClusterNodeAccessKeyList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserSpacesOptions) DeepCopyObject() runtime.Object { +func (in *VirtualClusterNodeAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6927,63 +8381,58 @@ func (in *UserSpacesOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserSpec) DeepCopyInto(out *UserSpec) { +func (in *VirtualClusterNodeAccessKeySpec) DeepCopyInto(out *VirtualClusterNodeAccessKeySpec) { *out = *in - in.UserSpec.DeepCopyInto(&out.UserSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpec. -func (in *UserSpec) DeepCopy() *UserSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterNodeAccessKeySpec. +func (in *VirtualClusterNodeAccessKeySpec) DeepCopy() *VirtualClusterNodeAccessKeySpec { if in == nil { return nil } - out := new(UserSpec) + out := new(VirtualClusterNodeAccessKeySpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserStatus) DeepCopyInto(out *UserStatus) { +func (in *VirtualClusterNodeAccessKeyStatus) DeepCopyInto(out *VirtualClusterNodeAccessKeyStatus) { *out = *in - in.UserStatus.DeepCopyInto(&out.UserStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserStatus. -func (in *UserStatus) DeepCopy() *UserStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterNodeAccessKeyStatus. +func (in *VirtualClusterNodeAccessKeyStatus) DeepCopy() *VirtualClusterNodeAccessKeyStatus { if in == nil { return nil } - out := new(UserStatus) + out := new(VirtualClusterNodeAccessKeyStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserVirtualClustersOptions) DeepCopyInto(out *UserVirtualClustersOptions) { +func (in *VirtualClusterResourceUsage) DeepCopyInto(out *VirtualClusterResourceUsage) { *out = *in out.TypeMeta = in.TypeMeta - if in.Cluster != nil { - in, out := &in.Cluster, &out.Cluster - *out = make([]string, len(*in)) - copy(*out, *in) - } + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserVirtualClustersOptions. -func (in *UserVirtualClustersOptions) DeepCopy() *UserVirtualClustersOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterResourceUsage. +func (in *VirtualClusterResourceUsage) DeepCopy() *VirtualClusterResourceUsage { if in == nil { return nil } - out := new(UserVirtualClustersOptions) + out := new(VirtualClusterResourceUsage) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserVirtualClustersOptions) DeepCopyObject() runtime.Object { +func (in *VirtualClusterResourceUsage) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6991,25 +8440,32 @@ func (in *UserVirtualClustersOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterAccessKey) DeepCopyInto(out *VirtualClusterAccessKey) { +func (in *VirtualClusterResourceUsageList) DeepCopyInto(out *VirtualClusterResourceUsageList) { *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([]VirtualClusterResourceUsage, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterAccessKey. -func (in *VirtualClusterAccessKey) DeepCopy() *VirtualClusterAccessKey { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterResourceUsageList. +func (in *VirtualClusterResourceUsageList) DeepCopy() *VirtualClusterResourceUsageList { if in == nil { return nil } - out := new(VirtualClusterAccessKey) + out := new(VirtualClusterResourceUsageList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterAccessKey) DeepCopyObject() runtime.Object { +func (in *VirtualClusterResourceUsageList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7017,88 +8473,85 @@ func (in *VirtualClusterAccessKey) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterAccessKeyList) DeepCopyInto(out *VirtualClusterAccessKeyList) { +func (in *VirtualClusterResourceUsageMap) DeepCopyInto(out *VirtualClusterResourceUsageMap) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VirtualClusterAccessKey, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(map[string]int, len(*in)) + for key, val := range *in { + (*out)[key] = val } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterAccessKeyList. -func (in *VirtualClusterAccessKeyList) DeepCopy() *VirtualClusterAccessKeyList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterResourceUsageMap. +func (in *VirtualClusterResourceUsageMap) DeepCopy() *VirtualClusterResourceUsageMap { if in == nil { return nil } - out := new(VirtualClusterAccessKeyList) + out := new(VirtualClusterResourceUsageMap) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterAccessKeyList) 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 *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { +func (in *VirtualClusterResourceUsageStatus) DeepCopyInto(out *VirtualClusterResourceUsageStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.ResourceUsage.DeepCopyInto(&out.ResourceUsage) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstance. -func (in *VirtualClusterInstance) DeepCopy() *VirtualClusterInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterResourceUsageStatus. +func (in *VirtualClusterResourceUsageStatus) DeepCopy() *VirtualClusterResourceUsageStatus { if in == nil { return nil } - out := new(VirtualClusterInstance) + out := new(VirtualClusterResourceUsageStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstance) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// 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 } - 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 *VirtualClusterInstanceKubeConfig) DeepCopyInto(out *VirtualClusterInstanceKubeConfig) { +func (in *VirtualClusterSchema) DeepCopyInto(out *VirtualClusterSchema) { *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 VirtualClusterInstanceKubeConfig. -func (in *VirtualClusterInstanceKubeConfig) DeepCopy() *VirtualClusterInstanceKubeConfig { +// 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(VirtualClusterInstanceKubeConfig) + out := new(VirtualClusterSchema) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstanceKubeConfig) DeepCopyObject() runtime.Object { +func (in *VirtualClusterSchema) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7106,13 +8559,13 @@ func (in *VirtualClusterInstanceKubeConfig) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstanceKubeConfigList) DeepCopyInto(out *VirtualClusterInstanceKubeConfigList) { +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([]VirtualClusterInstanceKubeConfig, len(*in)) + *out = make([]VirtualClusterSchema, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7120,18 +8573,18 @@ func (in *VirtualClusterInstanceKubeConfigList) DeepCopyInto(out *VirtualCluster return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfigList. -func (in *VirtualClusterInstanceKubeConfigList) DeepCopy() *VirtualClusterInstanceKubeConfigList { +// 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(VirtualClusterInstanceKubeConfigList) + out := new(VirtualClusterSchemaList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstanceKubeConfigList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterSchemaList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7139,128 +8592,91 @@ func (in *VirtualClusterInstanceKubeConfigList) DeepCopyObject() runtime.Object } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstanceKubeConfigSpec) DeepCopyInto(out *VirtualClusterInstanceKubeConfigSpec) { +func (in *VirtualClusterSchemaSpec) DeepCopyInto(out *VirtualClusterSchemaSpec) { *out = *in - if in.CertificateTTL != nil { - in, out := &in.CertificateTTL, &out.CertificateTTL - *out = new(int32) - **out = **in - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfigSpec. -func (in *VirtualClusterInstanceKubeConfigSpec) DeepCopy() *VirtualClusterInstanceKubeConfigSpec { +// 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(VirtualClusterInstanceKubeConfigSpec) + 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 *VirtualClusterInstanceKubeConfigStatus) DeepCopyInto(out *VirtualClusterInstanceKubeConfigStatus) { +func (in *VirtualClusterSchemaStatus) DeepCopyInto(out *VirtualClusterSchemaStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceKubeConfigStatus. -func (in *VirtualClusterInstanceKubeConfigStatus) DeepCopy() *VirtualClusterInstanceKubeConfigStatus { +// 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(VirtualClusterInstanceKubeConfigStatus) + 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 *VirtualClusterInstanceList) DeepCopyInto(out *VirtualClusterInstanceList) { +func (in *VirtualClusterShellSpec) DeepCopyInto(out *VirtualClusterShellSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VirtualClusterInstance, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceList. -func (in *VirtualClusterInstanceList) DeepCopy() *VirtualClusterInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterShellSpec. +func (in *VirtualClusterShellSpec) DeepCopy() *VirtualClusterShellSpec { if in == nil { return nil } - out := new(VirtualClusterInstanceList) + out := new(VirtualClusterShellSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstanceList) 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 *VirtualClusterInstanceLog) DeepCopyInto(out *VirtualClusterInstanceLog) { +func (in *VirtualClusterShellStatus) DeepCopyInto(out *VirtualClusterShellStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceLog. -func (in *VirtualClusterInstanceLog) DeepCopy() *VirtualClusterInstanceLog { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterShellStatus. +func (in *VirtualClusterShellStatus) DeepCopy() *VirtualClusterShellStatus { if in == nil { return nil } - out := new(VirtualClusterInstanceLog) + out := new(VirtualClusterShellStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstanceLog) 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 *VirtualClusterInstanceLogList) DeepCopyInto(out *VirtualClusterInstanceLogList) { +func (in *VirtualClusterStandalone) DeepCopyInto(out *VirtualClusterStandalone) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VirtualClusterInstanceLog, 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 VirtualClusterInstanceLogList. -func (in *VirtualClusterInstanceLogList) DeepCopy() *VirtualClusterInstanceLogList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterStandalone. +func (in *VirtualClusterStandalone) DeepCopy() *VirtualClusterStandalone { if in == nil { return nil } - out := new(VirtualClusterInstanceLogList) + out := new(VirtualClusterStandalone) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstanceLogList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterStandalone) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7268,43 +8684,32 @@ func (in *VirtualClusterInstanceLogList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstanceLogOptions) DeepCopyInto(out *VirtualClusterInstanceLogOptions) { +func (in *VirtualClusterStandaloneList) DeepCopyInto(out *VirtualClusterStandaloneList) { *out = *in out.TypeMeta = in.TypeMeta - if in.SinceSeconds != nil { - in, out := &in.SinceSeconds, &out.SinceSeconds - *out = new(int64) - **out = **in - } - if in.SinceTime != nil { - in, out := &in.SinceTime, &out.SinceTime - *out = (*in).DeepCopy() - } - if in.TailLines != nil { - in, out := &in.TailLines, &out.TailLines - *out = new(int64) - **out = **in - } - if in.LimitBytes != nil { - in, out := &in.LimitBytes, &out.LimitBytes - *out = new(int64) - **out = **in + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterStandalone, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceLogOptions. -func (in *VirtualClusterInstanceLogOptions) DeepCopy() *VirtualClusterInstanceLogOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterStandaloneList. +func (in *VirtualClusterStandaloneList) DeepCopy() *VirtualClusterStandaloneList { if in == nil { return nil } - out := new(VirtualClusterInstanceLogOptions) + out := new(VirtualClusterStandaloneList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstanceLogOptions) DeepCopyObject() runtime.Object { +func (in *VirtualClusterStandaloneList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7312,40 +8717,41 @@ func (in *VirtualClusterInstanceLogOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstanceSpec) DeepCopyInto(out *VirtualClusterInstanceSpec) { +func (in *VirtualClusterStandaloneSpec) DeepCopyInto(out *VirtualClusterStandaloneSpec) { *out = *in - in.VirtualClusterInstanceSpec.DeepCopyInto(&out.VirtualClusterInstanceSpec) + out.CurrentPeer = in.CurrentPeer + in.CurrentPKI.DeepCopyInto(&out.CurrentPKI) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceSpec. -func (in *VirtualClusterInstanceSpec) DeepCopy() *VirtualClusterInstanceSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterStandaloneSpec. +func (in *VirtualClusterStandaloneSpec) DeepCopy() *VirtualClusterStandaloneSpec { if in == nil { return nil } - out := new(VirtualClusterInstanceSpec) + out := new(VirtualClusterStandaloneSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstanceStatus) DeepCopyInto(out *VirtualClusterInstanceStatus) { +func (in *VirtualClusterStandaloneStatus) DeepCopyInto(out *VirtualClusterStandaloneStatus) { *out = *in - in.VirtualClusterInstanceStatus.DeepCopyInto(&out.VirtualClusterInstanceStatus) - if in.SleepModeConfig != nil { - in, out := &in.SleepModeConfig, &out.SleepModeConfig - *out = new(clusterv1.SleepModeConfig) - (*in).DeepCopyInto(*out) + if in.ETCDPeers != nil { + in, out := &in.ETCDPeers, &out.ETCDPeers + *out = make([]StandaloneEtcdPeerCoordinator, len(*in)) + copy(*out, *in) } + in.PKI.DeepCopyInto(&out.PKI) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceStatus. -func (in *VirtualClusterInstanceStatus) DeepCopy() *VirtualClusterInstanceStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterStandaloneStatus. +func (in *VirtualClusterStandaloneStatus) DeepCopy() *VirtualClusterStandaloneStatus { if in == nil { return nil } - out := new(VirtualClusterInstanceStatus) + out := new(VirtualClusterStandaloneStatus) in.DeepCopyInto(out) return out } @@ -7455,3 +8861,44 @@ func (in *VirtualClusterTemplateStatus) DeepCopy() *VirtualClusterTemplateStatus in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotRequestStatus) DeepCopyInto(out *VolumeSnapshotRequestStatus) { + *out = *in + out.Error = in.Error + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotRequestStatus. +func (in *VolumeSnapshotRequestStatus) DeepCopy() *VolumeSnapshotRequestStatus { + if in == nil { + return nil + } + out := new(VolumeSnapshotRequestStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSnapshotsRequestStatus) DeepCopyInto(out *VolumeSnapshotsRequestStatus) { + *out = *in + if in.Snapshots != nil { + in, out := &in.Snapshots, &out.Snapshots + *out = make(map[string]VolumeSnapshotRequestStatus, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + out.Error = in.Error + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotsRequestStatus. +func (in *VolumeSnapshotsRequestStatus) DeepCopy() *VolumeSnapshotsRequestStatus { + if in == nil { + return nil + } + out := new(VolumeSnapshotsRequestStatus) + in.DeepCopyInto(out) + return out +} diff --git a/pkg/apis/management/zz_generated.defaults.go b/pkg/apis/management/zz_generated.defaults.go index 619605f4..6c7613da 100644 --- a/pkg/apis/management/zz_generated.defaults.go +++ b/pkg/apis/management/zz_generated.defaults.go @@ -6,7 +6,6 @@ package management import ( - v1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -14,131 +13,5 @@ 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)) }) return nil } - -func SetObjectDefaults_ProjectClusters(in *ProjectClusters) { - for i := range in.Runners { - a := &in.Runners[i] - SetObjectDefaults_Runner(a) - } -} - -func SetObjectDefaults_ProjectClustersList(in *ProjectClustersList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_ProjectClusters(a) - } -} - -func SetObjectDefaults_ProjectRunners(in *ProjectRunners) { - for i := range in.Runners { - a := &in.Runners[i] - SetObjectDefaults_Runner(a) - } -} - -func SetObjectDefaults_ProjectRunnersList(in *ProjectRunnersList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_ProjectRunners(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] - 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.RunnerSpec.ClusterRef.PodTemplate.Spec.InitContainers { - a := &in.Spec.RunnerSpec.ClusterRef.PodTemplate.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 - } - } - } - } - } - } -} - -func SetObjectDefaults_RunnerList(in *RunnerList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_Runner(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..2bec49bf 100644 --- a/pkg/apis/storage/v1/cluster_types.go +++ b/pkg/apis/storage/v1/cluster_types.go @@ -2,9 +2,41 @@ 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" + + EmbeddedPostgresAppliedHashAnnotation = "loft.sh/platform-db-applied-hash" + EmbeddedPostgresDeployed agentstoragev1.ConditionType = "EmbeddedPostgresDeployed" + EmbeddedPostgresAvailable agentstoragev1.ConditionType = "EmbeddedPostgresAvailable" + + 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 +67,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 +112,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 +136,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 +223,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 deleted file mode 100644 index c2737baa..00000000 --- a/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go +++ /dev/null @@ -1,98 +0,0 @@ -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 - -// DevPodWorkspaceEnvironmentSource -// +k8s:openapi-gen=true -type DevPodEnvironmentTemplate struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodEnvironmentTemplateSpec `json:"spec,omitempty"` -} - -func (a *DevPodEnvironmentTemplate) GetOwner() *UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodEnvironmentTemplate) SetOwner(userOrTeam *UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodEnvironmentTemplate) GetAccess() []Access { - return a.Spec.Access -} - -func (a *DevPodEnvironmentTemplate) SetAccess(access []Access) { - a.Spec.Access = access -} - -type DevPodEnvironmentTemplateSpec struct { - // DisplayName is the name that should be displayed in the UI - // +optional - DisplayName string `json:"displayName,omitempty"` - - // Git holds configuration for git environment spec source - // +optional - Git GitEnvironmentTemplate `json:"git,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 []DevPodEnvironmentTemplateVersion `json:"versions,omitempty"` -} - -// 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"` - - // UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment - // +optional - UseProjectGitCredentials bool `json:"useProjectGitCredentials,omitempty"` -} - -type DevPodEnvironmentTemplateVersion struct { - // Git holds the GitEnvironmentTemplate - // +optional - Git GitEnvironmentTemplate `json:"git,omitempty"` - - // Version is the version. Needs to be in X.X.X format. - // +optional - Version string `json:"version,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DevPodEnvironmentTemplateList contains a list of DevPodEnvironmentTemplate objects -type DevPodEnvironmentTemplateList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodEnvironmentTemplate `json:"items"` -} - -func init() { - SchemeBuilder.Register(&DevPodEnvironmentTemplate{}, &DevPodEnvironmentTemplateList{}) -} diff --git a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go deleted file mode 100644 index 51e8fedd..00000000 --- a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go +++ /dev/null @@ -1,238 +0,0 @@ -package v1 - -import ( - agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -var ( - DevPodWorkspaceConditions = []agentstoragev1.ConditionType{ - InstanceScheduled, - InstanceTemplateResolved, - } - - // DevPodWorkspaceIDLabel holds the actual workspace id of the devpod workspace - DevPodWorkspaceIDLabel = "loft.sh/workspace-id" - - // DevPodWorkspaceUIDLabel holds the actual workspace uid of the devpod workspace - DevPodWorkspaceUIDLabel = "loft.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" -) - -var ( - DevPodFlagsUp = "DEVPOD_FLAGS_UP" - DevPodFlagsDelete = "DEVPOD_FLAGS_DELETE" - DevPodFlagsStatus = "DEVPOD_FLAGS_STATUS" - DevPodFlagsSsh = "DEVPOD_FLAGS_SSH" - DevPodFlagsStop = "DEVPOD_FLAGS_STOP" -) - -// +genclient -// +genclient:noStatus -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DevPodWorkspaceInstance -// +k8s:openapi-gen=true -type DevPodWorkspaceInstance struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspaceInstanceSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStatus `json:"status,omitempty"` -} - -func (a *DevPodWorkspaceInstance) GetConditions() agentstoragev1.Conditions { - return a.Status.Conditions -} - -func (a *DevPodWorkspaceInstance) SetConditions(conditions agentstoragev1.Conditions) { - a.Status.Conditions = conditions -} - -func (a *DevPodWorkspaceInstance) GetOwner() *UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodWorkspaceInstance) SetOwner(userOrTeam *UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodWorkspaceInstance) GetAccess() []Access { - return a.Spec.Access -} - -func (a *DevPodWorkspaceInstance) SetAccess(access []Access) { - a.Spec.Access = access -} - -type DevPodWorkspaceInstanceSpec struct { - // DisplayName is the name that should be displayed in the UI - // +optional - DisplayName string `json:"displayName,omitempty"` - - // Description describes a DevPod machine instance - // +optional - Description string `json:"description,omitempty"` - - // Owner holds the owner of this object - // +optional - Owner *UserOrTeam `json:"owner,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"` - - // 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 - // +optional - RunnerRef RunnerRef `json:"runnerRef,omitempty"` - - // 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. - // +optional - Parameters string `json:"parameters,omitempty"` - - // Access to the DevPod machine instance object itself - // +optional - Access []Access `json:"access,omitempty"` - - // PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection. - // +optional - PreventWakeUpOnConnection bool `json:"preventWakeUpOnConnection,omitempty"` -} - -type RunnerRef struct { - // Runner is the connected runner the workspace will be created in - // +optional - Runner string `json:"runner,omitempty"` -} - -type EnvironmentRef struct { - // Name is the name of DevPodEnvironmentTemplate this references - Name string `json:"name"` -} - -type DevPodWorkspaceInstanceStatus struct { - // LastWorkspaceStatus is the last workspace status reported by the runner. - // +optional - LastWorkspaceStatus WorkspaceStatus `json:"lastWorkspaceStatus,omitempty"` - - // Phase describes the current phase the DevPod machine instance is in - // +optional - Phase InstancePhase `json:"phase,omitempty"` - - // Reason describes the reason in machine-readable form why the cluster is in the current - // phase - // +optional - Reason string `json:"reason,omitempty"` - - // Message describes the reason in human-readable form why the DevPod machine is in the current - // phase - // +optional - Message string `json:"message,omitempty"` - - // Conditions holds several conditions the DevPod machine might be in - // +optional - Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` - - // Instance is the template rendered with all the parameters - // +optional - Instance *DevPodWorkspaceTemplateDefinition `json:"instance,omitempty"` - - // IgnoreReconciliation ignores reconciliation for this object - // +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"` -} - -type WorkspaceStatusResult struct { - ID string `json:"id,omitempty"` - Context string `json:"context,omitempty"` - Provider string `json:"provider,omitempty"` - State string `json:"state,omitempty"` -} - -var AllowedWorkspaceStatus = []WorkspaceStatus{ - WorkspaceStatusNotFound, - WorkspaceStatusStopped, - WorkspaceStatusBusy, - WorkspaceStatusRunning, -} - -type WorkspaceStatus string - -var ( - WorkspaceStatusNotFound WorkspaceStatus = "NotFound" - WorkspaceStatusStopped WorkspaceStatus = "Stopped" - WorkspaceStatusBusy WorkspaceStatus = "Busy" - WorkspaceStatusRunning WorkspaceStatus = "Running" -) - -type DevPodCommandStopOptions struct{} - -type DevPodCommandDeleteOptions struct { - IgnoreNotFound bool `json:"ignoreNotFound,omitempty"` - Force bool `json:"force,omitempty"` - GracePeriod string `json:"gracePeriod,omitempty"` -} - -type DevPodCommandStatusOptions struct { - ContainerStatus bool `json:"containerStatus,omitempty"` -} - -type DevPodCommandUpOptions struct { - // up options - ID string `json:"id,omitempty"` - Source string `json:"source,omitempty"` - IDE string `json:"ide,omitempty"` - IDEOptions []string `json:"ideOptions,omitempty"` - PrebuildRepositories []string `json:"prebuildRepositories,omitempty"` - DevContainerPath string `json:"devContainerPath,omitempty"` - WorkspaceEnv []string `json:"workspaceEnv,omitempty"` - Recreate bool `json:"recreate,omitempty"` - Proxy bool `json:"proxy,omitempty"` - DisableDaemon bool `json:"disableDaemon,omitempty"` - DaemonInterval string `json:"daemonInterval,omitempty"` - - // build options - Repository string `json:"repository,omitempty"` - SkipPush bool `json:"skipPush,omitempty"` - Platform []string `json:"platform,omitempty"` - - // TESTING - ForceBuild bool `json:"forceBuild,omitempty"` - ForceInternalBuildKit bool `json:"forceInternalBuildKit,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DevPodWorkspaceInstanceList contains a list of DevPodWorkspaceInstance objects -type DevPodWorkspaceInstanceList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstance `json:"items"` -} - -func init() { - SchemeBuilder.Register(&DevPodWorkspaceInstance{}, &DevPodWorkspaceInstanceList{}) -} diff --git a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go b/pkg/apis/storage/v1/devpodworkspacetemplate_types.go deleted file mode 100644 index 5d5bdb7b..00000000 --- a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go +++ /dev/null @@ -1,252 +0,0 @@ -package v1 - -import ( - 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 - -// DevPodWorkspaceTemplate holds the DevPodWorkspaceTemplate information -// +k8s:openapi-gen=true -type DevPodWorkspaceTemplate struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspaceTemplateSpec `json:"spec,omitempty"` - Status DevPodWorkspaceTemplateStatus `json:"status,omitempty"` -} - -func (a *DevPodWorkspaceTemplate) GetVersions() []VersionAccessor { - var retVersions []VersionAccessor - for _, v := range a.Spec.Versions { - b := v - retVersions = append(retVersions, &b) - } - - return retVersions -} - -func (a *DevPodWorkspaceTemplateVersion) GetVersion() string { - return a.Version -} - -func (a *DevPodWorkspaceTemplate) GetOwner() *UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodWorkspaceTemplate) SetOwner(userOrTeam *UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodWorkspaceTemplate) GetAccess() []Access { - return a.Spec.Access -} - -func (a *DevPodWorkspaceTemplate) SetAccess(access []Access) { - a.Spec.Access = access -} - -// DevPodWorkspaceTemplateSpec holds the specification -type DevPodWorkspaceTemplateSpec struct { - // DisplayName is the name that is shown in the UI - // +optional - DisplayName string `json:"displayName,omitempty"` - - // Description describes the virtual cluster template - // +optional - Description string `json:"description,omitempty"` - - // Owner holds the owner of this object - // +optional - Owner *UserOrTeam `json:"owner,omitempty"` - - // Parameters define additional app parameters that will set provider values - // +optional - Parameters []AppParameter `json:"parameters,omitempty"` - - // Template holds the DevPod workspace template - Template DevPodWorkspaceTemplateDefinition `json:"template,omitempty"` - - // Versions are different versions of the template that can be referenced as well - // +optional - Versions []DevPodWorkspaceTemplateVersion `json:"versions,omitempty"` - - // Access holds the access rights for users and teams - // +optional - Access []Access `json:"access,omitempty"` -} - -type DevPodWorkspaceTemplateDefinition struct { - // Provider holds the DevPod provider configuration - Provider DevPodWorkspaceProvider `json:"provider"` - - // 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. - // +optional - SpaceTemplateRef *TemplateRef `json:"spaceTemplateRef,omitempty"` - - // 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. - // +optional - SpaceTemplate *SpaceTemplateDefinition `json:"spaceTemplate,omitempty"` - - // 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. - // +optional - VirtualClusterTemplateRef *TemplateRef `json:"virtualClusterTemplateRef,omitempty"` - - // 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. - // +optional - VirtualClusterTemplate *VirtualClusterTemplateDefinition `json:"virtualClusterTemplate,omitempty"` - - // WorkspaceEnv are environment variables that should be available within the created workspace. - // +optional - WorkspaceEnv map[string]DevPodProviderOption `json:"workspaceEnv,omitempty"` - - // InitEnv are environment variables that should be available during the initialization phase of the created workspace. - // +optional - InitEnv map[string]DevPodProviderOption `json:"initEnv,omitempty"` - - // InstanceTemplate holds the workspace instance template - // +optional - InstanceTemplate DevPodWorkspaceInstanceTemplateDefinition `json:"instanceTemplate,omitempty"` - - // UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this workspace - // +optional - UseProjectGitCredentials bool `json:"useProjectGitCredentials,omitempty"` - - // UseProjectSSHCredentials specifies if the project ssh credentials should be used instead of local ones for this workspace - // +optional - UseProjectSSHCredentials bool `json:"useProjectSSHCredentials,omitempty"` - - // GitCloneStrategy specifies how git based workspace are being cloned. Can be "" (full, default), treeless, blobless or shallow - // +optional - GitCloneStrategy GitCloneStrategy `json:"gitCloneStrategy,omitempty"` - - // CredentialForwarding specifies controls for how workspaces created by this template forward credentials into the workspace - // +optional - CredentialForwarding *CredentialForwarding `json:"credentialForwarding,omitempty"` - - // PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection. - // +optional - PreventWakeUpOnConnection bool `json:"preventWakeUpOnConnection,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" -) - -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"` -} - -type DevPodWorkspaceProvider struct { - // Name is the name of the provider. This can also be an url. - Name string `json:"name"` - - // Options are the provider option values - // +optional - Options map[string]DevPodProviderOption `json:"options,omitempty"` - - // Env are environment options to set when using the provider. - // +optional - Env map[string]DevPodProviderOption `json:"env,omitempty"` -} - -type DevPodWorkspaceInstanceTemplateDefinition struct { - // The virtual cluster instance metadata - // +kubebuilder:pruning:PreserveUnknownFields - // +optional - TemplateMetadata `json:"metadata,omitempty"` -} - -type DevPodProviderOption struct { - // Value of this option. - // +optional - Value string `json:"value,omitempty"` - - // ValueFrom specifies a secret where this value should be taken from. - // +optional - ValueFrom *DevPodProviderOptionFrom `json:"valueFrom,omitempty"` -} - -type DevPodProviderOptionFrom struct { - // ProjectSecretRef is the project secret to use for this value. - // +optional - ProjectSecretRef *corev1.SecretKeySelector `json:"projectSecretRef,omitempty"` - - // SharedSecretRef is the shared secret to use for this value. - // +optional - SharedSecretRef *corev1.SecretKeySelector `json:"sharedSecretRef,omitempty"` -} - -type DevPodProviderSource struct { - // Github source for the provider - Github string `json:"github,omitempty"` - - // File source for the provider - File string `json:"file,omitempty"` - - // URL where the provider was downloaded from - URL string `json:"url,omitempty"` -} - -type DevPodWorkspaceTemplateVersion struct { - // Template holds the DevPod template - // +optional - Template DevPodWorkspaceTemplateDefinition `json:"template,omitempty"` - - // Parameters define additional app parameters that will set provider values - // +optional - Parameters []AppParameter `json:"parameters,omitempty"` - - // Version is the version. Needs to be in X.X.X format. - // +optional - Version string `json:"version,omitempty"` -} - -// DevPodWorkspaceTemplateStatus holds the status -type DevPodWorkspaceTemplateStatus struct { -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DevPodWorkspaceTemplateList contains a list of DevPodWorkspaceTemplate -type DevPodWorkspaceTemplateList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceTemplate `json:"items"` -} - -func init() { - SchemeBuilder.Register(&DevPodWorkspaceTemplate{}, &DevPodWorkspaceTemplateList{}) -} 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..9843adb7 --- /dev/null +++ b/pkg/apis/storage/v1/nodeclaim_types.go @@ -0,0 +1,137 @@ +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 + NodeClaimConditionTypeProvisioned = "Provisioned" + // NodeClaimConditionTypeJoined is the condition that indicates if the node claim is joined to the vCluster. + NodeClaimConditionTypeJoined = "Joined" + // ConditionTypeScheduled is the condition that indicates if the node claim is scheduled. + NodeClaimConditionTypeScheduled = "Scheduled" + // NodeClaimConditionTypeNotDrifted is the condition that indicates if the node claim is not drifted from the desired state. + NodeClaimConditionTypeNotDrifted = "NotDrifted" +) + +var ( + NodeClaimConditions = []agentstoragev1.ConditionType{ + NodeClaimConditionTypeScheduled, + NodeClaimConditionTypeProvisioned, + NodeClaimConditionTypeJoined, + } +) + +// 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.typeRef" +// +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"` + + // Properties are extra properties for the NodeClaim. + // +optional + Properties map[string]string `json:"properties"` + + // ProviderRef is the name of the NodeProvider that this NodeClaim is based on. + ProviderRef string `json:"providerRef"` + + // TypeRef is the full name of the NodeType that this NodeClaim is based on. + // +optional + TypeRef string `json:"typeRef,omitempty"` + + // VClusterRef references source vCluster. This is required. + VClusterRef string `json:"vClusterRef"` + + // ControlPlane indicates if the node claim is for a control plane node. This is intentionally not omitempty as + // we want to ensure that the control plane is always set for easier checking in for example terraform templates. + // +optional + ControlPlane bool `json:"controlPlane"` +} + +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/nodeenvironment_types.go b/pkg/apis/storage/v1/nodeenvironment_types.go new file mode 100644 index 00000000..4634735e --- /dev/null +++ b/pkg/apis/storage/v1/nodeenvironment_types.go @@ -0,0 +1,109 @@ +package v1 + +import ( + agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + // NodeEnvironment conditions + NodeEnvironmentConditionTypeInfrastructureProvisioned = "Provisioned" + NodeEnvironmentConditionTypeInfrastructureSynced = "Synced" + NodeEnvironmentConditionTypeKubernetesProvisioned = "KubernetesProvisioned" + NodeEnvironmentConditionTypeKubernetesSynced = "KubernetesSynced" +) + +var ( + NodeEnvironmentConditions = []agentstoragev1.ConditionType{ + NodeEnvironmentConditionTypeInfrastructureProvisioned, + NodeEnvironmentConditionTypeInfrastructureSynced, + NodeEnvironmentConditionTypeKubernetesProvisioned, + NodeEnvironmentConditionTypeKubernetesSynced, + } +) + +// NodeEnvironmentPhase defines the phase of the NodeEnvironment +type NodeEnvironmentPhase string + +const ( + // NodeEnvironmentPhasePending is the initial state of a NodeEnvironment. + NodeEnvironmentPhasePending NodeEnvironmentPhase = "Pending" + // NodeEnvironmentPhaseAvailable means the underlying node environment has been successfully provisioned. + NodeEnvironmentPhaseAvailable NodeEnvironmentPhase = "Available" + // NodeEnvironmentPhaseFailed means the provisioning process has failed. + NodeEnvironmentPhaseFailed NodeEnvironmentPhase = "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="NodeProvider",type="string",JSONPath=".spec.nodeProviderRef" +// +kubebuilder:subresource:status + +// NodeEnvironment holds the node environment for vCluster. +// +k8s:openapi-gen=true +type NodeEnvironment struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeEnvironmentSpec `json:"spec,omitempty"` + Status NodeEnvironmentStatus `json:"status,omitempty"` +} + +func (a *NodeEnvironment) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *NodeEnvironment) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} + +// NodeEnvironmentSpec defines spec of node environment. +type NodeEnvironmentSpec struct { + // Properties are the properties for the NodeEnvironment. + // +optional + Properties map[string]string `json:"properties"` + + // ProviderRef is the name of the NodeProvider that this NodeEnvironment is based on. + ProviderRef string `json:"providerRef"` + + // VClusterRef references source vCluster. This is required. + VClusterRef string `json:"vClusterRef"` + + // ControlPlane indicates if the node environment is a control plane environment. This is intentionally not omitempty as + // we want to ensure that the control plane is always set for easier checking in for example terraform templates. + // +optional + ControlPlane bool `json:"controlPlane"` +} + +type NodeEnvironmentStatus struct { + // Phase is the current lifecycle phase of the NodeEnvironment. + // +optional + Phase NodeEnvironmentPhase `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 + +// NodeEnvironmentList contains a list of NodeEnvironment +type NodeEnvironmentList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeEnvironment `json:"items"` +} + +func init() { + SchemeBuilder.Register(&NodeEnvironment{}, &NodeEnvironmentList{}) +} diff --git a/pkg/apis/storage/v1/nodeprovider_types.go b/pkg/apis/storage/v1/nodeprovider_types.go new file mode 100644 index 00000000..cf0a4d26 --- /dev/null +++ b/pkg/apis/storage/v1/nodeprovider_types.go @@ -0,0 +1,329 @@ +package v1 + +import ( + agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" +) + +const ( + NodeProviderTypeBCM string = "bcm" + NodeProviderTypeKubeVirt string = "kubeVirt" + NodeProviderTypeTerraform string = "terraform" + NodeProviderTypeClusterAPI string = "clusterAPI" + + // 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" + NodeProviderManagedTypeMetadataAnnotation = "autoscaling.loft.sh/managed-metadata" + + // NodeTypeMaxCapacityAnnotation is the annotation used to store the maximum capacity of a NodeType + NodeTypeMaxCapacityAnnotation = "autoscaling.loft.sh/max-capacity" + + // BCM specific annotations + NodeTypeNodesAnnotation = "bcm.loft.sh/nodes" + NodeTypeNodeGroupsAnnotation = "bcm.loft.sh/node-groups" + + // KubeVirt specific annotations + NodeTypeVMTemplateAnnotation = "kubevirt.vcluster.com/vm-template" + + // ClusterAPI specific annotations + NodeTypeClusterAPIInfrastructureMachineTemplateAnnotation = "clusterapi.loft.sh/infrastructure-machine-template" + NodeTypeClusterAPIBootstrapConfigTemplateAnnotation = "clusterapi.loft.sh/bootstrap-config-template" + + // Properties + NodeProviderCCMEnabledProperty = "vcluster.com/ccm-enabled" +) + +// +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 { + // Properties are global properties that are applied to all node claims and environments managed by this provider. + // +optional + Properties map[string]string `json:"properties,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"` + + // Terraform configures a node provider using Terraform, enabling nodes to be provisioned using Terraform. + // +optional + Terraform *NodeProviderTerraform `json:"terraform,omitempty"` + + // ClusterAPI configures a node provider using Cluster API, enabling nodes to be provisioned using Cluster API. + // This requires the vCluster to be deployed with Cluster API as well. + // +optional + ClusterAPI *NodeProviderClusterAPI `json:"clusterAPI,omitempty"` + + // DisplayName is the name that should be displayed in the UI + // +optional + DisplayName string `json:"displayName,omitempty"` +} + +type NodeProviderClusterAPI struct { + ClusterAPIObjects `json:",inline"` + + // ClusterRef is a reference to connected host cluster in which KubeVirt operator is running + ClusterRef *NodeProviderClusterRef `json:"clusterRef,omitempty"` + + // NodeTypes define NodeTypes that should be automatically created for this provider. + NodeTypes []ClusterAPINodeTypeSpec `json:"nodeTypes,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 NodeProviderTerraform struct { + // NodeTemplate is the template to use for this node provider. + NodeTemplate *TerraformTemplate `json:"nodeTemplate,omitempty"` + + // NodeEnvironmentTemplate is the template to use for this node environment. + NodeEnvironmentTemplate *TerraformNodeEnvironmentTemplate `json:"nodeEnvironmentTemplate,omitempty"` + + // NodeTypes define NodeTypes that should be automatically created for this provider. + NodeTypes []TerraformNodeTypeSpec `json:"nodeTypes,omitempty"` +} + +type NamedNodeTypeSpec struct { + NodeTypeSpec `json:",inline"` + + // Name is the name of this node type. + Name string `json:"name"` + + // Metadata holds metadata to add to this managed NodeType. + Metadata ManagedNodeTypeObjectMeta `json:"metadata,omitempty"` +} + +type ManagedNodeTypeObjectMeta struct { + // Labels holds labels to add to this managed NodeType. + Labels map[string]string `json:"labels,omitempty"` + + // Annotations holds annotations to add to this managed NodeType. + Annotations map[string]string `json:"annotations,omitempty"` +} + +type TerraformNodeEnvironmentTemplate struct { + // Deprecated: Use Infrastructure and Kubernetes instead. + TerraformTemplate `json:",inline"` + + // Infrastructure is the infrastructure template to use for this node environment. + Infrastructure *TerraformTemplate `json:"infrastructure,omitempty"` + + // Kubernetes is the kubernetes template to use for this node environment. + Kubernetes *TerraformTemplate `json:"kubernetes,omitempty"` +} + +type TerraformTemplate struct { + // Inline is the inline template to use for this node type. + Inline string `json:"inline,omitempty"` + + // Git is the git repository to use for this node type. + Git *TerraformTemplateSourceGit `json:"git,omitempty"` + + // Timeout is the timeout to use for the terraform operations. Defaults to 60m. + Timeout string `json:"timeout,omitempty"` +} + +type TerraformTemplateSourceGit 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"` + + // Tag is the tag reference to checkout + Tag string `json:"tag,omitempty"` + + // SubPath is the subpath in the repo to use + SubPath string `json:"subPath,omitempty"` + + // Credentials is the reference to a secret containing the username and password for the git repository. + Credentials *SecretRef `json:"credentials,omitempty"` + + // FetchInterval is the interval to use for refetching the git repository. Defaults to 5m. Refetching only checks for remote changes but does not do a complete repull. + FetchInterval string `json:"fetchInterval,omitempty"` + + // ExtraEnv is the extra environment variables to use for the clone + ExtraEnv []string `json:"extraEnv,omitempty"` +} + +type TerraformNodeTypeSpec struct { + NamedNodeTypeSpec `json:",inline"` + + // NodeTemplate is the template to use for this node type. + NodeTemplate *TerraformTemplate `json:"nodeTemplate,omitempty"` + + // MaxCapacity is the maximum number of nodes that can be created for this NodeType. + MaxCapacity int `json:"maxCapacity,omitempty"` +} + +type BCMNodeTypeSpec struct { + NamedNodeTypeSpec `json:",inline"` + + // 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"` +} + +type ClusterAPINodeTypeSpec struct { + NamedNodeTypeSpec `json:",inline"` + ClusterAPIObjects `json:",inline"` + + // MergeInfrastructureMachineTemplate will be merged into base InfrastructureMachine template for this NodeProvider. + // This allows overwriting of specific fields from top level template by individual NodeTypes + // This is mutually exclusive with InfrastructureMachineTemplate + MergeInfrastructureMachineTemplate *runtime.RawExtension `json:"mergeInfrastructureMachineTemplate,omitempty"` + + // MergeBootstrapConfigTemplate will be merged into base BootstrapConfig template for this NodeProvider. + // This allows overwriting of specific fields from top level template by individual NodeTypes + // This is mutually exclusive with BootstrapConfigTemplate + MergeBootstrapConfigTemplate *runtime.RawExtension `json:"mergeBootstrapConfigTemplate,omitempty"` + + // MaxCapacity is the maximum number of nodes that can be created for this NodeType. + MaxCapacity int `json:"maxCapacity,omitempty"` +} + +type ClusterAPIObjects struct { + // InfrastructureMachineTemplate is a template for the infrastructure machine, e.g. AWSMachine + InfrastructureMachineTemplate *runtime.RawExtension `json:"infrastructureMachineTemplate,omitempty"` + + // BootstrapConfigTemplate is a template for the bootstrap config. Currently only KubeadmConfig is supported. + BootstrapConfigTemplate *runtime.RawExtension `json:"bootstrapConfigTemplate,omitempty"` +} + +// KubeVirtNodeTypeSpec defines single NodeType spec for KubeVirt provider type. +type KubeVirtNodeTypeSpec struct { + NamedNodeTypeSpec `json:",inline"` + + // VirtualMachineTemplate is a full KubeVirt VirtualMachine template to use for this NodeType. + // This is mutually exclusive with MergeVirtualMachineTemplate + VirtualMachineTemplate *runtime.RawExtension `json:"virtualMachineTemplate,omitempty"` + + // MergeVirtualMachineTemplate will be merged into base VirtualMachine template for this NodeProvider. + // This allows overwriting of specific fields from top level template by individual NodeTypes + // This is mutually exclusive with VirtualMachineTemplate + MergeVirtualMachineTemplate *runtime.RawExtension `json:"mergeVirtualMachineTemplate,omitempty"` + + // MaxCapacity is the maximum number of nodes that can be created for this NodeType. + MaxCapacity int `json:"maxCapacity,omitempty"` +} + +// NodeProviderKubeVirt defines the configuration for a KubeVirt node provider. +type NodeProviderKubeVirt struct { + // ClusterRef is a reference to connected host cluster in which KubeVirt operator is running + ClusterRef *NodeProviderClusterRef `json:"clusterRef,omitempty"` + + // VirtualMachineTemplate is a KubeVirt VirtualMachine template to use by NodeTypes managed by this NodeProvider + VirtualMachineTemplate *runtime.RawExtension `json:"virtualMachineTemplate,omitempty"` + + // NodeTypes define NodeTypes that should be automatically created for this provider. + NodeTypes []KubeVirtNodeTypeSpec `json:"nodeTypes"` +} + +type NodeProviderClusterRef struct { + // Cluster is the connected cluster the VMs will be created in + Cluster string `json:"cluster"` + + // Namespace is the namespace inside the connected cluster holding VMs + Namespace string `json:"namespace,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..b93fd29e --- /dev/null +++ b/pkg/apis/storage/v1/nodetype_types.go @@ -0,0 +1,146 @@ +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 ( + NodeTypePropertyKey = "vcluster.com/node-type" + + // NodeTypeConditionTypeSynced is the condition that indicates if the node type is synced with provider. + NodeTypeConditionTypeSynced = "Synced" + NodeTypeConditionHasCapacity = "HasCapacity" +) + +var ( + NodeTypeConditions = []agentstoragev1.ConditionType{ + NodeTypeConditionTypeSynced, + NodeTypeConditionHasCapacity, + } +) + +// +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"` + + // 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"` +} + +// 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"` + + // Cost is the calculated instance cost from the resources specified or the price specified from spec. The higher the cost, the less likely it is to be selected. + // +optional + Cost int64 `json:"cost,omitempty"` + + // Capacity is the capacity of the node type. + // +optional + Capacity NodeTypeCapacity `json:"capacity,omitempty"` + + // Requirements is the calculated requirements based of the properties for the node type. + // +optional + Requirements []corev1.NodeSelectorRequirement `json:"requirements,omitempty"` + + // Conditions holds several conditions the node type might be in + // +optional + Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` +} + +// IMPORTANT: DO NOT use omitempty for values in NodeTypeCapacity. +// The values are used in NodePool calculations and for UI. +type NodeTypeCapacity struct { + // Total is the total number of nodes of this type + Total int `json:"total"` + + // Claimed is the number of already claimed nodes of this type + Claimed int `json:"claimed"` +} + +// +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..f31fbe95 100644 --- a/pkg/apis/storage/v1/project_types.go +++ b/pkg/apis/storage/v1/project_types.go @@ -93,7 +93,6 @@ type ProjectSpec struct { AllowedClusters []AllowedCluster `json:"allowedClusters,omitempty"` // AllowedRunners are target runners that are allowed to target with - // DevPod environments. // +optional AllowedRunners []AllowedRunner `json:"allowedRunners,omitempty"` @@ -106,6 +105,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"` @@ -129,10 +132,6 @@ type ProjectSpec struct { // RancherIntegration holds information about Rancher Integration // +optional RancherIntegration *RancherIntegrationSpec `json:"rancher,omitempty"` - - // DevPod holds DevPod specific configuration for project - // +optional - DevPod *DevPodProjectSpec `json:"devPod,omitempty"` } type RequireTemplate struct { @@ -142,6 +141,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 @@ -162,9 +168,8 @@ type Quotas struct { } var ( - SpaceTemplateKind = "SpaceTemplate" - VirtualClusterTemplateKind = "VirtualClusterTemplate" - DevPodWorkspaceTemplateKind = "DevPodWorkspaceTemplate" + SpaceTemplateKind = "SpaceTemplate" + VirtualClusterTemplateKind = "VirtualClusterTemplate" ) type AllowedTemplate struct { @@ -199,7 +204,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 { @@ -499,44 +504,6 @@ type SyncMembersSpec struct { RoleMapping map[string]string `json:"roleMapping,omitempty"` } -type DevPodProjectSpec struct { - // Git defines additional git related settings like credentials - // +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"` -} - -type GitProjectSpec struct { - // Token defines the token to use for authentication. - // +optional - Token string `json:"token,omitempty"` - - // TokenSecretRef defines the project secret to use for token authentication. - // Will be used if `Token` is not provided. - // +optional - TokenProjectSecretRef *corev1.SecretKeySelector `json:"tokenSecretRef,omitempty"` -} - -type SSHProjectSpec struct { - // Token defines the private ssh key 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. - // Will be used if `Token` is not provided. - // +optional - TokenProjectSecretRef *corev1.SecretKeySelector `json:"tokenSecretRef,omitempty"` -} - // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // ProjectList contains a list of Project objects 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..874b9b88 100644 --- a/pkg/apis/storage/v1/virtualclusterinstance_types.go +++ b/pkg/apis/storage/v1/virtualclusterinstance_types.go @@ -7,18 +7,22 @@ import ( ) const ( - InstanceScheduled agentstoragev1.ConditionType = "Scheduled" - InstanceTemplateSynced agentstoragev1.ConditionType = "TemplateSynced" - InstanceTemplateResolved agentstoragev1.ConditionType = "TemplateResolved" - InstanceSpaceSynced agentstoragev1.ConditionType = "SpaceSynced" - InstanceSpaceReady agentstoragev1.ConditionType = "SpaceReady" - InstanceVirtualClusterDeployed agentstoragev1.ConditionType = "VirtualClusterDeployed" - InstanceVirtualClusterSynced agentstoragev1.ConditionType = "VirtualClusterSynced" - InstanceVirtualClusterReady agentstoragev1.ConditionType = "VirtualClusterReady" - InstanceVirtualClusterOnline agentstoragev1.ConditionType = "VirtualClusterOnline" - InstanceProjectsSecretsSynced agentstoragev1.ConditionType = "ProjectSecretsSynced" - - InstanceVirtualClusterAppsAndObjectsSynced agentstoragev1.ConditionType = "VirtualClusterAppsAndObjectsSynced" + InstanceScheduled agentstoragev1.ConditionType = "Scheduled" + InstanceTemplateSynced agentstoragev1.ConditionType = "TemplateSynced" + InstanceTemplateResolved agentstoragev1.ConditionType = "TemplateResolved" + InstanceSpaceSynced agentstoragev1.ConditionType = "SpaceSynced" + InstanceSpaceReady agentstoragev1.ConditionType = "SpaceReady" + InstanceVirtualClusterDeployed agentstoragev1.ConditionType = "VirtualClusterDeployed" + InstanceVirtualClusterSynced agentstoragev1.ConditionType = "VirtualClusterSynced" + InstanceVirtualClusterReady agentstoragev1.ConditionType = "VirtualClusterReady" + InstanceVirtualClusterOnline agentstoragev1.ConditionType = "VirtualClusterOnline" + InstanceProjectsSecretsSynced agentstoragev1.ConditionType = "ProjectSecretsSynced" + InstanceNodesProvisioned agentstoragev1.ConditionType = "NodesProvisioned" + InstanceExternalResourcesCleanedUp agentstoragev1.ConditionType = "ExternalResourcesCleanedUp" + + InstanceVirtualClusterAppsAndObjectsSynced agentstoragev1.ConditionType = "VirtualClusterAppsAndObjectsSynced" + InstanceVirtualClusterDBConnectorSynced agentstoragev1.ConditionType = "DBConnectorSynced" + InstanceVirtualClusterDBIdentityProviderSynced agentstoragev1.ConditionType = "DBIdentityProviderSynced" ) // +genclient @@ -107,6 +111,10 @@ type VirtualClusterInstanceSpec struct { // External specifies if the virtual cluster is managed by the platform agent or externally. // +optional External bool `json:"external,omitempty"` + + // Standalone specifies if the virtual cluster is standalone and not hosted in another Kubernetes cluster. + // +optional + Standalone bool `json:"standalone,omitempty"` } type VirtualClusterInstanceStatus struct { @@ -128,6 +136,10 @@ type VirtualClusterInstanceStatus struct { // +optional ServiceUID string `json:"serviceUID,omitempty"` + // KubernetesVersion is the Kubernetes version of the virtual cluster. + // +optional + KubernetesVersion string `json:"kubernetesVersion,omitempty"` + // DeployHash is the hash of the last deployed values. // +optional DeployHash string `json:"deployHash,omitempty"` @@ -282,6 +294,10 @@ type AppReference struct { // +optional Version string `json:"version,omitempty"` + // Hash is the hash of the app configuration + // +optional + Hash string `json:"hash,omitempty"` + // Parameters to use for the app // +optional Parameters string `json:"parameters,omitempty"` @@ -317,6 +333,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..b301a84f 100644 --- a/pkg/apis/storage/v1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1/zz_generated.deepcopy.go @@ -76,32 +76,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 +363,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 +879,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.NamedNodeTypeSpec.DeepCopyInto(&out.NamedNodeTypeSpec) + 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 +944,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 } @@ -965,6 +966,60 @@ func (in *Cluster) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterAPINodeTypeSpec) DeepCopyInto(out *ClusterAPINodeTypeSpec) { + *out = *in + in.NamedNodeTypeSpec.DeepCopyInto(&out.NamedNodeTypeSpec) + in.ClusterAPIObjects.DeepCopyInto(&out.ClusterAPIObjects) + if in.MergeInfrastructureMachineTemplate != nil { + in, out := &in.MergeInfrastructureMachineTemplate, &out.MergeInfrastructureMachineTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } + if in.MergeBootstrapConfigTemplate != nil { + in, out := &in.MergeBootstrapConfigTemplate, &out.MergeBootstrapConfigTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPINodeTypeSpec. +func (in *ClusterAPINodeTypeSpec) DeepCopy() *ClusterAPINodeTypeSpec { + if in == nil { + return nil + } + out := new(ClusterAPINodeTypeSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterAPIObjects) DeepCopyInto(out *ClusterAPIObjects) { + *out = *in + if in.InfrastructureMachineTemplate != nil { + in, out := &in.InfrastructureMachineTemplate, &out.InfrastructureMachineTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } + if in.BootstrapConfigTemplate != nil { + in, out := &in.BootstrapConfigTemplate, &out.BootstrapConfigTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPIObjects. +func (in *ClusterAPIObjects) DeepCopy() *ClusterAPIObjects { + if in == nil { + return nil + } + out := new(ClusterAPIObjects) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterAccess) DeepCopyInto(out *ClusterAccess) { *out = *in @@ -1302,6 +1357,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 +1383,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 } @@ -1332,680 +1404,517 @@ func (in *ClusterStatus) DeepCopy() *ClusterStatus { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CredentialForwarding) DeepCopyInto(out *CredentialForwarding) { +func (in *EntityInfo) DeepCopyInto(out *EntityInfo) { *out = *in - if in.Docker != nil { - in, out := &in.Docker, &out.Docker - *out = new(DockerCredentialForwarding) - **out = **in - } - if in.Git != nil { - in, out := &in.Git, &out.Git - *out = new(GitCredentialForwarding) - **out = **in - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialForwarding. -func (in *CredentialForwarding) DeepCopy() *CredentialForwarding { +// 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(CredentialForwarding) + 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 *DevPodCommandDeleteOptions) DeepCopyInto(out *DevPodCommandDeleteOptions) { +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 DevPodCommandDeleteOptions. -func (in *DevPodCommandDeleteOptions) DeepCopy() *DevPodCommandDeleteOptions { +// 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(DevPodCommandDeleteOptions) + 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 *DevPodCommandStatusOptions) DeepCopyInto(out *DevPodCommandStatusOptions) { +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 DevPodCommandStatusOptions. -func (in *DevPodCommandStatusOptions) DeepCopy() *DevPodCommandStatusOptions { +// 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(DevPodCommandStatusOptions) + 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 *DevPodCommandStopOptions) DeepCopyInto(out *DevPodCommandStopOptions) { +func (in *HelmChartRepository) DeepCopyInto(out *HelmChartRepository) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodCommandStopOptions. -func (in *DevPodCommandStopOptions) DeepCopy() *DevPodCommandStopOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChartRepository. +func (in *HelmChartRepository) DeepCopy() *HelmChartRepository { if in == nil { return nil } - out := new(DevPodCommandStopOptions) + 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 *DevPodCommandUpOptions) DeepCopyInto(out *DevPodCommandUpOptions) { +func (in *HelmConfiguration) DeepCopyInto(out *HelmConfiguration) { *out = *in - if in.IDEOptions != nil { - in, out := &in.IDEOptions, &out.IDEOptions - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.PrebuildRepositories != nil { - in, out := &in.PrebuildRepositories, &out.PrebuildRepositories - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.WorkspaceEnv != nil { - in, out := &in.WorkspaceEnv, &out.WorkspaceEnv - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Platform != nil { - in, out := &in.Platform, &out.Platform - *out = make([]string, len(*in)) - copy(*out, *in) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodCommandUpOptions. -func (in *DevPodCommandUpOptions) DeepCopy() *DevPodCommandUpOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmConfiguration. +func (in *HelmConfiguration) DeepCopy() *HelmConfiguration { if in == nil { return nil } - out := new(DevPodCommandUpOptions) + 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 *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { +func (in *HelmTask) DeepCopyInto(out *HelmTask) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) + in.Release.DeepCopyInto(&out.Release) 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 HelmTask. +func (in *HelmTask) DeepCopy() *HelmTask { if in == nil { return nil } - out := new(DevPodEnvironmentTemplate) + out := new(HelmTask) 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 *HelmTaskRelease) DeepCopyInto(out *HelmTaskRelease) { *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]) + 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 DevPodEnvironmentTemplateList. -func (in *DevPodEnvironmentTemplateList) DeepCopy() *DevPodEnvironmentTemplateList { +// 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(DevPodEnvironmentTemplateList) + out := new(HelmTaskRelease) 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 *ImportVirtualClustersSpec) DeepCopyInto(out *ImportVirtualClustersSpec) { *out = *in - out.Git = in.Git - 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.RoleMapping != nil { + in, out := &in.RoleMapping, &out.RoleMapping + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val } } - if in.Versions != nil { - in, out := &in.Versions, &out.Versions - *out = make([]DevPodEnvironmentTemplateVersion, len(*in)) - copy(*out, *in) - } 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 ImportVirtualClustersSpec. +func (in *ImportVirtualClustersSpec) DeepCopy() *ImportVirtualClustersSpec { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateSpec) + 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 *DevPodEnvironmentTemplateVersion) DeepCopyInto(out *DevPodEnvironmentTemplateVersion) { +func (in *InstanceAccess) DeepCopyInto(out *InstanceAccess) { *out = *in - out.Git = in.Git + 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 DevPodEnvironmentTemplateVersion. -func (in *DevPodEnvironmentTemplateVersion) DeepCopy() *DevPodEnvironmentTemplateVersion { +// 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(DevPodEnvironmentTemplateVersion) + 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 *DevPodProjectSpec) DeepCopyInto(out *DevPodProjectSpec) { +func (in *InstanceAccessRule) DeepCopyInto(out *InstanceAccessRule) { *out = *in - if in.Git != nil { - in, out := &in.Git, &out.Git - *out = new(GitProjectSpec) - (*in).DeepCopyInto(*out) + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = make([]string, len(*in)) + copy(*out, *in) } - if in.SSH != nil { - in, out := &in.SSH, &out.SSH - *out = new(SSHProjectSpec) - (*in).DeepCopyInto(*out) + 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 DevPodProjectSpec. -func (in *DevPodProjectSpec) DeepCopy() *DevPodProjectSpec { +// 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(DevPodProjectSpec) + 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 *DevPodProviderOption) DeepCopyInto(out *DevPodProviderOption) { +func (in *InstanceDeployedAppStatus) DeepCopyInto(out *InstanceDeployedAppStatus) { *out = *in - if in.ValueFrom != nil { - in, out := &in.ValueFrom, &out.ValueFrom - *out = new(DevPodProviderOptionFrom) - (*in).DeepCopyInto(*out) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodProviderOption. -func (in *DevPodProviderOption) DeepCopy() *DevPodProviderOption { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceDeployedAppStatus. +func (in *InstanceDeployedAppStatus) DeepCopy() *InstanceDeployedAppStatus { if in == nil { return nil } - out := new(DevPodProviderOption) + out := new(InstanceDeployedAppStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodProviderOptionFrom) DeepCopyInto(out *DevPodProviderOptionFrom) { +func (in *KindSecretRef) DeepCopyInto(out *KindSecretRef) { *out = *in - if in.ProjectSecretRef != nil { - in, out := &in.ProjectSecretRef, &out.ProjectSecretRef - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.SharedSecretRef != nil { - in, out := &in.SharedSecretRef, &out.SharedSecretRef - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodProviderOptionFrom. -func (in *DevPodProviderOptionFrom) DeepCopy() *DevPodProviderOptionFrom { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KindSecretRef. +func (in *KindSecretRef) DeepCopy() *KindSecretRef { if in == nil { return nil } - out := new(DevPodProviderOptionFrom) + 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 *DevPodProviderSource) DeepCopyInto(out *DevPodProviderSource) { +func (in *KubeVirtNodeTypeSpec) DeepCopyInto(out *KubeVirtNodeTypeSpec) { *out = *in + in.NamedNodeTypeSpec.DeepCopyInto(&out.NamedNodeTypeSpec) + if in.VirtualMachineTemplate != nil { + in, out := &in.VirtualMachineTemplate, &out.VirtualMachineTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } + if in.MergeVirtualMachineTemplate != nil { + in, out := &in.MergeVirtualMachineTemplate, &out.MergeVirtualMachineTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodProviderSource. -func (in *DevPodProviderSource) DeepCopy() *DevPodProviderSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeVirtNodeTypeSpec. +func (in *KubeVirtNodeTypeSpec) DeepCopy() *KubeVirtNodeTypeSpec { if in == nil { return nil } - out := new(DevPodProviderSource) + out := new(KubeVirtNodeTypeSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { +func (in *LocalClusterAccessSpec) DeepCopyInto(out *LocalClusterAccessSpec) { *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 DevPodWorkspaceInstance. -func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { - if in == nil { - return nil + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = make([]UserOrTeam, len(*in)) + copy(*out, *in) } - out := new(DevPodWorkspaceInstance) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make([]string, len(*in)) + copy(*out, *in) } - return nil -} - -// 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 - 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]) - } + 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 DevPodWorkspaceInstanceList. -func (in *DevPodWorkspaceInstanceList) DeepCopy() *DevPodWorkspaceInstanceList { +// 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(DevPodWorkspaceInstanceList) + out := new(LocalClusterAccessSpec) 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 { - 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 *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { +func (in *LocalClusterAccessTemplate) DeepCopyInto(out *LocalClusterAccessTemplate) { *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 - } - out.EnvironmentRef = in.EnvironmentRef - if in.Template != nil { - in, out := &in.Template, &out.Template - *out = new(DevPodWorkspaceTemplateDefinition) - (*in).DeepCopyInto(*out) - } - 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]) - } - } + in.Metadata.DeepCopyInto(&out.Metadata) + in.LocalClusterAccessSpec.DeepCopyInto(&out.LocalClusterAccessSpec) 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 LocalClusterAccessTemplate. +func (in *LocalClusterAccessTemplate) DeepCopy() *LocalClusterAccessTemplate { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + 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 *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { +func (in *LocalClusterRoleTemplate) DeepCopyInto(out *LocalClusterRoleTemplate) { *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]) - } - } - if in.Instance != nil { - in, out := &in.Instance, &out.Instance - *out = new(DevPodWorkspaceTemplateDefinition) - (*in).DeepCopyInto(*out) - } - if in.ClusterRef != nil { - in, out := &in.ClusterRef, &out.ClusterRef - *out = new(ClusterRef) - **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 DevPodWorkspaceInstanceStatus. -func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { +// 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(DevPodWorkspaceInstanceStatus) + 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 *DevPodWorkspaceInstanceTemplateDefinition) DeepCopyInto(out *DevPodWorkspaceInstanceTemplateDefinition) { +func (in *LocalClusterRoleTemplateSpec) DeepCopyInto(out *LocalClusterRoleTemplateSpec) { *out = *in - in.TemplateMetadata.DeepCopyInto(&out.TemplateMetadata) + in.ClusterRoleTemplate.DeepCopyInto(&out.ClusterRoleTemplate) 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 LocalClusterRoleTemplateSpec. +func (in *LocalClusterRoleTemplateSpec) DeepCopy() *LocalClusterRoleTemplateSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTemplateDefinition) + 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 *DevPodWorkspaceProvider) DeepCopyInto(out *DevPodWorkspaceProvider) { +func (in *ManagedNodeTypeObjectMeta) DeepCopyInto(out *ManagedNodeTypeObjectMeta) { *out = *in - if in.Options != nil { - in, out := &in.Options, &out.Options - *out = make(map[string]DevPodProviderOption, len(*in)) + 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.DeepCopy() + (*out)[key] = val } } - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make(map[string]DevPodProviderOption, len(*in)) + if in.Annotations != nil { + in, out := &in.Annotations, &out.Annotations + *out = make(map[string]string, len(*in)) for key, val := range *in { - (*out)[key] = *val.DeepCopy() + (*out)[key] = val } } 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 ManagedNodeTypeObjectMeta. +func (in *ManagedNodeTypeObjectMeta) DeepCopy() *ManagedNodeTypeObjectMeta { if in == nil { return nil } - out := new(DevPodWorkspaceProvider) + out := new(ManagedNodeTypeObjectMeta) 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 *Member) DeepCopyInto(out *Member) { *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 Member. +func (in *Member) DeepCopy() *Member { if in == nil { return nil } - out := new(DevPodWorkspaceTemplate) + out := new(Member) 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 *Metrics) DeepCopyInto(out *Metrics) { *out = *in - in.Provider.DeepCopyInto(&out.Provider) - if in.SpaceTemplateRef != nil { - in, out := &in.SpaceTemplateRef, &out.SpaceTemplateRef - *out = new(TemplateRef) - **out = **in - } - if in.SpaceTemplate != nil { - in, out := &in.SpaceTemplate, &out.SpaceTemplate - *out = new(SpaceTemplateDefinition) - (*in).DeepCopyInto(*out) - } - if in.VirtualClusterTemplateRef != nil { - in, out := &in.VirtualClusterTemplateRef, &out.VirtualClusterTemplateRef - *out = new(TemplateRef) + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) **out = **in } - if in.VirtualClusterTemplate != nil { - in, out := &in.VirtualClusterTemplate, &out.VirtualClusterTemplate - *out = new(VirtualClusterTemplateDefinition) - (*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() - } - } - if in.InitEnv != nil { - in, out := &in.InitEnv, &out.InitEnv - *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) + 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 DevPodWorkspaceTemplateDefinition. -func (in *DevPodWorkspaceTemplateDefinition) DeepCopy() *DevPodWorkspaceTemplateDefinition { +// 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(DevPodWorkspaceTemplateDefinition) + 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 *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplateList) { +func (in *NamedNodeTypeSpec) DeepCopyInto(out *NamedNodeTypeSpec) { *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]) - } - } + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) + in.Metadata.DeepCopyInto(&out.Metadata) 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 NamedNodeTypeSpec. +func (in *NamedNodeTypeSpec) DeepCopy() *NamedNodeTypeSpec { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateList) + out := new(NamedNodeTypeSpec) 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 +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NamespacePattern) DeepCopyInto(out *NamespacePattern) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacePattern. +func (in *NamespacePattern) DeepCopy() *NamespacePattern { + if in == nil { + return nil } - return nil + 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 *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplateSpec) { +func (in *NamespacedRef) DeepCopyInto(out *NamespacedRef) { *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 NamespacedRef. +func (in *NamespacedRef) DeepCopy() *NamespacedRef { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateSpec) + 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 *DevPodWorkspaceTemplateStatus) DeepCopyInto(out *DevPodWorkspaceTemplateStatus) { +func (in *NetworkPeer) DeepCopyInto(out *NetworkPeer) { *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 DevPodWorkspaceTemplateStatus. -func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { +// 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(DevPodWorkspaceTemplateStatus) + 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 *DevPodWorkspaceTemplateVersion) DeepCopyInto(out *DevPodWorkspaceTemplateVersion) { +func (in *NetworkPeerList) DeepCopyInto(out *NetworkPeerList) { *out = *in - in.Template.DeepCopyInto(&out.Template) - if in.Parameters != nil { - in, out := &in.Parameters, &out.Parameters - *out = make([]AppParameter, len(*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]) } @@ -2013,221 +1922,279 @@ func (in *DevPodWorkspaceTemplateVersion) DeepCopyInto(out *DevPodWorkspaceTempl return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateVersion. -func (in *DevPodWorkspaceTemplateVersion) DeepCopy() *DevPodWorkspaceTemplateVersion { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPeerList. +func (in *NetworkPeerList) DeepCopy() *NetworkPeerList { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateVersion) + 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 *DockerCredentialForwarding) DeepCopyInto(out *DockerCredentialForwarding) { +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 DockerCredentialForwarding. -func (in *DockerCredentialForwarding) DeepCopy() *DockerCredentialForwarding { +// 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(DockerCredentialForwarding) + 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 *EntityInfo) DeepCopyInto(out *EntityInfo) { +func (in *NetworkPeerStatus) DeepCopyInto(out *NetworkPeerStatus) { *out = *in 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 NetworkPeerStatus. +func (in *NetworkPeerStatus) DeepCopy() *NetworkPeerStatus { if in == nil { return nil } - out := new(EntityInfo) + 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 *EnvironmentRef) DeepCopyInto(out *EnvironmentRef) { +func (in *NodeClaim) DeepCopyInto(out *NodeClaim) { *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 EnvironmentRef. -func (in *EnvironmentRef) DeepCopy() *EnvironmentRef { +// 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(EnvironmentRef) + out := new(NodeClaim) 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 +// 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 } - out := new(GitCredentialForwarding) - 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 *GitEnvironmentTemplate) DeepCopyInto(out *GitEnvironmentTemplate) { +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([]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 GitEnvironmentTemplate. -func (in *GitEnvironmentTemplate) DeepCopy() *GitEnvironmentTemplate { +// 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(GitEnvironmentTemplate) + out := new(NodeClaimList) 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.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 { - if in == nil { - return nil +// 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 } - out := new(GitProjectSpec) - 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 *GroupResources) DeepCopyInto(out *GroupResources) { +func (in *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { *out = *in - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) + 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.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames - *out = make([]string, len(*in)) - copy(*out, *in) + 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]) + } + } + 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 + } } 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 NodeClaimSpec. +func (in *NodeClaimSpec) DeepCopy() *NodeClaimSpec { if in == nil { return nil } - out := new(GroupResources) + 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 *HelmChart) DeepCopyInto(out *HelmChart) { +func (in *NodeClaimStatus) DeepCopyInto(out *NodeClaimStatus) { *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) + 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]) + } } - 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 NodeClaimStatus. +func (in *NodeClaimStatus) DeepCopy() *NodeClaimStatus { if in == nil { return nil } - out := new(HelmChart) + 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 *HelmChartRepository) DeepCopyInto(out *HelmChartRepository) { +func (in *NodeEnvironment) DeepCopyInto(out *NodeEnvironment) { *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 HelmChartRepository. -func (in *HelmChartRepository) DeepCopy() *HelmChartRepository { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeEnvironment. +func (in *NodeEnvironment) DeepCopy() *NodeEnvironment { if in == nil { return nil } - out := new(HelmChartRepository) + out := new(NodeEnvironment) 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 +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeEnvironment) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - out := new(HelmConfiguration) - 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 *HelmTask) DeepCopyInto(out *HelmTask) { +func (in *NodeEnvironmentList) DeepCopyInto(out *NodeEnvironmentList) { *out = *in - in.Release.DeepCopyInto(&out.Release) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]NodeEnvironment, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } 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 NodeEnvironmentList. +func (in *NodeEnvironmentList) DeepCopy() *NodeEnvironmentList { if in == nil { return nil } - out := new(HelmTask) + out := new(NodeEnvironmentList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeEnvironmentList) 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 *NodeEnvironmentSpec) DeepCopyInto(out *NodeEnvironmentSpec) { *out = *in - in.Config.DeepCopyInto(&out.Config) - if in.Labels != nil { - in, out := &in.Labels, &out.Labels + 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 @@ -2236,258 +2203,327 @@ func (in *HelmTaskRelease) DeepCopyInto(out *HelmTaskRelease) { 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 NodeEnvironmentSpec. +func (in *NodeEnvironmentSpec) DeepCopy() *NodeEnvironmentSpec { if in == nil { return nil } - out := new(HelmTaskRelease) + out := new(NodeEnvironmentSpec) 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) { +func (in *NodeEnvironmentStatus) DeepCopyInto(out *NodeEnvironmentStatus) { *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 + 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 ImportVirtualClustersSpec. -func (in *ImportVirtualClustersSpec) DeepCopy() *ImportVirtualClustersSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeEnvironmentStatus. +func (in *NodeEnvironmentStatus) DeepCopy() *NodeEnvironmentStatus { if in == nil { return nil } - out := new(ImportVirtualClustersSpec) + out := new(NodeEnvironmentStatus) 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 *NodeProvider) DeepCopyInto(out *NodeProvider) { *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]) - } - } + 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 InstanceAccess. -func (in *InstanceAccess) DeepCopy() *InstanceAccess { +// 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(InstanceAccess) + 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 *InstanceAccessRule) DeepCopyInto(out *InstanceAccessRule) { +func (in *NodeProviderBCM) DeepCopyInto(out *NodeProviderBCM) { *out = *in - if in.Users != nil { - in, out := &in.Users, &out.Users - *out = make([]string, len(*in)) - copy(*out, *in) + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(NamespacedRef) + **out = **in } - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]string, len(*in)) - copy(*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 InstanceAccessRule. -func (in *InstanceAccessRule) DeepCopy() *InstanceAccessRule { +// 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(InstanceAccessRule) + 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 *InstanceDeployedAppStatus) DeepCopyInto(out *InstanceDeployedAppStatus) { +func (in *NodeProviderClusterAPI) DeepCopyInto(out *NodeProviderClusterAPI) { *out = *in + in.ClusterAPIObjects.DeepCopyInto(&out.ClusterAPIObjects) + if in.ClusterRef != nil { + in, out := &in.ClusterRef, &out.ClusterRef + *out = new(NodeProviderClusterRef) + **out = **in + } + if in.NodeTypes != nil { + in, out := &in.NodeTypes, &out.NodeTypes + *out = make([]ClusterAPINodeTypeSpec, 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 NodeProviderClusterAPI. +func (in *NodeProviderClusterAPI) DeepCopy() *NodeProviderClusterAPI { if in == nil { return nil } - out := new(InstanceDeployedAppStatus) + out := new(NodeProviderClusterAPI) 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 *NodeProviderClusterRef) DeepCopyInto(out *NodeProviderClusterRef) { *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 NodeProviderClusterRef. +func (in *NodeProviderClusterRef) DeepCopy() *NodeProviderClusterRef { if in == nil { return nil } - out := new(KindSecretRef) + out := new(NodeProviderClusterRef) 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 *NodeProviderKubeVirt) DeepCopyInto(out *NodeProviderKubeVirt) { *out = *in - if in.Users != nil { - in, out := &in.Users, &out.Users - *out = make([]UserOrTeam, len(*in)) - copy(*out, *in) + if in.ClusterRef != nil { + in, out := &in.ClusterRef, &out.ClusterRef + *out = new(NodeProviderClusterRef) + **out = **in } - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]string, len(*in)) - copy(*out, *in) + if in.VirtualMachineTemplate != nil { + in, out := &in.VirtualMachineTemplate, &out.VirtualMachineTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) } - if in.ClusterRoles != nil { - in, out := &in.ClusterRoles, &out.ClusterRoles - *out = make([]ClusterRoleRef, len(*in)) - copy(*out, *in) + if in.NodeTypes != nil { + in, out := &in.NodeTypes, &out.NodeTypes + *out = make([]KubeVirtNodeTypeSpec, 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 NodeProviderKubeVirt. +func (in *NodeProviderKubeVirt) DeepCopy() *NodeProviderKubeVirt { if in == nil { return nil } - out := new(LocalClusterAccessSpec) + 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 *LocalClusterAccessTemplate) DeepCopyInto(out *LocalClusterAccessTemplate) { +func (in *NodeProviderList) DeepCopyInto(out *NodeProviderList) { *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.LocalClusterAccessSpec.DeepCopyInto(&out.LocalClusterAccessSpec) + 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 LocalClusterAccessTemplate. -func (in *LocalClusterAccessTemplate) DeepCopy() *LocalClusterAccessTemplate { +// 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(LocalClusterAccessTemplate) + out := new(NodeProviderList) 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) { - *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 LocalClusterRoleTemplate. -func (in *LocalClusterRoleTemplate) DeepCopy() *LocalClusterRoleTemplate { - if in == nil { - return nil +// 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 } - out := new(LocalClusterRoleTemplate) - 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 *LocalClusterRoleTemplateSpec) DeepCopyInto(out *LocalClusterRoleTemplateSpec) { +func (in *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { *out = *in - in.ClusterRoleTemplate.DeepCopyInto(&out.ClusterRoleTemplate) + 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.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) + } + if in.Terraform != nil { + in, out := &in.Terraform, &out.Terraform + *out = new(NodeProviderTerraform) + (*in).DeepCopyInto(*out) + } + if in.ClusterAPI != nil { + in, out := &in.ClusterAPI, &out.ClusterAPI + *out = new(NodeProviderClusterAPI) + (*in).DeepCopyInto(*out) + } 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 NodeProviderSpec. +func (in *NodeProviderSpec) DeepCopy() *NodeProviderSpec { if in == nil { return nil } - out := new(LocalClusterRoleTemplateSpec) + 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 *Member) DeepCopyInto(out *Member) { +func (in *NodeProviderStatus) DeepCopyInto(out *NodeProviderStatus) { *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 Member. -func (in *Member) DeepCopy() *Member { +// 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(Member) + 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 *NamespacePattern) DeepCopyInto(out *NamespacePattern) { +func (in *NodeProviderTerraform) DeepCopyInto(out *NodeProviderTerraform) { *out = *in + if in.NodeTemplate != nil { + in, out := &in.NodeTemplate, &out.NodeTemplate + *out = new(TerraformTemplate) + (*in).DeepCopyInto(*out) + } + if in.NodeEnvironmentTemplate != nil { + in, out := &in.NodeEnvironmentTemplate, &out.NodeEnvironmentTemplate + *out = new(TerraformNodeEnvironmentTemplate) + (*in).DeepCopyInto(*out) + } + if in.NodeTypes != nil { + in, out := &in.NodeTypes, &out.NodeTypes + *out = make([]TerraformNodeTypeSpec, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } 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 NodeProviderTerraform. +func (in *NodeProviderTerraform) DeepCopy() *NodeProviderTerraform { if in == nil { return nil } - out := new(NamespacePattern) + out := new(NodeProviderTerraform) 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 *NodeType) DeepCopyInto(out *NodeType) { *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 } -// 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 NodeType. +func (in *NodeType) DeepCopy() *NodeType { if in == nil { return nil } - out := new(NetworkPeer) + out := new(NodeType) 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 *NodeType) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2495,13 +2531,29 @@ 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 *NodeTypeCapacity) DeepCopyInto(out *NodeTypeCapacity) { + *out = *in + return +} + +// 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(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 *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([]NetworkPeer, len(*in)) + *out = make([]NodeType, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2509,18 +2561,18 @@ func (in *NetworkPeerList) DeepCopyInto(out *NetworkPeerList) { 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 NodeTypeList. +func (in *NodeTypeList) DeepCopy() *NodeTypeList { if in == nil { return nil } - out := new(NetworkPeerList) + out := new(NodeTypeList) 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 { +func (in *NodeTypeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2528,48 +2580,90 @@ func (in *NetworkPeerList) DeepCopyObject() runtime.Object { } // 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 *NodeTypeOverhead) DeepCopyInto(out *NodeTypeOverhead) { *out = *in - if in.Addresses != nil { - in, out := &in.Addresses, &out.Addresses - *out = make([]string, len(*in)) - copy(*out, *in) + 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() + } } - if in.AllowedIPs != nil { - in, out := &in.AllowedIPs, &out.AllowedIPs - *out = make([]string, len(*in)) - copy(*out, *in) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeOverhead. +func (in *NodeTypeOverhead) DeepCopy() *NodeTypeOverhead { + if in == nil { + return nil } - if in.Endpoints != nil { - in, out := &in.Endpoints, &out.Endpoints - *out = make([]string, len(*in)) - copy(*out, *in) + out := new(NodeTypeOverhead) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { + *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.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.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 + out.Capacity = in.Capacity + 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]) + } + } + 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 +2694,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 @@ -2708,6 +2828,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)) @@ -2740,11 +2861,6 @@ func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec) { *out = new(RancherIntegrationSpec) (*in).DeepCopyInto(*out) } - if in.DevPod != nil { - in, out := &in.DevPod, &out.DevPod - *out = new(DevPodProjectSpec) - (*in).DeepCopyInto(*out) - } return } @@ -2862,533 +2978,223 @@ func (in *QuotaStatusProjectCluster) DeepCopyInto(out *QuotaStatusProjectCluster return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaStatusProjectCluster. -func (in *QuotaStatusProjectCluster) DeepCopy() *QuotaStatusProjectCluster { - if in == nil { - return nil - } - out := new(QuotaStatusProjectCluster) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *QuotaStatusUser) DeepCopyInto(out *QuotaStatusUser) { - *out = *in - if in.Limit != nil { - in, out := &in.Limit, &out.Limit - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - in.Used.DeepCopyInto(&out.Used) - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make(map[string]QuotaStatusUserUsed, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaStatusUser. -func (in *QuotaStatusUser) DeepCopy() *QuotaStatusUser { - if in == nil { - return nil - } - out := new(QuotaStatusUser) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *QuotaStatusUserUsed) DeepCopyInto(out *QuotaStatusUserUsed) { - *out = *in - if in.Users != nil { - in, out := &in.Users, &out.Users - *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 - } - } - 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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaStatusProjectCluster. +func (in *QuotaStatusProjectCluster) DeepCopy() *QuotaStatusProjectCluster { if in == nil { return nil } - out := new(RunnerPersistentVolumeClaimTemplateSpec) + out := new(QuotaStatusProjectCluster) 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) { +func (in *QuotaStatusUser) DeepCopyInto(out *QuotaStatusUser) { *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.Spec.DeepCopyInto(&out.Spec) + if in.Limit != nil { + in, out := &in.Limit, &out.Limit + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + in.Used.DeepCopyInto(&out.Used) + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make(map[string]QuotaStatusUserUsed, len(*in)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() + } + } 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 QuotaStatusUser. +func (in *QuotaStatusUser) DeepCopy() *QuotaStatusUser { if in == nil { return nil } - out := new(RunnerPodTemplate) + out := new(QuotaStatusUser) 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 *QuotaStatusUserUsed) DeepCopyInto(out *QuotaStatusUserUsed) { *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 - *out = make(map[string]string, len(*in)) + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = make(map[string]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]) + 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 } } - 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.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 RunnerPodTemplateSpec. -func (in *RunnerPodTemplateSpec) DeepCopy() *RunnerPodTemplateSpec { +// 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(RunnerPodTemplateSpec) + 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 *RunnerRef) DeepCopyInto(out *RunnerRef) { +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 RunnerRef. -func (in *RunnerRef) DeepCopy() *RunnerRef { +// 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(RunnerRef) + 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 *RunnerServiceTemplate) DeepCopyInto(out *RunnerServiceTemplate) { +func (in *RancherIntegrationSpec) DeepCopyInto(out *RancherIntegrationSpec) { *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - out.Spec = in.Spec + 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 RunnerServiceTemplate. -func (in *RunnerServiceTemplate) DeepCopy() *RunnerServiceTemplate { +// 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(RunnerServiceTemplate) + 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 *RunnerServiceTemplateSpec) DeepCopyInto(out *RunnerServiceTemplateSpec) { +func (in *RancherProjectRef) DeepCopyInto(out *RancherProjectRef) { *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 RancherProjectRef. +func (in *RancherProjectRef) DeepCopy() *RancherProjectRef { if in == nil { return nil } - out := new(RunnerServiceTemplateSpec) + 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 *RunnerSpec) DeepCopyInto(out *RunnerSpec) { +func (in *RequirePreset) DeepCopyInto(out *RequirePreset) { *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 RequirePreset. +func (in *RequirePreset) DeepCopy() *RequirePreset { if in == nil { return nil } - out := new(RunnerSpec) + 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 *RunnerStatus) DeepCopyInto(out *RunnerStatus) { +func (in *RequireTemplate) DeepCopyInto(out *RequireTemplate) { *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 RequireTemplate. +func (in *RequireTemplate) DeepCopy() *RequireTemplate { if in == nil { return nil } - out := new(RunnerStatus) + 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 *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 +3678,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 @@ -4335,6 +4162,102 @@ func (in *TemplateRef) DeepCopy() *TemplateRef { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TerraformNodeEnvironmentTemplate) DeepCopyInto(out *TerraformNodeEnvironmentTemplate) { + *out = *in + in.TerraformTemplate.DeepCopyInto(&out.TerraformTemplate) + if in.Infrastructure != nil { + in, out := &in.Infrastructure, &out.Infrastructure + *out = new(TerraformTemplate) + (*in).DeepCopyInto(*out) + } + if in.Kubernetes != nil { + in, out := &in.Kubernetes, &out.Kubernetes + *out = new(TerraformTemplate) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TerraformNodeEnvironmentTemplate. +func (in *TerraformNodeEnvironmentTemplate) DeepCopy() *TerraformNodeEnvironmentTemplate { + if in == nil { + return nil + } + out := new(TerraformNodeEnvironmentTemplate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TerraformNodeTypeSpec) DeepCopyInto(out *TerraformNodeTypeSpec) { + *out = *in + in.NamedNodeTypeSpec.DeepCopyInto(&out.NamedNodeTypeSpec) + if in.NodeTemplate != nil { + in, out := &in.NodeTemplate, &out.NodeTemplate + *out = new(TerraformTemplate) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TerraformNodeTypeSpec. +func (in *TerraformNodeTypeSpec) DeepCopy() *TerraformNodeTypeSpec { + if in == nil { + return nil + } + out := new(TerraformNodeTypeSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TerraformTemplate) DeepCopyInto(out *TerraformTemplate) { + *out = *in + if in.Git != nil { + in, out := &in.Git, &out.Git + *out = new(TerraformTemplateSourceGit) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TerraformTemplate. +func (in *TerraformTemplate) DeepCopy() *TerraformTemplate { + if in == nil { + return nil + } + out := new(TerraformTemplate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TerraformTemplateSourceGit) DeepCopyInto(out *TerraformTemplateSourceGit) { + *out = *in + if in.Credentials != nil { + in, out := &in.Credentials, &out.Credentials + *out = new(SecretRef) + **out = **in + } + if in.ExtraEnv != nil { + in, out := &in.ExtraEnv, &out.ExtraEnv + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TerraformTemplateSourceGit. +func (in *TerraformTemplateSourceGit) DeepCopy() *TerraformTemplateSourceGit { + if in == nil { + return nil + } + out := new(TerraformTemplateSourceGit) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *User) DeepCopyInto(out *User) { *out = *in @@ -4489,6 +4412,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 } @@ -5131,19 +5061,3 @@ func (in *VirtualClusterTemplateVersion) DeepCopy() *VirtualClusterTemplateVersi 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 - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceStatusResult. -func (in *WorkspaceStatusResult) DeepCopy() *WorkspaceStatusResult { - if in == nil { - return nil - } - out := new(WorkspaceStatusResult) - 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..88694caa 100644 --- a/pkg/apis/storage/v1/zz_generated.defaults.go +++ b/pkg/apis/storage/v1/zz_generated.defaults.go @@ -6,7 +6,6 @@ package v1 import ( - v1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -14,99 +13,5 @@ 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)) }) 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] - 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.ClusterRef.PodTemplate.Spec.InitContainers { - a := &in.Spec.ClusterRef.PodTemplate.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 - } - } - } - } - } - } -} - -func SetObjectDefaults_RunnerList(in *RunnerList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_Runner(a) - } -} diff --git a/pkg/apis/ui/v1/ui_types.go b/pkg/apis/ui/v1/ui_types.go index b5cd94b1..8d50edf8 100644 --- a/pkg/apis/ui/v1/ui_types.go +++ b/pkg/apis/ui/v1/ui_types.go @@ -34,21 +34,38 @@ 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"` + + // AvailableVClusterVersions lists all virtual cluster versions available to the platform instance + // +optional + AvailableVClusterVersions []VClusterVersion `json:"availableVClusterVersions,omitempty"` + + // LoftHosted indicates whether the vCluster Platform instance + // is hosted and operated by Loft Labs Inc. + LoftHosted bool `json:"loftHosted,omitempty"` } type UISettingsConfig struct { // LoftVersion holds the current loft version // +optional LoftVersion string `json:"loftVersion,omitempty"` - // LogoURL is url pointing to the logo to use in the Loft UI. This path must be accessible for clients accessing - // the Loft UI! + // LogoURL is url pointing to the logo to use in the vCluster Platform UI. This path must be accessible for clients accessing + // the vCluster Platform UI! // +optional LogoURL string `json:"logoURL,omitempty"` + // FaviconURL is url pointing to the favicon to use in the vCluster Platform UI. This path must be accessible for clients accessing + // the vCluster Platform UI! + // +optional + FaviconURL string `json:"faviconURL,omitempty"` + // SmallLogoURL is url pointing to the small logo to use in the vCluster Platform UI. This path must be accessible for clients accessing + // the vCluster Platform 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"` @@ -73,6 +90,24 @@ type UISettingsConfig struct { // NavBarButtons holds extra nav bar buttons // +optional NavBarButtons []NavBarButton `json:"navBarButtons,omitempty"` + // External URLs that can be called from the UI + // +optional + ExternalURLs ExternalURLs `json:"externalURLs,omitempty"` +} + +type ExternalURLs struct { + // Block determines if requests to external URLs from the UI should be blocked + // +optional + Block bool `json:"block,omitempty"` + + // Allow specifies which external URLs can be called. In addition to the predefined modules, + // - "vcluster" (license page, feature descriptions, ...) + // - "gtm" (google tag manager) + // - "featurebase" (changelog) + // any URL can be added to this list. This will allow the UI to make any request to this URL. + // This is only active when Block is true. + // +optional + Allow []string `json:"allow,omitempty"` } type NavBarButton struct { @@ -92,4 +127,29 @@ type NavBarButton struct { } // UISettingsStatus holds the status -type UISettingsStatus struct{} +type UISettingsStatus struct { + // Csps holds Content Security Policies + // +optional + Csps Csps `json:"csps,omitempty"` + + // CspConfig holds the raw csp config from the user + // +optional + CspConfig string `json:"cspConfig,omitempty"` +} + +type Csps map[string]CspPolicy + +type CspPolicy struct { + Script string + Connect string + Frame string + Font string +} + +type VClusterVersion struct { + // TagName is the full tag name + Tag string `json:"tagName,omitempty"` + + // PreRelease determines if the version is marked as prerelease + PreRelease bool `json:"prerelease,omitempty"` +} diff --git a/pkg/apis/ui/v1/zz_generated.deepcopy.go b/pkg/apis/ui/v1/zz_generated.deepcopy.go index 0674acd7..c7cc1bff 100644 --- a/pkg/apis/ui/v1/zz_generated.deepcopy.go +++ b/pkg/apis/ui/v1/zz_generated.deepcopy.go @@ -9,6 +9,65 @@ import ( runtime "k8s.io/apimachinery/pkg/runtime" ) +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CspPolicy) DeepCopyInto(out *CspPolicy) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CspPolicy. +func (in *CspPolicy) DeepCopy() *CspPolicy { + if in == nil { + return nil + } + out := new(CspPolicy) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in Csps) DeepCopyInto(out *Csps) { + { + in := &in + *out = make(Csps, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + return + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Csps. +func (in Csps) DeepCopy() Csps { + if in == nil { + return nil + } + out := new(Csps) + in.DeepCopyInto(out) + return *out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ExternalURLs) DeepCopyInto(out *ExternalURLs) { + *out = *in + if in.Allow != nil { + in, out := &in.Allow, &out.Allow + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalURLs. +func (in *ExternalURLs) DeepCopy() *ExternalURLs { + if in == nil { + return nil + } + out := new(ExternalURLs) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NavBarButton) DeepCopyInto(out *NavBarButton) { *out = *in @@ -31,7 +90,7 @@ func (in *UISettings) DeepCopyInto(out *UISettings) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) return } @@ -71,6 +130,7 @@ func (in *UISettingsConfig) DeepCopyInto(out *UISettingsConfig) { *out = make([]NavBarButton, len(*in)) copy(*out, *in) } + in.ExternalURLs.DeepCopyInto(&out.ExternalURLs) return } @@ -88,6 +148,11 @@ func (in *UISettingsConfig) DeepCopy() *UISettingsConfig { func (in *UISettingsSpec) DeepCopyInto(out *UISettingsSpec) { *out = *in in.UISettingsConfig.DeepCopyInto(&out.UISettingsConfig) + if in.AvailableVClusterVersions != nil { + in, out := &in.AvailableVClusterVersions, &out.AvailableVClusterVersions + *out = make([]VClusterVersion, len(*in)) + copy(*out, *in) + } return } @@ -104,6 +169,13 @@ func (in *UISettingsSpec) DeepCopy() *UISettingsSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UISettingsStatus) DeepCopyInto(out *UISettingsStatus) { *out = *in + if in.Csps != nil { + in, out := &in.Csps, &out.Csps + *out = make(Csps, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } return } @@ -116,3 +188,19 @@ func (in *UISettingsStatus) DeepCopy() *UISettingsStatus { in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VClusterVersion) DeepCopyInto(out *VClusterVersion) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VClusterVersion. +func (in *VClusterVersion) DeepCopy() *VClusterVersion { + if in == nil { + return nil + } + out := new(VClusterVersion) + in.DeepCopyInto(out) + return out +} 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..033bfa63 100644 --- a/pkg/apis/zz_generated.api.register.go +++ b/pkg/apis/zz_generated.api.register.go @@ -48,22 +48,21 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "ClusterRoleTemplate", "Config", "ConvertVirtualClusterConfig", - "DevPodEnvironmentTemplate", - "DevPodWorkspaceTemplate", + "DatabaseConnector", "DirectClusterEndpointToken", "Event", "Feature", "IngressAuthToken", "License", - "LicenseToken", "LoftUpgrade", + "NodeProvider", + "NodeType", "OIDCClient", "OwnedAccessKey", "Project", "RedirectToken", "RegisterVirtualCluster", "ResetAccessKey", - "Runner", "Self", "SelfSubjectAccessReview", "SpaceTemplate", @@ -71,7 +70,9 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "Task", "Team", "TranslateVClusterResourceName", + "UsageDownload", "User", + "VirtualClusterSchema", "VirtualClusterTemplate", ) } diff --git a/pkg/auth/types.go b/pkg/auth/types.go index e4947360..ef20c1cb 100644 --- a/pkg/auth/types.go +++ b/pkg/auth/types.go @@ -112,8 +112,7 @@ type Version struct { Major string `json:"major,omitempty"` Minor string `json:"minor,omitempty"` - KubeVersion string `json:"kubeVersion,omitempty"` - DevPodVersion string `json:"devPodVersion,omitempty"` + KubeVersion string `json:"kubeVersion,omitempty"` NewerVersion string `json:"newerVersion,omitempty"` ShouldUpgrade bool `json:"shouldUpgrade,omitempty"` 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 deleted file mode 100644 index 881e4fb6..00000000 --- a/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go +++ /dev/null @@ -1,51 +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" -) - -// DevPodEnvironmentTemplatesGetter has a method to return a DevPodEnvironmentTemplateInterface. -// A group's client should implement this interface. -type DevPodEnvironmentTemplatesGetter interface { - DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInterface -} - -// DevPodEnvironmentTemplateInterface has methods to work with DevPodEnvironmentTemplate resources. -type DevPodEnvironmentTemplateInterface interface { - Create(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (*v1.DevPodEnvironmentTemplate, error) - Update(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (*v1.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) - 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) - DevPodEnvironmentTemplateExpansion -} - -// devPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type devPodEnvironmentTemplates struct { - *gentype.ClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] -} - -// newDevPodEnvironmentTemplates returns a DevPodEnvironmentTemplates -func newDevPodEnvironmentTemplates(c *ManagementV1Client) *devPodEnvironmentTemplates { - return &devPodEnvironmentTemplates{ - gentype.NewClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList]( - "devpodenvironmenttemplates", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *v1.DevPodEnvironmentTemplate { return &v1.DevPodEnvironmentTemplate{} }, - func() *v1.DevPodEnvironmentTemplateList { return &v1.DevPodEnvironmentTemplateList{} }), - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go deleted file mode 100644 index 4a1d6d9d..00000000 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,83 +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" -) - -// DevPodWorkspaceInstancesGetter has a method to return a DevPodWorkspaceInstanceInterface. -// A group's client should implement this interface. -type DevPodWorkspaceInstancesGetter interface { - DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceInterface -} - -// DevPodWorkspaceInstanceInterface has methods to work with DevPodWorkspaceInstance resources. -type DevPodWorkspaceInstanceInterface interface { - Create(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (*v1.DevPodWorkspaceInstance, error) - Update(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (*v1.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) - 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) - - DevPodWorkspaceInstanceExpansion -} - -// devPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type devPodWorkspaceInstances struct { - *gentype.ClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] -} - -// newDevPodWorkspaceInstances returns a DevPodWorkspaceInstances -func newDevPodWorkspaceInstances(c *ManagementV1Client, namespace string) *devPodWorkspaceInstances { - return &devPodWorkspaceInstances{ - gentype.NewClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList]( - "devpodworkspaceinstances", - c.RESTClient(), - scheme.ParameterCodec, - namespace, - func() *v1.DevPodWorkspaceInstance { return &v1.DevPodWorkspaceInstance{} }, - func() *v1.DevPodWorkspaceInstanceList { return &v1.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{} - err = c.GetClient().Get(). - Namespace(c.GetNamespace()). - Resource("devpodworkspaceinstances"). - Name(devPodWorkspaceInstanceName). - SubResource("state"). - 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{} - err = c.GetClient().Post(). - Namespace(c.GetNamespace()). - Resource("devpodworkspaceinstances"). - Name(devPodWorkspaceInstanceName). - SubResource("state"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(devPodWorkspaceInstanceState). - Do(ctx). - Into(result) - return -} diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go deleted file mode 100644 index 4f299022..00000000 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.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/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" -) - -// DevPodWorkspaceTemplatesGetter has a method to return a DevPodWorkspaceTemplateInterface. -// A group's client should implement this interface. -type DevPodWorkspaceTemplatesGetter interface { - DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface -} - -// DevPodWorkspaceTemplateInterface has methods to work with DevPodWorkspaceTemplate resources. -type DevPodWorkspaceTemplateInterface interface { - Create(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (*v1.DevPodWorkspaceTemplate, error) - Update(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*v1.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) - 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) - 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) - DevPodWorkspaceTemplateExpansion -} - -// devPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type devPodWorkspaceTemplates struct { - *gentype.ClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] -} - -// newDevPodWorkspaceTemplates returns a DevPodWorkspaceTemplates -func newDevPodWorkspaceTemplates(c *ManagementV1Client) *devPodWorkspaceTemplates { - return &devPodWorkspaceTemplates{ - gentype.NewClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList]( - "devpodworkspacetemplates", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *v1.DevPodWorkspaceTemplate { return &v1.DevPodWorkspaceTemplate{} }, - func() *v1.DevPodWorkspaceTemplateList { return &v1.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 deleted file mode 100644 index 6514ba85..00000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go +++ /dev/null @@ -1,110 +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" -) - -// FakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type FakeDevPodEnvironmentTemplates struct { - 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 - } - 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 deleted file mode 100644 index 759bff6e..00000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go +++ /dev/null @@ -1,142 +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" -) - -// FakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type FakeDevPodWorkspaceInstances struct { - 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) - } - } - 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 - } - return obj.(*v1.DevPodWorkspaceInstance), 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{} - obj, err := c.Fake. - Invokes(testing.NewGetSubresourceActionWithOptions(devpodworkspaceinstancesResource, c.ns, "state", devPodWorkspaceInstanceName, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstanceState), 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{} - obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(devpodworkspaceinstancesResource, devPodWorkspaceInstanceName, "state", c.ns, devPodWorkspaceInstanceState, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstanceState), err -} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go deleted file mode 100644 index cb98add1..00000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.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/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" -) - -// FakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type FakeDevPodWorkspaceTemplates struct { - 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 - } - 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 deleted file mode 100644 index cfb13843..00000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_licensetoken.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/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" -) - -// FakeLicenseTokens implements LicenseTokenInterface -type FakeLicenseTokens struct { - 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 - } - 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..c6108e78 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,167 @@ 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) DevPodEnvironmentTemplates() v1.DevPodEnvironmentTemplateInterface { - return &FakeDevPodEnvironmentTemplates{c} -} - -func (c *FakeManagementV1) DevPodWorkspaceInstances(namespace string) v1.DevPodWorkspaceInstanceInterface { - return &FakeDevPodWorkspaceInstances{c, namespace} -} - -func (c *FakeManagementV1) DevPodWorkspaceTemplates() v1.DevPodWorkspaceTemplateInterface { - return &FakeDevPodWorkspaceTemplates{c} +func (c *FakeManagementV1) DatabaseConnectors() v1.DatabaseConnectorInterface { + return newFakeDatabaseConnectors(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} +func (c *FakeManagementV1) LoftUpgrades() v1.LoftUpgradeInterface { + return newFakeLoftUpgrades(c) } -func (c *FakeManagementV1) LoftUpgrades() v1.LoftUpgradeInterface { - return &FakeLoftUpgrades{c} +func (c *FakeManagementV1) NodeClaims(namespace string) v1.NodeClaimInterface { + return newFakeNodeClaims(c, namespace) +} + +func (c *FakeManagementV1) NodeEnvironments(namespace string) v1.NodeEnvironmentInterface { + return newFakeNodeEnvironments(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) UsageDownloads() v1.UsageDownloadInterface { + return newFakeUsageDownloads(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_nodeenvironment.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeenvironment.go new file mode 100644 index 00000000..9fbfe2b7 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeenvironment.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" +) + +// fakeNodeEnvironments implements NodeEnvironmentInterface +type fakeNodeEnvironments struct { + *gentype.FakeClientWithList[*v1.NodeEnvironment, *v1.NodeEnvironmentList] + Fake *FakeManagementV1 +} + +func newFakeNodeEnvironments(fake *FakeManagementV1, namespace string) managementv1.NodeEnvironmentInterface { + return &fakeNodeEnvironments{ + gentype.NewFakeClientWithList[*v1.NodeEnvironment, *v1.NodeEnvironmentList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("nodeenvironments"), + v1.SchemeGroupVersion.WithKind("NodeEnvironment"), + func() *v1.NodeEnvironment { return &v1.NodeEnvironment{} }, + func() *v1.NodeEnvironmentList { return &v1.NodeEnvironmentList{} }, + func(dst, src *v1.NodeEnvironmentList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeEnvironmentList) []*v1.NodeEnvironment { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeEnvironmentList, items []*v1.NodeEnvironment) { + 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_usagedownload.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_usagedownload.go new file mode 100644 index 00000000..c2f0a1f6 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_usagedownload.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" +) + +// fakeUsageDownloads implements UsageDownloadInterface +type fakeUsageDownloads struct { + *gentype.FakeClientWithList[*v1.UsageDownload, *v1.UsageDownloadList] + Fake *FakeManagementV1 +} + +func newFakeUsageDownloads(fake *FakeManagementV1) managementv1.UsageDownloadInterface { + return &fakeUsageDownloads{ + gentype.NewFakeClientWithList[*v1.UsageDownload, *v1.UsageDownloadList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("usagedownloads"), + v1.SchemeGroupVersion.WithKind("UsageDownload"), + func() *v1.UsageDownload { return &v1.UsageDownload{} }, + func() *v1.UsageDownloadList { return &v1.UsageDownloadList{} }, + func(dst, src *v1.UsageDownloadList) { dst.ListMeta = src.ListMeta }, + func(list *v1.UsageDownloadList) []*v1.UsageDownload { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.UsageDownloadList, items []*v1.UsageDownload) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} 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..4f6c66e3 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,110 @@ 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 +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 } -// 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{} +// 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.NewListActionWithOptions(virtualclusterinstancesResource, virtualclusterinstancesKind, c.ns, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "kubeconfig", c.Namespace(), virtualClusterInstanceKubeConfig, 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)) - + return obj.(*v1.VirtualClusterInstanceKubeConfig), err } -// 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{} +// 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.NewCreateActionWithOptions(virtualclusterinstancesResource, c.ns, virtualClusterInstance, opts), emptyResult) + Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "accesskey", virtualClusterInstanceName, options), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.VirtualClusterInstance), err + return obj.(*v1.VirtualClusterAccessKey), 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{} +// 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.NewUpdateActionWithOptions(virtualclusterinstancesResource, c.ns, virtualClusterInstance, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "externaldatabase", c.Namespace(), virtualClusterExternalDatabase, 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 + return obj.(*v1.VirtualClusterExternalDatabase), 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{} +// GetNodeAccessKey takes the representation of a virtualClusterNodeAccessKey and creates it. Returns the server's representation of the virtualClusterNodeAccessKey, and an error, if there is any. +func (c *fakeVirtualClusterInstances) GetNodeAccessKey(ctx context.Context, virtualClusterInstanceName string, virtualClusterNodeAccessKey *v1.VirtualClusterNodeAccessKey, opts metav1.CreateOptions) (result *v1.VirtualClusterNodeAccessKey, err error) { + emptyResult := &v1.VirtualClusterNodeAccessKey{} obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(virtualclusterinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "nodeaccesskey", c.Namespace(), virtualClusterNodeAccessKey, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.VirtualClusterInstance), err + return obj.(*v1.VirtualClusterNodeAccessKey), 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{} +// GetStandaloneETCDPeers takes the representation of a virtualClusterStandalone and creates it. Returns the server's representation of the virtualClusterStandalone, and an error, if there is any. +func (c *fakeVirtualClusterInstances) GetStandaloneETCDPeers(ctx context.Context, virtualClusterInstanceName string, virtualClusterStandalone *v1.VirtualClusterStandalone, opts metav1.CreateOptions) (result *v1.VirtualClusterStandalone, err error) { + emptyResult := &v1.VirtualClusterStandalone{} obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(virtualclusterinstancesResource, virtualClusterInstanceName, "kubeconfig", c.ns, virtualClusterInstanceKubeConfig, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "standalone", c.Namespace(), virtualClusterStandalone, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.VirtualClusterInstanceKubeConfig), err + return obj.(*v1.VirtualClusterStandalone), 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{} +// GetShellPod takes the representation of a virtualClusterInstanceShell and creates it. Returns the server's representation of the virtualClusterInstanceShell, and an error, if there is any. +func (c *fakeVirtualClusterInstances) GetShellPod(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceShell *v1.VirtualClusterInstanceShell, opts metav1.CreateOptions) (result *v1.VirtualClusterInstanceShell, err error) { + emptyResult := &v1.VirtualClusterInstanceShell{} obj, err := c.Fake. - Invokes(testing.NewGetSubresourceActionWithOptions(virtualclusterinstancesResource, c.ns, "accesskey", virtualClusterInstanceName, options), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "shell", c.Namespace(), virtualClusterInstanceShell, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.VirtualClusterAccessKey), err + return obj.(*v1.VirtualClusterInstanceShell), 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..221748ec 100644 --- a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go @@ -20,11 +20,7 @@ type ConfigExpansion interface{} type ConvertVirtualClusterConfigExpansion interface{} -type DevPodEnvironmentTemplateExpansion interface{} - -type DevPodWorkspaceInstanceExpansion interface{} - -type DevPodWorkspaceTemplateExpansion interface{} +type DatabaseConnectorExpansion interface{} type DirectClusterEndpointTokenExpansion interface{} @@ -36,10 +32,16 @@ type IngressAuthTokenExpansion interface{} type LicenseExpansion interface{} -type LicenseTokenExpansion interface{} - type LoftUpgradeExpansion interface{} +type NodeClaimExpansion interface{} + +type NodeEnvironmentExpansion interface{} + +type NodeProviderExpansion interface{} + +type NodeTypeExpansion interface{} + type OIDCClientExpansion interface{} type OwnedAccessKeyExpansion interface{} @@ -54,8 +56,6 @@ type RegisterVirtualClusterExpansion interface{} type ResetAccessKeyExpansion interface{} -type RunnerExpansion interface{} - type SelfExpansion interface{} type SelfSubjectAccessReviewExpansion interface{} @@ -74,8 +74,12 @@ type TeamExpansion interface{} type TranslateVClusterResourceNameExpansion interface{} +type UsageDownloadExpansion interface{} + 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 deleted file mode 100644 index 1c5a5723..00000000 --- a/pkg/clientset/versioned/typed/management/v1/licensetoken.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/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" -) - -// LicenseTokensGetter has a method to return a LicenseTokenInterface. -// A group's client should implement this interface. -type LicenseTokensGetter interface { - LicenseTokens() LicenseTokenInterface -} - -// 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) - // 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) - 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) - 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) - LicenseTokenExpansion -} - -// licenseTokens implements LicenseTokenInterface -type licenseTokens struct { - *gentype.ClientWithList[*v1.LicenseToken, *v1.LicenseTokenList] -} - -// newLicenseTokens returns a LicenseTokens -func newLicenseTokens(c *ManagementV1Client) *licenseTokens { - return &licenseTokens{ - gentype.NewClientWithList[*v1.LicenseToken, *v1.LicenseTokenList]( - "licensetokens", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *v1.LicenseToken { return &v1.LicenseToken{} }, - func() *v1.LicenseTokenList { return &v1.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..b10bcb1c 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,16 +21,17 @@ type ManagementV1Interface interface { ClusterRoleTemplatesGetter ConfigsGetter ConvertVirtualClusterConfigsGetter - DevPodEnvironmentTemplatesGetter - DevPodWorkspaceInstancesGetter - DevPodWorkspaceTemplatesGetter + DatabaseConnectorsGetter DirectClusterEndpointTokensGetter EventsGetter FeaturesGetter IngressAuthTokensGetter LicensesGetter - LicenseTokensGetter LoftUpgradesGetter + NodeClaimsGetter + NodeEnvironmentsGetter + NodeProvidersGetter + NodeTypesGetter OIDCClientsGetter OwnedAccessKeysGetter ProjectsGetter @@ -38,7 +39,6 @@ type ManagementV1Interface interface { RedirectTokensGetter RegisterVirtualClustersGetter ResetAccessKeysGetter - RunnersGetter SelvesGetter SelfSubjectAccessReviewsGetter SharedSecretsGetter @@ -48,8 +48,10 @@ type ManagementV1Interface interface { TasksGetter TeamsGetter TranslateVClusterResourceNamesGetter + UsageDownloadsGetter UsersGetter VirtualClusterInstancesGetter + VirtualClusterSchemasGetter VirtualClusterTemplatesGetter } @@ -94,16 +96,8 @@ func (c *ManagementV1Client) ConvertVirtualClusterConfigs() ConvertVirtualCluste return newConvertVirtualClusterConfigs(c) } -func (c *ManagementV1Client) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInterface { - return newDevPodEnvironmentTemplates(c) -} - -func (c *ManagementV1Client) DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceInterface { - return newDevPodWorkspaceInstances(c, namespace) -} - -func (c *ManagementV1Client) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface { - return newDevPodWorkspaceTemplates(c) +func (c *ManagementV1Client) DatabaseConnectors() DatabaseConnectorInterface { + return newDatabaseConnectors(c) } func (c *ManagementV1Client) DirectClusterEndpointTokens() DirectClusterEndpointTokenInterface { @@ -126,14 +120,26 @@ func (c *ManagementV1Client) Licenses() LicenseInterface { return newLicenses(c) } -func (c *ManagementV1Client) LicenseTokens() LicenseTokenInterface { - return newLicenseTokens(c) -} - func (c *ManagementV1Client) LoftUpgrades() LoftUpgradeInterface { return newLoftUpgrades(c) } +func (c *ManagementV1Client) NodeClaims(namespace string) NodeClaimInterface { + return newNodeClaims(c, namespace) +} + +func (c *ManagementV1Client) NodeEnvironments(namespace string) NodeEnvironmentInterface { + return newNodeEnvironments(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 +168,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) } @@ -202,6 +204,10 @@ func (c *ManagementV1Client) TranslateVClusterResourceNames() TranslateVClusterR return newTranslateVClusterResourceNames(c) } +func (c *ManagementV1Client) UsageDownloads() UsageDownloadInterface { + return newUsageDownloads(c) +} + func (c *ManagementV1Client) Users() UserInterface { return newUsers(c) } @@ -210,6 +216,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 +229,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 +241,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 +264,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/nodeenvironment.go b/pkg/clientset/versioned/typed/management/v1/nodeenvironment.go new file mode 100644 index 00000000..f3057367 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/nodeenvironment.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" +) + +// NodeEnvironmentsGetter has a method to return a NodeEnvironmentInterface. +// A group's client should implement this interface. +type NodeEnvironmentsGetter interface { + NodeEnvironments(namespace string) NodeEnvironmentInterface +} + +// NodeEnvironmentInterface has methods to work with NodeEnvironment resources. +type NodeEnvironmentInterface interface { + Create(ctx context.Context, nodeEnvironment *managementv1.NodeEnvironment, opts metav1.CreateOptions) (*managementv1.NodeEnvironment, error) + Update(ctx context.Context, nodeEnvironment *managementv1.NodeEnvironment, opts metav1.UpdateOptions) (*managementv1.NodeEnvironment, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeEnvironment *managementv1.NodeEnvironment, opts metav1.UpdateOptions) (*managementv1.NodeEnvironment, 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.NodeEnvironment, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.NodeEnvironmentList, 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.NodeEnvironment, err error) + NodeEnvironmentExpansion +} + +// nodeEnvironments implements NodeEnvironmentInterface +type nodeEnvironments struct { + *gentype.ClientWithList[*managementv1.NodeEnvironment, *managementv1.NodeEnvironmentList] +} + +// newNodeEnvironments returns a NodeEnvironments +func newNodeEnvironments(c *ManagementV1Client, namespace string) *nodeEnvironments { + return &nodeEnvironments{ + gentype.NewClientWithList[*managementv1.NodeEnvironment, *managementv1.NodeEnvironmentList]( + "nodeenvironments", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *managementv1.NodeEnvironment { return &managementv1.NodeEnvironment{} }, + func() *managementv1.NodeEnvironmentList { return &managementv1.NodeEnvironmentList{} }, + ), + } +} 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/usagedownload.go b/pkg/clientset/versioned/typed/management/v1/usagedownload.go new file mode 100644 index 00000000..659d567c --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/usagedownload.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" +) + +// UsageDownloadsGetter has a method to return a UsageDownloadInterface. +// A group's client should implement this interface. +type UsageDownloadsGetter interface { + UsageDownloads() UsageDownloadInterface +} + +// UsageDownloadInterface has methods to work with UsageDownload resources. +type UsageDownloadInterface interface { + Create(ctx context.Context, usageDownload *managementv1.UsageDownload, opts metav1.CreateOptions) (*managementv1.UsageDownload, error) + Update(ctx context.Context, usageDownload *managementv1.UsageDownload, opts metav1.UpdateOptions) (*managementv1.UsageDownload, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, usageDownload *managementv1.UsageDownload, opts metav1.UpdateOptions) (*managementv1.UsageDownload, 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.UsageDownload, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.UsageDownloadList, 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.UsageDownload, err error) + UsageDownloadExpansion +} + +// usageDownloads implements UsageDownloadInterface +type usageDownloads struct { + *gentype.ClientWithList[*managementv1.UsageDownload, *managementv1.UsageDownloadList] +} + +// newUsageDownloads returns a UsageDownloads +func newUsageDownloads(c *ManagementV1Client) *usageDownloads { + return &usageDownloads{ + gentype.NewClientWithList[*managementv1.UsageDownload, *managementv1.UsageDownloadList]( + "usagedownloads", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *managementv1.UsageDownload { return &managementv1.UsageDownload{} }, + func() *managementv1.UsageDownloadList { return &managementv1.UsageDownloadList{} }, + ), + } +} 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..2ce929cf 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,46 @@ 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) + GetNodeAccessKey(ctx context.Context, virtualClusterInstanceName string, virtualClusterNodeAccessKey *managementv1.VirtualClusterNodeAccessKey, opts metav1.CreateOptions) (*managementv1.VirtualClusterNodeAccessKey, error) + GetStandaloneETCDPeers(ctx context.Context, virtualClusterInstanceName string, virtualClusterStandalone *managementv1.VirtualClusterStandalone, opts metav1.CreateOptions) (*managementv1.VirtualClusterStandalone, error) + GetShellPod(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceShell *managementv1.VirtualClusterInstanceShell, opts metav1.CreateOptions) (*managementv1.VirtualClusterInstanceShell, 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 +73,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 +86,63 @@ 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 +} + +// GetNodeAccessKey takes the representation of a virtualClusterNodeAccessKey and creates it. Returns the server's representation of the virtualClusterNodeAccessKey, and an error, if there is any. +func (c *virtualClusterInstances) GetNodeAccessKey(ctx context.Context, virtualClusterInstanceName string, virtualClusterNodeAccessKey *managementv1.VirtualClusterNodeAccessKey, opts metav1.CreateOptions) (result *managementv1.VirtualClusterNodeAccessKey, err error) { + result = &managementv1.VirtualClusterNodeAccessKey{} + err = c.GetClient().Post(). + Namespace(c.GetNamespace()). + Resource("virtualclusterinstances"). + Name(virtualClusterInstanceName). + SubResource("nodeaccesskey"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(virtualClusterNodeAccessKey). + Do(ctx). + Into(result) + return +} + +// GetStandaloneETCDPeers takes the representation of a virtualClusterStandalone and creates it. Returns the server's representation of the virtualClusterStandalone, and an error, if there is any. +func (c *virtualClusterInstances) GetStandaloneETCDPeers(ctx context.Context, virtualClusterInstanceName string, virtualClusterStandalone *managementv1.VirtualClusterStandalone, opts metav1.CreateOptions) (result *managementv1.VirtualClusterStandalone, err error) { + result = &managementv1.VirtualClusterStandalone{} + err = c.GetClient().Post(). + Namespace(c.GetNamespace()). + Resource("virtualclusterinstances"). + Name(virtualClusterInstanceName). + SubResource("standalone"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(virtualClusterStandalone). + Do(ctx). + Into(result) + return +} + +// GetShellPod takes the representation of a virtualClusterInstanceShell and creates it. Returns the server's representation of the virtualClusterInstanceShell, and an error, if there is any. +func (c *virtualClusterInstances) GetShellPod(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceShell *managementv1.VirtualClusterInstanceShell, opts metav1.CreateOptions) (result *managementv1.VirtualClusterInstanceShell, err error) { + result = &managementv1.VirtualClusterInstanceShell{} + err = c.GetClient().Post(). + Namespace(c.GetNamespace()). + Resource("virtualclusterinstances"). + Name(virtualClusterInstanceName). + SubResource("shell"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(virtualClusterInstanceShell). + 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 deleted file mode 100644 index 4b73b5d0..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go +++ /dev/null @@ -1,51 +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" -) - -// DevPodEnvironmentTemplatesGetter has a method to return a DevPodEnvironmentTemplateInterface. -// A group's client should implement this interface. -type DevPodEnvironmentTemplatesGetter interface { - DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInterface -} - -// DevPodEnvironmentTemplateInterface has methods to work with DevPodEnvironmentTemplate resources. -type DevPodEnvironmentTemplateInterface interface { - Create(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (*v1.DevPodEnvironmentTemplate, error) - Update(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (*v1.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) - 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) - DevPodEnvironmentTemplateExpansion -} - -// devPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type devPodEnvironmentTemplates struct { - *gentype.ClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] -} - -// newDevPodEnvironmentTemplates returns a DevPodEnvironmentTemplates -func newDevPodEnvironmentTemplates(c *StorageV1Client) *devPodEnvironmentTemplates { - return &devPodEnvironmentTemplates{ - gentype.NewClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList]( - "devpodenvironmenttemplates", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *v1.DevPodEnvironmentTemplate { return &v1.DevPodEnvironmentTemplate{} }, - func() *v1.DevPodEnvironmentTemplateList { return &v1.DevPodEnvironmentTemplateList{} }), - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go deleted file mode 100644 index 61aef3a4..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,51 +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" -) - -// DevPodWorkspaceInstancesGetter has a method to return a DevPodWorkspaceInstanceInterface. -// A group's client should implement this interface. -type DevPodWorkspaceInstancesGetter interface { - DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceInterface -} - -// DevPodWorkspaceInstanceInterface has methods to work with DevPodWorkspaceInstance resources. -type DevPodWorkspaceInstanceInterface interface { - Create(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (*v1.DevPodWorkspaceInstance, error) - Update(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (*v1.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) - 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) - DevPodWorkspaceInstanceExpansion -} - -// devPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type devPodWorkspaceInstances struct { - *gentype.ClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] -} - -// newDevPodWorkspaceInstances returns a DevPodWorkspaceInstances -func newDevPodWorkspaceInstances(c *StorageV1Client, namespace string) *devPodWorkspaceInstances { - return &devPodWorkspaceInstances{ - gentype.NewClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList]( - "devpodworkspaceinstances", - c.RESTClient(), - scheme.ParameterCodec, - namespace, - func() *v1.DevPodWorkspaceInstance { return &v1.DevPodWorkspaceInstance{} }, - func() *v1.DevPodWorkspaceInstanceList { return &v1.DevPodWorkspaceInstanceList{} }), - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go deleted file mode 100644 index 2cc63af1..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.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" -) - -// DevPodWorkspaceTemplatesGetter has a method to return a DevPodWorkspaceTemplateInterface. -// A group's client should implement this interface. -type DevPodWorkspaceTemplatesGetter interface { - DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface -} - -// DevPodWorkspaceTemplateInterface has methods to work with DevPodWorkspaceTemplate resources. -type DevPodWorkspaceTemplateInterface interface { - Create(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (*v1.DevPodWorkspaceTemplate, error) - Update(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*v1.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) - 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) - 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) - DevPodWorkspaceTemplateExpansion -} - -// devPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type devPodWorkspaceTemplates struct { - *gentype.ClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] -} - -// newDevPodWorkspaceTemplates returns a DevPodWorkspaceTemplates -func newDevPodWorkspaceTemplates(c *StorageV1Client) *devPodWorkspaceTemplates { - return &devPodWorkspaceTemplates{ - gentype.NewClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList]( - "devpodworkspacetemplates", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *v1.DevPodWorkspaceTemplate { return &v1.DevPodWorkspaceTemplate{} }, - func() *v1.DevPodWorkspaceTemplateList { return &v1.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 deleted file mode 100644 index 544701ea..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go +++ /dev/null @@ -1,110 +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" -) - -// FakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type FakeDevPodEnvironmentTemplates struct { - 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 - } - 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 deleted file mode 100644 index b840f2cf..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go +++ /dev/null @@ -1,118 +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" -) - -// FakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type FakeDevPodWorkspaceInstances struct { - 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 - } - return obj.(*v1.DevPodWorkspaceInstance), err -} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go deleted file mode 100644 index 206574ce..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.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" -) - -// FakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type FakeDevPodWorkspaceTemplates struct { - 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 - } - 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_nodeenvironment.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeenvironment.go new file mode 100644 index 00000000..2aa3a55d --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeenvironment.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" +) + +// fakeNodeEnvironments implements NodeEnvironmentInterface +type fakeNodeEnvironments struct { + *gentype.FakeClientWithList[*v1.NodeEnvironment, *v1.NodeEnvironmentList] + Fake *FakeStorageV1 +} + +func newFakeNodeEnvironments(fake *FakeStorageV1, namespace string) storagev1.NodeEnvironmentInterface { + return &fakeNodeEnvironments{ + gentype.NewFakeClientWithList[*v1.NodeEnvironment, *v1.NodeEnvironmentList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("nodeenvironments"), + v1.SchemeGroupVersion.WithKind("NodeEnvironment"), + func() *v1.NodeEnvironment { return &v1.NodeEnvironment{} }, + func() *v1.NodeEnvironmentList { return &v1.NodeEnvironmentList{} }, + func(dst, src *v1.NodeEnvironmentList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeEnvironmentList) []*v1.NodeEnvironment { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeEnvironmentList, items []*v1.NodeEnvironment) { + 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..bf4bbed4 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,79 @@ 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} +func (c *FakeStorageV1) NetworkPeers() v1.NetworkPeerInterface { + return newFakeNetworkPeers(c) } -func (c *FakeStorageV1) DevPodWorkspaceInstances(namespace string) v1.DevPodWorkspaceInstanceInterface { - return &FakeDevPodWorkspaceInstances{c, namespace} +func (c *FakeStorageV1) NodeClaims(namespace string) v1.NodeClaimInterface { + return newFakeNodeClaims(c, namespace) } -func (c *FakeStorageV1) DevPodWorkspaceTemplates() v1.DevPodWorkspaceTemplateInterface { - return &FakeDevPodWorkspaceTemplates{c} +func (c *FakeStorageV1) NodeEnvironments(namespace string) v1.NodeEnvironmentInterface { + return newFakeNodeEnvironments(c, namespace) } -func (c *FakeStorageV1) NetworkPeers() v1.NetworkPeerInterface { - return &FakeNetworkPeers{c} +func (c *FakeStorageV1) NodeProviders() v1.NodeProviderInterface { + return newFakeNodeProviders(c) } -func (c *FakeStorageV1) Projects() v1.ProjectInterface { - return &FakeProjects{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..0935ba1e 100644 --- a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go @@ -12,17 +12,17 @@ type ClusterAccessExpansion interface{} type ClusterRoleTemplateExpansion interface{} -type DevPodEnvironmentTemplateExpansion interface{} +type NetworkPeerExpansion interface{} -type DevPodWorkspaceInstanceExpansion interface{} +type NodeClaimExpansion interface{} -type DevPodWorkspaceTemplateExpansion interface{} +type NodeEnvironmentExpansion interface{} -type NetworkPeerExpansion interface{} +type NodeProviderExpansion interface{} -type ProjectExpansion interface{} +type NodeTypeExpansion interface{} -type RunnerExpansion 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/nodeenvironment.go b/pkg/clientset/versioned/typed/storage/v1/nodeenvironment.go new file mode 100644 index 00000000..1e5eeb23 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/nodeenvironment.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" +) + +// NodeEnvironmentsGetter has a method to return a NodeEnvironmentInterface. +// A group's client should implement this interface. +type NodeEnvironmentsGetter interface { + NodeEnvironments(namespace string) NodeEnvironmentInterface +} + +// NodeEnvironmentInterface has methods to work with NodeEnvironment resources. +type NodeEnvironmentInterface interface { + Create(ctx context.Context, nodeEnvironment *storagev1.NodeEnvironment, opts metav1.CreateOptions) (*storagev1.NodeEnvironment, error) + Update(ctx context.Context, nodeEnvironment *storagev1.NodeEnvironment, opts metav1.UpdateOptions) (*storagev1.NodeEnvironment, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeEnvironment *storagev1.NodeEnvironment, opts metav1.UpdateOptions) (*storagev1.NodeEnvironment, 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.NodeEnvironment, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.NodeEnvironmentList, 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.NodeEnvironment, err error) + NodeEnvironmentExpansion +} + +// nodeEnvironments implements NodeEnvironmentInterface +type nodeEnvironments struct { + *gentype.ClientWithList[*storagev1.NodeEnvironment, *storagev1.NodeEnvironmentList] +} + +// newNodeEnvironments returns a NodeEnvironments +func newNodeEnvironments(c *StorageV1Client, namespace string) *nodeEnvironments { + return &nodeEnvironments{ + gentype.NewClientWithList[*storagev1.NodeEnvironment, *storagev1.NodeEnvironmentList]( + "nodeenvironments", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *storagev1.NodeEnvironment { return &storagev1.NodeEnvironment{} }, + func() *storagev1.NodeEnvironmentList { return &storagev1.NodeEnvironmentList{} }, + ), + } +} 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..ac22f17a 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" ) @@ -17,12 +17,12 @@ type StorageV1Interface interface { ClustersGetter ClusterAccessesGetter ClusterRoleTemplatesGetter - DevPodEnvironmentTemplatesGetter - DevPodWorkspaceInstancesGetter - DevPodWorkspaceTemplatesGetter NetworkPeersGetter + NodeClaimsGetter + NodeEnvironmentsGetter + NodeProvidersGetter + NodeTypesGetter ProjectsGetter - RunnersGetter SharedSecretsGetter SpaceInstancesGetter SpaceTemplatesGetter @@ -58,28 +58,28 @@ func (c *StorageV1Client) ClusterRoleTemplates() ClusterRoleTemplateInterface { return newClusterRoleTemplates(c) } -func (c *StorageV1Client) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInterface { - return newDevPodEnvironmentTemplates(c) +func (c *StorageV1Client) NetworkPeers() NetworkPeerInterface { + return newNetworkPeers(c) } -func (c *StorageV1Client) DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceInterface { - return newDevPodWorkspaceInstances(c, namespace) +func (c *StorageV1Client) NodeClaims(namespace string) NodeClaimInterface { + return newNodeClaims(c, namespace) } -func (c *StorageV1Client) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface { - return newDevPodWorkspaceTemplates(c) +func (c *StorageV1Client) NodeEnvironments(namespace string) NodeEnvironmentInterface { + return newNodeEnvironments(c, namespace) } -func (c *StorageV1Client) NetworkPeers() NetworkPeerInterface { - return newNetworkPeers(c) +func (c *StorageV1Client) NodeProviders() NodeProviderInterface { + return newNodeProviders(c) } -func (c *StorageV1Client) Projects() ProjectInterface { - return newProjects(c) +func (c *StorageV1Client) NodeTypes() NodeTypeInterface { + return newNodeTypes(c) } -func (c *StorageV1Client) Runners() RunnerInterface { - return newRunners(c) +func (c *StorageV1Client) Projects() ProjectInterface { + return newProjects(c) } func (c *StorageV1Client) SharedSecrets(namespace string) SharedSecretInterface { @@ -119,9 +119,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 +131,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 +154,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/informers/externalversions/generic.go b/pkg/informers/externalversions/generic.go index 19bb27f5..92de6197 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,12 +57,8 @@ 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("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("devpodworkspacetemplates"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodWorkspaceTemplates().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("databaseconnectors"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DatabaseConnectors().Informer()}, nil case v1.SchemeGroupVersion.WithResource("directclusterendpointtokens"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DirectClusterEndpointTokens().Informer()}, nil case v1.SchemeGroupVersion.WithResource("events"): @@ -73,10 +69,16 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().IngressAuthTokens().Informer()}, nil case v1.SchemeGroupVersion.WithResource("licenses"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().Licenses().Informer()}, nil - case v1.SchemeGroupVersion.WithResource("licensetokens"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().LicenseTokens().Informer()}, nil case v1.SchemeGroupVersion.WithResource("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("nodeenvironments"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().NodeEnvironments().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 +93,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"): @@ -111,10 +111,14 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().Teams().Informer()}, nil case v1.SchemeGroupVersion.WithResource("translatevclusterresourcenames"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().TranslateVClusterResourceNames().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("usagedownloads"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().UsageDownloads().Informer()}, nil case v1.SchemeGroupVersion.WithResource("users"): 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 @@ -129,18 +133,18 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().ClusterAccesses().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("clusterroletemplates"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().ClusterRoleTemplates().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodEnvironmentTemplates().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodWorkspaceInstances().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("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("nodeenvironments"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().NodeEnvironments().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 deleted file mode 100644 index 65131ea7..00000000 --- a/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.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" -) - -// DevPodEnvironmentTemplateInformer provides access to a shared informer and lister for -// DevPodEnvironmentTemplates. -type DevPodEnvironmentTemplateInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1.DevPodEnvironmentTemplateLister -} - -type devPodEnvironmentTemplateInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodEnvironmentTemplateInformer constructs a new informer for DevPodEnvironmentTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodEnvironmentTemplateInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodEnvironmentTemplateInformer constructs a new informer for DevPodEnvironmentTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodEnvironmentTemplates().List(context.TODO(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodEnvironmentTemplates().Watch(context.TODO(), options) - }, - }, - &managementv1.DevPodEnvironmentTemplate{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodEnvironmentTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodEnvironmentTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodEnvironmentTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.DevPodEnvironmentTemplate{}, f.defaultInformer) -} - -func (f *devPodEnvironmentTemplateInformer) Lister() v1.DevPodEnvironmentTemplateLister { - return v1.NewDevPodEnvironmentTemplateLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go b/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go deleted file mode 100644 index 97f11dc2..00000000 --- a/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,74 +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" -) - -// DevPodWorkspaceInstanceInformer provides access to a shared informer and lister for -// DevPodWorkspaceInstances. -type DevPodWorkspaceInstanceInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspaceInstanceLister -} - -type devPodWorkspaceInstanceInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc - namespace string -} - -// NewDevPodWorkspaceInstanceInformer constructs a new informer for DevPodWorkspaceInstance type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceInstanceInformer(client, namespace, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspaceInstanceInformer constructs a new informer for DevPodWorkspaceInstance type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).List(context.TODO(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).Watch(context.TODO(), options) - }, - }, - &managementv1.DevPodWorkspaceInstance{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspaceInstanceInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceInstanceInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspaceInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.DevPodWorkspaceInstance{}, f.defaultInformer) -} - -func (f *devPodWorkspaceInstanceInformer) Lister() v1.DevPodWorkspaceInstanceLister { - return v1.NewDevPodWorkspaceInstanceLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go b/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go deleted file mode 100644 index b74d607e..00000000 --- a/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.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" -) - -// DevPodWorkspaceTemplateInformer provides access to a shared informer and lister for -// DevPodWorkspaceTemplates. -type DevPodWorkspaceTemplateInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspaceTemplateLister -} - -type devPodWorkspaceTemplateInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodWorkspaceTemplateInformer constructs a new informer for DevPodWorkspaceTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceTemplateInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspaceTemplateInformer constructs a new informer for DevPodWorkspaceTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceTemplates().List(context.TODO(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceTemplates().Watch(context.TODO(), options) - }, - }, - &managementv1.DevPodWorkspaceTemplate{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspaceTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.DevPodWorkspaceTemplate{}, f.defaultInformer) -} - -func (f *devPodWorkspaceTemplateInformer) Lister() v1.DevPodWorkspaceTemplateLister { - return v1.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..0b4d3ea9 100644 --- a/pkg/informers/externalversions/management/v1/interface.go +++ b/pkg/informers/externalversions/management/v1/interface.go @@ -26,12 +26,8 @@ type Interface interface { Configs() ConfigInformer // ConvertVirtualClusterConfigs returns a ConvertVirtualClusterConfigInformer. ConvertVirtualClusterConfigs() ConvertVirtualClusterConfigInformer - // DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. - DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer - // DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. - DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer - // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. - DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer + // DatabaseConnectors returns a DatabaseConnectorInformer. + DatabaseConnectors() DatabaseConnectorInformer // DirectClusterEndpointTokens returns a DirectClusterEndpointTokenInformer. DirectClusterEndpointTokens() DirectClusterEndpointTokenInformer // Events returns a EventInformer. @@ -42,10 +38,16 @@ type Interface interface { IngressAuthTokens() IngressAuthTokenInformer // Licenses returns a LicenseInformer. Licenses() LicenseInformer - // LicenseTokens returns a LicenseTokenInformer. - LicenseTokens() LicenseTokenInformer // LoftUpgrades returns a LoftUpgradeInformer. LoftUpgrades() LoftUpgradeInformer + // NodeClaims returns a NodeClaimInformer. + NodeClaims() NodeClaimInformer + // NodeEnvironments returns a NodeEnvironmentInformer. + NodeEnvironments() NodeEnvironmentInformer + // NodeProviders returns a NodeProviderInformer. + NodeProviders() NodeProviderInformer + // NodeTypes returns a NodeTypeInformer. + NodeTypes() NodeTypeInformer // OIDCClients returns a OIDCClientInformer. OIDCClients() OIDCClientInformer // OwnedAccessKeys returns a OwnedAccessKeyInformer. @@ -60,8 +62,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. @@ -80,10 +80,14 @@ type Interface interface { Teams() TeamInformer // TranslateVClusterResourceNames returns a TranslateVClusterResourceNameInformer. TranslateVClusterResourceNames() TranslateVClusterResourceNameInformer + // UsageDownloads returns a UsageDownloadInformer. + UsageDownloads() UsageDownloadInformer // Users returns a UserInformer. Users() UserInformer // VirtualClusterInstances returns a VirtualClusterInstanceInformer. VirtualClusterInstances() VirtualClusterInstanceInformer + // VirtualClusterSchemas returns a VirtualClusterSchemaInformer. + VirtualClusterSchemas() VirtualClusterSchemaInformer // VirtualClusterTemplates returns a VirtualClusterTemplateInformer. VirtualClusterTemplates() VirtualClusterTemplateInformer } @@ -144,19 +148,9 @@ func (v *version) ConvertVirtualClusterConfigs() ConvertVirtualClusterConfigInfo return &convertVirtualClusterConfigInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. -func (v *version) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer { - return &devPodEnvironmentTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - -// DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. -func (v *version) DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer { - return &devPodWorkspaceInstanceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} -} - -// DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. -func (v *version) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer { - return &devPodWorkspaceTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +// DatabaseConnectors returns a DatabaseConnectorInformer. +func (v *version) DatabaseConnectors() DatabaseConnectorInformer { + return &databaseConnectorInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } // DirectClusterEndpointTokens returns a DirectClusterEndpointTokenInformer. @@ -184,16 +178,31 @@ func (v *version) Licenses() LicenseInformer { return &licenseInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// LicenseTokens returns a LicenseTokenInformer. -func (v *version) LicenseTokens() LicenseTokenInformer { - return &licenseTokenInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - // LoftUpgrades returns a LoftUpgradeInformer. 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} +} + +// NodeEnvironments returns a NodeEnvironmentInformer. +func (v *version) NodeEnvironments() NodeEnvironmentInformer { + return &nodeEnvironmentInformer{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 +238,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} @@ -279,6 +283,11 @@ func (v *version) TranslateVClusterResourceNames() TranslateVClusterResourceName return &translateVClusterResourceNameInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } +// UsageDownloads returns a UsageDownloadInformer. +func (v *version) UsageDownloads() UsageDownloadInformer { + return &usageDownloadInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + // Users returns a UserInformer. func (v *version) Users() UserInformer { return &userInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} @@ -289,6 +298,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 deleted file mode 100644 index bd8eb0be..00000000 --- a/pkg/informers/externalversions/management/v1/licensetoken.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" -) - -// LicenseTokenInformer provides access to a shared informer and lister for -// LicenseTokens. -type LicenseTokenInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1.LicenseTokenLister -} - -type licenseTokenInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewLicenseTokenInformer constructs a new informer for LicenseToken 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 NewLicenseTokenInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredLicenseTokenInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredLicenseTokenInformer constructs a new informer for LicenseToken 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 NewFilteredLicenseTokenInformer(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().LicenseTokens().List(context.TODO(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().LicenseTokens().Watch(context.TODO(), options) - }, - }, - &managementv1.LicenseToken{}, - resyncPeriod, - indexers, - ) -} - -func (f *licenseTokenInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredLicenseTokenInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *licenseTokenInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.LicenseToken{}, f.defaultInformer) -} - -func (f *licenseTokenInformer) Lister() v1.LicenseTokenLister { - return v1.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/nodeenvironment.go b/pkg/informers/externalversions/management/v1/nodeenvironment.go new file mode 100644 index 00000000..0c36553e --- /dev/null +++ b/pkg/informers/externalversions/management/v1/nodeenvironment.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" +) + +// NodeEnvironmentInformer provides access to a shared informer and lister for +// NodeEnvironments. +type NodeEnvironmentInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.NodeEnvironmentLister +} + +type nodeEnvironmentInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewNodeEnvironmentInformer constructs a new informer for NodeEnvironment 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 NewNodeEnvironmentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeEnvironmentInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeEnvironmentInformer constructs a new informer for NodeEnvironment 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 NewFilteredNodeEnvironmentInformer(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().NodeEnvironments(namespace).List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeEnvironments(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeEnvironments(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeEnvironments(namespace).Watch(ctx, options) + }, + }, + &apismanagementv1.NodeEnvironment{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeEnvironmentInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeEnvironmentInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeEnvironmentInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.NodeEnvironment{}, f.defaultInformer) +} + +func (f *nodeEnvironmentInformer) Lister() managementv1.NodeEnvironmentLister { + return managementv1.NewNodeEnvironmentLister(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/usagedownload.go b/pkg/informers/externalversions/management/v1/usagedownload.go new file mode 100644 index 00000000..7dae09a3 --- /dev/null +++ b/pkg/informers/externalversions/management/v1/usagedownload.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" +) + +// UsageDownloadInformer provides access to a shared informer and lister for +// UsageDownloads. +type UsageDownloadInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.UsageDownloadLister +} + +type usageDownloadInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewUsageDownloadInformer constructs a new informer for UsageDownload 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 NewUsageDownloadInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredUsageDownloadInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredUsageDownloadInformer constructs a new informer for UsageDownload 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 NewFilteredUsageDownloadInformer(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().UsageDownloads().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().UsageDownloads().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().UsageDownloads().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().UsageDownloads().Watch(ctx, options) + }, + }, + &apismanagementv1.UsageDownload{}, + resyncPeriod, + indexers, + ) +} + +func (f *usageDownloadInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredUsageDownloadInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *usageDownloadInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.UsageDownload{}, f.defaultInformer) +} + +func (f *usageDownloadInformer) Lister() managementv1.UsageDownloadLister { + return managementv1.NewUsageDownloadLister(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 deleted file mode 100644 index b6be71f0..00000000 --- a/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.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" -) - -// DevPodEnvironmentTemplateInformer provides access to a shared informer and lister for -// DevPodEnvironmentTemplates. -type DevPodEnvironmentTemplateInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1.DevPodEnvironmentTemplateLister -} - -type devPodEnvironmentTemplateInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodEnvironmentTemplateInformer constructs a new informer for DevPodEnvironmentTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodEnvironmentTemplateInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodEnvironmentTemplateInformer constructs a new informer for DevPodEnvironmentTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodEnvironmentTemplates().List(context.TODO(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodEnvironmentTemplates().Watch(context.TODO(), options) - }, - }, - &storagev1.DevPodEnvironmentTemplate{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodEnvironmentTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodEnvironmentTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodEnvironmentTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.DevPodEnvironmentTemplate{}, f.defaultInformer) -} - -func (f *devPodEnvironmentTemplateInformer) Lister() v1.DevPodEnvironmentTemplateLister { - return v1.NewDevPodEnvironmentTemplateLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go b/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go deleted file mode 100644 index 6fa109b2..00000000 --- a/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,74 +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" -) - -// DevPodWorkspaceInstanceInformer provides access to a shared informer and lister for -// DevPodWorkspaceInstances. -type DevPodWorkspaceInstanceInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspaceInstanceLister -} - -type devPodWorkspaceInstanceInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc - namespace string -} - -// NewDevPodWorkspaceInstanceInformer constructs a new informer for DevPodWorkspaceInstance type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceInstanceInformer(client, namespace, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspaceInstanceInformer constructs a new informer for DevPodWorkspaceInstance type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceInstances(namespace).List(context.TODO(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceInstances(namespace).Watch(context.TODO(), options) - }, - }, - &storagev1.DevPodWorkspaceInstance{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspaceInstanceInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceInstanceInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspaceInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.DevPodWorkspaceInstance{}, f.defaultInformer) -} - -func (f *devPodWorkspaceInstanceInformer) Lister() v1.DevPodWorkspaceInstanceLister { - return v1.NewDevPodWorkspaceInstanceLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go b/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go deleted file mode 100644 index a97bba7e..00000000 --- a/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.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" -) - -// DevPodWorkspaceTemplateInformer provides access to a shared informer and lister for -// DevPodWorkspaceTemplates. -type DevPodWorkspaceTemplateInformer interface { - Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspaceTemplateLister -} - -type devPodWorkspaceTemplateInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodWorkspaceTemplateInformer constructs a new informer for DevPodWorkspaceTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceTemplateInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspaceTemplateInformer constructs a new informer for DevPodWorkspaceTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceTemplates().List(context.TODO(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceTemplates().Watch(context.TODO(), options) - }, - }, - &storagev1.DevPodWorkspaceTemplate{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspaceTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.DevPodWorkspaceTemplate{}, f.defaultInformer) -} - -func (f *devPodWorkspaceTemplateInformer) Lister() v1.DevPodWorkspaceTemplateLister { - return v1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/interface.go b/pkg/informers/externalversions/storage/v1/interface.go index d2f36b8f..2c6dfba0 100644 --- a/pkg/informers/externalversions/storage/v1/interface.go +++ b/pkg/informers/externalversions/storage/v1/interface.go @@ -18,18 +18,18 @@ type Interface interface { ClusterAccesses() ClusterAccessInformer // ClusterRoleTemplates returns a ClusterRoleTemplateInformer. ClusterRoleTemplates() ClusterRoleTemplateInformer - // DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. - DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer - // DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. - DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer - // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. - DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer // NetworkPeers returns a NetworkPeerInformer. NetworkPeers() NetworkPeerInformer + // NodeClaims returns a NodeClaimInformer. + NodeClaims() NodeClaimInformer + // NodeEnvironments returns a NodeEnvironmentInformer. + NodeEnvironments() NodeEnvironmentInformer + // 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. @@ -84,24 +84,29 @@ func (v *version) ClusterRoleTemplates() ClusterRoleTemplateInformer { return &clusterRoleTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. -func (v *version) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer { - return &devPodEnvironmentTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +// NetworkPeers returns a NetworkPeerInformer. +func (v *version) NetworkPeers() NetworkPeerInformer { + return &networkPeerInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. -func (v *version) DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer { - return &devPodWorkspaceInstanceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +// NodeClaims returns a NodeClaimInformer. +func (v *version) NodeClaims() NodeClaimInformer { + return &nodeClaimInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } -// DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. -func (v *version) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer { - return &devPodWorkspaceTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +// NodeEnvironments returns a NodeEnvironmentInformer. +func (v *version) NodeEnvironments() NodeEnvironmentInformer { + return &nodeEnvironmentInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } -// NetworkPeers returns a NetworkPeerInformer. -func (v *version) NetworkPeers() NetworkPeerInformer { - return &networkPeerInformer{factory: v.factory, 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. @@ -109,11 +114,6 @@ 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/nodeenvironment.go b/pkg/informers/externalversions/storage/v1/nodeenvironment.go new file mode 100644 index 00000000..2686ff47 --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/nodeenvironment.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" +) + +// NodeEnvironmentInformer provides access to a shared informer and lister for +// NodeEnvironments. +type NodeEnvironmentInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.NodeEnvironmentLister +} + +type nodeEnvironmentInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewNodeEnvironmentInformer constructs a new informer for NodeEnvironment 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 NewNodeEnvironmentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeEnvironmentInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeEnvironmentInformer constructs a new informer for NodeEnvironment 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 NewFilteredNodeEnvironmentInformer(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().NodeEnvironments(namespace).List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeEnvironments(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeEnvironments(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeEnvironments(namespace).Watch(ctx, options) + }, + }, + &apisstoragev1.NodeEnvironment{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeEnvironmentInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeEnvironmentInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeEnvironmentInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.NodeEnvironment{}, f.defaultInformer) +} + +func (f *nodeEnvironmentInformer) Lister() storagev1.NodeEnvironmentLister { + return storagev1.NewNodeEnvironmentLister(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 deleted file mode 100644 index 7902544b..00000000 --- a/pkg/listers/management/v1/devpodenvironmenttemplate.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" -) - -// DevPodEnvironmentTemplateLister helps list DevPodEnvironmentTemplates. -// All objects returned here must be treated as read-only. -type DevPodEnvironmentTemplateLister interface { - // List lists all DevPodEnvironmentTemplates in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.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) - DevPodEnvironmentTemplateListerExpansion -} - -// devPodEnvironmentTemplateLister implements the DevPodEnvironmentTemplateLister interface. -type devPodEnvironmentTemplateLister struct { - listers.ResourceIndexer[*v1.DevPodEnvironmentTemplate] -} - -// NewDevPodEnvironmentTemplateLister returns a new DevPodEnvironmentTemplateLister. -func NewDevPodEnvironmentTemplateLister(indexer cache.Indexer) DevPodEnvironmentTemplateLister { - return &devPodEnvironmentTemplateLister{listers.New[*v1.DevPodEnvironmentTemplate](indexer, v1.Resource("devpodenvironmenttemplate"))} -} diff --git a/pkg/listers/management/v1/devpodworkspaceinstance.go b/pkg/listers/management/v1/devpodworkspaceinstance.go deleted file mode 100644 index d7ccf8b6..00000000 --- a/pkg/listers/management/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,54 +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" -) - -// DevPodWorkspaceInstanceLister helps list DevPodWorkspaceInstances. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceInstanceLister interface { - // List lists all DevPodWorkspaceInstances in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspaceInstance, err error) - // DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. - DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister - DevPodWorkspaceInstanceListerExpansion -} - -// devPodWorkspaceInstanceLister implements the DevPodWorkspaceInstanceLister interface. -type devPodWorkspaceInstanceLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceInstance] -} - -// NewDevPodWorkspaceInstanceLister returns a new DevPodWorkspaceInstanceLister. -func NewDevPodWorkspaceInstanceLister(indexer cache.Indexer) DevPodWorkspaceInstanceLister { - return &devPodWorkspaceInstanceLister{listers.New[*v1.DevPodWorkspaceInstance](indexer, v1.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)} -} - -// DevPodWorkspaceInstanceNamespaceLister helps list and get DevPodWorkspaceInstances. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceInstanceNamespaceLister interface { - // List lists all DevPodWorkspaceInstances in the indexer for a given namespace. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.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) - DevPodWorkspaceInstanceNamespaceListerExpansion -} - -// devPodWorkspaceInstanceNamespaceLister implements the DevPodWorkspaceInstanceNamespaceLister -// interface. -type devPodWorkspaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceInstance] -} diff --git a/pkg/listers/management/v1/devpodworkspacetemplate.go b/pkg/listers/management/v1/devpodworkspacetemplate.go deleted file mode 100644 index ce5d6941..00000000 --- a/pkg/listers/management/v1/devpodworkspacetemplate.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" -) - -// DevPodWorkspaceTemplateLister helps list DevPodWorkspaceTemplates. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceTemplateLister interface { - // List lists all DevPodWorkspaceTemplates in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.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) - DevPodWorkspaceTemplateListerExpansion -} - -// devPodWorkspaceTemplateLister implements the DevPodWorkspaceTemplateLister interface. -type devPodWorkspaceTemplateLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceTemplate] -} - -// NewDevPodWorkspaceTemplateLister returns a new DevPodWorkspaceTemplateLister. -func NewDevPodWorkspaceTemplateLister(indexer cache.Indexer) DevPodWorkspaceTemplateLister { - return &devPodWorkspaceTemplateLister{listers.New[*v1.DevPodWorkspaceTemplate](indexer, v1.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..f725c895 100644 --- a/pkg/listers/management/v1/expansion_generated.go +++ b/pkg/listers/management/v1/expansion_generated.go @@ -38,21 +38,9 @@ type ConfigListerExpansion interface{} // ConvertVirtualClusterConfigLister. type ConvertVirtualClusterConfigListerExpansion interface{} -// DevPodEnvironmentTemplateListerExpansion allows custom methods to be added to -// DevPodEnvironmentTemplateLister. -type DevPodEnvironmentTemplateListerExpansion interface{} - -// DevPodWorkspaceInstanceListerExpansion allows custom methods to be added to -// DevPodWorkspaceInstanceLister. -type DevPodWorkspaceInstanceListerExpansion interface{} - -// DevPodWorkspaceInstanceNamespaceListerExpansion allows custom methods to be added to -// DevPodWorkspaceInstanceNamespaceLister. -type DevPodWorkspaceInstanceNamespaceListerExpansion interface{} - -// DevPodWorkspaceTemplateListerExpansion allows custom methods to be added to -// DevPodWorkspaceTemplateLister. -type DevPodWorkspaceTemplateListerExpansion interface{} +// DatabaseConnectorListerExpansion allows custom methods to be added to +// DatabaseConnectorLister. +type DatabaseConnectorListerExpansion interface{} // DirectClusterEndpointTokenListerExpansion allows custom methods to be added to // DirectClusterEndpointTokenLister. @@ -74,14 +62,34 @@ type IngressAuthTokenListerExpansion interface{} // LicenseLister. type LicenseListerExpansion interface{} -// LicenseTokenListerExpansion allows custom methods to be added to -// LicenseTokenLister. -type LicenseTokenListerExpansion interface{} - // LoftUpgradeListerExpansion allows custom methods to be added to // 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{} + +// NodeEnvironmentListerExpansion allows custom methods to be added to +// NodeEnvironmentLister. +type NodeEnvironmentListerExpansion interface{} + +// NodeEnvironmentNamespaceListerExpansion allows custom methods to be added to +// NodeEnvironmentNamespaceLister. +type NodeEnvironmentNamespaceListerExpansion 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 +122,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{} @@ -162,6 +166,10 @@ type TeamListerExpansion interface{} // TranslateVClusterResourceNameLister. type TranslateVClusterResourceNameListerExpansion interface{} +// UsageDownloadListerExpansion allows custom methods to be added to +// UsageDownloadLister. +type UsageDownloadListerExpansion interface{} + // UserListerExpansion allows custom methods to be added to // UserLister. type UserListerExpansion interface{} @@ -174,6 +182,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 deleted file mode 100644 index 43579dd7..00000000 --- a/pkg/listers/management/v1/licensetoken.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" -) - -// LicenseTokenLister helps list LicenseTokens. -// All objects returned here must be treated as read-only. -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) - // 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) - LicenseTokenListerExpansion -} - -// licenseTokenLister implements the LicenseTokenLister interface. -type licenseTokenLister struct { - listers.ResourceIndexer[*v1.LicenseToken] -} - -// NewLicenseTokenLister returns a new LicenseTokenLister. -func NewLicenseTokenLister(indexer cache.Indexer) LicenseTokenLister { - return &licenseTokenLister{listers.New[*v1.LicenseToken](indexer, v1.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/nodeenvironment.go b/pkg/listers/management/v1/nodeenvironment.go new file mode 100644 index 00000000..e586c08c --- /dev/null +++ b/pkg/listers/management/v1/nodeenvironment.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" +) + +// NodeEnvironmentLister helps list NodeEnvironments. +// All objects returned here must be treated as read-only. +type NodeEnvironmentLister interface { + // List lists all NodeEnvironments in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.NodeEnvironment, err error) + // NodeEnvironments returns an object that can list and get NodeEnvironments. + NodeEnvironments(namespace string) NodeEnvironmentNamespaceLister + NodeEnvironmentListerExpansion +} + +// nodeEnvironmentLister implements the NodeEnvironmentLister interface. +type nodeEnvironmentLister struct { + listers.ResourceIndexer[*managementv1.NodeEnvironment] +} + +// NewNodeEnvironmentLister returns a new NodeEnvironmentLister. +func NewNodeEnvironmentLister(indexer cache.Indexer) NodeEnvironmentLister { + return &nodeEnvironmentLister{listers.New[*managementv1.NodeEnvironment](indexer, managementv1.Resource("nodeenvironment"))} +} + +// NodeEnvironments returns an object that can list and get NodeEnvironments. +func (s *nodeEnvironmentLister) NodeEnvironments(namespace string) NodeEnvironmentNamespaceLister { + return nodeEnvironmentNamespaceLister{listers.NewNamespaced[*managementv1.NodeEnvironment](s.ResourceIndexer, namespace)} +} + +// NodeEnvironmentNamespaceLister helps list and get NodeEnvironments. +// All objects returned here must be treated as read-only. +type NodeEnvironmentNamespaceLister interface { + // List lists all NodeEnvironments in the indexer for a given namespace. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.NodeEnvironment, err error) + // Get retrieves the NodeEnvironment from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.NodeEnvironment, error) + NodeEnvironmentNamespaceListerExpansion +} + +// nodeEnvironmentNamespaceLister implements the NodeEnvironmentNamespaceLister +// interface. +type nodeEnvironmentNamespaceLister struct { + listers.ResourceIndexer[*managementv1.NodeEnvironment] +} 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/usagedownload.go b/pkg/listers/management/v1/usagedownload.go new file mode 100644 index 00000000..01fa9106 --- /dev/null +++ b/pkg/listers/management/v1/usagedownload.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" +) + +// UsageDownloadLister helps list UsageDownloads. +// All objects returned here must be treated as read-only. +type UsageDownloadLister interface { + // List lists all UsageDownloads in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.UsageDownload, err error) + // Get retrieves the UsageDownload from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.UsageDownload, error) + UsageDownloadListerExpansion +} + +// usageDownloadLister implements the UsageDownloadLister interface. +type usageDownloadLister struct { + listers.ResourceIndexer[*managementv1.UsageDownload] +} + +// NewUsageDownloadLister returns a new UsageDownloadLister. +func NewUsageDownloadLister(indexer cache.Indexer) UsageDownloadLister { + return &usageDownloadLister{listers.New[*managementv1.UsageDownload](indexer, managementv1.Resource("usagedownload"))} +} 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 deleted file mode 100644 index 8e1b07ca..00000000 --- a/pkg/listers/storage/v1/devpodenvironmenttemplate.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" -) - -// DevPodEnvironmentTemplateLister helps list DevPodEnvironmentTemplates. -// All objects returned here must be treated as read-only. -type DevPodEnvironmentTemplateLister interface { - // List lists all DevPodEnvironmentTemplates in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.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) - DevPodEnvironmentTemplateListerExpansion -} - -// devPodEnvironmentTemplateLister implements the DevPodEnvironmentTemplateLister interface. -type devPodEnvironmentTemplateLister struct { - listers.ResourceIndexer[*v1.DevPodEnvironmentTemplate] -} - -// NewDevPodEnvironmentTemplateLister returns a new DevPodEnvironmentTemplateLister. -func NewDevPodEnvironmentTemplateLister(indexer cache.Indexer) DevPodEnvironmentTemplateLister { - return &devPodEnvironmentTemplateLister{listers.New[*v1.DevPodEnvironmentTemplate](indexer, v1.Resource("devpodenvironmenttemplate"))} -} diff --git a/pkg/listers/storage/v1/devpodworkspaceinstance.go b/pkg/listers/storage/v1/devpodworkspaceinstance.go deleted file mode 100644 index 40b34cee..00000000 --- a/pkg/listers/storage/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,54 +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" -) - -// DevPodWorkspaceInstanceLister helps list DevPodWorkspaceInstances. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceInstanceLister interface { - // List lists all DevPodWorkspaceInstances in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspaceInstance, err error) - // DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. - DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister - DevPodWorkspaceInstanceListerExpansion -} - -// devPodWorkspaceInstanceLister implements the DevPodWorkspaceInstanceLister interface. -type devPodWorkspaceInstanceLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceInstance] -} - -// NewDevPodWorkspaceInstanceLister returns a new DevPodWorkspaceInstanceLister. -func NewDevPodWorkspaceInstanceLister(indexer cache.Indexer) DevPodWorkspaceInstanceLister { - return &devPodWorkspaceInstanceLister{listers.New[*v1.DevPodWorkspaceInstance](indexer, v1.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)} -} - -// DevPodWorkspaceInstanceNamespaceLister helps list and get DevPodWorkspaceInstances. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceInstanceNamespaceLister interface { - // List lists all DevPodWorkspaceInstances in the indexer for a given namespace. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.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) - DevPodWorkspaceInstanceNamespaceListerExpansion -} - -// devPodWorkspaceInstanceNamespaceLister implements the DevPodWorkspaceInstanceNamespaceLister -// interface. -type devPodWorkspaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceInstance] -} diff --git a/pkg/listers/storage/v1/devpodworkspacetemplate.go b/pkg/listers/storage/v1/devpodworkspacetemplate.go deleted file mode 100644 index 9e146f4e..00000000 --- a/pkg/listers/storage/v1/devpodworkspacetemplate.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" -) - -// DevPodWorkspaceTemplateLister helps list DevPodWorkspaceTemplates. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceTemplateLister interface { - // List lists all DevPodWorkspaceTemplates in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.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) - DevPodWorkspaceTemplateListerExpansion -} - -// devPodWorkspaceTemplateLister implements the DevPodWorkspaceTemplateLister interface. -type devPodWorkspaceTemplateLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceTemplate] -} - -// NewDevPodWorkspaceTemplateLister returns a new DevPodWorkspaceTemplateLister. -func NewDevPodWorkspaceTemplateLister(indexer cache.Indexer) DevPodWorkspaceTemplateLister { - return &devPodWorkspaceTemplateLister{listers.New[*v1.DevPodWorkspaceTemplate](indexer, v1.Resource("devpodworkspacetemplate"))} -} diff --git a/pkg/listers/storage/v1/expansion_generated.go b/pkg/listers/storage/v1/expansion_generated.go index a6099455..b67b5182 100644 --- a/pkg/listers/storage/v1/expansion_generated.go +++ b/pkg/listers/storage/v1/expansion_generated.go @@ -22,34 +22,38 @@ type ClusterAccessListerExpansion interface{} // ClusterRoleTemplateLister. type ClusterRoleTemplateListerExpansion interface{} -// DevPodEnvironmentTemplateListerExpansion allows custom methods to be added to -// DevPodEnvironmentTemplateLister. -type DevPodEnvironmentTemplateListerExpansion interface{} +// NetworkPeerListerExpansion allows custom methods to be added to +// NetworkPeerLister. +type NetworkPeerListerExpansion interface{} -// DevPodWorkspaceInstanceListerExpansion allows custom methods to be added to -// DevPodWorkspaceInstanceLister. -type DevPodWorkspaceInstanceListerExpansion interface{} +// NodeClaimListerExpansion allows custom methods to be added to +// NodeClaimLister. +type NodeClaimListerExpansion interface{} -// DevPodWorkspaceInstanceNamespaceListerExpansion allows custom methods to be added to -// DevPodWorkspaceInstanceNamespaceLister. -type DevPodWorkspaceInstanceNamespaceListerExpansion interface{} +// NodeClaimNamespaceListerExpansion allows custom methods to be added to +// NodeClaimNamespaceLister. +type NodeClaimNamespaceListerExpansion interface{} -// DevPodWorkspaceTemplateListerExpansion allows custom methods to be added to -// DevPodWorkspaceTemplateLister. -type DevPodWorkspaceTemplateListerExpansion interface{} +// NodeEnvironmentListerExpansion allows custom methods to be added to +// NodeEnvironmentLister. +type NodeEnvironmentListerExpansion interface{} -// NetworkPeerListerExpansion allows custom methods to be added to -// NetworkPeerLister. -type NetworkPeerListerExpansion interface{} +// NodeEnvironmentNamespaceListerExpansion allows custom methods to be added to +// NodeEnvironmentNamespaceLister. +type NodeEnvironmentNamespaceListerExpansion 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/nodeenvironment.go b/pkg/listers/storage/v1/nodeenvironment.go new file mode 100644 index 00000000..58d2027d --- /dev/null +++ b/pkg/listers/storage/v1/nodeenvironment.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" +) + +// NodeEnvironmentLister helps list NodeEnvironments. +// All objects returned here must be treated as read-only. +type NodeEnvironmentLister interface { + // List lists all NodeEnvironments in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.NodeEnvironment, err error) + // NodeEnvironments returns an object that can list and get NodeEnvironments. + NodeEnvironments(namespace string) NodeEnvironmentNamespaceLister + NodeEnvironmentListerExpansion +} + +// nodeEnvironmentLister implements the NodeEnvironmentLister interface. +type nodeEnvironmentLister struct { + listers.ResourceIndexer[*storagev1.NodeEnvironment] +} + +// NewNodeEnvironmentLister returns a new NodeEnvironmentLister. +func NewNodeEnvironmentLister(indexer cache.Indexer) NodeEnvironmentLister { + return &nodeEnvironmentLister{listers.New[*storagev1.NodeEnvironment](indexer, storagev1.Resource("nodeenvironment"))} +} + +// NodeEnvironments returns an object that can list and get NodeEnvironments. +func (s *nodeEnvironmentLister) NodeEnvironments(namespace string) NodeEnvironmentNamespaceLister { + return nodeEnvironmentNamespaceLister{listers.NewNamespaced[*storagev1.NodeEnvironment](s.ResourceIndexer, namespace)} +} + +// NodeEnvironmentNamespaceLister helps list and get NodeEnvironments. +// All objects returned here must be treated as read-only. +type NodeEnvironmentNamespaceLister interface { + // List lists all NodeEnvironments in the indexer for a given namespace. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.NodeEnvironment, err error) + // Get retrieves the NodeEnvironment from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.NodeEnvironment, error) + NodeEnvironmentNamespaceListerExpansion +} + +// nodeEnvironmentNamespaceLister implements the NodeEnvironmentNamespaceLister +// interface. +type nodeEnvironmentNamespaceLister struct { + listers.ResourceIndexer[*storagev1.NodeEnvironment] +} 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..88dc7682 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -36,6 +36,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.PlatformDatabase": schema_loft_sh_admin_apis_pkg_licenseapi_PlatformDatabase(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), @@ -82,6 +83,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -93,6 +95,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -114,11 +117,13 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -143,8 +148,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -155,30 +158,16 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.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.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), @@ -191,8 +180,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.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), @@ -209,23 +198,55 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.NamespacedNameArgs": schema_pkg_apis_management_v1_NamespacedNameArgs(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.NodeClaimData": schema_pkg_apis_management_v1_NodeClaimData(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.NodeEnvironment": schema_pkg_apis_management_v1_NodeEnvironment(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentData": schema_pkg_apis_management_v1_NodeEnvironmentData(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentList": schema_pkg_apis_management_v1_NodeEnvironmentList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentSpec": schema_pkg_apis_management_v1_NodeEnvironmentSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentStatus": schema_pkg_apis_management_v1_NodeEnvironmentStatus(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.NodeProviderBCMGetResourcesResult": schema_pkg_apis_management_v1_NodeProviderBCMGetResourcesResult(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeGroup": schema_pkg_apis_management_v1_NodeProviderBCMNodeGroup(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeWithResources": schema_pkg_apis_management_v1_NodeProviderBCMNodeWithResources(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMTestConnectionResult": schema_pkg_apis_management_v1_NodeProviderBCMTestConnectionResult(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderCalculateCostResult": schema_pkg_apis_management_v1_NodeProviderCalculateCostResult(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExec": schema_pkg_apis_management_v1_NodeProviderExec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecList": schema_pkg_apis_management_v1_NodeProviderExecList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecResult": schema_pkg_apis_management_v1_NodeProviderExecResult(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecSpec": schema_pkg_apis_management_v1_NodeProviderExecSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecStatus": schema_pkg_apis_management_v1_NodeProviderExecStatus(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.NodeProviderTerraformValidateResult": schema_pkg_apis_management_v1_NodeProviderTerraformValidateResult(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.Operation": schema_pkg_apis_management_v1_Operation(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.PlatformDB": schema_pkg_apis_management_v1_PlatformDB(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), @@ -243,14 +264,16 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.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.ProjectNodeTypes": schema_pkg_apis_management_v1_ProjectNodeTypes(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectNodeTypesList": schema_pkg_apis_management_v1_ProjectNodeTypesList(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), @@ -272,14 +295,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -292,6 +307,11 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.SnapshotRequest": schema_pkg_apis_management_v1_SnapshotRequest(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError": schema_pkg_apis_management_v1_SnapshotRequestError(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestMetadata": schema_pkg_apis_management_v1_SnapshotRequestMetadata(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestStatus": schema_pkg_apis_management_v1_SnapshotRequestStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotTaken": schema_pkg_apis_management_v1_SnapshotTaken(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), @@ -300,6 +320,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.StandaloneEtcdPeer": schema_pkg_apis_management_v1_StandaloneEtcdPeer(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.StandaloneEtcdPeerCoordinator": schema_pkg_apis_management_v1_StandaloneEtcdPeerCoordinator(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.StandalonePKI": schema_pkg_apis_management_v1_StandalonePKI(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), @@ -317,12 +340,20 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.UsageDownload": schema_pkg_apis_management_v1_UsageDownload(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadList": schema_pkg_apis_management_v1_UsageDownloadList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadSpec": schema_pkg_apis_management_v1_UsageDownloadSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadStatus": schema_pkg_apis_management_v1_UsageDownloadStatus(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), @@ -330,11 +361,14 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -342,6 +376,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -351,15 +389,40 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.VirtualClusterInstanceShell": schema_pkg_apis_management_v1_VirtualClusterInstanceShell(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceShellList": schema_pkg_apis_management_v1_VirtualClusterInstanceShellList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshot": schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshot(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshotList": schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshotStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotStatus(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.VirtualClusterNodeAccessKey": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeySpec": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeyStatus": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsage": schema_pkg_apis_management_v1_VirtualClusterResourceUsage(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageList": schema_pkg_apis_management_v1_VirtualClusterResourceUsageList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageMap": schema_pkg_apis_management_v1_VirtualClusterResourceUsageMap(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageStatus": schema_pkg_apis_management_v1_VirtualClusterResourceUsageStatus(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.VirtualClusterShellSpec": schema_pkg_apis_management_v1_VirtualClusterShellSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterShellStatus": schema_pkg_apis_management_v1_VirtualClusterShellStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandalone": schema_pkg_apis_management_v1_VirtualClusterStandalone(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneList": schema_pkg_apis_management_v1_VirtualClusterStandaloneList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneSpec": schema_pkg_apis_management_v1_VirtualClusterStandaloneSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneStatus": schema_pkg_apis_management_v1_VirtualClusterStandaloneStatus(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/management/v1.VolumeSnapshotRequestStatus": schema_pkg_apis_management_v1_VolumeSnapshotRequestStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VolumeSnapshotsRequestStatus": schema_pkg_apis_management_v1_VolumeSnapshotsRequestStatus(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), @@ -392,9 +455,12 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.ClusterAPINodeTypeSpec": schema_pkg_apis_storage_v1_ClusterAPINodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAPIObjects": schema_pkg_apis_storage_v1_ClusterAPIObjects(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), @@ -409,37 +475,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -451,17 +487,46 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.KubeVirtNodeTypeSpec": schema_pkg_apis_storage_v1_KubeVirtNodeTypeSpec(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.ManagedNodeTypeObjectMeta": schema_pkg_apis_storage_v1_ManagedNodeTypeObjectMeta(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.NamedNodeTypeSpec": schema_pkg_apis_storage_v1_NamedNodeTypeSpec(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.NodeEnvironment": schema_pkg_apis_storage_v1_NodeEnvironment(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentList": schema_pkg_apis_storage_v1_NodeEnvironmentList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentSpec": schema_pkg_apis_storage_v1_NodeEnvironmentSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentStatus": schema_pkg_apis_storage_v1_NodeEnvironmentStatus(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.NodeProviderClusterAPI": schema_pkg_apis_storage_v1_NodeProviderClusterAPI(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterRef": schema_pkg_apis_storage_v1_NodeProviderClusterRef(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.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.NodeProviderTerraform": schema_pkg_apis_storage_v1_NodeProviderTerraform(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.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), @@ -475,20 +540,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.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.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), @@ -505,6 +559,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -523,6 +578,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.TerraformNodeEnvironmentTemplate": schema_pkg_apis_storage_v1_TerraformNodeEnvironmentTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformNodeTypeSpec": schema_pkg_apis_storage_v1_TerraformNodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate": schema_pkg_apis_storage_v1_TerraformTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplateSourceGit": schema_pkg_apis_storage_v1_TerraformTemplateSourceGit(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), @@ -553,12 +612,14 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.CspPolicy": schema_pkg_apis_ui_v1_CspPolicy(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.ExternalURLs": schema_pkg_apis_ui_v1_ExternalURLs(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/ui/v1.VClusterVersion": schema_pkg_apis_ui_v1_VClusterVersion(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), @@ -590,13 +651,22 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.ApplyConfiguration": schema_k8sio_api_admissionregistration_v1beta1_ApplyConfiguration(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.JSONPatch": schema_k8sio_api_admissionregistration_v1beta1_JSONPatch(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.MutatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicy(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBinding(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBindingList(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBindingSpec(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyList(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicySpec(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.Mutation": schema_k8sio_api_admissionregistration_v1beta1_Mutation(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), @@ -835,10 +905,16 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -870,9 +946,12 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.ContainerExtendedResourceRequest": schema_k8sio_api_core_v1_ContainerExtendedResourceRequest(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.ContainerRestartRule": schema_k8sio_api_core_v1_ContainerRestartRule(ref), + "k8s.io/api/core/v1.ContainerRestartRuleOnExitCodes": schema_k8sio_api_core_v1_ContainerRestartRuleOnExitCodes(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), @@ -901,6 +980,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.FileKeySelector": schema_k8sio_api_core_v1_FileKeySelector(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), @@ -954,6 +1034,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -975,10 +1056,12 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.PodCertificateProjection": schema_k8sio_api_core_v1_PodCertificateProjection(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.PodExtendedResourceClaimStatus": schema_k8sio_api_core_v1_PodExtendedResourceClaimStatus(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), @@ -1120,6 +1203,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -1144,7 +1230,12 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -1243,6 +1334,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.VolumeAttributesClass": schema_k8sio_api_storage_v1_VolumeAttributesClass(ref), + "k8s.io/api/storage/v1.VolumeAttributesClassList": schema_k8sio_api_storage_v1_VolumeAttributesClassList(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), @@ -1336,6 +1429,11 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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 +1635,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: "", }, }, }, @@ -1762,6 +1853,22 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_License(ref common.ReferenceCallba Format: "", }, }, + "annotations": { + SchemaProps: spec.SchemaProps{ + Description: "Annotations contains additional metadata about the license.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, "analytics": { SchemaProps: spec.SchemaProps{ Description: "Analytics indicates the analytics endpoints and which requests should be sent to the analytics server.", @@ -1986,6 +2093,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: "", + }, + }, }, }, }, @@ -2321,6 +2435,41 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref common.ReferenceCall } } +func schema_loft_sh_admin_apis_pkg_licenseapi_PlatformDatabase(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PlatformDatabase contains information about the local platform database installation", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "isReady": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "creationTimestamp": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "latestUpdateTimestamp": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"isReady", "creationTimestamp", "latestUpdateTimestamp"}, + }, + }, + } +} + func schema_loft_sh_admin_apis_pkg_licenseapi_PriceTier(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -2439,6 +2588,13 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_ResourceCount(ref common.Reference Format: "int64", }, }, + "committed": { + SchemaProps: spec.SchemaProps{ + Description: "Committed specifies the amount of resource consumption customers have committed to for a given billing period. It can be exceeded and will then be charged with overage fees.", + Type: []string{"integer"}, + Format: "int64", + }, + }, }, }, }, @@ -2966,39 +3122,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 +4845,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 +5426,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 +6316,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\".", @@ -6152,6 +6396,13 @@ func schema_pkg_apis_management_v1_AuthenticationOIDC(ref common.ReferenceCallba Format: "", }, }, + "resource": { + SchemaProps: spec.SchemaProps{ + Description: "Resource, if specified, is the value that is set for the \"resource\" URL parameter when making a request to the /token endpoint of the OIDC provider.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -6587,6 +6838,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 +7119,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 +7415,25 @@ 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"), + }, + }, + "authenticateVersionEndpoint": { + SchemaProps: spec.SchemaProps{ + Description: "AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later", + Type: []string{"boolean"}, + Format: "", + }, + }, }, Required: []string{"analyticsSpec"}, }, }, Dependencies: []string{ - "github.com/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 +7498,25 @@ 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"), + }, + }, + "authenticateVersionEndpoint": { + SchemaProps: spec.SchemaProps{ + Description: "AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later", + Type: []string{"boolean"}, + Format: "", + }, + }, }, Required: []string{"analyticsSpec"}, }, }, Dependencies: []string{ - "github.com/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 +8431,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 +8476,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"}, } } @@ -8388,7 +8668,7 @@ func schema_pkg_apis_management_v1_ConfigStatus(ref common.ReferenceCallback) co }, "devPodSubDomain": { SchemaProps: spec.SchemaProps{ - Description: "DevPodSubDomain holds a subdomain in the following form *.workspace.my-domain.com", + Description: "DEPRECATED: DevPodSubDomain holds a subdomain in the following form *.workspace.my-domain.com DevPodSubDomain holds a subdomain in the following form *.workspace.my-domain.com", Type: []string{"string"}, Format: "", }, @@ -8412,11 +8692,42 @@ func schema_pkg_apis_management_v1_ConfigStatus(ref common.ReferenceCallback) co Format: "", }, }, + "authenticateVersionEndpoint": { + SchemaProps: spec.SchemaProps{ + Description: "AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later", + Type: []string{"boolean"}, + Format: "", + }, + }, + "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"), + }, + }, + "platformDB": { + SchemaProps: spec.SchemaProps{ + Description: "PlatformDB holds the settings related to the postgres database that platform uses to store data", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.PlatformDB"), + }, + }, + "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/management/v1.PlatformDB", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig"}, } } @@ -8701,11 +9012,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 +9218,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 +9277,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,15 +9288,52 @@ 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_DevPodEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplate holds the DevPodEnvironmentTemplate information", + 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"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DirectClusterEndpointToken holds the object information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -8812,24 +9359,24 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref common.Referenc "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec"), + 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.DevPodEnvironmentTemplateStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "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_DevPodEnvironmentTemplateList(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{ @@ -8862,7 +9409,7 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(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.DevPodEnvironmentTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken"), }, }, }, @@ -8873,89 +9420,63 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref common.Refe }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "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_DevPodEnvironmentTemplateSpec(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: "DevPodEnvironmentTemplateSpec holds the specification", + Description: "DirectClusterEndpointTokenSpec holds the object 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: "", - }, - }, - "git": { - 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"), - }, - }, - "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"), - }, - }, - "access": { + "ttl": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "The time to life for this access token in seconds", + Type: []string{"integer"}, + Format: "int64", }, }, - "versions": { + "scope": { 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.DevPodEnvironmentTemplateVersion"), - }, - }, - }, + 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.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.AccessKeyScope"}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateStatus holds the status", + 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_DevPodSshOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "Event holds an event", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -8971,20 +9492,33 @@ func schema_pkg_apis_management_v1_DevPodSshOptions(ref common.ReferenceCallback 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.EventSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + 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.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_DevPodSshOptionsList(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{ @@ -9017,7 +9551,7 @@ func schema_pkg_apis_management_v1_DevPodSshOptionsList(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.DevPodSshOptions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Event"), }, }, }, @@ -9028,15 +9562,27 @@ func schema_pkg_apis_management_v1_DevPodSshOptionsList(ref common.ReferenceCall }, }, 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.Event", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodStatusOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_EventSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "EventSpec holds the specification", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_EventStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "EventStatus holds the status, which is the parsed raw config", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -9052,72 +9598,148 @@ func schema_pkg_apis_management_v1_DevPodStatusOptions(ref common.ReferenceCallb Format: "", }, }, - "options": { + "level": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", + Description: "AuditLevel at which event was generated", + Default: "", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_DevPodStatusOptionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "auditID": { 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: "Unique audit ID, generated for each request.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "stage": { 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: "Stage of the request handling when this event instance was generated.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "requestURI": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "RequestURI is the request URI as sent by the client to a server.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "verb": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Verb is the kubernetes verb associated with the request. For non-resource requests, this is the lower-cased HTTP method.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "user": { + SchemaProps: spec.SchemaProps{ + Description: "Authenticated user information.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + }, + }, + "impersonatedUser": { + SchemaProps: spec.SchemaProps{ + 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.DevPodStatusOptions"), + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "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": { + 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{"items"}, + Required: []string{"level", "auditID", "stage", "requestURI", "verb", "user"}, }, }, 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/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_DevPodStopOptions(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{ - Type: []string{"object"}, + Description: "Feature holds the feature information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -9133,20 +9755,33 @@ 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"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + 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.FeatureStatus"), }, }, }, }, }, + 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"}, } } -func schema_pkg_apis_management_v1_DevPodStopOptionsList(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{ @@ -9179,7 +9814,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.Feature"), }, }, }, @@ -9190,117 +9825,180 @@ 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.Feature", "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_FeatureSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + 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: "", + }, + }, + "preview": { + SchemaProps: spec.SchemaProps{ + Description: "Preview represents whether the feature can be previewed if a user's license does not allow the feature", + Type: []string{"boolean"}, + Format: "", + }, + }, + "allowBefore": { + SchemaProps: spec.SchemaProps{ + Description: "AllowBefore is an optional timestamp. If set, licenses issued before this time are allowed to use the feature even if it's not included in the license.", Type: []string{"string"}, Format: "", }, }, - "webMode": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "WebMode executes the up command directly.", - Type: []string{"boolean"}, + Description: "Status shows the status of the feature (see type FeatureStatus)", + Type: []string{"string"}, Format: "", }, }, - "cliMode": { + "module": { SchemaProps: spec.SchemaProps{ - Description: "CLIMode executes the up command directly.", - Type: []string{"boolean"}, + Description: "Name of the module that this feature belongs to", + Type: []string{"string"}, Format: "", }, }, - "debug": { + "internal": { SchemaProps: spec.SchemaProps{ - Description: "Debug includes debug logs.", + Description: "Internal marks internal features that should not be shown on the license view", Type: []string{"boolean"}, Format: "", }, }, - "options": { + "used": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", - Type: []string{"string"}, + Description: "Used marks features that are currently used in the product", + Type: []string{"boolean"}, Format: "", }, }, }, + Required: []string{"name"}, }, }, } } -func schema_pkg_apis_management_v1_DevPodUpOptionsList(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{ - "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": { + "group": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Group is the name of the API group that contains the resources. The empty string represents the core API group.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "resources": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + 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: "", + }, + }, + }, }, }, - "items": { + "resourceNames": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "ResourceNames is a list of resource instance names that the policy matches. Using this field requires Resources to be specified. An empty list implies that every instance of the resource is matched.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodUpOptions"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, + }, + }, + } +} + +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{ + "enabled": { + SchemaProps: spec.SchemaProps{ + Description: "Enabled specifies whether the remote image builder should be available. If it's not available building ad-hoc images from a devcontainer.json is not supported", + Type: []string{"boolean"}, + Format: "", + }, + }, + "replicas": { + SchemaProps: spec.SchemaProps{ + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "resources": { + 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/api/v4/pkg/apis/management/v1.DevPodUpOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/api/core/v1.ResourceRequirements"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(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: "DevPodWorkspaceInstance holds the DevPodWorkspaceInstance information", + Description: "IngressAuthToken holds the object information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -9326,24 +10024,24 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref common.ReferenceC "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec"), + 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.DevPodWorkspaceInstanceStatus"), + 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.DevPodWorkspaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus", "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_DevPodWorkspaceInstanceList(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{ @@ -9376,7 +10074,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.IngressAuthToken"), }, }, }, @@ -9387,104 +10085,62 @@ 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.IngressAuthToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceSpec holds the specification", + Description: "IngressAuthTokenSpec holds the object 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": { + "host": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a DevPod machine instance", + Description: "Host is the host where the UI should get redirected", 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 DevPod machine template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "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"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for DevPod machine creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "runnerRef": { - 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"), - }, - }, - "parameters": { + "signature": { SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", + Description: "Signature is the signature of the agent for the host", Type: []string{"string"}, Format: "", }, }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "preventWakeUpOnConnection": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IngressAuthTokenStatus holds the object status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "token": { SchemaProps: spec.SchemaProps{ - Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", - Type: []string{"boolean"}, - Format: "", + Type: []string{"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.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"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceState(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{ - Type: []string{"object"}, + Description: "Kiosk holds the kiosk types", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -9506,22 +10162,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.KioskSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus"), }, }, }, }, }, Dependencies: []string{ - "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_DevPodWorkspaceInstanceStateList(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{ @@ -9554,7 +10215,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.Kiosk"), }, }, }, @@ -9565,97 +10226,127 @@ 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.Kiosk", "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_KioskSpec(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": { + "helmRelease": { SchemaProps: spec.SchemaProps{ - Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", - 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"), }, }, - "phase": { + "sleepModeConfig": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the DevPod machine instance is in", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), }, }, - "reason": { + "chartInfo": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo"), }, }, - "message": { + "storageClusterQuota": { 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: "", + Description: "storage.loft.sh", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota"), }, }, - "conditions": { + "UISettings": { 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"), - }, - }, - }, + Description: "ui.loft.sh", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings"), }, }, - "instance": { + "license": { 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"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.License"), }, }, - "ignoreReconciliation": { + "nodeProviderBCMNodeWithResources": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation ignores reconciliation for this object", - Type: []string{"boolean"}, - Format: "", + Description: "autoscaling", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeWithResources"), }, }, - "clusterRef": { + "nodeProviderBCMGetResourcesResult": { 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"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMGetResourcesResult"), }, }, - "sleepModeConfig": { + "nodeProviderBCMTestConnectionResult": { 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"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMTestConnectionResult"), + }, + }, + "nodeProviderCalculateCostResult": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderCalculateCostResult"), + }, + }, + "nodeProviderTerraformValidateResult": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderTerraformValidateResult"), + }, + }, + "nodeProviderExecResult": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecResult"), + }, + }, + "nodeClaimData": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimData"), + }, + }, + "nodeEnvironmentData": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentData"), }, }, }, }, }, 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"}, + "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/management/v1.NodeClaimData", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentData", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMGetResourcesResult", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeWithResources", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMTestConnectionResult", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderCalculateCostResult", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecResult", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderTerraformValidateResult", "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"}, + }, + }, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_License(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplate holds the information", + Description: "License holds the license information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -9681,24 +10372,24 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref common.ReferenceC "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec"), + 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.DevPodWorkspaceTemplateStatus"), + 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.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.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_DevPodWorkspaceTemplateList(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{ @@ -9731,7 +10422,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.License"), }, }, }, @@ -9742,110 +10433,15 @@ 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"}, - } -} - -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateSpec 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"), - }, - }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set provider values", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), - }, - }, - }, - }, - }, - "template": { - 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"), - }, - }, - "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.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"), - }, - }, - }, - }, - }, - }, - }, - }, - 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_DevPodWorkspaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateStatus 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_DirectClusterEndpointToken(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: "DirectClusterEndpointToken holds the object information", + Description: "LicenseRequest holds license request information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -9870,25 +10466,27 @@ 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"), + 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.DirectClusterEndpointTokenStatus"), + 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.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.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_DirectClusterEndpointTokenList(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{ @@ -9921,7 +10519,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.LicenseRequest"), }, }, }, @@ -9932,49 +10530,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.LicenseRequest", "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_LicenseRequestSpec(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": { + "url": { SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access token in seconds", - Type: []string{"integer"}, - Format: "int64", + Description: "URL is the url for the request.", + Type: []string{"string"}, + Format: "", }, }, - "scope": { + "input": { 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: "Input is the input payload to send to the url.", + 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_LicenseRequestStatus(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": { + "output": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Output is where the request output is stored.", + Type: []string{"string"}, + Format: "", }, }, }, @@ -9983,11 +10579,62 @@ 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_LicenseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Event holds an event", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_LicenseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "license": { + 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"), + }, + }, + "resourceUsage": { + 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"), + }, + }, + }, + }, + }, + "platformDatabase": { + SchemaProps: spec.SchemaProps{ + Description: "PlatformDatabase shows information about the platform database installation", + Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.PlatformDatabase"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/admin-apis/pkg/licenseapi.License", "github.com/loft-sh/admin-apis/pkg/licenseapi.PlatformDatabase", "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"}, + } +} + +func schema_pkg_apis_management_v1_LoftUpgrade(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "LoftUpgrade holds the upgrade information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10013,24 +10660,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.LoftUpgradeSpec"), }, }, "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.LoftUpgradeStatus"), }, }, }, }, }, 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.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_EventList(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{ @@ -10063,7 +10710,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.LoftUpgrade"), }, }, }, @@ -10074,183 +10721,152 @@ 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.LoftUpgrade", "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_LoftUpgradeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "EventStatus holds the status, which is the parsed raw config", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "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: "", }, }, - "level": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "AuditLevel at which event was generated", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "auditID": { + }, + }, + }, + } +} + +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: "Unique audit ID, generated for each request.", - Default: "", + 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: "", }, }, - "stage": { + "timeWindow": { SchemaProps: spec.SchemaProps{ - Description: "Stage of the request handling when this event instance was generated.", - Default: "", + 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: "", }, }, - "requestURI": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_ManagementRole(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "RequestURI is the request URI as sent by the client to a server.", - Default: "", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "verb": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Verb is the kubernetes verb associated with the request. For non-resource requests, this is the lower-cased HTTP method.", - Default: "", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "user": { - SchemaProps: spec.SchemaProps{ - Description: "Authenticated user information.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), - }, - }, - "impersonatedUser": { - SchemaProps: spec.SchemaProps{ - 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: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "userAgent": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "UserAgent records the user agent string reported by the client. Note that the UserAgent is provided by the client, and must not be trusted.", + Description: "DisplayName is the name of the object to display in the UI", 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": { + "assignedVia": { SchemaProps: spec.SchemaProps{ - Description: "Time the request reached the apiserver.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + 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"), }, }, - "stageTimestamp": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, + } +} + +func schema_pkg_apis_management_v1_NamespacedNameArgs(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Time the request reached current audit stage.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "annotations": { + "name": { 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: "", - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"level", "auditID", "stage", "requestURI", "verb", "user"}, + Required: []string{"namespace", "name"}, }, }, - 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"}, } } -func schema_pkg_apis_management_v1_Feature(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: "Feature holds the feature information", + Description: "NodeClaim holds the node claim for vCluster.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10276,128 +10892,154 @@ 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.NodeClaimSpec"), }, }, "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.NodeClaimStatus"), }, }, }, }, }, 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.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_FeatureList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeClaimData(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "userData": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "UserData that should be used to start the node.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "state": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Terraform state of the node claim.", Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Format: "byte", }, }, - "items": { + "operations": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Operations that were applied to the node claim.", + 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.Feature"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Operation"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Operation"}, } } -func schema_pkg_apis_management_v1_FeatureSpec(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{ - 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"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the feature (FeatureName) This cannot be FeatureName because it needs to be downward compatible e.g. older 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: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - 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: "", }, }, - "description": { + "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Status shows the status of the feature (see type FeatureStatus)", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaim"), + }, + }, + }, }, }, - "compatibility": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "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_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: "Compatibility contains a series of semver compatibility constraints", - 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"), + }, + }, + }, }, }, - "labels": { + "startupTaints": { SchemaProps: spec.SchemaProps{ - Description: "Labels contains a list of labels to be displayed for this feature (e.g. alpha, beta)", + 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: "", @@ -10408,102 +11050,126 @@ func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) c }, }, }, - "internal": { + "desiredCapacity": { SchemaProps: spec.SchemaProps{ - Description: "Internal marks internal features that should not be shown on the license view", - Type: []string{"boolean"}, - Format: "", + 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"), + }, + }, + }, }, }, - "used": { + "requirements": { SchemaProps: spec.SchemaProps{ - Description: "Used marks features that are currently used in the product", - Type: []string{"boolean"}, - Format: "", + 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"), + }, + }, + }, }, }, - }, - Required: []string{"name"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_GitEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "GitEnvironmentTemplate stores configuration of Git environment template source", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "repository": { + "properties": { + SchemaProps: spec.SchemaProps{ + Description: "Properties are extra properties for the NodeClaim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Repository stores repository URL for Git environment spec source", + Description: "ProviderRef is the name of the NodeProvider that this NodeClaim is based on.", Default: "", Type: []string{"string"}, Format: "", }, }, - "revision": { + "typeRef": { SchemaProps: spec.SchemaProps{ - Description: "Revision stores revision to checkout in repository", + Description: "TypeRef is the full name of the NodeType that this NodeClaim is based on.", Type: []string{"string"}, Format: "", }, }, - "subpath": { + "vClusterRef": { SchemaProps: spec.SchemaProps{ - Description: "SubPath stores subpath within Repositor where environment spec is", + Description: "VClusterRef references source vCluster. This is required.", + Default: "", Type: []string{"string"}, Format: "", }, }, + "controlPlane": { + SchemaProps: spec.SchemaProps{ + Description: "ControlPlane indicates if the node claim is for a control plane node. This is intentionally not omitempty as we want to ensure that the control plane is always set for easier checking in for example terraform templates.", + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, }, - Required: []string{"repository"}, + Required: []string{"providerRef", "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_GroupResources(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{ - Description: "GroupResources represents resource kinds in an API group.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "group": { + "phase": { 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: "Phase is the current lifecycle phase of the NodeClaim.", Type: []string{"string"}, Format: "", }, }, - "resources": { + "reason": { 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: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", }, }, - "resourceNames": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "ResourceNames is a list of resource instance names that the policy matches. Using this field requires Resources to be specified. An empty list implies that every instance of the resource is matched.", + Description: "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: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, @@ -10512,14 +11178,16 @@ func schema_pkg_apis_management_v1_GroupResources(ref common.ReferenceCallback) }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_IngressAuthToken(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeEnvironment(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IngressAuthToken holds the object information", + Description: "NodeEnvironment holds the node environment for vCluster.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10545,24 +11213,66 @@ 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.NodeEnvironmentSpec"), }, }, "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.NodeEnvironmentStatus"), }, }, }, }, }, 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.NodeEnvironmentSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentStatus", "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_NodeEnvironmentData(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "outputs": { + SchemaProps: spec.SchemaProps{ + Description: "Outputs of the node environment.", + Type: []string{"string"}, + Format: "byte", + }, + }, + "state": { + SchemaProps: spec.SchemaProps{ + Description: "Terraform state of the node environment.", + Type: []string{"string"}, + Format: "byte", + }, + }, + "operations": { + SchemaProps: spec.SchemaProps{ + Description: "Operations that were applied to the node environment.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Operation"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Operation"}, + } +} + +func schema_pkg_apis_management_v1_NodeEnvironmentList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -10595,7 +11305,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.NodeEnvironment"), }, }, }, @@ -10606,61 +11316,118 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironment", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeEnvironmentSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IngressAuthTokenSpec holds the object specification", + Description: "NodeEnvironmentSpec defines spec of node environment.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "host": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Host is the host where the UI should get redirected", + Description: "Properties are the properties for the NodeEnvironment.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the name of the NodeProvider that this NodeEnvironment is based on.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "signature": { + "vClusterRef": { SchemaProps: spec.SchemaProps{ - Description: "Signature is the signature of the agent for the host", + Description: "VClusterRef references source vCluster. This is required.", + Default: "", Type: []string{"string"}, Format: "", }, }, + "controlPlane": { + SchemaProps: spec.SchemaProps{ + Description: "ControlPlane indicates if the node environment is a control plane environment. This is intentionally not omitempty as we want to ensure that the control plane is always set for easier checking in for example terraform templates.", + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, }, + Required: []string{"providerRef", "vClusterRef"}, }, }, } } -func schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeEnvironmentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IngressAuthTokenStatus holds the object status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "phase": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Phase is the current lifecycle phase of the NodeEnvironment.", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions describe the current state of the platform NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("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_Kiosk(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{ - Description: "Kiosk holds the kiosk types", + 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": { @@ -10686,140 +11453,185 @@ func schema_pkg_apis_management_v1_Kiosk(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.KioskSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus"), + 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.KioskSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus", "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_KioskList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderBCMGetResourcesResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ 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": { + "nodes": { 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"), + 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.NodeProviderBCMNodeWithResources"), + }, + }, + }, }, }, - "items": { + "nodeGroups": { 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.Kiosk"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeGroup"), }, }, }, }, }, }, - Required: []string{"items"}, + Required: []string{"nodes", "nodeGroups"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeGroup", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeWithResources"}, } } -func schema_pkg_apis_management_v1_KioskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderBCMNodeGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "helmRelease": { + "name": { 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"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "sleepModeConfig": { + "nodes": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "chartInfo": { + }, + Required: []string{"name", "nodes"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_NodeProviderBCMNodeWithResources(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "storageClusterQuota": { + "resources": { 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"), + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, }, }, - "UISettings": { + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + } +} + +func schema_pkg_apis_management_v1_NodeProviderBCMTestConnectionResult(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "success": { SchemaProps: spec.SchemaProps{ - Description: "ui.loft.sh", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings"), + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "license": { + "message": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.License"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"success", "message"}, }, }, - 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 { +func schema_pkg_apis_management_v1_NodeProviderCalculateCostResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cost": { + SchemaProps: spec.SchemaProps{ + Default: 0, + Type: []string{"integer"}, + Format: "int64", + }, + }, + }, + Required: []string{"cost"}, }, }, } } -func schema_pkg_apis_management_v1_License(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderExec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "License holds the license information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -10844,24 +11656,25 @@ 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.NodeProviderExecSpec"), }, }, "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.NodeProviderExecStatus"), }, }, }, + Required: []string{"spec"}, }, }, 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.NodeProviderExecSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecStatus", "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_NodeProviderExecList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -10894,7 +11707,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.NodeProviderExec"), }, }, }, @@ -10905,60 +11718,86 @@ 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.NodeProviderExec", "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_NodeProviderExecResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "LicenseRequest holds license request information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "success": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Default: false, + Type: []string{"boolean"}, + 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", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "metadata": { + }, + Required: []string{"success", "message"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_NodeProviderExecSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "command": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Command is the action to perform.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "args": { 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"), + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), }, }, - "status": { + }, + Required: []string{"command"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + } +} + +func schema_pkg_apis_management_v1_NodeProviderExecStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "result": { 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"), + Description: "Result is the output of the executed command.", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), }, }, }, }, }, 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"}, + "k8s.io/apimachinery/pkg/runtime.RawExtension"}, } } -func schema_pkg_apis_management_v1_LicenseRequestList(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{ @@ -10991,7 +11830,7 @@ func schema_pkg_apis_management_v1_LicenseRequestList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProvider"), }, }, }, @@ -11002,108 +11841,154 @@ func schema_pkg_apis_management_v1_LicenseRequestList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest", "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_LicenseRequestSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeProviderSpec defines the desired state of NodeProvider. Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "URL is the url for the request.", - Type: []string{"string"}, - Format: "", + Description: "Properties are global properties that are applied to all node claims and environments managed by this provider.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "input": { + "bcm": { 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: "BCM configures a node provider for BCM Bare Metal Cloud environments.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM"), }, }, - }, - }, + "kubeVirt": { + SchemaProps: spec.SchemaProps{ + Description: "Kubevirt configures a node provider using KubeVirt, enabling virtual machines to be provisioned as nodes within a vCluster.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt"), + }, + }, + "terraform": { + SchemaProps: spec.SchemaProps{ + Description: "Terraform configures a node provider using Terraform, enabling nodes to be provisioned using Terraform.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderTerraform"), + }, + }, + "clusterAPI": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterAPI configures a node provider using Cluster API, enabling nodes to be provisioned using Cluster API. This requires the vCluster to be deployed with Cluster API as well.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterAPI"), + }, + }, + "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/admin-apis/pkg/licenseapi.GenericRequestInput"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterAPI", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderTerraform"}, } } -func schema_pkg_apis_management_v1_LicenseRequestStatus(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{ - "output": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Output is where the request output is stored.", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"), + 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/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "phase": { + SchemaProps: spec.SchemaProps{ + 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: "", }, }, }, }, }, 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"}, - }, - }, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_LicenseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderTerraformValidateResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "license": { + "success": { 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"), + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "resourceUsage": { + "output": { 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"), - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"success", "output"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.License", "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"}, } } -func schema_pkg_apis_management_v1_LicenseToken(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: "License Token holds the license token information", + Description: "NodeType holds the information of a node type.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -11129,24 +12014,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.NodeTypeSpec"), }, }, "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.NodeTypeStatus"), }, }, }, }, }, 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.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_LicenseTokenList(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{ @@ -11179,7 +12064,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.NodeType"), }, }, }, @@ -11190,187 +12075,155 @@ 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.NodeType", "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_NodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "payload": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -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{ - "token": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"), + Description: "ProviderRef is the node provider to use for this node type.", + 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 { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "LoftUpgrade holds the upgrade information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Properties 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: "", + }, + }, + }, }, }, - "apiVersion": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "Resources 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"), + }, + }, + }, }, }, - "metadata": { + "overhead": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead"), }, }, - "spec": { + "cost": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec"), + 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", }, }, - "status": { + "displayName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus"), + 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.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/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_management_v1_LoftUpgradeList(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": { + "cost": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Cost is the calculated instance cost from the resources specified or the price specified from spec. The higher the cost, the less likely it is to be selected.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "capacity": { + SchemaProps: spec.SchemaProps{ + Description: "Capacity is the capacity of the node type.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"), + }, + }, + "requirements": { + SchemaProps: spec.SchemaProps{ + Description: "Requirements is the calculated requirements based of the properties for the node type.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade"), + Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), }, }, }, }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "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_LoftUpgradeSpec(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: "If specified, updated the release in the given namespace", - Type: []string{"string"}, - Format: "", - }, - }, - "release": { - SchemaProps: spec.SchemaProps{ - Description: "If specified, uses this as release name", - Type: []string{"string"}, - Format: "", - }, - }, - "version": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + 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/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, }, }, }, }, }, - } -} - -func schema_pkg_apis_management_v1_LoftUpgradeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, + 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", "k8s.io/api/core/v1.NodeSelectorRequirement"}, } } @@ -11573,6 +12426,135 @@ func schema_pkg_apis_management_v1_OIDCClientStatus(ref common.ReferenceCallback } } +func schema_pkg_apis_management_v1_ObjectName(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "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: "", + }, + }, + }, + }, + }, + } +} + +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: "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: "", + }, + }, + "verbs": { + SchemaProps: spec.SchemaProps{ + 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: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"verbs"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_Operation(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "startTimestamp": { + SchemaProps: spec.SchemaProps{ + Description: "StartTimestamp of the operation.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "endTimestamp": { + SchemaProps: spec.SchemaProps{ + Description: "EndTimestamp of the operation.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Phase of the operation.", + Type: []string{"string"}, + Format: "", + }, + }, + "logs": { + SchemaProps: spec.SchemaProps{ + Description: "Logs of the operation.", + Type: []string{"string"}, + Format: "byte", + }, + }, + "error": { + SchemaProps: spec.SchemaProps{ + Description: "Error of the operation.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -11768,7 +12750,7 @@ func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallba "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"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), }, }, "identityRefresh": { @@ -11800,7 +12782,7 @@ func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallba }, }, 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/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"}, } } @@ -11824,6 +12806,25 @@ func schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref common.ReferenceCall } } +func schema_pkg_apis_management_v1_PlatformDB(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "storageClass": { + SchemaProps: spec.SchemaProps{ + Description: "StorageClass sets the storage class for the PersistentVolumeClaim used by the platform database statefulSet.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_management_v1_PredefinedApp(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -12235,25 +13236,11 @@ func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) }, }, }, - "runners": { - 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"), - }, - }, - }, - }, - }, }, }, }, 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -12608,6 +13595,55 @@ func schema_pkg_apis_management_v1_ProjectMembersList(ref common.ReferenceCallba } } +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{ + "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 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"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "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_ProjectMigrateSpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -12842,7 +13878,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(re } } -func schema_pkg_apis_management_v1_ProjectRunners(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectNodeTypes(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -12868,15 +13904,29 @@ func schema_pkg_apis_management_v1_ProjectRunners(ref common.ReferenceCallback) Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "runners": { + "nodeProviders": { + SchemaProps: spec.SchemaProps{ + Description: "NodeProviders holds all the allowed node providers for the project", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProvider"), + }, + }, + }, + }, + }, + "nodeTypes": { SchemaProps: spec.SchemaProps{ - Description: "Runners holds all the allowed runners", + Description: "NodeTypes holds all the allowed node types for the project", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType"), }, }, }, @@ -12886,11 +13936,11 @@ func schema_pkg_apis_management_v1_ProjectRunners(ref common.ReferenceCallback) }, }, 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.NodeProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectRunnersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectNodeTypesList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -12923,7 +13973,7 @@ func schema_pkg_apis_management_v1_ProjectRunnersList(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.ProjectRunners"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectNodeTypes"), }, }, }, @@ -12934,7 +13984,47 @@ func schema_pkg_apis_management_v1_ProjectRunnersList(ref common.ReferenceCallba }, }, 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/api/v4/pkg/apis/management/v1.ProjectNodeTypes", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +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{ + "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: "", + }, + }, + "isAdmin": { + SchemaProps: spec.SchemaProps{ + Description: "IsAdmin describes whether this is an admin project role", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, } } @@ -13176,7 +14266,7 @@ func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) com }, "allowedRunners": { SchemaProps: spec.SchemaProps{ - Description: "AllowedRunners are target runners that are allowed to target with DevPod environments.", + Description: "AllowedRunners are target runners that are allowed to target with", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -13209,6 +14299,13 @@ func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) com 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", @@ -13261,17 +14358,11 @@ func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) com 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.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/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.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"}, } } @@ -13378,57 +14469,130 @@ func schema_pkg_apis_management_v1_ProjectTemplates(ref common.ReferenceCallback }, }, }, - "defaultDevPodWorkspaceTemplate": { + }, + }, + }, + Dependencies: []string{ + "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_ProjectTemplatesList(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: "DefaultDevPodWorkspaceTemplate", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "devPodWorkspaceTemplates": { + "metadata": { 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"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "devPodEnvironmentTemplates": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplates holds all the allowed environment templates", - 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/management/v1.DevPodEnvironmentTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates"), }, }, }, }, }, - "defaultDevPodEnvironmentTemplate": { + }, + 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 { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "RedirectToken holds the object information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DefaultDevPodEnvironmentTemplate", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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.RedirectTokenSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus"), + }, + }, }, }, }, 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/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_ProjectTemplatesList(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: "RedirectTokenClaims holds the private claims of the redirect token", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "url": { + SchemaProps: spec.SchemaProps{ + Description: "URL is the url to redirect to.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -13461,7 +14625,7 @@ func schema_pkg_apis_management_v1_ProjectTemplatesList(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.ProjectTemplates"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken"), }, }, }, @@ -13472,169 +14636,54 @@ func schema_pkg_apis_management_v1_ProjectTemplatesList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "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_RedirectToken(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RedirectToken holds the object 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.RedirectTokenSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus"), - }, - }, - }, - }, - }, - 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"}, - } -} - -func schema_pkg_apis_management_v1_RedirectTokenClaims(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RedirectTokenClaims holds the private claims of the redirect token", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "url": { - SchemaProps: spec.SchemaProps{ - Description: "URL is the url to redirect to.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -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: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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.RedirectToken"), - }, - }, - }, - }, - }, - }, - 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: "Token is the token that includes the redirect request", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_RedirectTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RedirectTokenStatus holds the object status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "redirectURL": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_RegisterVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RegisterVirtualCluster holds config request and response data for virtual clusters", + Description: "RedirectTokenSpec holds the object specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "token": { + SchemaProps: spec.SchemaProps{ + Description: "Token is the token that includes the redirect request", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_RedirectTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "RedirectTokenStatus holds the object status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "redirectURL": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_RegisterVirtualCluster(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"}, Properties: map[string]spec.Schema{ "kind": { @@ -13739,6 +14788,13 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref common.Referen Format: "", }, }, + "kubernetesVersion": { + SchemaProps: spec.SchemaProps{ + Description: "KubernetesVersion is the Kubernetes version of the virtual cluster.", + Type: []string{"string"}, + Format: "", + }, + }, "project": { SchemaProps: spec.SchemaProps{ Description: "Project is the project name the virtual cluster should be in.", @@ -13801,6 +14857,13 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref common.Refer Format: "", }, }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace is the namespace of the virtual cluster instance.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -14002,7 +15065,7 @@ func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallba "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"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), }, }, "identityRefresh": { @@ -14034,7 +15097,7 @@ func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallba }, }, 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/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"}, } } @@ -14058,11 +15121,11 @@ func schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref common.ReferenceCall } } -func schema_pkg_apis_management_v1_Runner(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: "Runner holds the Runner information", + Description: "Self holds information about the currently logged in user", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14088,29 +15151,28 @@ func schema_pkg_apis_management_v1_Runner(ref common.ReferenceCallback) common.O "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus"), }, }, }, }, }, 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.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_RunnerAccessKey(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: "RunnerAccessKey holds the access key for the runner", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -14129,12 +15191,40 @@ 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"), + }, + }, + "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.Self"), + }, + }, + }, }, }, + }, + 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: "AccessKey is the access key used by the runner", + Description: "AccessKey is an optional access key to use instead of the provided one", Type: []string{"string"}, Format: "", }, @@ -14142,64 +15232,117 @@ func schema_pkg_apis_management_v1_RunnerAccessKey(ref common.ReferenceCallback) }, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_RunnerAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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 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: "", }, }, - "apiVersion": { + "accessKeyScope": { 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 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: "", }, }, - "metadata": { + "subject": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "The subject of the currently logged in user", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "uid": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "UID is the user uid", + Type: []string{"string"}, + Format: "", + }, + }, + "groups": { + SchemaProps: spec.SchemaProps{ + Description: "The groups of the currently logged in user", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerAccessKey"), + 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: "", + }, + }, + "loftHost": { + SchemaProps: spec.SchemaProps{ + Description: "LoftHost is the host of the loft instance", + Type: []string{"string"}, + Format: "", + }, + }, + "projectNamespacePrefix": { + SchemaProps: spec.SchemaProps{ + Description: "ProjectNamespacePrefix is the prefix used to name project namespaces after defaulting has been applied", + Type: []string{"string"}, + Format: "", + }, + }, }, - 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.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_RunnerConfig(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: "RunnerConfig holds the config the runner retrieves from Loft", + Description: "User holds the user information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14222,22 +15365,27 @@ func schema_pkg_apis_management_v1_RunnerConfig(ref common.ReferenceCallback) co Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "tokenCaCert": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "TokenCaCert is the certificate authority the Loft tokens will be signed with", - Type: []string{"string"}, - Format: "byte", + 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{ - "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_RunnerConfigList(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{ @@ -14270,7 +15418,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.SelfSubjectAccessReview"), }, }, }, @@ -14281,189 +15429,83 @@ 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.SelfSubjectAccessReview", "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_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.Runner"), - }, - }, - }, + 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.Runner", "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_RunnerSpec(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{ - Description: "RunnerSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", - Type: []string{"string"}, - Format: "", - }, - }, - "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": { + "allowed": { SchemaProps: spec.SchemaProps{ - Description: "If unusable is true, no DevPod workspaces can be scheduled on this runner.", + Description: "Allowed is required. True if the action would be allowed, false otherwise.", + Default: false, 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": { + "denied": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the space instance is in", - 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: "", }, }, "reason": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", + Description: "Reason is optional. It indicates why a request was allowed or denied.", Type: []string{"string"}, Format: "", }, }, - "message": { + "evaluationError": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", + 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: "", }, }, - "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"), - }, - }, - }, - }, - }, }, + Required: []string{"allowed"}, }, }, - 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 { +func schema_pkg_apis_management_v1_SharedSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Self holds information about the currently logged in user", + Description: "SharedSecret holds the secret information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14489,24 +15531,24 @@ func schema_pkg_apis_management_v1_Self(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.SelfSpec"), + 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.SelfStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus"), }, }, }, }, }, 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.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_SelfList(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{ @@ -14539,7 +15581,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.SharedSecret"), }, }, }, @@ -14550,293 +15592,276 @@ 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.SharedSecret", "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_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{ - "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": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "The name of the currently used access key", + Description: "DisplayName is the name that should be displayed in the UI", 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": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "The type of the currently used access key", + Description: "Description describes a shared secret", Type: []string{"string"}, Format: "", }, }, - "subject": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "The subject of the currently logged in user", - 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"), }, }, - "uid": { + "data": { SchemaProps: spec.SchemaProps{ - Description: "UID is the user uid", - Type: []string{"string"}, - Format: "", + 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", + }, + }, + }, }, }, - "groups": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "The groups of the currently logged in user", + Description: "Access holds the access rights for users and teams which will be transformed to Roles and RoleBindings", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "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"}, + "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_SelfSubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SharedSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "User holds the user information", + Description: "SharedSecretStatus 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": { + "conditions": { 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: "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_SnapshotRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SnapshotRequest is the request to take a snapshot of a volume.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ "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"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestMetadata"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestStatus"), }, }, }, + Required: []string{"status"}, }, }, 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestMetadata", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestStatus"}, } } -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SnapshotRequestError(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SnapshotError describes the error that occurred while taking the snapshot.", + 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": { + "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", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "metadata": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_SnapshotRequestMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SnapshotRequestMetadata is the metadata of the snapshot request.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "creationTimestamp": { 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"), - }, - }, - }, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, }, - Required: []string{"items"}, + Required: []string{"name", "creationTimestamp"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SnapshotRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SnapshotRequestStatus shows the overall status of the snapshot request.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "resourceAttributes": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + Type: []string{"string"}, + Format: "", }, }, - "nonResourceAttributes": { + "volumeSnapshots": { SchemaProps: spec.SchemaProps{ - Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VolumeSnapshotsRequestStatus"), + }, + }, + "error": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError"), }, }, }, + Required: []string{"volumeSnapshots"}, }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VolumeSnapshotsRequestStatus"}, } } -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SnapshotTaken(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SnapshotTaken is the auto snapshot metadata of a snapshot taken from the vcluster.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "allowed": { + "id": { SchemaProps: spec.SchemaProps{ - Description: "Allowed is required. True if the action would be allowed, false otherwise.", - Default: false, - Type: []string{"boolean"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "denied": { + "url": { 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: "", + Type: []string{"string"}, + Format: "", + }, + }, + "timestamp": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", }, }, "reason": { SchemaProps: spec.SchemaProps{ - Description: "Reason is optional. It indicates why a request was allowed or denied.", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "evaluationError": { + "snapshotRequest": { 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"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequest"), + }, + }, + "totalPV": { + SchemaProps: spec.SchemaProps{ + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"allowed"}, + Required: []string{"totalPV"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequest"}, } } -func schema_pkg_apis_management_v1_SharedSecret(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: "SharedSecret holds the secret information", + Description: "SpaceInstance holds the SpaceInstance information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14862,24 +15887,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.SpaceInstanceSpec"), }, }, "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.SpaceInstanceStatus"), }, }, }, }, }, 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.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_SharedSecretList(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{ @@ -14912,7 +15937,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.SpaceInstance"), }, }, }, @@ -14923,15 +15948,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.SpaceInstance", "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_SpaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SharedSecretSpec holds the specification", + Description: "SpaceInstanceSpec holds the specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { @@ -14943,7 +15968,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 space instance", Type: []string{"string"}, Format: "", }, @@ -14954,16 +15979,41 @@ func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "data": { + "templateRef": { SchemaProps: spec.SchemaProps{ - Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "TemplateRef holds the space 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 space creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + }, + }, + "clusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRef is the reference to the connected cluster holding this space", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef"), + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", + Type: []string{"string"}, + Format: "", + }, + }, + "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{ - Type: []string{"string"}, - Format: "byte", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), }, }, }, @@ -14971,7 +16021,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{ @@ -14987,231 +16037,18 @@ func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "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.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_SharedSecretStatus(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{ - Description: "SharedSecretStatus holds the status", + Description: "SpaceInstanceStatus 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_SpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SpaceInstance holds the SpaceInstance 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.SpaceInstanceSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - 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.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": { - 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.SpaceInstance"), - }, - }, - }, - }, - }, - }, - 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": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a space 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 space 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 space creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), - }, - }, - "clusterRef": { - SchemaProps: spec.SchemaProps{ - Description: "ClusterRef is the reference to the connected cluster holding this space", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef"), - }, - }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", - Type: []string{"string"}, - Format: "", - }, - }, - "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 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.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_SpaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SpaceInstanceStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "phase": { + "phase": { SchemaProps: spec.SchemaProps{ Description: "Phase describes the current phase the space instance is in", Type: []string{"string"}, @@ -15499,6 +16336,114 @@ func schema_pkg_apis_management_v1_SpaceTemplateStatus(ref common.ReferenceCallb } } +func schema_pkg_apis_management_v1_StandaloneEtcdPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of the peer.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "nodeClaim": { + SchemaProps: spec.SchemaProps{ + Description: "NodeClaim is the name of the node claim.", + Type: []string{"string"}, + Format: "", + }, + }, + "address": { + SchemaProps: spec.SchemaProps{ + Description: "Address is the address of the peer.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "address"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_StandaloneEtcdPeerCoordinator(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of the peer.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "nodeClaim": { + SchemaProps: spec.SchemaProps{ + Description: "NodeClaim is the name of the node claim.", + Type: []string{"string"}, + Format: "", + }, + }, + "address": { + SchemaProps: spec.SchemaProps{ + Description: "Address is the address of the peer.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "isCoordinator": { + SchemaProps: spec.SchemaProps{ + Description: "IsCoordinator is true if the peer is the coordinator.", + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"name", "address", "isCoordinator"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_StandalonePKI(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "StandalonePKI is a map of certificates filenames and certs", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "certificates": { + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + }, + }, + }, + Required: []string{"certificates"}, + }, + }, + } +} + func schema_pkg_apis_management_v1_SubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -16393,6 +17338,253 @@ func schema_pkg_apis_management_v1_TeamList(ref common.ReferenceCallback) common } } +func schema_pkg_apis_management_v1_TeamObjectPermissions(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"), + }, + }, + "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{ + "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_TeamObjectPermissionsList(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.TeamObjectPermissions"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "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_TeamPermissions(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"), + }, + }, + "members": { + SchemaProps: spec.SchemaProps{ + 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"), + }, + }, + }, + }, + }, + "projectMemberships": { + SchemaProps: spec.SchemaProps{ + Description: "ProjectMemberships gives information about the team's project membership", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), + }, + }, + }, + }, + }, + "managementRoles": { + SchemaProps: spec.SchemaProps{ + Description: "ManagementRoles gives information about the team's assigned management roles", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), + }, + }, + }, + }, + }, + "clusterAccessRoles": { + SchemaProps: spec.SchemaProps{ + Description: "ClustersAccessRoles gives information about the team's assigned cluster roles and the clusters they apply to", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), + }, + }, + }, + }, + }, + "virtualClusterRoles": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterRoles give information about the team's cluster role within the virtual cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/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: "", + }, + }, + "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.TeamPermissions"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "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_TeamSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -16668,6 +17860,121 @@ func schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref commo } } +func schema_pkg_apis_management_v1_UsageDownload(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "UsageDownload returns a zip of CSV files containing table data from the usage postgres database", + Type: []string{"object"}, + 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.UsageDownloadSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_UsageDownloadList(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.UsageDownload"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownload", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_UsageDownloadSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_UsageDownloadStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + func schema_pkg_apis_management_v1_User(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -17022,7 +18329,102 @@ func schema_pkg_apis_management_v1_UserList(ref common.ReferenceCallback) common } } -func schema_pkg_apis_management_v1_UserPermissions(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{ + "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"), + }, + }, + "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{ + "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_UserObjectPermissionsList(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.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_management_v1_UserPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17076,11 +18478,81 @@ func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) }, }, }, + "teamMemberships": { + SchemaProps: spec.SchemaProps{ + Description: "TeamMemberships gives information about the user's team membership", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), + }, + }, + }, + }, + }, + "projectMemberships": { + SchemaProps: spec.SchemaProps{ + Description: "ProjectMemberships gives information about the user's project membership", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), + }, + }, + }, + }, + }, + "managementRoles": { + SchemaProps: spec.SchemaProps{ + Description: "ManagementRoles gives information about the user's assigned management roles", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), + }, + }, + }, + }, + }, + "clusterAccessRoles": { + SchemaProps: spec.SchemaProps{ + 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/management/v1.ClusterAccessRole"), + }, + }, + }, + }, + }, + "virtualClusterRoles": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterRoles give information about the user's cluster role within the virtual cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole"), + }, + }, + }, + }, + }, }, }, }, 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.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"}, } } @@ -17256,11 +18728,25 @@ func schema_pkg_apis_management_v1_UserProfile(ref common.ReferenceCallback) com Format: "", }, }, + "secrets": { + SchemaProps: spec.SchemaProps{ + Description: "Secrets is a map of secret names to secret data", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret"), + }, + }, + }, + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -17312,6 +18798,32 @@ func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) } } +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: "Type is the type of the secret", + Type: []string{"string"}, + Format: "", + }, + }, + "data": { + SchemaProps: spec.SchemaProps{ + Description: "Data is the data of the secret", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_management_v1_UserQuotasOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -17545,6 +19057,22 @@ func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common }, }, }, + "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: "", + }, + }, + }, + }, + }, }, }, }, @@ -17712,11 +19240,11 @@ func schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref common.Refere } } -func schema_pkg_apis_management_v1_VirtualClusterInstance(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: "VirtualClusterInstance holds the VirtualClusterInstance information", + Description: "VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -17742,28 +19270,168 @@ func schema_pkg_apis_management_v1_VirtualClusterInstance(ref common.ReferenceCa "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec"), + 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/management/v1.VirtualClusterInstanceStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus"), }, }, }, }, }, 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.VirtualClusterExternalDatabaseSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(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{ - 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.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.VirtualClusterExternalDatabase"), + }, + }, + }, + }, + }, + }, + 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: "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: "", + }, + }, + }, + }, + }, + } +} + +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: "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: "", + }, + }, + "identityProvider": { + SchemaProps: spec.SchemaProps{ + Description: "IdentityProvider is the kine identity provider to use when generating temporary authentication tokens for enhanced security.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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": { @@ -17867,6 +19535,20 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref comm 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: "", + }, + }, }, }, }, @@ -18112,6 +19794,216 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref common.R } } +func schema_pkg_apis_management_v1_VirtualClusterInstanceShell(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterInstanceShell creates a pod for the requesting 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": { + 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.VirtualClusterShellSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterShellStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterShellSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterShellStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceShellList(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.VirtualClusterInstanceShell"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceShell", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshot(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"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshotStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshotStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotList(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.VirtualClusterInstanceSnapshot"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshot", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "snapshotTaken": { + 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.SnapshotTaken"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotTaken"}, + } +} + func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -18207,6 +20099,13 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref common.Referen Format: "", }, }, + "standalone": { + SchemaProps: spec.SchemaProps{ + Description: "Standalone specifies if the virtual cluster is standalone and not hosted in another Kubernetes cluster.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, @@ -18250,6 +20149,13 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.Refer Format: "", }, }, + "kubernetesVersion": { + SchemaProps: spec.SchemaProps{ + Description: "KubernetesVersion is the Kubernetes version of the virtual cluster.", + Type: []string{"string"}, + Format: "", + }, + }, "deployHash": { SchemaProps: spec.SchemaProps{ Description: "DeployHash is the hash of the last deployed values.", @@ -18331,11 +20237,11 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.Refer } } -func schema_pkg_apis_management_v1_VirtualClusterTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplate holds the information", + Description: "VirtualClusterNodeAccessKey holds the access key for the virtual cluster", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -18361,24 +20267,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.VirtualClusterNodeAccessKeySpec"), }, }, "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.VirtualClusterNodeAccessKeyStatus"), }, }, }, }, }, 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.VirtualClusterNodeAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeyStatus", "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_VirtualClusterNodeAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18411,7 +20317,7 @@ func schema_pkg_apis_management_v1_VirtualClusterTemplateList(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.VirtualClusterTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKey"), }, }, }, @@ -18422,213 +20328,240 @@ func schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref common.Referen }, }, 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.VirtualClusterNodeAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplateSpec holds the specification", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "accessKey": { + SchemaProps: spec.SchemaProps{ + Description: "AccessKey is the access key used by the agent", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterResourceUsage(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterResourceUsage holds information about a virtual cluster's usage of node resources.", 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": { + "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"), }, }, - "template": { + "status": { 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"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageStatus"), }, }, - "parameters": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterResourceUsageList(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 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"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "versions": { + "apiVersion": { 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"), - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "access": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - 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/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsage"), }, }, }, }, }, - "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.VirtualClusterResourceUsage", "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_VirtualClusterResourceUsageMap(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": { + "nodes": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Nodes is the total count of nodes attached to the virtual cluster.", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "capacity": { + SchemaProps: spec.SchemaProps{ + Description: "Capacity is a map of resources to their total amounts across all attached nodes.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Default: 0, + Type: []string{"integer"}, + Format: "int32", }, }, }, }, }, }, + Required: []string{"nodes"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterResourceUsageStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "resourceUsage": { + SchemaProps: spec.SchemaProps{ + Description: "ResourceUsage contains the aggregated result of the queries to the virtual cluster's nodes.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageMap"), + }, + }, + }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageMap"}, } } -func schema_pkg_apis_storage_v1_Access(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterRole(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": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Name is an optional name that is used for this access rule", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "verbs": { + "name": { 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: "", - }, - }, - }, + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", }, }, - "subresources": { + "displayName": { 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: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "users": { + "role": { 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: "", - }, - }, - }, + Description: "Role is the cluster role inside the virtual cluster. One of cluster-admin, admin, edit, or view", + Type: []string{"string"}, + Format: "", }, }, - "teams": { + "assignedVia": { 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: "", - }, - }, - }, + 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{"verbs"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, } } -func schema_pkg_apis_storage_v1_AccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterSchema(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AccessKey holds the session information", + Description: "VirtualClusterSchema holds config request and response data for virtual clusters", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -18654,392 +20587,1017 @@ func schema_pkg_apis_storage_v1_AccessKey(ref common.ReferenceCallback) common.O "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeySpec"), + 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/storage/v1.AccessKeyStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus"), }, }, }, }, }, 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"}, + "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_storage_v1_AccessKeyIdentity(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "userId": { - SchemaProps: spec.SchemaProps{ - Description: "The subject of the user", - Type: []string{"string"}, - Format: "", - }, - }, - "username": { - SchemaProps: spec.SchemaProps{ - Description: "The username", - Type: []string{"string"}, - Format: "", - }, - }, - "preferredUsername": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The preferred username / display name", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "email": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The user email", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "emailVerified": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "If the user email was verified", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "groups": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "The groups from the identity provider", - 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.VirtualClusterSchema"), }, }, }, }, }, - "connector": { + }, + 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: "Connector is the name of the connector this access key was created from", + Description: "Version is the version of the virtual cluster", Type: []string{"string"}, Format: "", }, }, - "connectorData": { - SchemaProps: spec.SchemaProps{ - Description: "ConnectorData holds data used by the connector for subsequent requests after initial authentication, such as access tokens for upstream providers.\n\nThis data is never shared with end users, OAuth clients, or through the API.", - Type: []string{"string"}, - Format: "byte", - }, - }, }, }, }, } } -func schema_pkg_apis_storage_v1_AccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AccessKeyList contains a list of AccessKey", + Description: "VirtualClusterSchemaStatus holds the status", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "schema": { 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: "Schema is the schema of the virtual cluster", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "defaultValues": { 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: "DefaultValues are the default values of the virtual cluster", 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 { +func schema_pkg_apis_management_v1_VirtualClusterShellSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterShellStatus(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": { + "podName": { SchemaProps: spec.SchemaProps{ - Description: "The current access token that was created during login", + Description: "PodName is the name of the shell pod that was created", Type: []string{"string"}, - Format: "byte", + Format: "", }, }, - "refreshToken": { + "podNamespace": { SchemaProps: spec.SchemaProps{ - Description: "The current refresh token that was created during login", + Description: "PodNamespace is the namespace of the shell pod that was created", 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"), + Format: "", }, }, }, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterStandalone(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterStandalone holds kube config request and response data for virtual clusters", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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.ObjectMeta"), }, }, - "scopes": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Scopes to use", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_AccessKeyScope(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterStandaloneList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ 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": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Spaces specifies the spaces the access key is allowed to access.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeSpace"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "virtualClusters": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusters specifies the virtual clusters the access key is allowed to access.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster"), - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "clusters": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Clusters specifies the project cluster the access key is allowed to access.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeCluster"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "rules": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use Projects, Spaces and VirtualClusters instead Rules specifies the rules that should apply to the access key.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRule"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandalone"), }, }, }, }, }, - "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: "", - }, - }, }, + Required: []string{"items"}, }, }, 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandalone", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_AccessKeyScopeCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterStandaloneSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cluster": { + "currentPeer": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the name of the cluster to access. You can specify * to select all clusters.", - Type: []string{"string"}, - Format: "", + Description: "CurrentPeer is the current peer that calls this API. The API will make sure this peer is added to the etcd peers list. If this is the first peer, it will be the coordinator.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.StandaloneEtcdPeer"), + }, + }, + "currentPKI": { + SchemaProps: spec.SchemaProps{ + Description: "CurrentPKI contains certs bundle for vCluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.StandalonePKI"), }, }, }, + Required: []string{"currentPeer", "currentPKI"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.StandaloneEtcdPeer", "github.com/loft-sh/api/v4/pkg/apis/management/v1.StandalonePKI"}, } } -func schema_pkg_apis_storage_v1_AccessKeyScopeProject(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterStandaloneStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "project": { + "etcdPeers": { SchemaProps: spec.SchemaProps{ - Description: "Project is the name of the project. You can specify * to select all projects.", - Type: []string{"string"}, - Format: "", + Description: "ETCDPeers holds the comma separated list of etcd peers addresses. It is used as a peer cache for vCluster Standalone deployed in HA mode via NodeProvider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.StandaloneEtcdPeerCoordinator"), + }, + }, + }, + }, + }, + "currentPKI": { + SchemaProps: spec.SchemaProps{ + Description: "PKI returns certs bundle for vCluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.StandalonePKI"), }, }, }, + Required: []string{"etcdPeers", "currentPKI"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.StandaloneEtcdPeerCoordinator", "github.com/loft-sh/api/v4/pkg/apis/management/v1.StandalonePKI"}, } } -func schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterTemplate holds the information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "role": { + "kind": { 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: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", - Enum: []interface{}{"agent", "loft-cli", "network-peer", "runner", "vcluster"}, }, }, - "projects": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Projects specifies the projects the access key should have access to.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, 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_management_v1_VolumeSnapshotRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SnapshotStatus shows the current status of a single PVC snapshot.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "error": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError"), + }, + }, + }, + Required: []string{"error"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError"}, + } +} + +func schema_pkg_apis_management_v1_VolumeSnapshotsRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeSnapshotsRequestStatus shows the current status of the snapshot request.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "snapshots": { + SchemaProps: spec.SchemaProps{ + 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.VolumeSnapshotRequestStatus"), + }, + }, + }, + }, + }, + "error": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError"), + }, + }, + }, + Required: []string{"error"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VolumeSnapshotRequestStatus"}, + } +} + +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"}, @@ -19332,7 +21890,7 @@ func schema_pkg_apis_storage_v1_AccessKeySpec(ref common.ReferenceCallback) comm "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"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), }, }, "identityRefresh": { @@ -19364,7 +21922,7 @@ func schema_pkg_apis_storage_v1_AccessKeySpec(ref common.ReferenceCallback) comm }, }, 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/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"}, } } @@ -19829,6 +22387,13 @@ func schema_pkg_apis_storage_v1_AppReference(ref common.ReferenceCallback) commo Format: "", }, }, + "hash": { + SchemaProps: spec.SchemaProps{ + Description: "Hash is the hash of the app configuration", + Type: []string{"string"}, + Format: "", + }, + }, "parameters": { SchemaProps: spec.SchemaProps{ Description: "Parameters to use for the app", @@ -20432,6 +22997,123 @@ func schema_pkg_apis_storage_v1_ArgoSSOSpec(ref common.ReferenceCallback) common } } +func schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the node provider to use for this node type.", + Type: []string{"string"}, + Format: "", + }, + }, + "properties": { + 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: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), + }, + }, + "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.ManagedNodeTypeObjectMeta", "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{ @@ -20560,6 +23242,150 @@ func schema_pkg_apis_storage_v1_Cluster(ref common.ReferenceCallback) common.Ope } } +func schema_pkg_apis_storage_v1_ClusterAPINodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the node provider to use for this node type.", + Type: []string{"string"}, + Format: "", + }, + }, + "properties": { + SchemaProps: spec.SchemaProps{ + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/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: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), + }, + }, + "infrastructureMachineTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "InfrastructureMachineTemplate is a template for the infrastructure machine, e.g. AWSMachine", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "bootstrapConfigTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "BootstrapConfigTemplate is a template for the bootstrap config. Currently only KubeadmConfig is supported.", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "mergeInfrastructureMachineTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "MergeInfrastructureMachineTemplate will be merged into base InfrastructureMachine template for this NodeProvider. This allows overwriting of specific fields from top level template by individual NodeTypes This is mutually exclusive with InfrastructureMachineTemplate", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "mergeBootstrapConfigTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "MergeBootstrapConfigTemplate will be merged into base BootstrapConfig template for this NodeProvider. This allows overwriting of specific fields from top level template by individual NodeTypes This is mutually exclusive with BootstrapConfigTemplate", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "maxCapacity": { + SchemaProps: spec.SchemaProps{ + Description: "MaxCapacity is the maximum number of nodes that can be created for this NodeType.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + } +} + +func schema_pkg_apis_storage_v1_ClusterAPIObjects(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "infrastructureMachineTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "InfrastructureMachineTemplate is a template for the infrastructure machine, e.g. AWSMachine", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "bootstrapConfigTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "BootstrapConfigTemplate is a template for the bootstrap config. Currently only KubeadmConfig is supported.", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + } +} + func schema_pkg_apis_storage_v1_ClusterAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -21124,425 +23950,180 @@ func schema_pkg_apis_storage_v1_ClusterSpec(ref common.ReferenceCallback) common 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.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: "", - }, - }, - }, - }, - }, - } -} - -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{ - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -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 { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - 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": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "prebuildRepositories": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "devContainerPath": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "workspaceEnv": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "recreate": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "proxy": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "disableDaemon": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "daemonInterval": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "repository": { - SchemaProps: spec.SchemaProps{ - Description: "build options", - Type: []string{"string"}, - Format: "", - }, - }, - "skipPush": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "platform": { + "access": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "forceBuild": { + "metrics": { SchemaProps: spec.SchemaProps{ - Description: "TESTING", - Type: []string{"boolean"}, - Format: "", + Description: "Metrics holds the cluster's metrics backend configuration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), }, }, - "forceInternalBuildKit": { + "opencost": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + 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_DevPodEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceEnvironmentSource", + Description: "ClusterStatus holds the user 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", - Type: []string{"string"}, - Format: "", + 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", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "metadata": { + "message": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "conditions": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec"), + 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/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_EntityInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateList contains a list of DevPodEnvironmentTemplate objects", - 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": { + "icon": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Icon is the icon of the user / team", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "username": { 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.DevPodEnvironmentTemplate"), - }, - }, - }, + Description: "The username that is used to login", + 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", + Type: []string{"string"}, + Format: "", }, }, }, - 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 { +func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "GroupResources represents resource kinds in an API group.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "group": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + 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: "", }, }, - "git": { - 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"), - }, - }, - "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"), - }, - }, - "access": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", + 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: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "versions": { + "resourceNames": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", + Description: "ResourceNames is a list of resource instance names that the policy matches. Using this field requires Resources to be specified. An empty list implies that every instance of the resource is matched.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -21551,439 +24132,362 @@ func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref common.Referen }, }, }, - 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 { +func schema_pkg_apis_storage_v1_HelmChart(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "git": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Git holds the GitEnvironmentTemplate", + Description: "Metadata provides information about a chart", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"), }, }, - "version": { + "versions": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", - Type: []string{"string"}, - Format: "", + Description: "Versions holds all chart versions", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "repository": { + SchemaProps: spec.SchemaProps{ + Description: "Repository is the repository name of this chart", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository"}, } } -func schema_pkg_apis_storage_v1_DevPodProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_HelmChartRepository(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "git": { + "name": { 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: "Name is the name of the repository", + Type: []string{"string"}, + Format: "", }, }, - "ssh": { + "url": { 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: "URL is the repository url", + Type: []string{"string"}, + Format: "", }, }, - "fallbackImage": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "FallbackImage defines an image all workspace will fall back to if no devcontainer.json could be detected", + Description: "Username of the repository", 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": { + "password": { SchemaProps: spec.SchemaProps{ - Description: "Value of this option.", + Description: "Password of the repository", Type: []string{"string"}, Format: "", }, }, - "valueFrom": { + "insecure": { 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: "Insecure specifies if the chart should be retrieved without TLS verification", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, - 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 { +func schema_pkg_apis_storage_v1_HelmConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "HelmConfiguration holds the helm configuration", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "projectSecretRef": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretRef is the project secret to use for this value.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + Description: "Name of the chart to deploy", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "sharedSecretRef": { + "values": { SchemaProps: spec.SchemaProps{ - Description: "SharedSecretRef is the shared secret to use for this value.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + Description: "The additional helm values to use. Expected block string", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - 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": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Github source for the provider", + Description: "Version is the version of the chart to deploy", Type: []string{"string"}, Format: "", }, }, - "file": { + "repoUrl": { SchemaProps: spec.SchemaProps{ - Description: "File source for the provider", + Description: "The repo url to use", Type: []string{"string"}, Format: "", }, }, - "url": { + "username": { + SchemaProps: spec.SchemaProps{ + Description: "The username to use for the selected repository", + Type: []string{"string"}, + Format: "", + }, + }, + "password": { SchemaProps: spec.SchemaProps{ - Description: "URL where the provider was downloaded from", + Description: "The password to use for the selected repository", Type: []string{"string"}, Format: "", }, }, + "insecure": { + SchemaProps: spec.SchemaProps{ + Description: "Determines if the remote location uses an insecure TLS certificate.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, + Required: []string{"name"}, }, }, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_HelmTask(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstance", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "release": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Release holds the release information", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease"), }, }, - "apiVersion": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Type is the task type. Defaults to Upgrade", Type: []string{"string"}, Format: "", }, }, - "metadata": { - 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.DevPodWorkspaceInstanceSpec"), - }, - }, - "status": { + "rollbackRevision": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus"), + Description: "RollbackRevision is the revision to rollback to", + Type: []string{"string"}, + Format: "", }, }, }, }, }, 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.HelmTaskRelease"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_HelmTaskRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceList contains a list of DevPodWorkspaceInstance objects", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name is the name of the release", 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 release, if empty will use the target namespace", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "config": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Config is the helm config to use to deploy the release", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), }, }, - "items": { + "labels": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Labels are additional labels for the helm release.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, }, }, 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/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a DevPod machine instance", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "templateRef": { - SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the DevPod machine template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "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"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for DevPod machine creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "runnerRef": { - 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"), - }, - }, - "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": { + "roleMapping": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "RoleMapping indicates an optional role mapping from a rancher project role to a rancher cluster role. Map to an empty role to exclude users and groups with that role from being synced.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "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.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"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_InstanceAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ 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": { + "defaultClusterRole": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", + Description: "Specifies which cluster role should get applied to users or teams that do not match a rule below.", Type: []string{"string"}, Format: "", }, }, - "conditions": { + "rules": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the DevPod machine might be in", + Description: "Rules defines which users and teams should have which access to the virtual cluster. If no rule matches an authenticated incoming user, the user will get cluster admin access.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), }, }, }, }, }, - "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: "", - }, - }, - "clusterRef": { - 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"), - }, - }, }, }, }, 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"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_InstanceAccessRule(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "users": { SchemaProps: spec.SchemaProps{ - Description: "The virtual cluster instance metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + Description: "Users this rule matches. * means all users.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "teams": { + SchemaProps: spec.SchemaProps{ + Description: "Teams that this rule matches.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "clusterRole": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRole is the cluster role that should be assigned to the", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -21991,413 +24495,416 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCall Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the provider. This can also be an url.", - Default: "", + Description: "Name of the app that should get deployed", Type: []string{"string"}, Format: "", }, }, - "options": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Options are the provider option values", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption"), - }, - }, - }, + Description: "Namespace specifies in which target namespace the app should get deployed in. Only used for virtual cluster apps.", + Type: []string{"string"}, + Format: "", }, }, - "env": { + "releaseName": { SchemaProps: spec.SchemaProps{ - Description: "Env are environment options to set when using the provider.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption"), - }, - }, - }, + Description: "ReleaseName of the target app", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version of the app that should get deployed", + Type: []string{"string"}, + Format: "", + }, + }, + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Phase describes the current phase the app deployment 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: "", }, }, }, - Required: []string{"name"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_KindSecretRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplate holds the DevPodWorkspaceTemplate information", + Description: "KindSecretRef is the reference to a secret containing the user password", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "apiGroup": { 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: "APIGroup is the api group of the secret", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "kind": { 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: "Kind is the kind of the secret", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "secretName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "secretNamespace": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec"), + Type: []string{"string"}, + Format: "", }, }, - "status": { + "key": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus"), + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_KubeVirtNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "KubeVirtNodeTypeSpec defines single NodeType spec for KubeVirt provider type.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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": { + "providerRef": { 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: "ProviderRef is the node provider to use for this node type.", + Type: []string{"string"}, + Format: "", }, }, - "workspaceEnv": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "WorkspaceEnv are environment variables that should be available within the created workspace.", + 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: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "initEnv": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "InitEnv are environment variables that should be available during the initialization phase of the created workspace.", + 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.DevPodProviderOption"), + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), }, }, }, }, }, - "instanceTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "InstanceTemplate holds the workspace instance template", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition"), - }, - }, - "useProjectGitCredentials": { + "overhead": { 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: "", + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead"), }, }, - "useProjectSSHCredentials": { + "cost": { 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: "", + 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", }, }, - "gitCloneStrategy": { + "displayName": { 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\"`", + Description: "DisplayName is the name that should be displayed in the UI", 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": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", - Type: []string{"boolean"}, + Description: "Name is the name of this node type.", + Default: "", + Type: []string{"string"}, Format: "", }, }, - }, - 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"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateList contains a list of DevPodWorkspaceTemplate", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "metadata": { 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: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), }, }, - "apiVersion": { + "virtualMachineTemplate": { 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: "VirtualMachineTemplate is a full KubeVirt VirtualMachine template to use for this NodeType. This is mutually exclusive with MergeVirtualMachineTemplate", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), }, }, - "metadata": { + "mergeVirtualMachineTemplate": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "MergeVirtualMachineTemplate will be merged into base VirtualMachine template for this NodeProvider. This allows overwriting of specific fields from top level template by individual NodeTypes This is mutually exclusive with VirtualMachineTemplate", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), }, }, - "items": { + "maxCapacity": { 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.DevPodWorkspaceTemplate"), - }, - }, - }, + Description: "MaxCapacity is the maximum number of nodes that can be created for this NodeType.", + Type: []string{"integer"}, + Format: "int32", }, }, }, - Required: []string{"items"}, + Required: []string{"name"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that is shown in the UI", + Description: "DisplayName is the name that should be shown in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes the virtual cluster template", + Description: "Description is the description of this object in human-readable text.", 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"), - }, - }, - "parameters": { + "users": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set provider values", + Description: "Users are the users affected by this cluster access object", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, }, }, }, - "template": { - 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"), - }, - }, - "versions": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", + Description: "Teams are the teams affected by this cluster access object", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "access": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + 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.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), }, }, }, }, }, + "priority": { + SchemaProps: spec.SchemaProps{ + Description: "Priority is a unique value that specifies the priority of this cluster access for the space constraints and quota. A higher priority means the cluster access object will override the space constraints of lower priority cluster access objects", + Type: []string{"integer"}, + Format: "int32", + }, + }, }, }, }, Dependencies: []string{ - "github.com/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/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata is the metadata of the cluster access object", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "LocalClusterAccessSpec holds the spec of the cluster access in the cluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec"), + }, + }, + }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "template": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the DevPod template", + Description: "Metadata is the metadata of the cluster role template object", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "parameters": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set provider values", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), - }, - }, - }, + Description: "LocalClusterRoleTemplateSpec holds the spec of the cluster role template in the cluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec"), }, }, - "version": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(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: "Version is the version. Needs to be in X.X.X format.", + Description: "DisplayName is the name that should be shown in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description is the description of this object in human-readable text.", Type: []string{"string"}, Format: "", }, }, + "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"), + }, + }, }, }, }, Dependencies: []string{ - "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.ClusterRoleTemplateTemplate"}, } } -func schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ManagedNodeTypeObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "disabled": { + "labels": { SchemaProps: spec.SchemaProps{ - Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", - Type: []string{"boolean"}, - Format: "", + Description: "Labels holds labels to add to this managed NodeType.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "annotations": { + SchemaProps: spec.SchemaProps{ + Description: "Annotations holds annotations to add to this managed NodeType.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, @@ -22406,91 +24913,193 @@ func schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref common.ReferenceC } } -func schema_pkg_apis_storage_v1_EntityInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Member(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the kubernetes name of the object", + Description: "Kind is the kind of the member. Currently either User or Team", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "group": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "Group of the member. Currently only supports storage.loft.sh", Type: []string{"string"}, Format: "", }, }, - "icon": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the icon of the user / team", + Description: "Name of the member", Type: []string{"string"}, Format: "", }, }, - "username": { + "clusterRole": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", + Description: "ClusterRole is the assigned role for the above member", + Default: "", Type: []string{"string"}, Format: "", }, }, - "email": { + }, + Required: []string{"clusterRole"}, + }, + }, + } +} + +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{ + "replicas": { SchemaProps: spec.SchemaProps{ - Description: "The users email address", - Type: []string{"string"}, - Format: "", + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", }, }, - "subject": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "The user subject", + 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_EnvironmentRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NamedNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the node provider to use for this node type.", + Type: []string{"string"}, + Format: "", + }, + }, + "properties": { + SchemaProps: spec.SchemaProps{ + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/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 DevPodEnvironmentTemplate this references", + Description: "Name is the name of this node type.", Default: "", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), + }, + }, }, Required: []string{"name"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_GitCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NamespacePattern(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "disabled": { + "space": { SchemaProps: spec.SchemaProps{ - Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", - Type: []string{"boolean"}, + Description: "Space holds the namespace pattern to use for space instances", + Type: []string{"string"}, + Format: "", + }, + }, + "virtualCluster": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualCluster holds the namespace pattern to use for virtual cluster instances", + Type: []string{"string"}, Format: "", }, }, @@ -22500,93 +25109,176 @@ func schema_pkg_apis_storage_v1_GitCredentialForwarding(ref common.ReferenceCall } } -func schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NamespacedRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GitEnvironmentTemplate stores configuration of Git environment template source", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "repository": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Repository stores repository URL for Git environment spec source", + Description: "Name is the name of this resource", Default: "", Type: []string{"string"}, Format: "", }, }, - "revision": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Revision stores revision to checkout in repository", + Description: "Namespace is the namespace of this resource", + Default: "", Type: []string{"string"}, Format: "", }, }, - "subpath": { + }, + 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: "SubPath stores subpath within Repositor where environment spec is", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "useProjectGitCredentials": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment", - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, 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.NetworkPeerSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus"), + }, + }, }, - Required: []string{"repository"}, }, }, + 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.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_GitProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NetworkPeerList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NetworkPeerList contains a list of NetworkPeers", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Token defines the token to use for authentication.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "tokenSecretRef": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "TokenSecretRef defines the project secret to use for token authentication. Will be used if `Token` is not provided.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, 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.NetworkPeer"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NetworkPeerSpec(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": { + "discoKey": { 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: "DiscoKey is a key used for DERP discovery", Type: []string{"string"}, Format: "", }, }, - "resources": { + "machineKey": { + SchemaProps: spec.SchemaProps{ + Description: "MachineKey is used to identify a network peer", + Type: []string{"string"}, + Format: "", + }, + }, + "nodeKey": { + SchemaProps: spec.SchemaProps{ + Description: "NodeKey is used to identify a session", + Type: []string{"string"}, + Format: "", + }, + }, + "addresses": { + SchemaProps: spec.SchemaProps{ + Description: "Addresses is a list of IP addresses of this Node directly.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "allowedIPs": { 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.", + Description: "AllowedIPs is a range of IP addresses to route to this node.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -22599,9 +25291,9 @@ func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) com }, }, }, - "resourceNames": { + "endpoints": { SchemaProps: spec.SchemaProps{ - Description: "ResourceNames is a list of resource instance names that the policy matches. Using this field requires Resources to be specified. An empty list implies that every instance of the resource is matched.", + Description: "Endpoints is a list of IP+port (public via STUN, and local LANs) where this node can be reached.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -22620,320 +25312,428 @@ func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) com } } -func schema_pkg_apis_storage_v1_HelmChart(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NetworkPeerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "lastSeen": { SchemaProps: spec.SchemaProps{ - Description: "Metadata provides information about a chart", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"), + Description: "LastSeen is when the network peer was last online. It is not updated when Online is true.", + Type: []string{"string"}, + Format: "", }, }, - "versions": { + "homeDerpRegion": { SchemaProps: spec.SchemaProps{ - Description: "Versions holds all chart versions", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "HomeDerpRegion is the currently preferred DERP region by the network peer", + Type: []string{"integer"}, + Format: "int32", }, }, - "repository": { + "online": { SchemaProps: spec.SchemaProps{ - Description: "Repository is the repository name of this chart", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository"), + Description: "Online is whether the node is currently connected to the coordination server.", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository"}, } } -func schema_pkg_apis_storage_v1_HelmChartRepository(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{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the repository", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "url": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "URL is the repository url", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "username": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Username of the repository", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "password": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Password of the repository", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimSpec"), }, }, - "insecure": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Insecure specifies if the chart should be retrieved without TLS verification", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/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_HelmConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "HelmConfiguration holds the helm configuration", + Description: "NodeClaimList contains a list of NodeClaim", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name of the chart to deploy", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "values": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The additional helm values to use. Expected block string", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "version": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version of the chart to deploy", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "repoUrl": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "The repo url to use", + 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("k8s.io/api/core/v1.Taint"), + }, + }, + }, + }, + }, + "startupTaints": { + SchemaProps: spec.SchemaProps{ + Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("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"), + }, + }, + }, + }, + }, + "properties": { + SchemaProps: spec.SchemaProps{ + Description: "Properties are extra properties for the NodeClaim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the name of the NodeProvider that this NodeClaim is based on.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "username": { + "typeRef": { SchemaProps: spec.SchemaProps{ - Description: "The username to use for the selected repository", + Description: "TypeRef is the full name of the NodeType that this NodeClaim is based on.", Type: []string{"string"}, Format: "", }, }, - "password": { + "vClusterRef": { SchemaProps: spec.SchemaProps{ - Description: "The password to use for the selected repository", + Description: "VClusterRef references source vCluster. This is required.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "insecure": { + "controlPlane": { SchemaProps: spec.SchemaProps{ - Description: "Determines if the remote location uses an insecure TLS certificate.", + Description: "ControlPlane indicates if the node claim is for a control plane node. This is intentionally not omitempty as we want to ensure that the control plane is always set for easier checking in for example terraform templates.", + Default: false, Type: []string{"boolean"}, Format: "", }, }, }, - Required: []string{"name"}, + Required: []string{"providerRef", "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_storage_v1_HelmTask(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{ - "release": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Release holds the release information", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease"), + Description: "Phase is the current lifecycle phase of the NodeClaim.", + Type: []string{"string"}, + Format: "", }, }, - "type": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Type is the task type. Defaults to Upgrade", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "rollbackRevision": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "RollbackRevision is the revision to rollback to", + 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{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_storage_v1_HelmTaskRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeEnvironment(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeEnvironment holds the node environment for vCluster.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the release", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the release, if empty will use the target namespace", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "config": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Config is the helm config to use to deploy the release", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "labels": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Labels are additional labels for the helm release.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeEnvironmentList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeEnvironmentList contains a list of NodeEnvironment", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "roleMapping": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "RoleMapping indicates an optional role mapping from a rancher project role to a rancher cluster role. Map to an empty role to exclude users and groups with that role from being synced.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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_InstanceAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "defaultClusterRole": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Specifies which cluster role should get applied to users or teams that do not match a rule below.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "rules": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Rules defines which users and teams should have which access to the virtual cluster. If no rule matches an authenticated incoming user, the user will get cluster admin access.", - Type: []string{"array"}, + 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.InstanceAccessRule"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironment"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironment", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_InstanceAccessRule(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeEnvironmentSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeEnvironmentSpec defines spec of node environment.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "users": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Users this rule matches. * means all users.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Properties are the properties for the NodeEnvironment.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", @@ -22944,71 +25744,46 @@ func schema_pkg_apis_storage_v1_InstanceAccessRule(ref common.ReferenceCallback) }, }, }, - "teams": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Teams that this rule matches.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "ProviderRef is the name of the NodeProvider that this NodeEnvironment is based on.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "clusterRole": { + "vClusterRef": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the cluster role that should be assigned to the", + Description: "VClusterRef references source vCluster. This is required.", + Default: "", Type: []string{"string"}, Format: "", }, }, + "controlPlane": { + SchemaProps: spec.SchemaProps{ + Description: "ControlPlane indicates if the node environment is a control plane environment. This is intentionally not omitempty as we want to ensure that the control plane is always set for easier checking in for example terraform templates.", + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, }, + Required: []string{"providerRef", "vClusterRef"}, }, }, } } -func schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeEnvironmentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name of the app that should get deployed", - Type: []string{"string"}, - Format: "", - }, - }, - "namespace": { - SchemaProps: spec.SchemaProps{ - Description: "Namespace specifies in which target namespace the app should get deployed in. Only used for virtual cluster apps.", - Type: []string{"string"}, - Format: "", - }, - }, - "releaseName": { - SchemaProps: spec.SchemaProps{ - Description: "ReleaseName of the target app", - Type: []string{"string"}, - Format: "", - }, - }, - "version": { - SchemaProps: spec.SchemaProps{ - Description: "Version of the app that should get deployed", - Type: []string{"string"}, - Format: "", - }, - }, "phase": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the app deployment is in", + Description: "Phase is the current lifecycle phase of the NodeEnvironment.", Type: []string{"string"}, Format: "", }, @@ -23027,502 +25802,519 @@ func schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref common.ReferenceCa 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{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_storage_v1_KindSecretRef(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: "KindSecretRef is the reference to a secret containing the user password", + 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{ - "apiGroup": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "APIGroup is the api group of the secret", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "kind": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Kind is the kind of the secret", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "secretName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "secretNamespace": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderSpec"), }, }, - "key": { + "status": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + 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.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_LocalClusterAccessSpec(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{ - Type: []string{"object"}, + Description: "NodeProviderBCMSpec defines the configuration for a BCM node provider.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "secretRef": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be shown in the UI", - 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"), }, }, - "description": { + "endpoint": { SchemaProps: spec.SchemaProps{ - Description: "Description is the description of this object in human-readable text.", + Description: "Endpoint is a address for head node.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "users": { - SchemaProps: spec.SchemaProps{ - Description: "Users are the users affected by this cluster access object", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - }, - }, - }, - "teams": { - SchemaProps: spec.SchemaProps{ - Description: "Teams are the teams affected by this cluster access object", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "clusterRoles": { + "nodeTypes": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + 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.ClusterRoleRef"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.BCMNodeTypeSpec"), }, }, }, }, }, - "priority": { - SchemaProps: spec.SchemaProps{ - Description: "Priority is a unique value that specifies the priority of this cluster access for the space constraints and quota. A higher priority means the cluster access object will override the space constraints of lower priority cluster access objects", - Type: []string{"integer"}, - Format: "int32", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Metadata is the metadata of the cluster access object", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Description: "LocalClusterAccessSpec holds the spec of the cluster access in the cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec"), - }, - }, }, + Required: []string{"secretRef", "endpoint"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "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_LocalClusterRoleTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeProviderClusterAPI(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "infrastructureMachineTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Metadata is the metadata of the cluster role template object", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "InfrastructureMachineTemplate is a template for the infrastructure machine, e.g. AWSMachine", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), }, }, - "spec": { + "bootstrapConfigTemplate": { SchemaProps: spec.SchemaProps{ - Description: "LocalClusterRoleTemplateSpec holds the spec of the cluster role template in the cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec"), + Description: "BootstrapConfigTemplate is a template for the bootstrap config. Currently only KubeadmConfig is supported.", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "clusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRef is a reference to connected host cluster in which KubeVirt operator is running", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterRef"), + }, + }, + "nodeTypes": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAPINodeTypeSpec"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAPINodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterRef", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, } } -func schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeProviderClusterRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be shown in the UI", + Description: "Cluster is the connected cluster the VMs will be created in", + Default: "", Type: []string{"string"}, Format: "", }, }, - "description": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Description is the description of this object in human-readable text.", + Description: "Namespace is the namespace inside the connected cluster holding VMs", Type: []string{"string"}, Format: "", }, }, - "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"), - }, - }, }, + Required: []string{"cluster"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"}, } } -func schema_pkg_apis_storage_v1_Member(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{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is the kind of the member. Currently either User or Team", - Type: []string{"string"}, - Format: "", - }, - }, - "group": { + "clusterRef": { SchemaProps: spec.SchemaProps{ - Description: "Group of the member. Currently only supports storage.loft.sh", - Type: []string{"string"}, - Format: "", + Description: "ClusterRef is a reference to connected host cluster in which KubeVirt operator is running", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterRef"), }, }, - "name": { + "virtualMachineTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Name of the member", - Type: []string{"string"}, - Format: "", + Description: "VirtualMachineTemplate is a KubeVirt VirtualMachine template to use by NodeTypes managed by this NodeProvider", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), }, }, - "clusterRole": { + "nodeTypes": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the assigned role for the above member", - Type: []string{"string"}, - Format: "", + 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.KubeVirtNodeTypeSpec"), + }, + }, + }, }, }, }, + Required: []string{"nodeTypes"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KubeVirtNodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterRef", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, } } -func schema_pkg_apis_storage_v1_NamespacePattern(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeProviderList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeProviderList contains a list of NodeProvider", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "space": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Space holds the namespace pattern to use for space instances", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "virtualCluster": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster holds the namespace pattern to use for virtual cluster instances", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, 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.NodeProvider"), + }, + }, + }, + }, + }, }, + 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_NetworkPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeProviderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NetworkPeer hols the information of network peers", + 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": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Properties are global properties that are applied to all node claims and environments managed by this provider.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "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"), }, }, - "name": { + "kubeVirt": { 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: "", + 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"), }, }, - "generateName": { + "terraform": { 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: "", + Description: "Terraform configures a node provider using Terraform, enabling nodes to be provisioned using Terraform.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderTerraform"), }, }, - "namespace": { + "clusterAPI": { 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: "", + Description: "ClusterAPI configures a node provider using Cluster API, enabling nodes to be provisioned using Cluster API. This requires the vCluster to be deployed with Cluster API as well.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterAPI"), }, }, - "selfLink": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "uid": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterAPI", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderTerraform"}, + } +} + +func schema_pkg_apis_storage_v1_NodeProviderStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeProviderStatus defines the observed state of NodeProvider.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "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", - Type: []string{"string"}, - Format: "", + Description: "Conditions describe the current state of the platform NodeProvider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, }, }, - "resourceVersion": { + "reason": { 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: "Reason describes the reason in machine-readable form", 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": { + "phase": { 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"), + Description: "Phase is the current lifecycle phase of the NodeProvider.", + Type: []string{"string"}, + Format: "", }, }, - "deletionGracePeriodSeconds": { + "message": { 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", + Description: "Message is a human-readable message indicating details about why the NodeProvider is in its current state.", + Type: []string{"string"}, + Format: "", }, }, - "labels": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + } +} + +func schema_pkg_apis_storage_v1_NodeProviderTerraform(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "nodeTemplate": { 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: "", - }, - }, - }, + Description: "NodeTemplate is the template to use for this node provider.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate"), }, }, - "annotations": { + "nodeEnvironmentTemplate": { 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: "NodeEnvironmentTemplate is the template to use for this node environment.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformNodeEnvironmentTemplate"), }, }, - "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", - }, - }, + "nodeTypes": { 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.", + Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformNodeTypeSpec"), }, }, }, }, }, - "finalizers": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "set", - "x-kubernetes-patch-strategy": "merge", - }, - }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformNodeEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformNodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate"}, + } +} + +func schema_pkg_apis_storage_v1_NodeType(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeType holds the information of a node type.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "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": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec"), + 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.NetworkPeerStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeStatus"), }, }, }, + Required: []string{"metadata"}, }, }, 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.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_NetworkPeerList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeTypeCapacity(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NetworkPeerList contains a list of NetworkPeers", + Description: "IMPORTANT: DO NOT use omitempty for values in NodeTypeCapacity. The values are used in NodePool calculations and for UI.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "total": { + SchemaProps: spec.SchemaProps{ + Description: "Total is the total number of nodes of this type", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "claimed": { + SchemaProps: spec.SchemaProps{ + Description: "Claimed is the number of already claimed nodes of this type", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"total", "claimed"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_NodeTypeList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeTypeList contains a list of NodeType", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -23552,7 +26344,7 @@ func schema_pkg_apis_storage_v1_NetworkPeerList(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType"), }, }, }, @@ -23563,42 +26355,58 @@ func schema_pkg_apis_storage_v1_NetworkPeerList(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "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_NetworkPeerSpec(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{ - "discoKey": { - SchemaProps: spec.SchemaProps{ - Description: "DiscoKey is a key used for DERP discovery", - Type: []string{"string"}, - Format: "", - }, - }, - "machineKey": { + "kubeReserved": { SchemaProps: spec.SchemaProps{ - Description: "MachineKey is used to identify a network peer", - Type: []string{"string"}, - Format: "", + 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{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, }, }, - "nodeKey": { + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + } +} + +func schema_pkg_apis_storage_v1_NodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "NodeKey is used to identify a session", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "addresses": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Addresses is a list of IP addresses of this Node directly.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", @@ -23609,72 +26417,123 @@ func schema_pkg_apis_storage_v1_NetworkPeerSpec(ref common.ReferenceCallback) co }, }, }, - "allowedIPs": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "AllowedIPs is a range of IP addresses to route to this node.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), }, }, }, }, }, - "endpoints": { + "overhead": { SchemaProps: spec.SchemaProps{ - Description: "Endpoints is a list of IP+port (public via STUN, and local LANs) where this node can be reached.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "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.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_NetworkPeerStatus(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{ - "lastSeen": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "LastSeen is when the network peer was last online. It is not updated when Online is true.", + Description: "Phase is the current lifecycle phase of the NodeType.", Type: []string{"string"}, Format: "", }, }, - "homeDerpRegion": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "HomeDerpRegion is the currently preferred DERP region by the network peer", - Type: []string{"integer"}, - Format: "int32", + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", }, }, - "online": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Online is whether the node is currently connected to the coordination server.", - Type: []string{"boolean"}, + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, Format: "", }, }, + "cost": { + SchemaProps: spec.SchemaProps{ + Description: "Cost is the calculated instance cost from the resources specified or the price specified from spec. The higher the cost, the less likely it is to be selected.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "capacity": { + SchemaProps: spec.SchemaProps{ + Description: "Capacity is the capacity of the node type.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"), + }, + }, + "requirements": { + SchemaProps: spec.SchemaProps{ + Description: "Requirements is the calculated requirements based of the properties for the node type.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), + }, + }, + }, + }, + }, + "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/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, }, }, }, + 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", "k8s.io/api/core/v1.NodeSelectorRequirement"}, } } @@ -23727,6 +26586,33 @@ func schema_pkg_apis_storage_v1_ObjectsStatus(ref common.ReferenceCallback) comm } } +func schema_pkg_apis_storage_v1_OpenCost(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "replicas": { + SchemaProps: spec.SchemaProps{ + 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 OpenCost backend", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ResourceRequirements"}, + } +} + func schema_pkg_apis_storage_v1_PodSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -23900,7 +26786,7 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common }, "allowedRunners": { SchemaProps: spec.SchemaProps{ - Description: "AllowedRunners are target runners that are allowed to target with DevPod environments.", + Description: "AllowedRunners are target runners that are allowed to target with", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -23933,6 +26819,13 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common 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", @@ -23985,17 +26878,11 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common 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.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/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.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"}, } } @@ -24372,7 +27259,7 @@ func schema_pkg_apis_storage_v1_RancherProjectRef(ref common.ReferenceCallback) } } -func schema_pkg_apis_storage_v1_RequireTemplate(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{ @@ -24380,7 +27267,7 @@ func schema_pkg_apis_storage_v1_RequireTemplate(ref common.ReferenceCallback) co Properties: map[string]spec.Schema{ "disabled": { 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.", + 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: "", }, @@ -24391,297 +27278,69 @@ func schema_pkg_apis_storage_v1_RequireTemplate(ref common.ReferenceCallback) co } } -func schema_pkg_apis_storage_v1_Runner(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Runner holds the runner 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.RunnerSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerStatus"), - }, - }, - }, - }, - }, - 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"}, - } -} - -func schema_pkg_apis_storage_v1_RunnerClusterRef(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{ - "cluster": { - SchemaProps: spec.SchemaProps{ - Description: "Cluster is the connected cluster the space will be created in", - Type: []string{"string"}, - Format: "", - }, - }, - "namespace": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace inside the connected cluster holding the space", - 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: "", }, }, - "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": { - 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"), - }, - }, - "serviceTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "ServiceTemplate holds additional options for the service", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplate"), - }, - }, }, }, }, - 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"}, } } -func schema_pkg_apis_storage_v1_RunnerList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SSOIdentity(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RunnerList contains a list of Runner", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "userId": { 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 subject of the user", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "username": { 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 username", 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.Runner"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Runner", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_storage_v1_RunnerPersistentVolumeClaimTemplate(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": { - 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"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPersistentVolumeClaimTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, - } -} - -func schema_pkg_apis_storage_v1_RunnerPersistentVolumeClaimTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "accessModes": { - 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{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"}, - }, - }, - }, - }, - }, - "storageClassName": { + "preferredUsername": { 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", + Description: "The preferred username / display name", Type: []string{"string"}, Format: "", }, }, - "storageSize": { + "email": { SchemaProps: spec.SchemaProps{ - Description: "storageSize is the size of the storage to reserve for the pvc", + Description: "The user email", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_RunnerPodTemplate(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": { - 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"), - }, - }, - }, - }, - }, - 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 { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "image": { + "emailVerified": { SchemaProps: spec.SchemaProps{ - Description: "Runner pod image to use other than default", - Type: []string{"string"}, + Description: "If the user email was verified", + Type: []string{"boolean"}, 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": { + "extraClaims": { 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": { - SchemaProps: spec.SchemaProps{ - Description: "Set the NodeSelector for the Runner Pod", + 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, @@ -24695,305 +27354,38 @@ func schema_pkg_apis_storage_v1_RunnerPodTemplateSpec(ref common.ReferenceCallba }, }, }, - "affinity": { - SchemaProps: spec.SchemaProps{ - Description: "Set the Affinity for the Runner Pod", - Ref: ref("k8s.io/api/core/v1.Affinity"), - }, - }, - "tolerations": { - SchemaProps: spec.SchemaProps{ - Description: "Set the Tolerations for the Runner Pod", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Toleration"), - }, - }, - }, - }, - }, - "volumeMounts": { - SchemaProps: spec.SchemaProps{ - Description: "Set Volume Mounts for the Runner Pod", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeMount"), - }, - }, - }, - }, - }, - "volumes": { - SchemaProps: spec.SchemaProps{ - Description: "Set Volumes for the Runner Pod", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Volume"), - }, - }, - }, - }, - }, - "initContainers": { - SchemaProps: spec.SchemaProps{ - Description: "Set up Init Containers for the Runner", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Container"), - }, - }, - }, - }, - }, - "hostAliases": { - SchemaProps: spec.SchemaProps{ - Description: "Set host aliases for the Runner Pod", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.HostAlias"), - }, - }, - }, - }, - }, - }, - }, - }, - 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 { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "runner": { - SchemaProps: spec.SchemaProps{ - Description: "Runner is the connected runner the workspace will be created in", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_RunnerServiceTemplate(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": { - 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"), - }, - }, - }, - }, - }, - 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 { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "type": { - 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"}, - Format: "", - Enum: []interface{}{"ClusterIP", "ExternalName", "LoadBalancer", "NodePort"}, - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_RunnerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", - Type: []string{"string"}, - Format: "", - }, - }, - "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": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + 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/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": { + "connector": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", + Description: "Connector is the name of the connector this access key was created from", 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_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": { + "connectorData": { SchemaProps: spec.SchemaProps{ - Description: "Token defines the private ssh key to use for authentication, this is a base64 encoded string.", + 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: "", - }, - }, - "tokenSecretRef": { - 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"), + Format: "byte", }, }, }, }, }, - Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, } } @@ -25793,6 +28185,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{ @@ -26609,6 +29027,263 @@ func schema_pkg_apis_storage_v1_TemplateRef(ref common.ReferenceCallback) common } } +func schema_pkg_apis_storage_v1_TerraformNodeEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "inline": { + SchemaProps: spec.SchemaProps{ + Description: "Inline is the inline template to use for this node type.", + Type: []string{"string"}, + Format: "", + }, + }, + "git": { + SchemaProps: spec.SchemaProps{ + Description: "Git is the git repository to use for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplateSourceGit"), + }, + }, + "timeout": { + SchemaProps: spec.SchemaProps{ + Description: "Timeout is the timeout to use for the terraform operations. Defaults to 60m.", + Type: []string{"string"}, + Format: "", + }, + }, + "infrastructure": { + SchemaProps: spec.SchemaProps{ + Description: "Infrastructure is the infrastructure template to use for this node environment.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate"), + }, + }, + "kubernetes": { + SchemaProps: spec.SchemaProps{ + Description: "Kubernetes is the kubernetes template to use for this node environment.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplateSourceGit"}, + } +} + +func schema_pkg_apis_storage_v1_TerraformNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the node provider to use for this node type.", + Type: []string{"string"}, + Format: "", + }, + }, + "properties": { + SchemaProps: spec.SchemaProps{ + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/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: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), + }, + }, + "nodeTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTemplate is the template to use for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate"), + }, + }, + "maxCapacity": { + SchemaProps: spec.SchemaProps{ + Description: "MaxCapacity is the maximum number of nodes that can be created for this NodeType.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + } +} + +func schema_pkg_apis_storage_v1_TerraformTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "inline": { + SchemaProps: spec.SchemaProps{ + Description: "Inline is the inline template to use for this node type.", + Type: []string{"string"}, + Format: "", + }, + }, + "git": { + SchemaProps: spec.SchemaProps{ + Description: "Git is the git repository to use for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplateSourceGit"), + }, + }, + "timeout": { + SchemaProps: spec.SchemaProps{ + Description: "Timeout is the timeout to use for the terraform operations. Defaults to 60m.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplateSourceGit"}, + } +} + +func schema_pkg_apis_storage_v1_TerraformTemplateSourceGit(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "repository": { + SchemaProps: spec.SchemaProps{ + Description: "Repository is the repository to clone", + Type: []string{"string"}, + Format: "", + }, + }, + "branch": { + SchemaProps: spec.SchemaProps{ + Description: "Branch is the branch to use", + Type: []string{"string"}, + Format: "", + }, + }, + "commit": { + SchemaProps: spec.SchemaProps{ + Description: "Commit is the commit SHA to checkout", + Type: []string{"string"}, + Format: "", + }, + }, + "tag": { + SchemaProps: spec.SchemaProps{ + Description: "Tag is the tag reference to checkout", + Type: []string{"string"}, + Format: "", + }, + }, + "subPath": { + SchemaProps: spec.SchemaProps{ + Description: "SubPath is the subpath in the repo to use", + Type: []string{"string"}, + Format: "", + }, + }, + "credentials": { + SchemaProps: spec.SchemaProps{ + Description: "Credentials is the reference to a secret containing the username and password for the git repository.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + }, + }, + "fetchInterval": { + SchemaProps: spec.SchemaProps{ + Description: "FetchInterval is the interval to use for refetching the git repository. Defaults to 5m. Refetching only checks for remote changes but does not do a complete repull.", + Type: []string{"string"}, + Format: "", + }, + }, + "extraEnv": { + SchemaProps: spec.SchemaProps{ + Description: "ExtraEnv is the extra environment variables to use for the clone", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"}, + } +} + func schema_pkg_apis_storage_v1_User(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -26908,6 +29583,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 +29915,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: "", + }, + }, }, }, }, @@ -27492,6 +30190,13 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref common.ReferenceC Format: "", }, }, + "standalone": { + SchemaProps: spec.SchemaProps{ + Description: "Standalone specifies if the virtual cluster is standalone and not hosted in another Kubernetes cluster.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, @@ -27534,6 +30239,13 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref common.Referenc Format: "", }, }, + "kubernetesVersion": { + SchemaProps: spec.SchemaProps{ + Description: "KubernetesVersion is the Kubernetes version of the virtual cluster.", + Type: []string{"string"}, + Format: "", + }, + }, "deployHash": { SchemaProps: spec.SchemaProps{ Description: "DeployHash is the hash of the last deployed values.", @@ -28137,34 +30849,73 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref common.Referen } } -func schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_ui_v1_CspPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "id": { + "Script": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "context": { + "Connect": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "provider": { + "Frame": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "state": { + "Font": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"Script", "Connect", "Frame", "Font"}, + }, + }, + } +} + +func schema_pkg_apis_ui_v1_ExternalURLs(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "block": { + SchemaProps: spec.SchemaProps{ + Description: "Block determines if requests to external URLs from the UI should be blocked", + Type: []string{"boolean"}, + Format: "", + }, + }, + "allow": { + SchemaProps: spec.SchemaProps{ + Description: "Allow specifies which external URLs can be called. In addition to the predefined modules, - \"vcluster\" (license page, feature descriptions, ...) - \"gtm\" (google tag manager) - \"featurebase\" (changelog) any URL can be added to this list. This will allow the UI to make any request to this URL. This is only active when Block is true.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, @@ -28275,7 +31026,21 @@ func schema_pkg_apis_ui_v1_UISettingsConfig(ref common.ReferenceCallback) common }, "logoURL": { SchemaProps: spec.SchemaProps{ - Description: "LogoURL is url pointing to the logo to use in the Loft UI. This path must be accessible for clients accessing the Loft UI!", + Description: "LogoURL is url pointing to the logo to use in the vCluster Platform UI. This path must be accessible for clients accessing the vCluster Platform UI!", + Type: []string{"string"}, + Format: "", + }, + }, + "faviconURL": { + SchemaProps: spec.SchemaProps{ + Description: "FaviconURL is url pointing to the favicon to use in the vCluster Platform UI. This path must be accessible for clients accessing the vCluster Platform UI!", + Type: []string{"string"}, + Format: "", + }, + }, + "smallLogoURL": { + SchemaProps: spec.SchemaProps{ + Description: "SmallLogoURL is url pointing to the small logo to use in the vCluster Platform UI. This path must be accessible for clients accessing the vCluster Platform UI!", Type: []string{"string"}, Format: "", }, @@ -28359,11 +31124,18 @@ func schema_pkg_apis_ui_v1_UISettingsConfig(ref common.ReferenceCallback) common }, }, }, + "externalURLs": { + SchemaProps: spec.SchemaProps{ + Description: "External URLs that can be called from the UI", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.ExternalURLs"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton"}, + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.ExternalURLs", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton"}, } } @@ -28383,7 +31155,21 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O }, "logoURL": { SchemaProps: spec.SchemaProps{ - Description: "LogoURL is url pointing to the logo to use in the Loft UI. This path must be accessible for clients accessing the Loft UI!", + Description: "LogoURL is url pointing to the logo to use in the vCluster Platform UI. This path must be accessible for clients accessing the vCluster Platform UI!", + Type: []string{"string"}, + Format: "", + }, + }, + "faviconURL": { + SchemaProps: spec.SchemaProps{ + Description: "FaviconURL is url pointing to the favicon to use in the vCluster Platform UI. This path must be accessible for clients accessing the vCluster Platform UI!", + Type: []string{"string"}, + Format: "", + }, + }, + "smallLogoURL": { + SchemaProps: spec.SchemaProps{ + Description: "SmallLogoURL is url pointing to the small logo to use in the vCluster Platform UI. This path must be accessible for clients accessing the vCluster Platform UI!", Type: []string{"string"}, Format: "", }, @@ -28467,6 +31253,13 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O }, }, }, + "externalURLs": { + SchemaProps: spec.SchemaProps{ + Description: "External URLs that can be called from the UI", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.ExternalURLs"), + }, + }, "productName": { SchemaProps: spec.SchemaProps{ Description: "Name is the name of the product", @@ -28483,7 +31276,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,11 +31288,32 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O Format: "", }, }, + "availableVClusterVersions": { + SchemaProps: spec.SchemaProps{ + Description: "AvailableVClusterVersions lists all virtual cluster versions available to the platform instance", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.VClusterVersion"), + }, + }, + }, + }, + }, + "loftHosted": { + SchemaProps: spec.SchemaProps{ + Description: "LoftHosted indicates whether the vCluster Platform instance is hosted and operated by Loft Labs Inc.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton"}, + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.ExternalURLs", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.VClusterVersion"}, } } @@ -28509,6 +31323,58 @@ func schema_pkg_apis_ui_v1_UISettingsStatus(ref common.ReferenceCallback) common SchemaProps: spec.SchemaProps{ Description: "UISettingsStatus holds the status", Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "csps": { + SchemaProps: spec.SchemaProps{ + Description: "Csps holds Content Security Policies", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.CspPolicy"), + }, + }, + }, + }, + }, + "cspConfig": { + SchemaProps: spec.SchemaProps{ + Description: "CspConfig holds the raw csp config from the user", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.CspPolicy"}, + } +} + +func schema_pkg_apis_ui_v1_VClusterVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "tagName": { + SchemaProps: spec.SchemaProps{ + Description: "TagName is the full tag name", + Type: []string{"string"}, + Format: "", + }, + }, + "prerelease": { + SchemaProps: spec.SchemaProps{ + Description: "PreRelease determines if the version is marked as prerelease", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, }, }, } @@ -30244,13 +33110,470 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationLis }, "items": { SchemaProps: spec.SchemaProps{ - Description: "List of ValidatingWebhookConfiguration.", + Description: "List of ValidatingWebhookConfiguration.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_k8sio_api_admissionregistration_v1_Validation(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Validation specifies the CEL expression which is used to apply the validation.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "expression": { + SchemaProps: spec.SchemaProps{ + Description: "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + Type: []string{"string"}, + Format: "", + }, + }, + "messageExpression": { + SchemaProps: spec.SchemaProps{ + Description: "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"expression"}, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1_Variable(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "expression": { + SchemaProps: spec.SchemaProps{ + Description: "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "expression"}, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "WebhookClientConfig contains the information to make a TLS connection with the webhook", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "url": { + SchemaProps: spec.SchemaProps{ + Description: "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + Type: []string{"string"}, + Format: "", + }, + }, + "service": { + SchemaProps: spec.SchemaProps{ + Description: "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.", + Ref: ref("k8s.io/api/admissionregistration/v1.ServiceReference"), + }, + }, + "caBundle": { + SchemaProps: spec.SchemaProps{ + Description: "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1.ServiceReference"}, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_ApplyConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ApplyConfiguration defines the desired configuration values of an object.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "expression": { + SchemaProps: spec.SchemaProps{ + Description: "expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec\n\nApply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:\n\n\tObject{\n\t spec: Object.spec{\n\t serviceAccountName: \"example\"\n\t }\n\t}\n\nApply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration.\n\nCEL expressions have access to the object types needed to create apply configurations:\n\n- 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AuditAnnotation describes how to produce an audit annotation for an API request.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "key": { + SchemaProps: spec.SchemaProps{ + Description: "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "valueExpression": { + SchemaProps: spec.SchemaProps{ + Description: "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"key", "valueExpression"}, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ExpressionWarning is a warning information that targets a specific expression.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "fieldRef": { + SchemaProps: spec.SchemaProps{ + Description: "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "warning": { + SchemaProps: spec.SchemaProps{ + Description: "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"fieldRef", "warning"}, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_JSONPatch(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "JSONPatch defines a JSON Patch.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "expression": { + SchemaProps: spec.SchemaProps{ + Description: "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec\n\nexpression must return an array of JSONPatch values.\n\nFor example, this CEL expression returns a JSON patch to conditionally modify a value:\n\n\t [\n\t JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"},\n\t JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"}\n\t ]\n\nTo define an object for the patch value, use Object types. For example:\n\n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/spec/selector\",\n\t value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}}\n\t }\n\t ]\n\nTo use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example:\n\n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"),\n\t value: \"test\"\n\t },\n\t ]\n\nCEL expressions have access to the types needed to create JSON patches and objects:\n\n- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.\n See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,\n integer, array, map or object. If set, the 'path' and 'from' fields must be set to a\n [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL\n function may be used to escape path keys containing '/' and '~'.\n- 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nCEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:\n\n- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "expression": { + SchemaProps: spec.SchemaProps{ + Description: "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "expression"}, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespaceSelector": { + SchemaProps: spec.SchemaProps{ + Description: "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "objectSelector": { + SchemaProps: spec.SchemaProps{ + Description: "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "resourceRules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations"), + }, + }, + }, + }, + }, + "excludeResourceRules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations"), + }, + }, + }, + }, + }, + "matchPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.", + 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 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: "Specification of the desired behavior of the MutatingAdmissionPolicy.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicySpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBinding(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget).\n\nAdding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + 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 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: "Specification of the desired behavior of the MutatingAdmissionPolicyBinding.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBindingSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBindingSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBindingList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.", + 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 PolicyBinding.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration"), + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBinding"), }, }, }, @@ -30261,287 +33584,196 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationLis }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_k8sio_api_admissionregistration_v1_Validation(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBindingSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Validation specifies the CEL expression which is used to apply the validation.", + Description: "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "expression": { - SchemaProps: spec.SchemaProps{ - Description: "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Description: "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", - Type: []string{"string"}, - Format: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", - Type: []string{"string"}, - Format: "", - }, - }, - "messageExpression": { - SchemaProps: spec.SchemaProps{ - Description: "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"expression"}, - }, - }, - } -} - -func schema_k8sio_api_admissionregistration_v1_Variable(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "expression": { - SchemaProps: spec.SchemaProps{ - Description: "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"name", "expression"}, - }, - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-map-type": "atomic", - }, - }, - }, - } -} - -func schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "WebhookClientConfig contains the information to make a TLS connection with the webhook", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "url": { + "policyName": { SchemaProps: spec.SchemaProps{ - Description: "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + Description: "policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", Type: []string{"string"}, Format: "", }, }, - "service": { + "paramRef": { SchemaProps: spec.SchemaProps{ - Description: "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.", - Ref: ref("k8s.io/api/admissionregistration/v1.ServiceReference"), + Description: "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.", + Ref: ref("k8s.io/api/admissionregistration/v1beta1.ParamRef"), }, }, - "caBundle": { + "matchResources": { SchemaProps: spec.SchemaProps{ - Description: "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", - Type: []string{"string"}, - Format: "byte", + Description: "matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT.", + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MatchResources"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.ServiceReference"}, + "k8s.io/api/admissionregistration/v1beta1.MatchResources", "k8s.io/api/admissionregistration/v1beta1.ParamRef"}, } } -func schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AuditAnnotation describes how to produce an audit annotation for an API request.", + Description: "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "key": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", - 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: "", }, }, - "valueExpression": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - }, - Required: []string{"key", "valueExpression"}, - }, - }, - } -} - -func schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ExpressionWarning is a warning information that targets a specific expression.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "fieldRef": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", - Default: "", - Type: []string{"string"}, - Format: "", + 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"), }, }, - "warning": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "List of ValidatingAdmissionPolicy.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicy"), + }, + }, + }, }, }, }, - Required: []string{"fieldRef", "warning"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", + Description: "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "paramKind": { SchemaProps: spec.SchemaProps{ - Description: "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "paramKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.", + Ref: ref("k8s.io/api/admissionregistration/v1beta1.ParamKind"), }, }, - "expression": { + "matchConstraints": { SchemaProps: spec.SchemaProps{ - Description: "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required.", + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MatchResources"), }, }, - }, - Required: []string{"name", "expression"}, - }, - }, - } -} - -func schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "namespaceSelector": { - SchemaProps: spec.SchemaProps{ - Description: "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + "variables": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, }, - }, - "objectSelector": { SchemaProps: spec.SchemaProps{ - Description: "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Description: "variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1beta1.Variable"), + }, + }, + }, }, }, - "resourceRules": { + "mutations": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + Description: "mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations"), + Ref: ref("k8s.io/api/admissionregistration/v1beta1.Mutation"), }, }, }, }, }, - "excludeResourceRules": { + "failurePolicy": { + SchemaProps: spec.SchemaProps{ + Description: "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + Type: []string{"string"}, + Format: "", + }, + }, + "matchConditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge", }, }, SchemaProps: spec.SchemaProps{ - Description: "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + Description: "matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations"), + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MatchCondition"), }, }, }, }, }, - "matchPolicy": { + "reinvocationPolicy": { SchemaProps: spec.SchemaProps{ - Description: "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + Description: "reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: These mutations will not be called more than once per binding in a single admission evaluation.\n\nIfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.\n\nPossible enum values:\n - `\"IfNeeded\"` indicates that the webhook may be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call.\n - `\"Never\"` indicates that the webhook must not be called more than once in a single admission evaluation.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"IfNeeded", "Never"}, }, }, }, }, - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-map-type": "atomic", - }, - }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + "k8s.io/api/admissionregistration/v1beta1.MatchCondition", "k8s.io/api/admissionregistration/v1beta1.MatchResources", "k8s.io/api/admissionregistration/v1beta1.Mutation", "k8s.io/api/admissionregistration/v1beta1.ParamKind", "k8s.io/api/admissionregistration/v1beta1.Variable"}, } } @@ -30648,9 +33880,10 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref common.R }, "reinvocationPolicy": { SchemaProps: spec.SchemaProps{ - Description: "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", + Description: "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".\n\nPossible enum values:\n - `\"IfNeeded\"` indicates that the webhook may be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call.\n - `\"Never\"` indicates that the webhook must not be called more than once in a single admission evaluation.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"IfNeeded", "Never"}, }, }, "matchConditions": { @@ -30797,6 +34030,43 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration } } +func schema_k8sio_api_admissionregistration_v1beta1_Mutation(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Mutation specifies the CEL expression which is used to apply the Mutation.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "patchType": { + SchemaProps: spec.SchemaProps{ + Description: "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.\n\n\nPossible enum values:\n - `\"ApplyConfiguration\"` ApplyConfiguration indicates that the mutation is using apply configuration to mutate the object.\n - `\"JSONPatch\"` JSONPatch indicates that the object is mutated through JSON Patch.", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"ApplyConfiguration", "JSONPatch"}, + }, + }, + "applyConfiguration": { + SchemaProps: spec.SchemaProps{ + Description: "applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration.", + Ref: ref("k8s.io/api/admissionregistration/v1beta1.ApplyConfiguration"), + }, + }, + "jsonPatch": { + SchemaProps: spec.SchemaProps{ + Description: "jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.", + Ref: ref("k8s.io/api/admissionregistration/v1beta1.JSONPatch"), + }, + }, + }, + Required: []string{"patchType"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1beta1.ApplyConfiguration", "k8s.io/api/admissionregistration/v1beta1.JSONPatch"}, + } +} + func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -32556,28 +35826,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 +35859,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 +36066,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 +36096,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 +36116,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 +36139,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 +36147,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", }, @@ -32944,7 +36228,7 @@ func schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref common.ReferenceCallbac }, "maxSurge": { SchemaProps: spec.SchemaProps{ - Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", + Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), }, }, @@ -33297,7 +36581,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 +36592,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 +37147,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 +37206,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{ @@ -34105,6 +37396,7 @@ func schema_k8sio_api_apps_v1beta1_ScaleSpec(ref common.ReferenceCallback) commo "replicas": { SchemaProps: spec.SchemaProps{ Description: "replicas is the number of observed instances of the scaled object.", + Default: 0, Type: []string{"integer"}, Format: "int32", }, @@ -34442,7 +37734,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 +37745,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref common.ReferenceCallback) }, }, }, - Required: []string{"template", "serviceName"}, + Required: []string{"template"}, }, }, Dependencies: []string{ @@ -35285,28 +38577,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 +38610,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 +38816,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 +38846,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 +38866,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 +38889,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 +38897,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", }, @@ -35672,7 +38978,7 @@ func schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref common.ReferenceCa }, "maxSurge": { SchemaProps: spec.SchemaProps{ - Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", + Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), }, }, @@ -35799,6 +39105,7 @@ func schema_k8sio_api_apps_v1beta2_ScaleSpec(ref common.ReferenceCallback) commo "replicas": { SchemaProps: spec.SchemaProps{ Description: "desired number of instances for the scaled object.", + Default: 0, Type: []string{"integer"}, Format: "int32", }, @@ -36141,7 +39448,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 +39459,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref common.ReferenceCallback) }, }, }, - Required: []string{"selector", "template", "serviceName"}, + Required: []string{"selector", "template"}, }, }, Dependencies: []string{ @@ -37300,13 +40607,13 @@ func schema_k8sio_api_authorization_v1_ResourceAttributes(ref common.ReferenceCa }, "fieldSelector": { SchemaProps: spec.SchemaProps{ - Description: "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default).", + Description: "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.", Ref: ref("k8s.io/api/authorization/v1.FieldSelectorAttributes"), }, }, "labelSelector": { SchemaProps: spec.SchemaProps{ - Description: "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default).", + Description: "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.", Ref: ref("k8s.io/api/authorization/v1.LabelSelectorAttributes"), }, }, @@ -38981,7 +42288,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 +42315,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 +42343,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: "", @@ -39386,6 +42693,7 @@ func schema_k8sio_api_autoscaling_v1_ScaleSpec(ref common.ReferenceCallback) com "replicas": { SchemaProps: spec.SchemaProps{ Description: "replicas is the desired number of instances for the scaled object.", + Default: 0, Type: []string{"integer"}, Format: "int32", }, @@ -39938,7 +43246,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 +43272,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 +43300,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 +44215,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 +44241,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 +44269,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,27 +45001,27 @@ 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"), }, }, "backoffLimit": { SchemaProps: spec.SchemaProps{ - Description: "Specifies the number of retries before marking this job failed. Defaults to 6", + Description: "Specifies the number of retries before marking this job failed. Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647.", Type: []string{"integer"}, Format: "int32", }, }, "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", }, @@ -41762,7 +45070,7 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open }, "podReplacementPolicy": { SchemaProps: spec.SchemaProps{ - Description: "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.\n\nPossible enum values:\n - `\"Failed\"` means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod.\n - `\"TerminatingOrFailed\"` means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed.", + Description: "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.\n\nPossible enum values:\n - `\"Failed\"` means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod.\n - `\"TerminatingOrFailed\"` means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed.", Type: []string{"string"}, Format: "", Enum: []interface{}{"Failed", "TerminatingOrFailed"}, @@ -41770,7 +45078,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 +45169,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 +45348,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: "", @@ -42095,7 +45403,7 @@ func schema_k8sio_api_batch_v1_SuccessPolicy(ref common.ReferenceCallback) commo }, }, SchemaProps: spec.SchemaProps{ - Description: "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", + Description: "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SuccessCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -42765,6 +46073,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{ @@ -42844,7 +46276,206 @@ func schema_k8sio_api_coordination_v1_LeaseList(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/coordination/v1.Lease"), + Ref: ref("k8s.io/api/coordination/v1.Lease"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/coordination/v1.Lease", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_k8sio_api_coordination_v1_LeaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "LeaseSpec is a specification of a Lease.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "holderIdentity": { + SchemaProps: spec.SchemaProps{ + Description: "holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.", + Type: []string{"string"}, + Format: "", + }, + }, + "leaseDurationSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "acquireTime": { + SchemaProps: spec.SchemaProps{ + Description: "acquireTime is a time when the current lease was acquired.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + }, + }, + "renewTime": { + SchemaProps: spec.SchemaProps{ + Description: "renewTime is a time when the current holder of a lease has last updated the lease.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + }, + }, + "leaseTransitions": { + SchemaProps: spec.SchemaProps{ + Description: "leaseTransitions is the number of transitions of a lease between holders.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "strategy": { + SchemaProps: spec.SchemaProps{ + Description: "Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.", + Type: []string{"string"}, + Format: "", + }, + }, + "preferredHolder": { + SchemaProps: spec.SchemaProps{ + Description: "PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, + } +} + +func schema_k8sio_api_coordination_v1beta1_Lease(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Lease defines a lease concept.", + 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.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.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"), }, }, }, @@ -42855,112 +46486,65 @@ func schema_k8sio_api_coordination_v1_LeaseList(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/coordination/v1.Lease", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/api/coordination/v1beta1.LeaseCandidate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_k8sio_api_coordination_v1_LeaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_coordination_v1beta1_LeaseCandidateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "LeaseSpec is a specification of a Lease.", + Description: "LeaseCandidateSpec is a specification of a Lease.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "holderIdentity": { + "leaseName": { SchemaProps: spec.SchemaProps{ - Description: "holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.", + 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: "", }, }, - "leaseDurationSeconds": { - SchemaProps: spec.SchemaProps{ - Description: "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "acquireTime": { + "pingTime": { SchemaProps: spec.SchemaProps{ - Description: "acquireTime is a time when the current lease was acquired.", + 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 a time when the current holder of a lease has last updated the lease.", + 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"), }, }, - "leaseTransitions": { - SchemaProps: spec.SchemaProps{ - Description: "leaseTransitions is the number of transitions of a lease between holders.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "strategy": { + "binaryVersion": { SchemaProps: spec.SchemaProps{ - Description: "Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.", + 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: "", }, }, - "preferredHolder": { + "emulationVersion": { SchemaProps: spec.SchemaProps{ - Description: "PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.", + 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: "", }, }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, - } -} - -func schema_k8sio_api_coordination_v1beta1_Lease(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Lease defines a lease concept.", - 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": { + "strategy": { 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: "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: "", }, }, - "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.LeaseSpec"), - }, - }, }, + Required: []string{"leaseName", "binaryVersion", "strategy"}, }, }, Dependencies: []string{ - "k8s.io/api/coordination/v1beta1.LeaseSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, } } @@ -43408,7 +46992,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 +47036,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": { @@ -44560,7 +48144,7 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope }, }, 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.", + Description: "List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. 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{ @@ -44624,11 +48208,30 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope }, "restartPolicy": { SchemaProps: spec.SchemaProps{ - Description: "RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", + Description: "RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Additionally, setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", Type: []string{"string"}, Format: "", }, }, + "restartPolicyRules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerRestartRule"), + }, + }, + }, + }, + }, "volumeMounts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -44756,7 +48359,45 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "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.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, + "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.ContainerRestartRule", "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.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, + } +} + +func schema_k8sio_api_core_v1_ContainerExtendedResourceRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "containerName": { + SchemaProps: spec.SchemaProps{ + Description: "The name of the container requesting resources.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "resourceName": { + SchemaProps: spec.SchemaProps{ + Description: "The name of the extended resource in that container which gets backed by DRA.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "requestName": { + SchemaProps: spec.SchemaProps{ + Description: "The name of the request in the special ResourceClaim which corresponds to the extended resource.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"containerName", "resourceName", "requestName"}, + }, + }, } } @@ -44882,6 +48523,76 @@ func schema_k8sio_api_core_v1_ContainerResizePolicy(ref common.ReferenceCallback } } +func schema_k8sio_api_core_v1_ContainerRestartRule(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ContainerRestartRule describes how a container exit is handled.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "action": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container.", + Type: []string{"string"}, + Format: "", + }, + }, + "exitCodes": { + SchemaProps: spec.SchemaProps{ + Description: "Represents the exit codes to check on container exits.", + Ref: ref("k8s.io/api/core/v1.ContainerRestartRuleOnExitCodes"), + }, + }, + }, + Required: []string{"action"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ContainerRestartRuleOnExitCodes"}, + } +} + +func schema_k8sio_api_core_v1_ContainerRestartRuleOnExitCodes(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "operator": { + SchemaProps: spec.SchemaProps{ + Description: "Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the\n set of specified values.\n- NotIn: the requirement is satisfied if the container exit code is\n not in the set of specified values.", + Type: []string{"string"}, + Format: "", + }, + }, + "values": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Specifies the set of values to check for container exit codes. At most 255 elements are allowed.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + }, + }, + }, + Required: []string{"operator"}, + }, + }, + } +} + func schema_k8sio_api_core_v1_ContainerState(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -45176,6 +48887,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 +49097,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 +49146,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 +49195,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 +49267,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 +49322,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 +49373,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. May consist of any printable ASCII characters except '='.", Type: []string{"string"}, Format: "", }, @@ -45693,7 +49412,7 @@ func schema_k8sio_api_core_v1_EnvVar(ref common.ReferenceCallback) common.OpenAP Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the environment variable. Must be a C_IDENTIFIER.", + Description: "Name of the environment variable. May consist of any printable ASCII characters except '='.", Default: "", Type: []string{"string"}, Format: "", @@ -45752,11 +49471,17 @@ func schema_k8sio_api_core_v1_EnvVarSource(ref common.ReferenceCallback) common. Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), }, }, + "fileKeyRef": { + SchemaProps: spec.SchemaProps{ + Description: "FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled.", + Ref: ref("k8s.io/api/core/v1.FileKeySelector"), + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector", "k8s.io/api/core/v1.SecretKeySelector"}, + "k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.FileKeySelector", "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector", "k8s.io/api/core/v1.SecretKeySelector"}, } } @@ -45861,7 +49586,7 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c }, }, 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.", + Description: "List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. 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{ @@ -45925,11 +49650,30 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c }, "restartPolicy": { SchemaProps: spec.SchemaProps{ - Description: "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.", + Description: "Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers.", Type: []string{"string"}, Format: "", }, }, + "restartPolicyRules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerRestartRule"), + }, + }, + }, + }, + }, "volumeMounts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -46064,7 +49808,7 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "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.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, + "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.ContainerRestartRule", "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.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, } } @@ -46169,7 +49913,7 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb }, }, 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.", + Description: "List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. 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{ @@ -46233,11 +49977,30 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb }, "restartPolicy": { SchemaProps: spec.SchemaProps{ - Description: "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.", + Description: "Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers.", Type: []string{"string"}, Format: "", }, }, + "restartPolicyRules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerRestartRule"), + }, + }, + }, + }, + }, "volumeMounts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -46365,7 +50128,7 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb }, }, Dependencies: []string{ - "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.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, + "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.ContainerRestartRule", "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.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, } } @@ -46735,6 +50498,57 @@ func schema_k8sio_api_core_v1_FCVolumeSource(ref common.ReferenceCallback) commo } } +func schema_k8sio_api_core_v1_FileKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "FileKeySelector selects a key of the env file.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "volumeName": { + SchemaProps: spec.SchemaProps{ + Description: "The name of the volume mount containing the env file.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "path": { + SchemaProps: spec.SchemaProps{ + Description: "The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "key": { + SchemaProps: spec.SchemaProps{ + Description: "The key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except '='. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "optional": { + SchemaProps: spec.SchemaProps{ + Description: "Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers.\n\nIf optional is set to false and the specified key does not exist, an error will be returned during Pod creation.", + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"volumeName", "path", "key"}, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + }, + } +} + func schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -46929,7 +50743,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{ @@ -47043,7 +50858,7 @@ func schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref common.ReferenceCallback Properties: map[string]spec.Schema{ "endpoints": { SchemaProps: spec.SchemaProps{ - Description: "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + Description: "endpoints is the endpoint name that details Glusterfs topology.", Default: "", Type: []string{"string"}, Format: "", @@ -47560,6 +51375,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 +51400,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 +51872,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 +52039,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 +52912,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 +52936,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 +52957,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 +53059,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 +53166,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 +53391,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": { @@ -49712,7 +53568,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCall }, "volumeAttributesClassName": { SchemaProps: spec.SchemaProps{ - Description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", + Description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/", Type: []string{"string"}, Format: "", }, @@ -49837,14 +53693,14 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa }, "currentVolumeAttributesClassName": { SchemaProps: spec.SchemaProps{ - Description: "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + Description: "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim", Type: []string{"string"}, Format: "", }, }, "modifyVolumeStatus": { SchemaProps: spec.SchemaProps{ - Description: "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + Description: "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted.", Ref: ref("k8s.io/api/core/v1.ModifyVolumeStatus"), }, }, @@ -49975,13 +53831,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 +53849,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 +53861,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 +53873,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 +53891,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 +53951,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 +53992,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 +54010,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 +54022,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 +54034,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 +54052,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 +54112,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"), }, }, @@ -50349,7 +54205,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "volumeAttributesClassName": { SchemaProps: spec.SchemaProps{ - Description: "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + Description: "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process.", Type: []string{"string"}, Format: "", }, @@ -50591,7 +54447,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 +54467,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{ @@ -50666,7 +54522,7 @@ func schema_k8sio_api_core_v1_PodAntiAffinity(ref common.ReferenceCallback) comm }, }, SchemaProps: spec.SchemaProps{ - Description: "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + Description: "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -50748,6 +54604,62 @@ func schema_k8sio_api_core_v1_PodAttachOptions(ref common.ReferenceCallback) com } } +func schema_k8sio_api_core_v1_PodCertificateProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "signerName": { + SchemaProps: spec.SchemaProps{ + Description: "Kubelet's generated CSRs will be addressed to this signer.", + Type: []string{"string"}, + Format: "", + }, + }, + "keyType": { + SchemaProps: spec.SchemaProps{ + Description: "The type of keypair Kubelet will generate for the pod.\n\nValid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\".", + Type: []string{"string"}, + Format: "", + }, + }, + "maxExpirationSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "maxExpirationSeconds is the maximum lifetime permitted for the certificate.\n\nKubelet copies this value verbatim into the PodCertificateRequests it generates for this projection.\n\nIf omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days).\n\nThe signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "credentialBundlePath": { + SchemaProps: spec.SchemaProps{ + Description: "Write the credential bundle at this path in the projected volume.\n\nThe credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key.\n\nThe remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates).\n\nUsing credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key.", + Type: []string{"string"}, + Format: "", + }, + }, + "keyPath": { + SchemaProps: spec.SchemaProps{ + Description: "Write the key at this path in the projected volume.\n\nMost applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.", + Type: []string{"string"}, + Format: "", + }, + }, + "certificateChainPath": { + SchemaProps: spec.SchemaProps{ + Description: "Write the certificate chain at this path in the projected volume.\n\nMost applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"signerName", "keyType"}, + }, + }, + } +} + func schema_k8sio_api_core_v1_PodCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -50763,6 +54675,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 +54808,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: "", }, }, }, @@ -50989,6 +54909,49 @@ func schema_k8sio_api_core_v1_PodExecOptions(ref common.ReferenceCallback) commo } } +func schema_k8sio_api_core_v1_PodExtendedResourceClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodExtendedResourceClaimStatus is stored in the PodStatus for the extended resource requests backed by DRA. It stores the generated name for the corresponding special ResourceClaim created by the scheduler.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "requestMappings": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "RequestMappings identifies the mapping of to device request in the generated ResourceClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerExtendedResourceRequest"), + }, + }, + }, + }, + }, + "resourceClaimName": { + SchemaProps: spec.SchemaProps{ + Description: "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"requestMappings", "resourceClaimName"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ContainerExtendedResourceRequest"}, + } +} + func schema_k8sio_api_core_v1_PodIP(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -51126,7 +55089,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 +55108,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 +55449,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 +55528,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{ @@ -51692,7 +55669,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, "hostNetwork": { SchemaProps: spec.SchemaProps{ - Description: "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", + Description: "Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false.", Type: []string{"boolean"}, Format: "", }, @@ -51927,7 +55904,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, "os": { SchemaProps: spec.SchemaProps{ - Description: "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup", + Description: "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.resources - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup", Ref: ref("k8s.io/api/core/v1.PodOS"), }, }, @@ -51986,12 +55963,25 @@ 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\", \"memory\" and \"hugepages-\" 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"), + }, + }, + "hostnameOverride": { + SchemaProps: spec.SchemaProps{ + Description: "HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false.\n\nThis field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled.", + Type: []string{"string"}, + Format: "", + }, + }, }, 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 +55992,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 +56124,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 +56143,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 +56170,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 +56184,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: "", }, @@ -52216,11 +56213,17 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, }, + "extendedResourceClaimStatus": { + SchemaProps: spec.SchemaProps{ + Description: "Status of extended resource claim backed by DRA.", + Ref: ref("k8s.io/api/core/v1.PodExtendedResourceClaimStatus"), + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.HostIP", "k8s.io/api/core/v1.PodCondition", "k8s.io/api/core/v1.PodIP", "k8s.io/api/core/v1.PodResourceClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.HostIP", "k8s.io/api/core/v1.PodCondition", "k8s.io/api/core/v1.PodExtendedResourceClaimStatus", "k8s.io/api/core/v1.PodIP", "k8s.io/api/core/v1.PodResourceClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } @@ -52394,7 +56397,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 +56550,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 +56631,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 +57151,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 +57159,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 +57350,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 +57512,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"}, }, }, }, @@ -53614,7 +57620,7 @@ func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback) }, }, SchemaProps: spec.SchemaProps{ - Description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", + Description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis field depends on the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -53638,11 +57644,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 +57665,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 +57953,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 +58597,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 +59106,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: "", }, @@ -55391,7 +59398,7 @@ func schema_k8sio_api_core_v1_Taint(ref common.ReferenceCallback) common.OpenAPI }, "timeAdded": { SchemaProps: spec.SchemaProps{ - Description: "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", + Description: "TimeAdded represents the time at which the taint was added.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, @@ -55582,7 +59589,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 +59597,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 +59678,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 +59747,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"), }, }, @@ -55769,13 +59777,13 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "iscsi": { SchemaProps: spec.SchemaProps{ - Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md", + Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi", Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), }, }, "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.", Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), }, }, @@ -55787,31 +59795,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.", 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 +59837,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 +59849,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 +59879,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 +59909,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"), }, }, @@ -56112,11 +60120,17 @@ func schema_k8sio_api_core_v1_VolumeProjection(ref common.ReferenceCallback) com Ref: ref("k8s.io/api/core/v1.ClusterTrustBundleProjection"), }, }, + "podCertificate": { + SchemaProps: spec.SchemaProps{ + Description: "Projects an auto-rotating credential bundle (private key and certificate chain) that the pod can use either as a TLS client or server.\n\nKubelet generates a private key and uses it to send a PodCertificateRequest to the named signer. Once the signer approves the request and issues a certificate chain, Kubelet writes the key and certificate chain to the pod filesystem. The pod does not start until certificates have been issued for each podCertificate projected volume source in its spec.\n\nKubelet will begin trying to rotate the certificate at the time indicated by the signer using the PodCertificateRequest.Status.BeginRefreshAt timestamp.\n\nKubelet can write a single file, indicated by the credentialBundlePath field, or separate files, indicated by the keyPath and certificateChainPath fields.\n\nThe credential bundle is a single file in PEM format. The first PEM entry is the private key (in PKCS#8 format), and the remaining PEM entries are the certificate chain issued by the signer (typically, signers will return their certificate chain in leaf-to-root order).\n\nPrefer using the credential bundle format, since your application code can read it atomically. If you use keyPath and certificateChainPath, your application must make two separate file reads. If these coincide with a certificate rotation, it is possible that the private key and leaf certificate you read may not correspond to each other. Your application will need to check for this condition, and re-read until they are consistent.\n\nThe named signer controls chooses the format of the certificate it issues; consult the signer implementation's documentation to learn how to use the certificates it issues.", + Ref: ref("k8s.io/api/core/v1.PodCertificateProjection"), + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ClusterTrustBundleProjection", "k8s.io/api/core/v1.ConfigMapProjection", "k8s.io/api/core/v1.DownwardAPIProjection", "k8s.io/api/core/v1.SecretProjection", "k8s.io/api/core/v1.ServiceAccountTokenProjection"}, + "k8s.io/api/core/v1.ClusterTrustBundleProjection", "k8s.io/api/core/v1.ConfigMapProjection", "k8s.io/api/core/v1.DownwardAPIProjection", "k8s.io/api/core/v1.PodCertificateProjection", "k8s.io/api/core/v1.SecretProjection", "k8s.io/api/core/v1.ServiceAccountTokenProjection"}, } } @@ -56184,19 +60198,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"), }, }, @@ -56214,13 +60228,13 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "iscsi": { SchemaProps: spec.SchemaProps{ - Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md", + Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi", Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), }, }, "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.", Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), }, }, @@ -56232,31 +60246,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.", 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 +60288,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 +60300,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 +60330,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 +60360,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 +61361,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 +61394,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 +62496,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 +62526,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 +62546,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 +62568,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 +62576,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", }, @@ -58649,7 +62677,7 @@ func schema_k8sio_api_extensions_v1beta1_RollingUpdateDaemonSet(ref common.Refer }, "maxSurge": { SchemaProps: spec.SchemaProps{ - Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate.", + Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate.", Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), }, }, @@ -58748,6 +62776,7 @@ func schema_k8sio_api_extensions_v1beta1_ScaleSpec(ref common.ReferenceCallback) "replicas": { SchemaProps: spec.SchemaProps{ Description: "desired number of instances for the scaled object.", + Default: 0, Type: []string{"integer"}, Format: "int32", }, @@ -58881,6 +62910,122 @@ func schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref common.ReferenceCal } } +func schema_k8sio_api_networking_v1_IPAddress(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + 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{ + "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 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"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.IPAddressSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_networking_v1_IPAddressList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IPAddressList contains a list of IPAddress.", + 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.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.IPAddress"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "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"}, + } +} + func schema_k8sio_api_networking_v1_IPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -59828,7 +63973,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallba 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.", + Description: "podSelector selects the pods to which this NetworkPolicy object applies. The array of rules is applied to any pods selected by this field. An empty selector matches all pods in the policy's namespace. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is optional. If it is not specified, it defaults to an empty selector.", Default: map[string]interface{}{}, Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), }, @@ -59893,7 +64038,6 @@ func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallba }, }, }, - Required: []string{"podSelector"}, }, }, Dependencies: []string{ @@ -59901,6 +64045,48 @@ func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallba } } +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{ @@ -59933,6 +64119,179 @@ func schema_k8sio_api_networking_v1_ServiceBackendPort(ref common.ReferenceCallb } } +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.ServiceCIDRSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + 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.ServiceCIDRSpec", "k8s.io/api/networking/v1.ServiceCIDRStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_networking_v1_ServiceCIDRList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceCIDRList contains a list of ServiceCIDR 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.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of ServiceCIDRs.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/networking/v1.ServiceCIDR"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.ServiceCIDR", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_k8sio_api_networking_v1_ServiceCIDRSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cidrs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_k8sio_api_networking_v1_ServiceCIDRStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceCIDRStatus describes the current state of the ServiceCIDR.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "conditions holds 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"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, + } +} + func schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -61516,7 +65875,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"}, @@ -64119,7 +68478,7 @@ func schema_k8sio_api_storage_v1_CSIDriverSpec(ref common.ReferenceCallback) com Properties: map[string]spec.Schema{ "attachRequired": { SchemaProps: spec.SchemaProps{ - Description: "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", + Description: "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", Type: []string{"boolean"}, Format: "", }, @@ -64198,6 +68557,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 a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + Type: []string{"integer"}, + Format: "int64", + }, + }, }, }, }, @@ -64822,7 +69188,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": { @@ -64937,6 +69303,118 @@ func schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref common.ReferenceCall } } +func schema_k8sio_api_storage_v1_VolumeAttributesClass(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "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"), + }, + }, + "driverName": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the CSI driver This field is immutable.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"driverName"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_storage_v1_VolumeAttributesClassList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeAttributesClassList is a collection of VolumeAttributesClass 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 the list of VolumeAttributesClass objects.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/storage/v1.VolumeAttributesClass"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/storage/v1.VolumeAttributesClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + func schema_k8sio_api_storage_v1_VolumeError(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -64957,6 +69435,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, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, }, }, }, @@ -65205,7 +69690,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 +69937,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", + }, + }, }, }, }, @@ -65564,7 +70056,7 @@ func schema_k8sio_api_storage_v1beta1_CSIDriverSpec(ref common.ReferenceCallback Properties: map[string]spec.Schema{ "attachRequired": { SchemaProps: spec.SchemaProps{ - Description: "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", + Description: "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", Type: []string{"boolean"}, Format: "", }, @@ -65643,6 +70135,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 a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + Type: []string{"integer"}, + Format: "int64", + }, + }, }, }, }, @@ -66266,7 +70765,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 +71012,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, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, }, }, }, @@ -67223,6 +71729,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 +73643,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 +73924,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/name.go b/pkg/product/name.go index d0a0b833..7a72418b 100644 --- a/pkg/product/name.go +++ b/pkg/product/name.go @@ -15,9 +15,7 @@ var once sync.Once func loadProductVar() { productEnv := os.Getenv("PRODUCT") - if productEnv == string(licenseapi.DevPodPro) { - productName = string(licenseapi.DevPodPro) - } else if productEnv == string(licenseapi.VClusterPro) { + if productEnv == string(licenseapi.VClusterPro) { productName = string(licenseapi.VClusterPro) } else if productEnv == string(licenseapi.Loft) { productName = string(licenseapi.Loft) @@ -36,8 +34,6 @@ func DisplayName() string { loftDisplayName := "Loft" switch Name() { - case licenseapi.DevPodPro: - return "DevPod Pro" case licenseapi.VClusterPro: return "vCluster Platform" case licenseapi.Loft: diff --git a/pkg/product/replace.go b/pkg/product/replace.go index 8d276a31..ba1f5cfc 100644 --- a/pkg/product/replace.go +++ b/pkg/product/replace.go @@ -11,14 +11,10 @@ import ( // based on the current product.Product(). // // It replaces "loft" with the specific product name: -// - "devpod pro" for product.DevPodPro // - "vcluster platform" for product.VClusterPro // - No replacement for product.Loft // -// This handles case insensitive replaces like "loft" -> "devpod pro". -// // It also handles case sensitive replaces: -// - "Loft" -> "DevPod.Pro" for product.DevPodPro // - "Loft" -> "vCluster Platform" for product.VClusterPro // // This allows customizing command usage text for different products. @@ -30,12 +26,6 @@ import ( // - The updated string with product name replaced if needed. func Replace(content string) string { switch Name() { - case licenseapi.DevPodPro: - content = strings.Replace(content, "loft.sh", "devpod.pro", -1) - content = strings.Replace(content, "loft.host", "devpod.host", -1) - - content = strings.Replace(content, "loft", "devpod pro", -1) - content = strings.Replace(content, "Loft", "DevPod.Pro", -1) case licenseapi.VClusterPro: content = strings.Replace(content, "loft.sh", "vcluster.pro", -1) content = strings.Replace(content, "loft.host", "vcluster.host", -1) @@ -54,14 +44,10 @@ func Replace(content string) string { // // The product name replacements are: // -// - "devpod pro" for product.DevPodPro // - "vcluster platform" for product.VClusterPro // - No replacement for product.Loft // -// This handles case insensitive replaces like "loft" -> "devpod pro". -// // It also handles case sensitive replaces: -// - "Loft" -> "DevPod.Pro" for product.DevPodPro // - "Loft" -> "vCluster Platform" for product.VClusterPro // // Parameters: @@ -76,8 +62,6 @@ func ReplaceWithHeader(use, content string) string { productName := licenseapi.Loft switch Name() { - case licenseapi.DevPodPro: - productName = "devpod pro" case licenseapi.VClusterPro: productName = "vcluster platform" case licenseapi.Loft: diff --git a/pkg/product/strings.go b/pkg/product/strings.go index a04d9e09..cecb2d73 100644 --- a/pkg/product/strings.go +++ b/pkg/product/strings.go @@ -9,10 +9,8 @@ func LoginCmd() string { loginCmd := "loft login" switch Name() { - case licenseapi.DevPodPro: - return "devpod login" case licenseapi.VClusterPro: - return "vcluster login" + return "vcluster platform login" case licenseapi.Loft: } @@ -24,8 +22,6 @@ func StartCmd() string { loginCmd := "loft start" switch Name() { - case licenseapi.DevPodPro: - loginCmd = "devpod pro start" case licenseapi.VClusterPro: loginCmd = "vcluster platform start" case licenseapi.Loft: @@ -39,8 +35,6 @@ func Url() string { loginCmd := "loft-url" switch Name() { - case licenseapi.DevPodPro: - loginCmd = "devpod-pro-url" case licenseapi.VClusterPro: loginCmd = "vcluster-pro-url" case licenseapi.Loft: @@ -54,8 +48,6 @@ func ResetPassword() string { resetPassword := "loft reset password" switch Name() { - case licenseapi.DevPodPro: - return "devpod pro reset password" case licenseapi.VClusterPro: return "vcluster platform reset password" 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"` }