diff --git a/go.mod b/go.mod index 84109912..4fd200c0 100644 --- a/go.mod +++ b/go.mod @@ -1,26 +1,30 @@ module github.com/loft-sh/api/v4 -go 1.22.5 +go 1.25.0 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-20260311181619-506013b79ba0 + github.com/loft-sh/agentapi/v4 v4.9.0-next.3 + github.com/loft-sh/apiserver v0.0.0-20260113122925-594495a02e96 + github.com/robfig/cron/v3 v3.0.1 + golang.org/x/mod v0.31.0 + k8s.io/api v0.35.0 + k8s.io/apimachinery v0.35.0 + k8s.io/apiserver v0.35.0 + k8s.io/client-go v0.35.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-20260127142750-a19766b6e2d4 + k8s.io/metrics v0.35.0 + sigs.k8s.io/controller-runtime v0.22.4 + sigs.k8s.io/controller-tools v0.16.4 + sigs.k8s.io/yaml v1.6.0 ) require ( + cel.dev/expr v0.24.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 +32,84 @@ 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/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.10.0 // indirect + github.com/spf13/pflag v1.0.9 // 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.5 // indirect + go.etcd.io/etcd/client/pkg/v3 v3.6.5 // indirect + go.etcd.io/etcd/client/v3 v3.6.5 // indirect + go.opentelemetry.io/auto/sdk v1.2.1 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect + go.opentelemetry.io/otel v1.40.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.40.0 // indirect + go.opentelemetry.io/otel/sdk v1.40.0 // indirect + go.opentelemetry.io/otel/trace v1.40.0 // indirect + go.opentelemetry.io/proto/otlp v1.7.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 - gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect + go.yaml.in/yaml/v2 v2.4.3 // indirect + go.yaml.in/yaml/v3 v3.0.4 // indirect + golang.org/x/crypto v0.47.0 // indirect + golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect + golang.org/x/net v0.49.0 // indirect + golang.org/x/oauth2 v0.34.0 // indirect + golang.org/x/sync v0.19.0 // indirect + golang.org/x/sys v0.40.0 // indirect + golang.org/x/term v0.39.0 // indirect + golang.org/x/text v0.33.0 // indirect + golang.org/x/time v0.14.0 // indirect + golang.org/x/tools v0.40.0 // indirect + golang.org/x/tools/go/expect v0.1.1-deprecated // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20260122232226-8e98ce8d340d // indirect + google.golang.org/grpc v1.78.0 // indirect + google.golang.org/protobuf v1.36.11 // indirect + gopkg.in/evanphx/json-patch.v4 v4.13.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.35.0 // indirect + k8s.io/component-base v0.35.0 // indirect + k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect + sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 // indirect + sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect + sigs.k8s.io/randfill v1.0.0 // indirect + sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect ) diff --git a/go.sum b/go.sum index 7e4f65bc..39a6d794 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,272 +52,284 @@ 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-20260311181619-506013b79ba0 h1:12fy1LhhyuQ46ls272yWn6HpAMLNUClsBYqRvu+qTC0= +github.com/loft-sh/admin-apis v0.0.0-20260311181619-506013b79ba0/go.mod h1:pp+2PgOsRCTb1DXnEev/HCc0gvj5t0nHuTIMU8C8b90= +github.com/loft-sh/agentapi/v4 v4.9.0-next.3 h1:t0SH7KOWUIFiL/UGUNN8+wu22NzR2J2KHedhYpyY3Q0= +github.com/loft-sh/agentapi/v4 v4.9.0-next.3/go.mod h1:imoDDofcfZKLEy8Mpt0gWUKQWAXQ3oUVEyfWFil9Vdc= +github.com/loft-sh/apiserver v0.0.0-20260113122925-594495a02e96 h1:MnvrgRnVm7X8zQPyVS2U2veIxacmVUYSFTHsoi6sJrw= +github.com/loft-sh/apiserver v0.0.0-20260113122925-594495a02e96/go.mod h1:yBY01KhmW2XAWoqbAx8rx3xqwVwGMa3OYwiM2eYalY4= 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/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +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/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/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs= +github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= +github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= 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.10.0 h1:a5/WeUlSDCvV5a45ljW2ZFtV0bTDpkfSAj3uqB6Sc+0= +github.com/spf13/cobra v1.10.0/go.mod h1:9dhySC7dnTtEiqzmqfkLj47BslqLCUPMXjG2lj/NgoE= +github.com/spf13/pflag v1.0.8/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY= +github.com/spf13/pflag v1.0.9/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.3 h1:dEadXpI6G79deX5prL3QRNP6JB8UxVkqo4UPnHaNXJo= +go.etcd.io/bbolt v1.4.3/go.mod h1:tKQlpPaYCVFctUIgFKFnAlvbmB3tpy1vkTnDWohtc0E= +go.etcd.io/etcd/api/v3 v3.6.5 h1:pMMc42276sgR1j1raO/Qv3QI9Af/AuyQUW6CBAWuntA= +go.etcd.io/etcd/api/v3 v3.6.5/go.mod h1:ob0/oWA/UQQlT1BmaEkWQzI0sJ1M0Et0mMpaABxguOQ= +go.etcd.io/etcd/client/pkg/v3 v3.6.5 h1:Duz9fAzIZFhYWgRjp/FgNq2gO1jId9Yae/rLn3RrBP8= +go.etcd.io/etcd/client/pkg/v3 v3.6.5/go.mod h1:8Wx3eGRPiy0qOFMZT/hfvdos+DjEaPxdIDiCDUv/FQk= +go.etcd.io/etcd/client/v3 v3.6.5 h1:yRwZNFBx/35VKHTcLDeO7XVLbCBFbPi+XV4OC3QJf2U= +go.etcd.io/etcd/client/v3 v3.6.5/go.mod h1:ZqwG/7TAFZ0BJ0jXRPoJjKQJtbFo/9NIY8uoFFKcCyo= +go.etcd.io/etcd/pkg/v3 v3.6.5 h1:byxWB4AqIKI4SBmquZUG1WGtvMfMaorXFoCcFbVeoxM= +go.etcd.io/etcd/pkg/v3 v3.6.5/go.mod h1:uqrXrzmMIJDEy5j00bCqhVLzR5jEJIwDp5wTlLwPGOU= +go.etcd.io/etcd/server/v3 v3.6.5 h1:4RbUb1Bd4y1WkBHmuF+cZII83JNQMuNXzyjwigQ06y0= +go.etcd.io/etcd/server/v3 v3.6.5/go.mod h1:PLuhyVXz8WWRhzXDsl3A3zv/+aK9e4A9lpQkqawIaH0= +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.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 h1:q4XOmH/0opmeuJtPsbFNivyl7bCt7yRBbeEm2sC/XtQ= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0/go.mod h1:snMWehoOh2wsEwnvvwtDyFCxVeDAODenXHtn5vzrKjo= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 h1:F7Jx+6hwnZ41NSFTO5q4LYDtJRXBf2PD0rNBkeB/lus= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0/go.mod h1:UHB22Z8QsdRDrnAtX4PntOl36ajSxcdUMt1sF7Y6E7Q= +go.opentelemetry.io/otel v1.40.0 h1:oA5YeOcpRTXq6NN7frwmwFR0Cn3RhTVZvXsP4duvCms= +go.opentelemetry.io/otel v1.40.0/go.mod h1:IMb+uXZUKkMXdPddhwAHm6UfOwJyh4ct1ybIlV14J0g= +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.40.0 h1:rcZe317KPftE2rstWIBitCdVp89A2HqjkxR3c11+p9g= +go.opentelemetry.io/otel/metric v1.40.0/go.mod h1:ib/crwQH7N3r5kfiBZQbwrTge743UDc7DTFVZrrXnqc= +go.opentelemetry.io/otel/sdk v1.40.0 h1:KHW/jUzgo6wsPh9At46+h4upjtccTmuZCFAc9OJ71f8= +go.opentelemetry.io/otel/sdk v1.40.0/go.mod h1:Ph7EFdYvxq72Y8Li9q8KebuYUr2KoeyHx0DRMKrYBUE= +go.opentelemetry.io/otel/sdk/metric v1.40.0 h1:mtmdVqgQkeRxHgRv4qhyJduP3fYJRMX4AtAlbuWdCYw= +go.opentelemetry.io/otel/sdk/metric v1.40.0/go.mod h1:4Z2bGMf0KSK3uRjlczMOeMhKU2rhUqdWNoKcYrtcBPg= +go.opentelemetry.io/otel/trace v1.40.0 h1:WA4etStDttCSYuhwvEa8OP8I5EWu24lkOzp+ZYblVjw= +go.opentelemetry.io/otel/trace v1.40.0/go.mod h1:zeAhriXecNGP/s2SEG3+Y8X9ujcJOTqQ5RgdEJcawiA= +go.opentelemetry.io/proto/otlp v1.7.0 h1:jX1VolD6nHuFzOYso2E73H85i92Mv8JQYk0K9vz09os= +go.opentelemetry.io/proto/otlp v1.7.0/go.mod h1:fSKjH6YJ7HDlwzltzyMj036AJ3ejJLCgCSHGj4efDDo= 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.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0= +go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8= +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.47.0 h1:V6e3FRj+n4dbpw86FJ8Fv7XVOql7TEwpHapKoMJ/GO8= +golang.org/x/crypto v0.47.0/go.mod h1:ff3Y9VzzKbwSSEzWqJsJVBnWmRwRSHt/6Op5n9bQc4A= +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.31.0 h1:HaW9xtz0+kOcWKwli0ZXy79Ix+UW/vOfmWI5QVd2tgI= +golang.org/x/mod v0.31.0/go.mod h1:43JraMp9cGx1Rx3AqioxrbrhNsLl2l/iNAvuBkrezpg= 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.49.0 h1:eeHFmOGUTtaaPSGNmjBKpbng9MulQsJURQUAfUwY++o= +golang.org/x/net v0.49.0/go.mod h1:/ysNB2EvaqvesRkuLAyjI1ycPZlQHM3q01F02UY/MV8= +golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw= +golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= 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.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= +golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= 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.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ= +golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/term v0.39.0 h1:RclSuaJf32jOqZz74CkPA9qFuVTX7vhLlpfj/IGWlqY= +golang.org/x/term v0.39.0/go.mod h1:yxzUCTP/U+FzoxfdKmLaA0RV1WgE0VY7hXBwKtY/4ww= 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.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE= +golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8= +golang.org/x/time v0.14.0 h1:MRx4UaLrDotUKUdCIqzPC48t1Y9hANFKIRpNx+Te8PI= +golang.org/x/time v0.14.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4= 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.40.0 h1:yLkxfA+Qnul4cs9QA3KnlFu0lVmd8JJfoq+E41uSutA= +golang.org/x/tools v0.40.0/go.mod h1:Ik/tzLRlbscWpqqMRjyWYDisX8bG13FrdXp3o4Sr9lc= +golang.org/x/tools/go/expect v0.1.1-deprecated h1:jpBZDwmgPhXsKZC6WhL20P4b/wmnpsEAGHaNy0n/rJM= +golang.org/x/tools/go/expect v0.1.1-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY= +golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated h1:1h2MnaIAIXISqTFKdENegdpAgUXz6NrPEsbIeWaBRvM= +golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated/go.mod h1:RVAQXBGNv1ib0J382/DPCRS/BPnsGebyM1Gj5VSDpG8= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 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= +gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= +gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= +google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 h1:fCvbg86sFXwdrl5LgVcTEvNC+2txB5mgROGmRL5mrls= +google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:+rXWjjaukWZun3mLfjmVnQi18E1AsFbDN9QdJ5YXLto= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260122232226-8e98ce8d340d h1:xXzuihhT3gL/ntduUZwHECzAn57E8dA6l8SOtYWdD8Q= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260122232226-8e98ce8d340d/go.mod h1:j9x/tPzZkyxcgEFkiKEEGxfvyumM01BEtsW8xzOahRQ= +google.golang.org/grpc v1.78.0 h1:K1XZG/yGDJnzMdd/uZHAkVqJE+xIDOcmdSFZkBUicNc= +google.golang.org/grpc v1.78.0/go.mod h1:I47qjTo4OKbMkjA/aOOwxDIiPSBofUtQUI5EfpWvW7U= +google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= +google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= 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= -gopkg.in/evanphx/json-patch.v4 v4.12.0 h1:n6jtcsulIzXPJaxegRbvFNNrZDjbij7ny3gmSPG+6V4= -gopkg.in/evanphx/json-patch.v4 v4.12.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M= +gopkg.in/evanphx/json-patch.v4 v4.13.0 h1:czT3CmqEaQ1aanPc5SdlgQrrEIb8w/wwCvWWnfEbYzo= +gopkg.in/evanphx/json-patch.v4 v4.13.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc= 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.35.0 h1:iBAU5LTyBI9vw3L5glmat1njFK34srdLmktWwLTprlY= +k8s.io/api v0.35.0/go.mod h1:AQ0SNTzm4ZAczM03QH42c7l3bih1TbAXYo0DkF8ktnA= +k8s.io/apiextensions-apiserver v0.35.0 h1:3xHk2rTOdWXXJM+RDQZJvdx0yEOgC0FgQ1PlJatA5T4= +k8s.io/apiextensions-apiserver v0.35.0/go.mod h1:E1Ahk9SADaLQ4qtzYFkwUqusXTcaV2uw3l14aqpL2LU= +k8s.io/apimachinery v0.35.0 h1:Z2L3IHvPVv/MJ7xRxHEtk6GoJElaAqDCCU0S6ncYok8= +k8s.io/apimachinery v0.35.0/go.mod h1:jQCgFZFR1F4Ik7hvr2g84RTJSZegBc8yHgFWKn//hns= +k8s.io/apiserver v0.35.0 h1:CUGo5o+7hW9GcAEF3x3usT3fX4f9r8xmgQeCBDaOgX4= +k8s.io/apiserver v0.35.0/go.mod h1:QUy1U4+PrzbJaM3XGu2tQ7U9A4udRRo5cyxkFX0GEds= +k8s.io/client-go v0.35.0 h1:IAW0ifFbfQQwQmga0UdoH0yvdqrbwMdq9vIFEhRpxBE= +k8s.io/client-go v0.35.0/go.mod h1:q2E5AAyqcbeLGPdoRB+Nxe3KYTfPce1Dnu1myQdqz9o= +k8s.io/component-base v0.35.0 h1:+yBrOhzri2S1BVqyVSvcM3PtPyx5GUxCK2tinZz1G94= +k8s.io/component-base v0.35.0/go.mod h1:85SCX4UCa6SCFt6p3IKAPej7jSnF3L8EbfSyMZayJR0= 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-20260127142750-a19766b6e2d4 h1:HhDfevmPS+OalTjQRKbTHppRIz01AWi8s45TMXStgYY= +k8s.io/kube-openapi v0.0.0-20260127142750-a19766b6e2d4/go.mod h1:kdmbQkyfwUagLfXIad1y2TdrjPFWp2Q89B3qkRwf/pQ= +k8s.io/metrics v0.35.0 h1:xVFoqtAGm2dMNJAcB5TFZJPCen0uEqqNt52wW7ABbX8= +k8s.io/metrics v0.35.0/go.mod h1:g2Up4dcBygZi2kQSEQVDByFs+VUwepJMzzQLJJLpq4M= +k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 h1:SjGebBtkBqHFOli+05xYbK8YF1Dzkbzn+gDM4X9T4Ck= +k8s.io/utils v0.0.0-20251002143259-bc988d571ff4/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.22.4 h1:GEjV7KV3TY8e+tJ2LCTxUTanW4z/FmNB7l327UfMq9A= +sigs.k8s.io/controller-runtime v0.22.4/go.mod h1:+QX1XUpTXN4mLoblf4tqr5CQcyHPAki2HLXqQMY6vh8= +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-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg= +sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730/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/audit/doc.go b/pkg/apis/audit/doc.go index a26d6f98..5b853127 100644 --- a/pkg/apis/audit/doc.go +++ b/pkg/apis/audit/doc.go @@ -1,3 +1,4 @@ // +k8s:openapi-gen=true +// +k8s:openapi-model-package=com.github.loft-sh.api.v4.pkg.apis.audit // +groupName=audit.loft.sh package audit diff --git a/pkg/apis/audit/v1/doc.go b/pkg/apis/audit/v1/doc.go index cbfea42d..24368743 100644 --- a/pkg/apis/audit/v1/doc.go +++ b/pkg/apis/audit/v1/doc.go @@ -3,6 +3,7 @@ // of the same resource // +k8s:openapi-gen=true +// +k8s:openapi-model-package=com.github.loft-sh.api.v4.pkg.apis.audit.v1 // +k8s:deepcopy-gen=package // +k8s:defaulter-gen=TypeMeta // +groupName=audit.loft.sh diff --git a/pkg/apis/audit/v1/zz_generated.model_name.go b/pkg/apis/audit/v1/zz_generated.model_name.go new file mode 100644 index 00000000..dabf687c --- /dev/null +++ b/pkg/apis/audit/v1/zz_generated.model_name.go @@ -0,0 +1,21 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// Code generated by openapi-gen. DO NOT EDIT. + +package v1 + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Event) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.audit.v1.Event" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in EventList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.audit.v1.EventList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ObjectReference) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.audit.v1.ObjectReference" +} diff --git a/pkg/apis/management/install/install.go b/pkg/apis/management/install/install.go index 1afbb0d7..c5100092 100644 --- a/pkg/apis/management/install/install.go +++ b/pkg/apis/management/install/install.go @@ -27,11 +27,7 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &management.UserSpacesOptions{}, &management.UserVirtualClustersOptions{}, &management.UserQuotasOptions{}, - &management.DevPodUpOptions{}, - &management.DevPodDeleteOptions{}, - &management.DevPodStopOptions{}, - &management.DevPodStatusOptions{}, - &management.DevPodSshOptions{}, + &management.PodExecOptions{}, ) 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..79d1f751 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,12 +64,21 @@ 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.OSImage{}, + &management.OSImageList{}, &management.OwnedAccessKey{}, &management.OwnedAccessKeyList{}, &management.Project{}, @@ -92,7 +90,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 +100,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.RegisterVirtualClusterList{}, &management.ResetAccessKey{}, &management.ResetAccessKeyList{}, - &management.Runner{}, - &management.RunnerList{}, - &management.RunnerAccessKey{}, - &management.RunnerConfig{}, + &management.SSHKey{}, + &management.SSHKeyList{}, &management.Self{}, &management.SelfList{}, &management.SelfSubjectAccessReview{}, @@ -125,19 +121,34 @@ 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.VirtualClusterInstanceDebugShell{}, + &management.VirtualClusterInstanceDebugShellPods{}, + &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/types.go b/pkg/apis/management/types.go index 463d3bc9..841d4726 100644 --- a/pkg/apis/management/types.go +++ b/pkg/apis/management/types.go @@ -128,3 +128,36 @@ type UserQuotasOptions struct { // +optional Cluster []string `json:"cluster,omitempty"` } + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type PodExecOptions struct { + metav1.TypeMeta `json:",inline"` + + // Redirect the standard input stream of the pod for this call. + // Defaults to false. + // +optional + Stdin bool `json:"stdin,omitempty" protobuf:"varint,1,opt,name=stdin"` + + // Redirect the standard output stream of the pod for this call. + // +optional + Stdout bool `json:"stdout,omitempty" protobuf:"varint,2,opt,name=stdout"` + + // Redirect the standard error stream of the pod for this call. + // +optional + Stderr bool `json:"stderr,omitempty" protobuf:"varint,3,opt,name=stderr"` + + // TTY if true indicates that a tty will be allocated for the exec call. + // Defaults to false. + // +optional + TTY bool `json:"tty,omitempty" protobuf:"varint,4,opt,name=tty"` + + // Container in which to execute the command. + // Defaults to only container if there is only one container in the pod. + // +optional + Container string `json:"container,omitempty" protobuf:"bytes,5,opt,name=container"` + + // Command is the remote command to execute. argv array. Not executed within a shell. + // +listType=atomic + Command []string `json:"command" protobuf:"bytes,6,rep,name=command"` +} 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..45cb0da1 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,25 @@ 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"` + + // Database represents the database connection settings when deploying the platform with an embedded Kubernetes backed by kine + Database *DatabaseKine `json:"database,omitempty"` } // Audit holds the audit configuration options for loft. Changing any options will require a loft restart @@ -658,6 +679,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 +716,138 @@ 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"` +} + +type DatabaseKine struct { + // Enabled defines if the database should be used. + Enabled bool `json:"enabled,omitempty"` + + // DataSource is the kine dataSource to use for the database. This depends on the database format. + // This is optional for the external database. Examples: + // * mysql: mysql://username:password@tcp(hostname:3306)/k3s + // * postgres: postgres://username:password@hostname:5432/k3s + DataSource string `json:"dataSource,omitempty"` + + // IdentityProvider is the kine identity provider to use when generating temporary authentication tokens for enhanced security. + // This is optional for the external database. Examples: + // * aws: RDS IAM Authentication + IdentityProvider string `json:"identityProvider,omitempty"` + + // KeyFile is the key file to use for the database. This is optional. + KeyFile string `json:"keyFile,omitempty"` + + // CertFile is the cert file to use for the database. This is optional. + CertFile string `json:"certFile,omitempty"` + + // CaFile is the ca file to use for the database. This is optional. + CaFile string `json:"caFile,omitempty"` + + // ExtraArgs are additional arguments to pass to Kine. + ExtraArgs []string `json:"extraArgs,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/doc.go b/pkg/apis/management/v1/doc.go index 5bd20b99..7c655000 100644 --- a/pkg/apis/management/v1/doc.go +++ b/pkg/apis/management/v1/doc.go @@ -3,6 +3,7 @@ // of the same resource // +k8s:openapi-gen=true +// +k8s:openapi-model-package=com.github.loft-sh.api.v4.pkg.apis.management.v1 // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=github.com/loft-sh/api/v4/pkg/apis/management // +k8s:defaulter-gen=TypeMeta 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..617d437a --- /dev/null +++ b/pkg/apis/management/v1/nodeclaim_types.go @@ -0,0 +1,58 @@ +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 +// +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"` +} + +func (a *NodeClaim) GetOwner() *storagev1.UserOrTeam { + return a.Spec.Owner +} + +func (a *NodeClaim) SetOwner(userOrTeam *storagev1.UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *NodeClaim) GetAccess() []storagev1.Access { + return a.Spec.Access +} + +func (a *NodeClaim) SetAccess(access []storagev1.Access) { + a.Spec.Access = access +} + +func (a *NodeClaim) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *NodeClaim) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} diff --git a/pkg/apis/management/v1/nodeenvironment_types.go b/pkg/apis/management/v1/nodeenvironment_types.go new file mode 100644 index 00000000..f0c1c859 --- /dev/null +++ b/pkg/apis/management/v1/nodeenvironment_types.go @@ -0,0 +1,58 @@ +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 +// +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"` +} + +func (a *NodeEnvironment) GetOwner() *storagev1.UserOrTeam { + return a.Spec.Owner +} + +func (a *NodeEnvironment) SetOwner(userOrTeam *storagev1.UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *NodeEnvironment) GetAccess() []storagev1.Access { + return a.Spec.Access +} + +func (a *NodeEnvironment) SetAccess(access []storagev1.Access) { + a.Spec.Access = access +} + +func (a *NodeEnvironment) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *NodeEnvironment) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} 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..16d6aeac --- /dev/null +++ b/pkg/apis/management/v1/nodeprovider_exec_types.go @@ -0,0 +1,123 @@ +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"` + + // Outputs of the node environment. + Outputs []byte `json:"outputs,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..9d6bc6eb 100644 --- a/pkg/apis/management/v1/options.go +++ b/pkg/apis/management/v1/options.go @@ -140,80 +140,42 @@ type UserQuotasOptions struct { // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +subresource-request -type DevPodUpOptions struct { +type BackupApplyOptions struct { metav1.TypeMeta `json:",inline"` - - // WebMode executes the up command directly. - // +optional - WebMode bool `json:"webMode,omitempty"` - - // CLIMode executes the up command directly. - // +optional - CLIMode bool `json:"cliMode,omitempty"` - - // Debug includes debug logs. - // +optional - Debug bool `json:"debug,omitempty"` - - // Options are the options to pass. - // +optional - Options string `json:"options,omitempty"` } // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +subresource-request -type DevPodDeleteOptions struct { +type PodExecOptions struct { metav1.TypeMeta `json:",inline"` - // Options are the options to pass. + // Redirect the standard input stream of the pod for this call. + // Defaults to false. // +optional - Options string `json:"options,omitempty"` -} - -// +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + Stdin bool `json:"stdin,omitempty" protobuf:"varint,1,opt,name=stdin"` -// +subresource-request -type DevPodStopOptions struct { - metav1.TypeMeta `json:",inline"` - - // Options are the options to pass. + // Redirect the standard output stream of the pod for this call. // +optional - Options string `json:"options,omitempty"` -} + Stdout bool `json:"stdout,omitempty" protobuf:"varint,2,opt,name=stdout"` -// +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. + // Redirect the standard error stream of the pod for this call. // +optional - Options string `json:"options,omitempty"` -} - -// +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + Stderr bool `json:"stderr,omitempty" protobuf:"varint,3,opt,name=stderr"` -// +subresource-request -type DevPodSshOptions struct { - metav1.TypeMeta `json:",inline"` - - // Options are the options to pass. + // TTY if true indicates that a tty will be allocated for the exec call. + // Defaults to false. // +optional - Options string `json:"options,omitempty"` -} + TTY bool `json:"tty,omitempty" protobuf:"varint,4,opt,name=tty"` -// +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + // Container in which to execute the command. + // Defaults to only container if there is only one container in the pod. + // +optional + Container string `json:"container,omitempty" protobuf:"bytes,5,opt,name=container"` -type BackupApplyOptions struct { - metav1.TypeMeta `json:",inline"` + // Command is the remote command to execute. argv array. Not executed within a shell. + // +listType=atomic + Command []string `json:"command" protobuf:"bytes,6,rep,name=command"` } func InstallOptions(scheme *runtime.Scheme) error { @@ -229,12 +191,8 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &UserSpacesOptions{}, &UserVirtualClustersOptions{}, &UserQuotasOptions{}, - &DevPodUpOptions{}, - &DevPodDeleteOptions{}, - &DevPodStopOptions{}, - &DevPodStatusOptions{}, - &DevPodSshOptions{}, &BackupApplyOptions{}, + &PodExecOptions{}, ) return nil } diff --git a/pkg/apis/management/v1/osimage_types.go b/pkg/apis/management/v1/osimage_types.go new file mode 100644 index 00000000..496dfb57 --- /dev/null +++ b/pkg/apis/management/v1/osimage_types.go @@ -0,0 +1,46 @@ +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:subresource:status + +// OSImage holds the OS image. +// +k8s:openapi-gen=true +// +resource:path=osimages,rest=OSImageREST +type OSImage struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec OSImageSpec `json:"spec,omitempty"` + Status OSImageStatus `json:"status,omitempty"` +} + +type OSImageSpec struct { + storagev1.OSImageSpec `json:",inline"` +} + +type OSImageStatus struct { + storagev1.OSImageStatus `json:",inline"` +} + +func (a *OSImage) GetOwner() *storagev1.UserOrTeam { + return a.Spec.Owner +} + +func (a *OSImage) SetOwner(userOrTeam *storagev1.UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *OSImage) GetAccess() []storagev1.Access { + return a.Spec.Access +} + +func (a *OSImage) SetAccess(access []storagev1.Access) { + a.Spec.Access = access +} 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..4f9cb150 --- /dev/null +++ b/pkg/apis/management/v1/project_nodetypes_types.go @@ -0,0 +1,23 @@ +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"` + + // OSImages holds all the allowed OS images for the project + OSImages []storagev1.OSImage `json:"osImages,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/sshkey_types.go b/pkg/apis/management/v1/sshkey_types.go new file mode 100644 index 00000000..eb22efd3 --- /dev/null +++ b/pkg/apis/management/v1/sshkey_types.go @@ -0,0 +1,46 @@ +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:subresource:status + +// SSHKey holds the OS image. +// +k8s:openapi-gen=true +// +resource:path=sshkeys,rest=SSHKeyREST +type SSHKey struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec SSHKeySpec `json:"spec,omitempty"` + Status SSHKeyStatus `json:"status,omitempty"` +} + +type SSHKeySpec struct { + storagev1.SSHKeySpec `json:",inline"` +} + +type SSHKeyStatus struct { + storagev1.SSHKeyStatus `json:",inline"` +} + +func (a *SSHKey) GetOwner() *storagev1.UserOrTeam { + return a.Spec.Owner +} + +func (a *SSHKey) SetOwner(userOrTeam *storagev1.UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *SSHKey) GetAccess() []storagev1.Access { + return a.Spec.Access +} + +func (a *SSHKey) SetAccess(access []storagev1.Access) { + a.Spec.Access = access +} diff --git a/pkg/apis/management/v1/project_runners_types.go b/pkg/apis/management/v1/team_object_permissions_types.go similarity index 68% rename from pkg/apis/management/v1/project_runners_types.go rename to pkg/apis/management/v1/team_object_permissions_types.go index 5e08ca00..65807d46 100644 --- a/pkg/apis/management/v1/project_runners_types.go +++ b/pkg/apis/management/v1/team_object_permissions_types.go @@ -7,10 +7,9 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +subresource-request -type ProjectRunners struct { +type TeamObjectPermissions struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - // Runners holds all the allowed runners - Runners []Runner `json:"runners,omitempty"` + ObjectPermissions []ObjectPermission `json:"objectPermissions,omitempty"` } diff --git a/pkg/apis/management/v1/team_permissions_types.go b/pkg/apis/management/v1/team_permissions_types.go new file mode 100644 index 00000000..9e74482e --- /dev/null +++ b/pkg/apis/management/v1/team_permissions_types.go @@ -0,0 +1,27 @@ +package v1 + +import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type TeamPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + // Members gives users that are team members + // +optional + Members []ObjectName `json:"members,omitempty"` + + // ProjectMemberships gives information about the team's project membership + ProjectMemberships []ProjectMembership `json:"projectMemberships,omitempty"` + + // ManagementRoles gives information about the team's assigned management roles + ManagementRoles []ManagementRole `json:"managementRoles,omitempty"` + + // ClustersAccessRoles gives information about the team's assigned cluster roles and the clusters they apply to + ClusterAccessRoles []ClusterAccessRole `json:"clusterAccessRoles,omitempty"` + + // VirtualClusterRoles give information about the team's cluster role within the virtual cluster + VirtualClusterRoles []VirtualClusterRole `json:"virtualClusterRoles,omitempty"` +} diff --git a/pkg/apis/management/v1/team_types.go b/pkg/apis/management/v1/team_types.go index 131a1400..44a0fa61 100644 --- a/pkg/apis/management/v1/team_types.go +++ b/pkg/apis/management/v1/team_types.go @@ -16,6 +16,8 @@ import ( // +resource:path=teams,rest=TeamREST // +subresource:request=TeamClusters,path=clusters,kind=TeamClusters,rest=TeamClustersREST // +subresource:request=TeamAccessKeys,path=accesskeys,kind=TeamAccessKeys,rest=TeamAccessKeysREST +// +subresource:request=TeamPermissions,path=permissions,kind=TeamPermissions,rest=TeamPermissionsREST +// +subresource:request=TeamObjectPermissions,path=object-permissions,kind=TeamObjectPermissions,rest=TeamObjectPermissionsREST type Team struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/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..8695023f 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"` @@ -49,6 +53,10 @@ type RegisterVirtualClusterSpec struct { // Values specifies the vCluster config. // +optional Values string `json:"values,omitempty"` + + // Standalone specifies if the vCluster is standalone + // +optional + Standalone *bool `json:"standalone,omitempty"` } // RegisterVirtualClusterStatus holds the status @@ -56,4 +64,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_debugshell_types.go b/pkg/apis/management/v1/virtualclusterinstance_debugshell_types.go new file mode 100644 index 00000000..ed49cfaa --- /dev/null +++ b/pkg/apis/management/v1/virtualclusterinstance_debugshell_types.go @@ -0,0 +1,62 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VirtualClusterDebugShell creates (or returns) an ephemeral debug-shell container +// in a virtual cluster pod for the requesting user. +// +subresource-request +type VirtualClusterInstanceDebugShell struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec VirtualClusterDebugShellSpec `json:"spec,omitempty"` + Status VirtualClusterDebugShellStatus `json:"status,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +subresource-request +type VirtualClusterInstanceDebugShellPods struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Status VirtualClusterDebugShellPodsStatus `json:"status,omitempty"` +} + +// VirtualClusterDebugShellSpec defines the target pod for the debug shell. +type VirtualClusterDebugShellSpec struct { + // PodName specifies which virtual cluster replica should get ephemeral container. + // This is needed to virtual cluster deployed with HA (3+ replicas) + PodName string `json:"podName,omitempty"` +} + +// VirtualClusterDebugShellStatus returns the resolved pod/container for the shell. +type VirtualClusterDebugShellStatus struct { + // ContainerName is the name of ephemeral container that was created + ContainerName string `json:"containerName,omitempty"` + + // TargetName is the target name of ephemeral container + TargetName string `json:"target,omitempty"` + + // PodName is the name of the virtual cluster pod + PodName string `json:"podName,omitempty"` + + // PodNamespace is the namespace of the virtual cluster pod + PodNamespace string `json:"podNamespace,omitempty"` +} + +// VirtualClusterDebugShellPodStatus contains selectable vcluster pod metadata. +type VirtualClusterDebugShellPodStatus struct { + Name string `json:"name,omitempty"` + Namespace string `json:"namespace,omitempty"` + Phase string `json:"phase,omitempty"` + Ready bool `json:"ready,omitempty"` +} + +type VirtualClusterDebugShellPodsStatus struct { + // Pods are available virtual cluster pods that can be selected for debug shell. + Pods []VirtualClusterDebugShellPodStatus `json:"pods,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..a973da3e 100644 --- a/pkg/apis/management/v1/virtualclusterinstance_types.go +++ b/pkg/apis/management/v1/virtualclusterinstance_types.go @@ -11,6 +11,11 @@ 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 +// +genclient:method=GetDebugShell,verb=create,subresource=debug-shell,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceDebugShell,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceDebugShell // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // VirtualClusterInstance holds the VirtualClusterInstance information @@ -19,6 +24,14 @@ 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=VirtualClusterInstanceDebugShell,path=debug-shell,kind=VirtualClusterInstanceDebugShell,rest=VirtualClusterInstanceDebugShellREST +// +subresource:request=VirtualClusterInstanceDebugShellPods,path=debug-shell-pods,kind=VirtualClusterInstanceDebugShellPods,rest=VirtualClusterInstanceDebugShellPodsREST +// +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..b53198ec 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,12 +55,21 @@ func addKnownTypes(scheme *runtime.Scheme) error { &License{}, &LicenseList{}, &LicenseRequest{}, - &LicenseToken{}, - &LicenseTokenList{}, &LoftUpgrade{}, &LoftUpgradeList{}, + &NodeClaim{}, + &NodeClaimList{}, + &NodeEnvironment{}, + &NodeEnvironmentList{}, + &NodeProvider{}, + &NodeProviderList{}, + &NodeProviderExec{}, + &NodeType{}, + &NodeTypeList{}, &OIDCClient{}, &OIDCClientList{}, + &OSImage{}, + &OSImageList{}, &OwnedAccessKey{}, &OwnedAccessKeyList{}, &Project{}, @@ -83,7 +81,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ProjectMembers{}, &ProjectMigrateSpaceInstance{}, &ProjectMigrateVirtualClusterInstance{}, - &ProjectRunners{}, + &ProjectNodeTypes{}, &ProjectTemplates{}, &ProjectSecret{}, &ProjectSecretList{}, @@ -93,10 +91,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &RegisterVirtualClusterList{}, &ResetAccessKey{}, &ResetAccessKeyList{}, - &Runner{}, - &RunnerList{}, - &RunnerAccessKey{}, - &RunnerConfig{}, + &SSHKey{}, + &SSHKeyList{}, &Self{}, &SelfList{}, &SelfSubjectAccessReview{}, @@ -116,19 +112,34 @@ 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{}, + &VirtualClusterInstanceDebugShell{}, + &VirtualClusterInstanceDebugShellPods{}, + &VirtualClusterExternalDatabase{}, &VirtualClusterInstanceKubeConfig{}, &VirtualClusterInstanceLog{}, + &VirtualClusterNodeAccessKey{}, + &VirtualClusterResourceUsage{}, + &VirtualClusterInstanceShell{}, + &VirtualClusterInstanceSnapshot{}, + &VirtualClusterStandalone{}, + &VirtualClusterSchema{}, + &VirtualClusterSchemaList{}, &VirtualClusterTemplate{}, &VirtualClusterTemplateList{}, ) @@ -144,91 +155,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,10 +232,41 @@ 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.ManagementOSImageStorage, management.ManagementOwnedAccessKeyStorage, management.ManagementProjectStorage, builders.NewApiResourceWithStorage( @@ -259,67 +278,61 @@ 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.ManagementSSHKeyStorage, management.ManagementSelfStorage, management.ManagementSelfSubjectAccessReviewStorage, management.ManagementSharedSecretStorage, @@ -331,56 +344,134 @@ 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.InternalVirtualClusterInstanceDebugShellREST, + func() runtime.Object { return &VirtualClusterInstanceDebugShell{} }, // Register versioned resource + nil, + management.NewVirtualClusterInstanceDebugShellREST, + ), + builders.NewApiResourceWithStorage( + management.InternalVirtualClusterInstanceDebugShellPodsREST, + func() runtime.Object { return &VirtualClusterInstanceDebugShellPods{} }, // Register versioned resource + nil, + management.NewVirtualClusterInstanceDebugShellPodsREST, + ), + 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 +618,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,154 +650,130 @@ type ConvertVirtualClusterConfigList struct { // +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"` } // +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 { +type DirectClusterEndpointTokenList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodSshOptions `json:"items"` + Items []DirectClusterEndpointToken `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceStateList struct { +type EventList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceState `json:"items"` + Items []Event `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodStopOptionsList struct { +type FeatureList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodStopOptions `json:"items"` + Items []Feature `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodUpOptionsList struct { +type IngressAuthTokenList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodUpOptions `json:"items"` + Items []IngressAuthToken `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceTemplateList struct { +type KioskList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceTemplate `json:"items"` + Items []Kiosk `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DirectClusterEndpointTokenList struct { +type LicenseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DirectClusterEndpointToken `json:"items"` + Items []License `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type EventList struct { +type LicenseRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Event `json:"items"` + Items []LicenseRequest `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type FeatureList struct { +type LoftUpgradeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Feature `json:"items"` + Items []LoftUpgrade `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type IngressAuthTokenList struct { +type NodeClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []IngressAuthToken `json:"items"` + Items []NodeClaim `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type KioskList struct { +type NodeEnvironmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Kiosk `json:"items"` + Items []NodeEnvironment `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseList struct { +type NodeProviderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []License `json:"items"` + Items []NodeProvider `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseRequestList struct { +type NodeProviderExecList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LicenseRequest `json:"items"` + Items []NodeProviderExec `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseTokenList struct { +type NodeTypeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LicenseToken `json:"items"` + Items []NodeType `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LoftUpgradeList struct { +type OIDCClientList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LoftUpgrade `json:"items"` + Items []OIDCClient `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type OIDCClientList struct { +type OSImageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []OIDCClient `json:"items"` + Items []OSImage `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -791,10 +850,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,26 +898,10 @@ type ResetAccessKeyList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type RunnerList struct { +type SSHKeyList 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"` + Items []SSHKey `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -951,6 +994,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 +1018,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 +1050,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 +1090,30 @@ type VirtualClusterAccessKeyList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type VirtualClusterInstanceDebugShellList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterInstanceDebugShell `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterInstanceDebugShellPodsList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterInstanceDebugShellPods `json:"items"` +} + +// +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 +1130,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..7f387e35 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,113 @@ 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) + 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 } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplate)(nil), (*management.DevPodWorkspaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(a.(*DevPodWorkspaceTemplate), b.(*management.DevPodWorkspaceTemplate), scope) + if err := s.AddGeneratedConversionFunc((*DatabaseKine)(nil), (*management.DatabaseKine)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DatabaseKine_To_management_DatabaseKine(a.(*DatabaseKine), b.(*management.DatabaseKine), 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.DatabaseKine)(nil), (*DatabaseKine)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DatabaseKine_To_v1_DatabaseKine(a.(*management.DatabaseKine), b.(*DatabaseKine), scope) }); err != nil { return err } @@ -1179,6 +1070,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 +1240,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 +1280,11405 @@ 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((*OSImage)(nil), (*management.OSImage)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OSImage_To_management_OSImage(a.(*OSImage), b.(*management.OSImage), 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.OSImage)(nil), (*OSImage)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OSImage_To_v1_OSImage(a.(*management.OSImage), b.(*OSImage), 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((*OSImageList)(nil), (*management.OSImageList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OSImageList_To_management_OSImageList(a.(*OSImageList), b.(*management.OSImageList), 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.OSImageList)(nil), (*OSImageList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OSImageList_To_v1_OSImageList(a.(*management.OSImageList), b.(*OSImageList), 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((*OSImageSpec)(nil), (*management.OSImageSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OSImageSpec_To_management_OSImageSpec(a.(*OSImageSpec), b.(*management.OSImageSpec), 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.OSImageSpec)(nil), (*OSImageSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OSImageSpec_To_v1_OSImageSpec(a.(*management.OSImageSpec), b.(*OSImageSpec), 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((*OSImageStatus)(nil), (*management.OSImageStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_OSImageStatus_To_management_OSImageStatus(a.(*OSImageStatus), b.(*management.OSImageStatus), 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.OSImageStatus)(nil), (*OSImageStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_OSImageStatus_To_v1_OSImageStatus(a.(*management.OSImageStatus), b.(*OSImageStatus), 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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*PodExecOptions)(nil), (*management.PodExecOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_PodExecOptions_To_management_PodExecOptions(a.(*PodExecOptions), b.(*management.PodExecOptions), 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.PodExecOptions)(nil), (*PodExecOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_PodExecOptions_To_v1_PodExecOptions(a.(*management.PodExecOptions), b.(*PodExecOptions), 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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*SSHKey)(nil), (*management.SSHKey)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SSHKey_To_management_SSHKey(a.(*SSHKey), b.(*management.SSHKey), 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.SSHKey)(nil), (*SSHKey)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SSHKey_To_v1_SSHKey(a.(*management.SSHKey), b.(*SSHKey), 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((*SSHKeyList)(nil), (*management.SSHKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SSHKeyList_To_management_SSHKeyList(a.(*SSHKeyList), b.(*management.SSHKeyList), 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.SSHKeyList)(nil), (*SSHKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SSHKeyList_To_v1_SSHKeyList(a.(*management.SSHKeyList), b.(*SSHKeyList), 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((*SSHKeySpec)(nil), (*management.SSHKeySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SSHKeySpec_To_management_SSHKeySpec(a.(*SSHKeySpec), b.(*management.SSHKeySpec), 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.SSHKeySpec)(nil), (*SSHKeySpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SSHKeySpec_To_v1_SSHKeySpec(a.(*management.SSHKeySpec), b.(*SSHKeySpec), 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((*SSHKeyStatus)(nil), (*management.SSHKeyStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_SSHKeyStatus_To_management_SSHKeyStatus(a.(*SSHKeyStatus), b.(*management.SSHKeyStatus), 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.SSHKeyStatus)(nil), (*SSHKeyStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_SSHKeyStatus_To_v1_SSHKeyStatus(a.(*management.SSHKeyStatus), b.(*SSHKeyStatus), 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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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.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.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((*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((*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((*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.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((*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((*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((*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.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((*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((*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((*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.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((*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((*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((*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.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((*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((*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((*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.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((*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((*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.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((*TeamObjectPermissions)(nil), (*management.TeamObjectPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamObjectPermissions_To_management_TeamObjectPermissions(a.(*TeamObjectPermissions), b.(*management.TeamObjectPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TeamObjectPermissions)(nil), (*TeamObjectPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamObjectPermissions_To_v1_TeamObjectPermissions(a.(*management.TeamObjectPermissions), b.(*TeamObjectPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*TeamObjectPermissionsList)(nil), (*management.TeamObjectPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamObjectPermissionsList_To_management_TeamObjectPermissionsList(a.(*TeamObjectPermissionsList), b.(*management.TeamObjectPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TeamObjectPermissionsList)(nil), (*TeamObjectPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamObjectPermissionsList_To_v1_TeamObjectPermissionsList(a.(*management.TeamObjectPermissionsList), b.(*TeamObjectPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*TeamPermissions)(nil), (*management.TeamPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamPermissions_To_management_TeamPermissions(a.(*TeamPermissions), b.(*management.TeamPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TeamPermissions)(nil), (*TeamPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamPermissions_To_v1_TeamPermissions(a.(*management.TeamPermissions), b.(*TeamPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*TeamPermissionsList)(nil), (*management.TeamPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamPermissionsList_To_management_TeamPermissionsList(a.(*TeamPermissionsList), b.(*management.TeamPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TeamPermissionsList)(nil), (*TeamPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamPermissionsList_To_v1_TeamPermissionsList(a.(*management.TeamPermissionsList), b.(*TeamPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*TeamSpec)(nil), (*management.TeamSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamSpec_To_management_TeamSpec(a.(*TeamSpec), b.(*management.TeamSpec), scope) + }); err != nil { + 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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) + }); 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((*VirtualClusterDebugShellPodStatus)(nil), (*management.VirtualClusterDebugShellPodStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterDebugShellPodStatus_To_management_VirtualClusterDebugShellPodStatus(a.(*VirtualClusterDebugShellPodStatus), b.(*management.VirtualClusterDebugShellPodStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterDebugShellPodStatus)(nil), (*VirtualClusterDebugShellPodStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterDebugShellPodStatus_To_v1_VirtualClusterDebugShellPodStatus(a.(*management.VirtualClusterDebugShellPodStatus), b.(*VirtualClusterDebugShellPodStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterDebugShellPodsStatus)(nil), (*management.VirtualClusterDebugShellPodsStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterDebugShellPodsStatus_To_management_VirtualClusterDebugShellPodsStatus(a.(*VirtualClusterDebugShellPodsStatus), b.(*management.VirtualClusterDebugShellPodsStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterDebugShellPodsStatus)(nil), (*VirtualClusterDebugShellPodsStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterDebugShellPodsStatus_To_v1_VirtualClusterDebugShellPodsStatus(a.(*management.VirtualClusterDebugShellPodsStatus), b.(*VirtualClusterDebugShellPodsStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterDebugShellSpec)(nil), (*management.VirtualClusterDebugShellSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterDebugShellSpec_To_management_VirtualClusterDebugShellSpec(a.(*VirtualClusterDebugShellSpec), b.(*management.VirtualClusterDebugShellSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterDebugShellSpec)(nil), (*VirtualClusterDebugShellSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterDebugShellSpec_To_v1_VirtualClusterDebugShellSpec(a.(*management.VirtualClusterDebugShellSpec), b.(*VirtualClusterDebugShellSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterDebugShellStatus)(nil), (*management.VirtualClusterDebugShellStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterDebugShellStatus_To_management_VirtualClusterDebugShellStatus(a.(*VirtualClusterDebugShellStatus), b.(*management.VirtualClusterDebugShellStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterDebugShellStatus)(nil), (*VirtualClusterDebugShellStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterDebugShellStatus_To_v1_VirtualClusterDebugShellStatus(a.(*management.VirtualClusterDebugShellStatus), b.(*VirtualClusterDebugShellStatus), 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((*VirtualClusterInstanceDebugShell)(nil), (*management.VirtualClusterInstanceDebugShell)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceDebugShell_To_management_VirtualClusterInstanceDebugShell(a.(*VirtualClusterInstanceDebugShell), b.(*management.VirtualClusterInstanceDebugShell), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceDebugShell)(nil), (*VirtualClusterInstanceDebugShell)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceDebugShell_To_v1_VirtualClusterInstanceDebugShell(a.(*management.VirtualClusterInstanceDebugShell), b.(*VirtualClusterInstanceDebugShell), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceDebugShellList)(nil), (*management.VirtualClusterInstanceDebugShellList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceDebugShellList_To_management_VirtualClusterInstanceDebugShellList(a.(*VirtualClusterInstanceDebugShellList), b.(*management.VirtualClusterInstanceDebugShellList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceDebugShellList)(nil), (*VirtualClusterInstanceDebugShellList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceDebugShellList_To_v1_VirtualClusterInstanceDebugShellList(a.(*management.VirtualClusterInstanceDebugShellList), b.(*VirtualClusterInstanceDebugShellList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceDebugShellPods)(nil), (*management.VirtualClusterInstanceDebugShellPods)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceDebugShellPods_To_management_VirtualClusterInstanceDebugShellPods(a.(*VirtualClusterInstanceDebugShellPods), b.(*management.VirtualClusterInstanceDebugShellPods), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceDebugShellPods)(nil), (*VirtualClusterInstanceDebugShellPods)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceDebugShellPods_To_v1_VirtualClusterInstanceDebugShellPods(a.(*management.VirtualClusterInstanceDebugShellPods), b.(*VirtualClusterInstanceDebugShellPods), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterInstanceDebugShellPodsList)(nil), (*management.VirtualClusterInstanceDebugShellPodsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterInstanceDebugShellPodsList_To_management_VirtualClusterInstanceDebugShellPodsList(a.(*VirtualClusterInstanceDebugShellPodsList), b.(*management.VirtualClusterInstanceDebugShellPodsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterInstanceDebugShellPodsList)(nil), (*VirtualClusterInstanceDebugShellPodsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterInstanceDebugShellPodsList_To_v1_VirtualClusterInstanceDebugShellPodsList(a.(*management.VirtualClusterInstanceDebugShellPodsList), b.(*VirtualClusterInstanceDebugShellPodsList), 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), (*PodExecOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_PodExecOptions(a.(*url.Values), b.(*PodExecOptions), 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 +} + +// 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_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_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_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_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_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 + 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) +} + +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 + 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) +} + +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)) + 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) +} + +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)) + 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) +} + +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_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_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_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_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_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_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_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_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_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_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_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_ClusterMember_To_management_ClusterMember(in *ClusterMember, out *management.ClusterMember, s conversion.Scope) error { + out.Info = in.Info + 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) +} + +func autoConvert_management_ClusterMember_To_v1_ClusterMember(in *management.ClusterMember, out *ClusterMember, s conversion.Scope) error { + out.Info = in.Info + 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) +} + +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_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_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_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_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_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_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_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_ClusterMembers_To_management_ClusterMembers(in *ClusterMembers, out *management.ClusterMembers, 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_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_ClusterMembers_To_v1_ClusterMembers(in *management.ClusterMembers, out *ClusterMembers, 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_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_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_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_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_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_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_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_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_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_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)) + 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) +} + +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)) + 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) +} + +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_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_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_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_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_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_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_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_ClusterRoleTemplateSpec_To_management_ClusterRoleTemplateSpec(in *ClusterRoleTemplateSpec, out *management.ClusterRoleTemplateSpec, s conversion.Scope) error { + out.ClusterRoleTemplateSpec = in.ClusterRoleTemplateSpec + 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) +} + +func autoConvert_management_ClusterRoleTemplateSpec_To_v1_ClusterRoleTemplateSpec(in *management.ClusterRoleTemplateSpec, out *ClusterRoleTemplateSpec, s conversion.Scope) error { + out.ClusterRoleTemplateSpec = in.ClusterRoleTemplateSpec + 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) +} + +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_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_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_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_ClusterSpec_To_management_ClusterSpec(in *ClusterSpec, out *management.ClusterSpec, s conversion.Scope) error { + out.ClusterSpec = in.ClusterSpec + 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) +} + +func autoConvert_management_ClusterSpec_To_v1_ClusterSpec(in *management.ClusterSpec, out *ClusterSpec, s conversion.Scope) error { + out.ClusterSpec = in.ClusterSpec + 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) +} + +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_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_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_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_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 + } return nil } -func autoConvert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec(in *AgentAnalyticsSpec, out *management.AgentAnalyticsSpec, s conversion.Scope) error { - out.AnalyticsEndpoint = in.AnalyticsEndpoint +// 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_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 + } 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) +// 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_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec(in *management.AgentAnalyticsSpec, out *AgentAnalyticsSpec, s conversion.Scope) error { - out.AnalyticsEndpoint = in.AnalyticsEndpoint +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_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_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_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 { +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_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_ConfigSpec_To_management_ConfigSpec(in *ConfigSpec, out *management.ConfigSpec, s conversion.Scope) error { + out.Raw = *(*[]byte)(unsafe.Pointer(&in.Raw)) + 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) +} + +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_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_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.Path = in.Path - out.MaxAge = in.MaxAge - out.MaxBackups = in.MaxBackups - out.MaxSize = in.MaxSize - out.Compress = in.Compress + 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)) + out.Database = (*management.DatabaseKine)(unsafe.Pointer(in.Database)) 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_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_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 { +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)) + out.Database = (*DatabaseKine)(unsafe.Pointer(in.Database)) + 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) +} + +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_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_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_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_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_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_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 } - 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) +// 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_AgentAuditEvent_To_management_AgentAuditEvent(in *AgentAuditEvent, out *management.AgentAuditEvent, s conversion.Scope) error { +func autoConvert_v1_ConvertVirtualClusterConfig_To_management_ConvertVirtualClusterConfig(in *ConvertVirtualClusterConfig, out *management.ConvertVirtualClusterConfig, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_AgentAuditEventSpec_To_management_AgentAuditEventSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_ConvertVirtualClusterConfigSpec_To_management_ConvertVirtualClusterConfigSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_AgentAuditEventStatus_To_management_AgentAuditEventStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_ConvertVirtualClusterConfigStatus_To_management_ConvertVirtualClusterConfigStatus(&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) +// 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_AgentAuditEvent_To_v1_AgentAuditEvent(in *management.AgentAuditEvent, out *AgentAuditEvent, s conversion.Scope) error { +func autoConvert_management_ConvertVirtualClusterConfig_To_v1_ConvertVirtualClusterConfig(in *management.ConvertVirtualClusterConfig, out *ConvertVirtualClusterConfig, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_AgentAuditEventSpec_To_v1_AgentAuditEventSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_ConvertVirtualClusterConfigSpec_To_v1_ConvertVirtualClusterConfigSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(&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) +// 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_AgentAuditEventList_To_management_AgentAuditEventList(in *AgentAuditEventList, out *management.AgentAuditEventList, s conversion.Scope) error { +func autoConvert_v1_ConvertVirtualClusterConfigList_To_management_ConvertVirtualClusterConfigList(in *ConvertVirtualClusterConfigList, out *management.ConvertVirtualClusterConfigList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.AgentAuditEvent)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ConvertVirtualClusterConfig)(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_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_AgentAuditEventList_To_v1_AgentAuditEventList(in *management.AgentAuditEventList, out *AgentAuditEventList, s conversion.Scope) error { +func autoConvert_management_ConvertVirtualClusterConfigList_To_v1_ConvertVirtualClusterConfigList(in *management.ConvertVirtualClusterConfigList, out *ConvertVirtualClusterConfigList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]AgentAuditEvent)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ConvertVirtualClusterConfig)(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_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_AgentAuditEventSpec_To_management_AgentAuditEventSpec(in *AgentAuditEventSpec, out *management.AgentAuditEventSpec, s conversion.Scope) error { - out.Events = *(*[]*auditv1.Event)(unsafe.Pointer(&in.Events)) +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_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_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_AgentAuditEventSpec_To_v1_AgentAuditEventSpec(in *management.AgentAuditEventSpec, out *AgentAuditEventSpec, s conversion.Scope) error { - out.Events = *(*[]*auditv1.Event)(unsafe.Pointer(&in.Events)) +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_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_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_AgentAuditEventStatus_To_management_AgentAuditEventStatus(in *AgentAuditEventStatus, out *management.AgentAuditEventStatus, s conversion.Scope) error { +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_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_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_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(in *management.AgentAuditEventStatus, out *AgentAuditEventStatus, s conversion.Scope) error { +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_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_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_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 { +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_AnnouncementStatus_To_management_AnnouncementStatus(&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_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_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_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 { +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_AnnouncementStatus_To_v1_AnnouncementStatus(&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_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_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_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_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_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_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_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_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_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_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_AnnouncementSpec_To_management_AnnouncementSpec(in *AnnouncementSpec, out *management.AnnouncementSpec, s conversion.Scope) error { +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_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_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_AnnouncementSpec_To_v1_AnnouncementSpec(in *management.AnnouncementSpec, out *AnnouncementSpec, s conversion.Scope) error { +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_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_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_v1_AnnouncementStatus_To_management_AnnouncementStatus(in *AnnouncementStatus, out *management.AnnouncementStatus, s conversion.Scope) error { - out.Announcement = in.Announcement +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_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_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_AnnouncementStatus_To_v1_AnnouncementStatus(in *management.AnnouncementStatus, out *AnnouncementStatus, s conversion.Scope) error { - out.Announcement = in.Announcement +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_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_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_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 - } +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_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_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_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 - } +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_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_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_AppCredentials_To_management_AppCredentials(in *AppCredentials, out *management.AppCredentials, s conversion.Scope) error { +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_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_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 - out.ProjectSecretRefs = *(*map[string]string)(unsafe.Pointer(&in.ProjectSecretRefs)) + 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_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_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_AppCredentials_To_v1_AppCredentials(in *management.AppCredentials, out *AppCredentials, s conversion.Scope) error { +func autoConvert_management_DatabaseConnector_To_v1_DatabaseConnector(in *management.DatabaseConnector, out *DatabaseConnector, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.ProjectSecretRefs = *(*map[string]string)(unsafe.Pointer(&in.ProjectSecretRefs)) + 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_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_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_AppCredentialsList_To_management_AppCredentialsList(in *AppCredentialsList, out *management.AppCredentialsList, 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.AppCredentials)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DatabaseConnector)(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) +// 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_AppCredentialsList_To_v1_AppCredentialsList(in *management.AppCredentialsList, out *AppCredentialsList, 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 = *(*[]AppCredentials)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DatabaseConnector)(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) +// 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_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)) +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_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_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_AppList_To_v1_AppList(in *management.AppList, out *AppList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]App)(unsafe.Pointer(&in.Items)) +func autoConvert_management_DatabaseConnectorSpec_To_v1_DatabaseConnectorSpec(in *management.DatabaseConnectorSpec, out *DatabaseConnectorSpec, s conversion.Scope) error { + out.Type = in.Type + out.DisplayName = in.DisplayName return nil } -// Convert_management_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_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_AppSpec_To_management_AppSpec(in *AppSpec, out *management.AppSpec, s conversion.Scope) error { - out.AppSpec = in.AppSpec +func autoConvert_v1_DatabaseConnectorStatus_To_management_DatabaseConnectorStatus(in *DatabaseConnectorStatus, out *management.DatabaseConnectorStatus, s conversion.Scope) error { 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_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_AppSpec_To_v1_AppSpec(in *management.AppSpec, out *AppSpec, s conversion.Scope) error { - out.AppSpec = in.AppSpec +func autoConvert_management_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(in *management.DatabaseConnectorStatus, out *DatabaseConnectorStatus, s conversion.Scope) error { 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_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_AppStatus_To_management_AppStatus(in *AppStatus, out *management.AppStatus, s conversion.Scope) error { - out.AppStatus = in.AppStatus +func autoConvert_v1_DatabaseKine_To_management_DatabaseKine(in *DatabaseKine, out *management.DatabaseKine, s conversion.Scope) error { + out.Enabled = in.Enabled + out.DataSource = in.DataSource + out.IdentityProvider = in.IdentityProvider + out.KeyFile = in.KeyFile + out.CertFile = in.CertFile + out.CaFile = in.CaFile + out.ExtraArgs = *(*[]string)(unsafe.Pointer(&in.ExtraArgs)) 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_DatabaseKine_To_management_DatabaseKine is an autogenerated conversion function. +func Convert_v1_DatabaseKine_To_management_DatabaseKine(in *DatabaseKine, out *management.DatabaseKine, s conversion.Scope) error { + return autoConvert_v1_DatabaseKine_To_management_DatabaseKine(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_DatabaseKine_To_v1_DatabaseKine(in *management.DatabaseKine, out *DatabaseKine, s conversion.Scope) error { + out.Enabled = in.Enabled + out.DataSource = in.DataSource + out.IdentityProvider = in.IdentityProvider + out.KeyFile = in.KeyFile + out.CertFile = in.CertFile + out.CaFile = in.CaFile + out.ExtraArgs = *(*[]string)(unsafe.Pointer(&in.ExtraArgs)) 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_DatabaseKine_To_v1_DatabaseKine is an autogenerated conversion function. +func Convert_management_DatabaseKine_To_v1_DatabaseKine(in *management.DatabaseKine, out *DatabaseKine, s conversion.Scope) error { + return autoConvert_management_DatabaseKine_To_v1_DatabaseKine(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_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken(in *DirectClusterEndpointToken, out *management.DirectClusterEndpointToken, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_DirectClusterEndpointTokenSpec_To_management_DirectClusterEndpointTokenSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_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_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_DirectClusterEndpointToken_To_v1_DirectClusterEndpointToken(in *management.DirectClusterEndpointToken, out *DirectClusterEndpointToken, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_DirectClusterEndpointTokenSpec_To_v1_DirectClusterEndpointTokenSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus(in *DirectClusterEndpointTokenStatus, out *management.DirectClusterEndpointTokenStatus, s conversion.Scope) error { + out.Token = in.Token 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_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_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_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus(in *management.DirectClusterEndpointTokenStatus, out *DirectClusterEndpointTokenStatus, s conversion.Scope) error { + out.Token = in.Token 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_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_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_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 } - 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_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_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_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 } - 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_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_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_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_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_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_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_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_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_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_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_EventSpec_To_management_EventSpec(in *EventSpec, out *management.EventSpec, s conversion.Scope) error { 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_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_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_EventSpec_To_v1_EventSpec(in *management.EventSpec, out *EventSpec, s conversion.Scope) error { 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_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_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_EventStatus_To_management_EventStatus(in *EventStatus, out *management.EventStatus, s conversion.Scope) error { + out.Event = in.Event 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_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_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_EventStatus_To_v1_EventStatus(in *management.EventStatus, out *EventStatus, s conversion.Scope) error { + out.Event = in.Event 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_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_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_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_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_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_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_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_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_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_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_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)) 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_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_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_FeatureList_To_v1_FeatureList(in *management.FeatureList, out *FeatureList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]Feature)(unsafe.Pointer(&in.Items)) 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_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_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_FeatureSpec_To_management_FeatureSpec(in *FeatureSpec, out *management.FeatureSpec, s conversion.Scope) error { 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_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_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_FeatureSpec_To_v1_FeatureSpec(in *management.FeatureSpec, out *FeatureSpec, s conversion.Scope) error { 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_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_AuthenticationPassword_To_management_AuthenticationPassword(in *AuthenticationPassword, out *management.AuthenticationPassword, s conversion.Scope) error { - out.Disabled = in.Disabled +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_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_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_AuthenticationPassword_To_v1_AuthenticationPassword(in *management.AuthenticationPassword, out *AuthenticationPassword, s conversion.Scope) error { - out.Disabled = in.Disabled +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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_Backup_To_management_Backup(in *Backup, out *management.Backup, s conversion.Scope) error { +func autoConvert_v1_IngressAuthToken_To_management_IngressAuthToken(in *IngressAuthToken, out *management.IngressAuthToken, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_BackupSpec_To_management_BackupSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_BackupStatus_To_management_BackupStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus(&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) +// 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_Backup_To_v1_Backup(in *management.Backup, out *Backup, s conversion.Scope) error { +func autoConvert_management_IngressAuthToken_To_v1_IngressAuthToken(in *management.IngressAuthToken, out *IngressAuthToken, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_BackupSpec_To_v1_BackupSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_IngressAuthTokenSpec_To_v1_IngressAuthTokenSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_BackupStatus_To_v1_BackupStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus(&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) +// 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_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 } -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 - } +// 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_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_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_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_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_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_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_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_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_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_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_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_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_v1_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus(in *IngressAuthTokenStatus, out *management.IngressAuthTokenStatus, s conversion.Scope) error { + out.Token = in.Token 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_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_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_management_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus(in *management.IngressAuthTokenStatus, out *IngressAuthTokenStatus, s conversion.Scope) error { + out.Token = in.Token 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_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_BackupApplySpec_To_management_BackupApplySpec(in *BackupApplySpec, out *management.BackupApplySpec, s conversion.Scope) error { - out.Raw = in.Raw +func autoConvert_v1_Kiosk_To_management_Kiosk(in *Kiosk, out *management.Kiosk, 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 { + return err + } 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_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_BackupApplySpec_To_v1_BackupApplySpec(in *management.BackupApplySpec, out *BackupApplySpec, s conversion.Scope) error { - out.Raw = in.Raw +func autoConvert_management_Kiosk_To_v1_Kiosk(in *management.Kiosk, out *Kiosk, 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 { + return err + } 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_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_BackupList_To_management_BackupList(in *BackupList, out *management.BackupList, 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.Backup)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.Kiosk)(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) +// 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_BackupList_To_v1_BackupList(in *management.BackupList, out *BackupList, 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 = *(*[]Backup)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]Kiosk)(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) +// 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_BackupSpec_To_management_BackupSpec(in *BackupSpec, out *management.BackupSpec, s conversion.Scope) error { +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_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_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_BackupSpec_To_v1_BackupSpec(in *management.BackupSpec, out *BackupSpec, s conversion.Scope) error { +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_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_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_BackupStatus_To_management_BackupStatus(in *BackupStatus, out *management.BackupStatus, s conversion.Scope) error { - out.RawBackup = in.RawBackup +func autoConvert_v1_KioskStatus_To_management_KioskStatus(in *KioskStatus, out *management.KioskStatus, s conversion.Scope) error { 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_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_BackupStatus_To_v1_BackupStatus(in *management.BackupStatus, out *BackupStatus, s conversion.Scope) error { - out.RawBackup = in.RawBackup +func autoConvert_management_KioskStatus_To_v1_KioskStatus(in *management.KioskStatus, out *KioskStatus, s conversion.Scope) error { 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_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_Cluster_To_management_Cluster(in *Cluster, out *management.Cluster, 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_ClusterSpec_To_management_ClusterSpec(&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_ClusterStatus_To_management_ClusterStatus(&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_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_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_Cluster_To_v1_Cluster(in *management.Cluster, out *Cluster, 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_ClusterSpec_To_v1_ClusterSpec(&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_ClusterStatus_To_v1_ClusterStatus(&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_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_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_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 - } +func autoConvert_v1_LicenseList_To_management_LicenseList(in *LicenseList, out *management.LicenseList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.License)(unsafe.Pointer(&in.Items)) 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_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_ClusterAccess_To_v1_ClusterAccess(in *management.ClusterAccess, out *ClusterAccess, 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 = *(*[]License)(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) +} + +func autoConvert_v1_LicenseRequest_To_management_LicenseRequest(in *LicenseRequest, out *management.LicenseRequest, 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_v1_LicenseRequestSpec_To_management_LicenseRequestSpec(&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_v1_LicenseRequestStatus_To_management_LicenseRequestStatus(&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_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_v1_ClusterAccessKey_To_management_ClusterAccessKey(in *ClusterAccessKey, out *management.ClusterAccessKey, s conversion.Scope) error { +func autoConvert_management_LicenseRequest_To_v1_LicenseRequest(in *management.LicenseRequest, out *LicenseRequest, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey - out.LoftHost = in.LoftHost - out.Insecure = in.Insecure - out.CaCert = in.CaCert + 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_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_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_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_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_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_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_v1_ClusterAccessKeyList_To_management_ClusterAccessKeyList(in *ClusterAccessKeyList, out *management.ClusterAccessKeyList, s conversion.Scope) error { +func autoConvert_management_LicenseRequestList_To_v1_LicenseRequestList(in *management.LicenseRequestList, out *LicenseRequestList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterAccessKey)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]LicenseRequest)(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) +// 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_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_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_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_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_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_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_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_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_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_v1_LicenseRequestStatus_To_management_LicenseRequestStatus(in *LicenseRequestStatus, out *management.LicenseRequestStatus, s conversion.Scope) error { + out.Output = in.Output 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_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_v1_ClusterAccessSpec_To_management_ClusterAccessSpec(in *ClusterAccessSpec, out *management.ClusterAccessSpec, s conversion.Scope) error { - out.ClusterAccessSpec = in.ClusterAccessSpec +func autoConvert_management_LicenseRequestStatus_To_v1_LicenseRequestStatus(in *management.LicenseRequestStatus, out *LicenseRequestStatus, s conversion.Scope) error { + out.Output = in.Output 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_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_management_ClusterAccessSpec_To_v1_ClusterAccessSpec(in *management.ClusterAccessSpec, out *ClusterAccessSpec, s conversion.Scope) error { - out.ClusterAccessSpec = in.ClusterAccessSpec +func autoConvert_v1_LicenseSpec_To_management_LicenseSpec(in *LicenseSpec, out *management.LicenseSpec, s conversion.Scope) error { 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_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_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_management_LicenseSpec_To_v1_LicenseSpec(in *management.LicenseSpec, out *LicenseSpec, s conversion.Scope) error { 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_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_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_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_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_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_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_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_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_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_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_v1_LoftUpgrade_To_management_LoftUpgrade(in *LoftUpgrade, out *management.LoftUpgrade, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_LoftUpgradeSpec_To_management_LoftUpgradeSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_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_v1_ClusterAgentConfig_To_management_ClusterAgentConfig(in *ClusterAgentConfig, out *management.ClusterAgentConfig, 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_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCommon(&in.ClusterAgentConfigCommon, &out.ClusterAgentConfigCommon, s); err != nil { + if err := Convert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(&in.Status, &out.Status, s); err != nil { 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) +// 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_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_v1_LoftUpgradeList_To_management_LoftUpgradeList(in *LoftUpgradeList, out *management.LoftUpgradeList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.LoftUpgrade)(unsafe.Pointer(&in.Items)) return nil } -// Convert_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_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_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 - } +func autoConvert_management_LoftUpgradeList_To_v1_LoftUpgradeList(in *management.LoftUpgradeList, out *LoftUpgradeList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]LoftUpgrade)(unsafe.Pointer(&in.Items)) return nil } -// Convert_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_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_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 - } +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_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_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_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)) +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_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_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_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)) +func autoConvert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in *LoftUpgradeStatus, out *management.LoftUpgradeStatus, s conversion.Scope) error { 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_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus is an autogenerated conversion function. +func Convert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in *LoftUpgradeStatus, out *management.LoftUpgradeStatus, s conversion.Scope) error { + return autoConvert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in, out, s) +} + +func autoConvert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in *management.LoftUpgradeStatus, out *LoftUpgradeStatus, s conversion.Scope) error { + return nil +} + +// Convert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus is an autogenerated conversion function. +func Convert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in *management.LoftUpgradeStatus, out *LoftUpgradeStatus, s conversion.Scope) error { + return autoConvert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in, out, s) } -func autoConvert_v1_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_ClusterDomain_To_management_ClusterDomain(in *ClusterDomain, out *management.ClusterDomain, s conversion.Scope) error { +func autoConvert_v1_NodeClaim_To_management_NodeClaim(in *NodeClaim, out *management.NodeClaim, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Target = in.Target - out.Domain = in.Domain + if err := Convert_v1_NodeClaimSpec_To_management_NodeClaimSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_NodeClaimStatus_To_management_NodeClaimStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_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_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_ClusterDomain_To_v1_ClusterDomain(in *management.ClusterDomain, out *ClusterDomain, s conversion.Scope) error { +func autoConvert_management_NodeClaim_To_v1_NodeClaim(in *management.NodeClaim, out *NodeClaim, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Target = in.Target - out.Domain = in.Domain + if err := Convert_management_NodeClaimSpec_To_v1_NodeClaimSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_NodeClaimStatus_To_v1_NodeClaimStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_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_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_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_NodeClaimData_To_management_NodeClaimData(in *NodeClaimData, out *management.NodeClaimData, s conversion.Scope) error { + out.UserData = in.UserData + 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_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_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_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_NodeClaimData_To_v1_NodeClaimData(in *management.NodeClaimData, out *NodeClaimData, s conversion.Scope) error { + out.UserData = in.UserData + 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_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_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_ClusterList_To_management_ClusterList(in *ClusterList, out *management.ClusterList, s conversion.Scope) error { +func autoConvert_v1_NodeClaimList_To_management_NodeClaimList(in *NodeClaimList, out *management.NodeClaimList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.Cluster)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.NodeClaim)(unsafe.Pointer(&in.Items)) 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_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_ClusterList_To_v1_ClusterList(in *management.ClusterList, out *ClusterList, s conversion.Scope) error { +func autoConvert_management_NodeClaimList_To_v1_NodeClaimList(in *management.NodeClaimList, out *NodeClaimList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]Cluster)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]NodeClaim)(unsafe.Pointer(&in.Items)) 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_NodeClaimList_To_v1_NodeClaimList is an autogenerated conversion function. +func Convert_management_NodeClaimList_To_v1_NodeClaimList(in *management.NodeClaimList, out *NodeClaimList, s conversion.Scope) error { + return autoConvert_management_NodeClaimList_To_v1_NodeClaimList(in, out, s) } -func autoConvert_v1_ClusterMember_To_management_ClusterMember(in *ClusterMember, out *management.ClusterMember, s conversion.Scope) error { - out.Info = in.Info +func autoConvert_v1_NodeClaimSpec_To_management_NodeClaimSpec(in *NodeClaimSpec, out *management.NodeClaimSpec, s conversion.Scope) error { + out.NodeClaimSpec = in.NodeClaimSpec 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_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_ClusterMember_To_v1_ClusterMember(in *management.ClusterMember, out *ClusterMember, s conversion.Scope) error { - out.Info = in.Info +func autoConvert_management_NodeClaimSpec_To_v1_NodeClaimSpec(in *management.NodeClaimSpec, out *NodeClaimSpec, s conversion.Scope) error { + out.NodeClaimSpec = in.NodeClaimSpec 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_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_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_NodeClaimStatus_To_management_NodeClaimStatus(in *NodeClaimStatus, out *management.NodeClaimStatus, s conversion.Scope) error { + out.NodeClaimStatus = in.NodeClaimStatus 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_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_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_NodeClaimStatus_To_v1_NodeClaimStatus(in *management.NodeClaimStatus, out *NodeClaimStatus, s conversion.Scope) error { + out.NodeClaimStatus = in.NodeClaimStatus 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_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_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_NodeEnvironment_To_management_NodeEnvironment(in *NodeEnvironment, out *management.NodeEnvironment, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_NodeEnvironmentSpec_To_management_NodeEnvironmentSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_NodeEnvironmentStatus_To_management_NodeEnvironmentStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_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_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_NodeEnvironment_To_v1_NodeEnvironment(in *management.NodeEnvironment, out *NodeEnvironment, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_NodeEnvironmentSpec_To_v1_NodeEnvironmentSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_NodeEnvironmentStatus_To_v1_NodeEnvironmentStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_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_ClusterMembers_To_management_ClusterMembers(in *ClusterMembers, out *management.ClusterMembers, 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_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_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_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_ClusterMembers_To_v1_ClusterMembers(in *management.ClusterMembers, out *ClusterMembers, 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_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_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_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_ClusterMembersList_To_management_ClusterMembersList(in *ClusterMembersList, out *management.ClusterMembersList, s conversion.Scope) error { +func autoConvert_v1_NodeEnvironmentList_To_management_NodeEnvironmentList(in *NodeEnvironmentList, out *management.NodeEnvironmentList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterMembers)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.NodeEnvironment)(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_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_ClusterMembersList_To_v1_ClusterMembersList(in *management.ClusterMembersList, out *ClusterMembersList, s conversion.Scope) error { +func autoConvert_management_NodeEnvironmentList_To_v1_NodeEnvironmentList(in *management.NodeEnvironmentList, out *NodeEnvironmentList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]ClusterMembers)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]NodeEnvironment)(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_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_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_NodeEnvironmentSpec_To_management_NodeEnvironmentSpec(in *NodeEnvironmentSpec, out *management.NodeEnvironmentSpec, s conversion.Scope) error { + out.NodeEnvironmentSpec = in.NodeEnvironmentSpec 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_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_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_NodeEnvironmentSpec_To_v1_NodeEnvironmentSpec(in *management.NodeEnvironmentSpec, out *NodeEnvironmentSpec, s conversion.Scope) error { + out.NodeEnvironmentSpec = in.NodeEnvironmentSpec 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_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_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_NodeEnvironmentStatus_To_management_NodeEnvironmentStatus(in *NodeEnvironmentStatus, out *management.NodeEnvironmentStatus, s conversion.Scope) error { + out.NodeEnvironmentStatus = in.NodeEnvironmentStatus 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_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_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_NodeEnvironmentStatus_To_v1_NodeEnvironmentStatus(in *management.NodeEnvironmentStatus, out *NodeEnvironmentStatus, s conversion.Scope) error { + out.NodeEnvironmentStatus = in.NodeEnvironmentStatus 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_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_v1_ClusterRoleTemplate_To_management_ClusterRoleTemplate(in *ClusterRoleTemplate, out *management.ClusterRoleTemplate, s conversion.Scope) error { +func autoConvert_v1_NodeProvider_To_management_NodeProvider(in *NodeProvider, out *management.NodeProvider, 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_NodeProviderSpec_To_management_NodeProviderSpec(&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_NodeProviderStatus_To_management_NodeProviderStatus(&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_NodeProvider_To_management_NodeProvider is an autogenerated conversion function. +func Convert_v1_NodeProvider_To_management_NodeProvider(in *NodeProvider, out *management.NodeProvider, s conversion.Scope) error { + return autoConvert_v1_NodeProvider_To_management_NodeProvider(in, out, s) } -func autoConvert_management_ClusterRoleTemplate_To_v1_ClusterRoleTemplate(in *management.ClusterRoleTemplate, out *ClusterRoleTemplate, s conversion.Scope) error { +func autoConvert_management_NodeProvider_To_v1_NodeProvider(in *management.NodeProvider, out *NodeProvider, 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_NodeProviderSpec_To_v1_NodeProviderSpec(&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_NodeProviderStatus_To_v1_NodeProviderStatus(&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) -} - -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_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_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_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_ClusterRoleTemplateSpec_To_management_ClusterRoleTemplateSpec(in *ClusterRoleTemplateSpec, out *management.ClusterRoleTemplateSpec, s conversion.Scope) error { - out.ClusterRoleTemplateSpec = in.ClusterRoleTemplateSpec - 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) -} - -func autoConvert_management_ClusterRoleTemplateSpec_To_v1_ClusterRoleTemplateSpec(in *management.ClusterRoleTemplateSpec, out *ClusterRoleTemplateSpec, s conversion.Scope) error { - out.ClusterRoleTemplateSpec = in.ClusterRoleTemplateSpec - 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_NodeProvider_To_v1_NodeProvider is an autogenerated conversion function. +func Convert_management_NodeProvider_To_v1_NodeProvider(in *management.NodeProvider, out *NodeProvider, s conversion.Scope) error { + return autoConvert_management_NodeProvider_To_v1_NodeProvider(in, out, s) } -func autoConvert_v1_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_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_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_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_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_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_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_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_v1_ClusterSpec_To_management_ClusterSpec(in *ClusterSpec, out *management.ClusterSpec, s conversion.Scope) error { - out.ClusterSpec = in.ClusterSpec +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_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_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_management_ClusterSpec_To_v1_ClusterSpec(in *management.ClusterSpec, out *ClusterSpec, s conversion.Scope) error { - out.ClusterSpec = in.ClusterSpec +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_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_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_ClusterStatus_To_management_ClusterStatus(in *ClusterStatus, out *management.ClusterStatus, s conversion.Scope) error { - out.ClusterStatus = in.ClusterStatus - out.Online = in.Online +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_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_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_ClusterStatus_To_v1_ClusterStatus(in *management.ClusterStatus, out *ClusterStatus, s conversion.Scope) error { - out.ClusterStatus = in.ClusterStatus - out.Online = in.Online +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_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_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_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_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_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_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_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_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_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_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_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_NodeProviderCalculateCostResult_To_management_NodeProviderCalculateCostResult(in *NodeProviderCalculateCostResult, out *management.NodeProviderCalculateCostResult, s conversion.Scope) error { + out.Cost = in.Cost 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_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_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_NodeProviderCalculateCostResult_To_v1_NodeProviderCalculateCostResult(in *management.NodeProviderCalculateCostResult, out *NodeProviderCalculateCostResult, s conversion.Scope) error { + out.Cost = in.Cost 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_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_v1_Config_To_management_Config(in *Config, out *management.Config, s conversion.Scope) error { +func autoConvert_v1_NodeProviderExec_To_management_NodeProviderExec(in *NodeProviderExec, out *management.NodeProviderExec, 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_NodeProviderExecSpec_To_management_NodeProviderExecSpec(&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_NodeProviderExecStatus_To_management_NodeProviderExecStatus(&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_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_management_Config_To_v1_Config(in *management.Config, out *Config, s conversion.Scope) error { +func autoConvert_management_NodeProviderExec_To_v1_NodeProviderExec(in *management.NodeProviderExec, out *NodeProviderExec, 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_NodeProviderExecSpec_To_v1_NodeProviderExecSpec(&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_NodeProviderExecStatus_To_v1_NodeProviderExecStatus(&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_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_v1_ConfigList_To_management_ConfigList(in *ConfigList, out *management.ConfigList, s conversion.Scope) error { +func autoConvert_v1_NodeProviderExecList_To_management_NodeProviderExecList(in *NodeProviderExecList, out *management.NodeProviderExecList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.Config)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.NodeProviderExec)(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_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_management_ConfigList_To_v1_ConfigList(in *management.ConfigList, out *ConfigList, s conversion.Scope) error { +func autoConvert_management_NodeProviderExecList_To_v1_NodeProviderExecList(in *management.NodeProviderExecList, out *NodeProviderExecList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]Config)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]NodeProviderExec)(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_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_ConfigSpec_To_management_ConfigSpec(in *ConfigSpec, out *management.ConfigSpec, s conversion.Scope) error { - out.Raw = *(*[]byte)(unsafe.Pointer(&in.Raw)) +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_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_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_ConfigSpec_To_v1_ConfigSpec(in *management.ConfigSpec, out *ConfigSpec, s conversion.Scope) error { - out.Raw = *(*[]byte)(unsafe.Pointer(&in.Raw)) +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_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_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_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_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_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_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_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_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_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_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_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_NodeProviderExecStatus_To_management_NodeProviderExecStatus(in *NodeProviderExecStatus, out *management.NodeProviderExecStatus, s conversion.Scope) error { + out.Result = in.Result 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_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_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_NodeProviderExecStatus_To_v1_NodeProviderExecStatus(in *management.NodeProviderExecStatus, out *NodeProviderExecStatus, s conversion.Scope) error { + out.Result = in.Result 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_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_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 - } +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_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_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_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 - } +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_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_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_ConvertVirtualClusterConfig_To_management_ConvertVirtualClusterConfig(in *ConvertVirtualClusterConfig, out *management.ConvertVirtualClusterConfig, s conversion.Scope) error { +func autoConvert_v1_NodeProviderSpec_To_management_NodeProviderSpec(in *NodeProviderSpec, out *management.NodeProviderSpec, s conversion.Scope) error { + out.NodeProviderSpec = in.NodeProviderSpec + return nil +} + +// Convert_v1_NodeProviderSpec_To_management_NodeProviderSpec is an autogenerated conversion function. +func Convert_v1_NodeProviderSpec_To_management_NodeProviderSpec(in *NodeProviderSpec, out *management.NodeProviderSpec, s conversion.Scope) error { + return autoConvert_v1_NodeProviderSpec_To_management_NodeProviderSpec(in, out, s) +} + +func autoConvert_management_NodeProviderSpec_To_v1_NodeProviderSpec(in *management.NodeProviderSpec, out *NodeProviderSpec, s conversion.Scope) error { + out.NodeProviderSpec = in.NodeProviderSpec + return nil +} + +// Convert_management_NodeProviderSpec_To_v1_NodeProviderSpec is an autogenerated conversion function. +func Convert_management_NodeProviderSpec_To_v1_NodeProviderSpec(in *management.NodeProviderSpec, out *NodeProviderSpec, s conversion.Scope) error { + return autoConvert_management_NodeProviderSpec_To_v1_NodeProviderSpec(in, out, s) +} + +func autoConvert_v1_NodeProviderStatus_To_management_NodeProviderStatus(in *NodeProviderStatus, out *management.NodeProviderStatus, s conversion.Scope) error { + out.NodeProviderStatus = in.NodeProviderStatus + return nil +} + +// Convert_v1_NodeProviderStatus_To_management_NodeProviderStatus is an autogenerated conversion function. +func Convert_v1_NodeProviderStatus_To_management_NodeProviderStatus(in *NodeProviderStatus, out *management.NodeProviderStatus, s conversion.Scope) error { + return autoConvert_v1_NodeProviderStatus_To_management_NodeProviderStatus(in, out, s) +} + +func autoConvert_management_NodeProviderStatus_To_v1_NodeProviderStatus(in *management.NodeProviderStatus, out *NodeProviderStatus, s conversion.Scope) error { + out.NodeProviderStatus = in.NodeProviderStatus + return nil +} + +// Convert_management_NodeProviderStatus_To_v1_NodeProviderStatus is an autogenerated conversion function. +func Convert_management_NodeProviderStatus_To_v1_NodeProviderStatus(in *management.NodeProviderStatus, out *NodeProviderStatus, s conversion.Scope) error { + return autoConvert_management_NodeProviderStatus_To_v1_NodeProviderStatus(in, out, s) +} + +func autoConvert_v1_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_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_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_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_NodeType_To_management_NodeType(in *NodeType, out *management.NodeType, 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_NodeTypeSpec_To_management_NodeTypeSpec(&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_NodeTypeStatus_To_management_NodeTypeStatus(&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_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_ConvertVirtualClusterConfig_To_v1_ConvertVirtualClusterConfig(in *management.ConvertVirtualClusterConfig, out *ConvertVirtualClusterConfig, 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_ConvertVirtualClusterConfigSpec_To_v1_ConvertVirtualClusterConfigSpec(&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_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(&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_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) +// 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_ConvertVirtualClusterConfigList_To_management_ConvertVirtualClusterConfigList(in *ConvertVirtualClusterConfigList, out *management.ConvertVirtualClusterConfigList, 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.ConvertVirtualClusterConfig)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.NodeType)(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) +// 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_ConvertVirtualClusterConfigList_To_v1_ConvertVirtualClusterConfigList(in *management.ConvertVirtualClusterConfigList, out *ConvertVirtualClusterConfigList, 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 = *(*[]ConvertVirtualClusterConfig)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]NodeType)(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) +// 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_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 +func autoConvert_v1_NodeTypeSpec_To_management_NodeTypeSpec(in *NodeTypeSpec, out *management.NodeTypeSpec, s conversion.Scope) error { + out.NodeTypeSpec = in.NodeTypeSpec 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) +// 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_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 +func autoConvert_management_NodeTypeSpec_To_v1_NodeTypeSpec(in *management.NodeTypeSpec, out *NodeTypeSpec, s conversion.Scope) error { + out.NodeTypeSpec = in.NodeTypeSpec 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_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_ConvertVirtualClusterConfigStatus_To_management_ConvertVirtualClusterConfigStatus(in *ConvertVirtualClusterConfigStatus, out *management.ConvertVirtualClusterConfigStatus, s conversion.Scope) error { - out.Values = in.Values - out.Converted = in.Converted +func autoConvert_v1_NodeTypeStatus_To_management_NodeTypeStatus(in *NodeTypeStatus, out *management.NodeTypeStatus, s conversion.Scope) error { + out.NodeTypeStatus = in.NodeTypeStatus 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_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_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(in *management.ConvertVirtualClusterConfigStatus, out *ConvertVirtualClusterConfigStatus, s conversion.Scope) error { - out.Values = in.Values - out.Converted = in.Converted +func autoConvert_management_NodeTypeStatus_To_v1_NodeTypeStatus(in *management.NodeTypeStatus, out *NodeTypeStatus, s conversion.Scope) error { + out.NodeTypeStatus = in.NodeTypeStatus + return nil +} + +// Convert_management_NodeTypeStatus_To_v1_NodeTypeStatus is an autogenerated conversion function. +func Convert_management_NodeTypeStatus_To_v1_NodeTypeStatus(in *management.NodeTypeStatus, out *NodeTypeStatus, s conversion.Scope) error { + return autoConvert_management_NodeTypeStatus_To_v1_NodeTypeStatus(in, out, s) +} + +func autoConvert_v1_OIDC_To_management_OIDC(in *OIDC, out *management.OIDC, s conversion.Scope) error { + 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_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 + } + 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) +} + +func autoConvert_management_OIDCClient_To_v1_OIDCClient(in *management.OIDCClient, out *OIDCClient, 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 + } + 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) +} + +func autoConvert_v1_OIDCClientList_To_management_OIDCClientList(in *OIDCClientList, out *management.OIDCClientList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.OIDCClient)(unsafe.Pointer(&in.Items)) 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_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_v1_DevPodDeleteOptions_To_management_DevPodDeleteOptions(in *DevPodDeleteOptions, out *management.DevPodDeleteOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_management_OIDCClientList_To_v1_OIDCClientList(in *management.OIDCClientList, out *OIDCClientList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]OIDCClient)(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_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_management_DevPodDeleteOptions_To_v1_DevPodDeleteOptions(in *management.DevPodDeleteOptions, out *DevPodDeleteOptions, s conversion.Scope) error { - out.Options = in.Options +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_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_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_url_Values_To_v1_DevPodDeleteOptions(in *url.Values, out *DevPodDeleteOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. - - if values, ok := map[string][]string(*in)["options"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.Options, s); err != nil { - return err - } - } else { - out.Options = "" - } +func autoConvert_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_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_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_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_OIDCClientStatus_To_management_OIDCClientStatus(in *OIDCClientStatus, out *management.OIDCClientStatus, s conversion.Scope) error { 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_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_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_OIDCClientStatus_To_v1_OIDCClientStatus(in *management.OIDCClientStatus, out *OIDCClientStatus, s conversion.Scope) error { 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_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_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in *DevPodEnvironmentTemplate, out *management.DevPodEnvironmentTemplate, s conversion.Scope) error { +func autoConvert_v1_OSImage_To_management_OSImage(in *OSImage, out *management.OSImage, 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_OSImageSpec_To_management_OSImageSpec(&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_OSImageStatus_To_management_OSImageStatus(&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_OSImage_To_management_OSImage is an autogenerated conversion function. +func Convert_v1_OSImage_To_management_OSImage(in *OSImage, out *management.OSImage, s conversion.Scope) error { + return autoConvert_v1_OSImage_To_management_OSImage(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(in *management.DevPodEnvironmentTemplate, out *DevPodEnvironmentTemplate, s conversion.Scope) error { +func autoConvert_management_OSImage_To_v1_OSImage(in *management.OSImage, out *OSImage, 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_OSImageSpec_To_v1_OSImageSpec(&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_OSImageStatus_To_v1_OSImageStatus(&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_OSImage_To_v1_OSImage is an autogenerated conversion function. +func Convert_management_OSImage_To_v1_OSImage(in *management.OSImage, out *OSImage, s conversion.Scope) error { + return autoConvert_management_OSImage_To_v1_OSImage(in, out, s) } -func autoConvert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(in *DevPodEnvironmentTemplateList, out *management.DevPodEnvironmentTemplateList, s conversion.Scope) error { +func autoConvert_v1_OSImageList_To_management_OSImageList(in *OSImageList, out *management.OSImageList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodEnvironmentTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.OSImage)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList is an autogenerated conversion function. -func Convert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(in *DevPodEnvironmentTemplateList, out *management.DevPodEnvironmentTemplateList, s conversion.Scope) error { - return autoConvert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(in, out, s) +// Convert_v1_OSImageList_To_management_OSImageList is an autogenerated conversion function. +func Convert_v1_OSImageList_To_management_OSImageList(in *OSImageList, out *management.OSImageList, s conversion.Scope) error { + return autoConvert_v1_OSImageList_To_management_OSImageList(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(in *management.DevPodEnvironmentTemplateList, out *DevPodEnvironmentTemplateList, s conversion.Scope) error { +func autoConvert_management_OSImageList_To_v1_OSImageList(in *management.OSImageList, out *OSImageList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodEnvironmentTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]OSImage)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList is an autogenerated conversion function. -func Convert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(in *management.DevPodEnvironmentTemplateList, out *DevPodEnvironmentTemplateList, s conversion.Scope) error { - return autoConvert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(in, out, s) +// Convert_management_OSImageList_To_v1_OSImageList is an autogenerated conversion function. +func Convert_management_OSImageList_To_v1_OSImageList(in *management.OSImageList, out *OSImageList, s conversion.Scope) error { + return autoConvert_management_OSImageList_To_v1_OSImageList(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_OSImageSpec_To_management_OSImageSpec(in *OSImageSpec, out *management.OSImageSpec, s conversion.Scope) error { + out.OSImageSpec = in.OSImageSpec 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_OSImageSpec_To_management_OSImageSpec is an autogenerated conversion function. +func Convert_v1_OSImageSpec_To_management_OSImageSpec(in *OSImageSpec, out *management.OSImageSpec, s conversion.Scope) error { + return autoConvert_v1_OSImageSpec_To_management_OSImageSpec(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_OSImageSpec_To_v1_OSImageSpec(in *management.OSImageSpec, out *OSImageSpec, s conversion.Scope) error { + out.OSImageSpec = in.OSImageSpec 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_OSImageSpec_To_v1_OSImageSpec is an autogenerated conversion function. +func Convert_management_OSImageSpec_To_v1_OSImageSpec(in *management.OSImageSpec, out *OSImageSpec, s conversion.Scope) error { + return autoConvert_management_OSImageSpec_To_v1_OSImageSpec(in, out, s) } -func autoConvert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(in *DevPodEnvironmentTemplateStatus, out *management.DevPodEnvironmentTemplateStatus, s conversion.Scope) error { +func autoConvert_v1_OSImageStatus_To_management_OSImageStatus(in *OSImageStatus, out *management.OSImageStatus, s conversion.Scope) error { + out.OSImageStatus = in.OSImageStatus 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_OSImageStatus_To_management_OSImageStatus is an autogenerated conversion function. +func Convert_v1_OSImageStatus_To_management_OSImageStatus(in *OSImageStatus, out *management.OSImageStatus, s conversion.Scope) error { + return autoConvert_v1_OSImageStatus_To_management_OSImageStatus(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(in *management.DevPodEnvironmentTemplateStatus, out *DevPodEnvironmentTemplateStatus, s conversion.Scope) error { +func autoConvert_management_OSImageStatus_To_v1_OSImageStatus(in *management.OSImageStatus, out *OSImageStatus, s conversion.Scope) error { + out.OSImageStatus = in.OSImageStatus 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_OSImageStatus_To_v1_OSImageStatus is an autogenerated conversion function. +func Convert_management_OSImageStatus_To_v1_OSImageStatus(in *management.OSImageStatus, out *OSImageStatus, s conversion.Scope) error { + return autoConvert_management_OSImageStatus_To_v1_OSImageStatus(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_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_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_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_DevPodSshOptions_To_v1_DevPodSshOptions(in *management.DevPodSshOptions, out *DevPodSshOptions, s conversion.Scope) error { - out.Options = in.Options +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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_v1_DevPodStatusOptions_To_management_DevPodStatusOptions(in *DevPodStatusOptions, out *management.DevPodStatusOptions, s conversion.Scope) error { - out.Options = in.Options +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_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_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_management_DevPodStatusOptions_To_v1_DevPodStatusOptions(in *management.DevPodStatusOptions, out *DevPodStatusOptions, s conversion.Scope) error { - out.Options = in.Options +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 + } 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_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_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_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 } 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_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_DevPodStatusOptionsList_To_management_DevPodStatusOptionsList(in *DevPodStatusOptionsList, out *management.DevPodStatusOptionsList, 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.DevPodStatusOptions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.OwnedAccessKey)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodStatusOptionsList_To_management_DevPodStatusOptionsList is an autogenerated conversion function. -func Convert_v1_DevPodStatusOptionsList_To_management_DevPodStatusOptionsList(in *DevPodStatusOptionsList, out *management.DevPodStatusOptionsList, s conversion.Scope) error { - return autoConvert_v1_DevPodStatusOptionsList_To_management_DevPodStatusOptionsList(in, out, s) +// Convert_v1_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_DevPodStatusOptionsList_To_v1_DevPodStatusOptionsList(in *management.DevPodStatusOptionsList, out *DevPodStatusOptionsList, 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 = *(*[]DevPodStatusOptions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]OwnedAccessKey)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodStatusOptionsList_To_v1_DevPodStatusOptionsList is an autogenerated conversion function. -func Convert_management_DevPodStatusOptionsList_To_v1_DevPodStatusOptionsList(in *management.DevPodStatusOptionsList, out *DevPodStatusOptionsList, s conversion.Scope) error { - return autoConvert_management_DevPodStatusOptionsList_To_v1_DevPodStatusOptionsList(in, out, s) +// Convert_management_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_DevPodStopOptions_To_management_DevPodStopOptions(in *DevPodStopOptions, out *management.DevPodStopOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_v1_OwnedAccessKeySpec_To_management_OwnedAccessKeySpec(in *OwnedAccessKeySpec, out *management.OwnedAccessKeySpec, s conversion.Scope) error { + out.AccessKeySpec = in.AccessKeySpec 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_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_DevPodStopOptions_To_v1_DevPodStopOptions(in *management.DevPodStopOptions, out *DevPodStopOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_management_OwnedAccessKeySpec_To_v1_OwnedAccessKeySpec(in *management.OwnedAccessKeySpec, out *OwnedAccessKeySpec, s conversion.Scope) error { + out.AccessKeySpec = in.AccessKeySpec 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_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_OwnedAccessKeyStatus_To_management_OwnedAccessKeyStatus(in *OwnedAccessKeyStatus, out *management.OwnedAccessKeyStatus, s conversion.Scope) error { + out.AccessKeyStatus = in.AccessKeyStatus + return nil } -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. +// 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) +} - 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_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(in *management.OwnedAccessKeyStatus, out *OwnedAccessKeyStatus, s conversion.Scope) error { + out.AccessKeyStatus = in.AccessKeyStatus 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_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_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_v1_PlatformDB_To_management_PlatformDB(in *PlatformDB, out *management.PlatformDB, s conversion.Scope) error { + out.StorageClass = in.StorageClass return nil } -// Convert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList is an autogenerated conversion function. -func Convert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList(in *DevPodStopOptionsList, out *management.DevPodStopOptionsList, s conversion.Scope) error { - return autoConvert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList(in, out, s) +// Convert_v1_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_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_management_PlatformDB_To_v1_PlatformDB(in *management.PlatformDB, out *PlatformDB, s conversion.Scope) error { + out.StorageClass = in.StorageClass return nil } -// Convert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList is an autogenerated conversion function. -func Convert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList(in *management.DevPodStopOptionsList, out *DevPodStopOptionsList, s conversion.Scope) error { - return autoConvert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList(in, out, s) +// Convert_management_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_DevPodUpOptions_To_management_DevPodUpOptions(in *DevPodUpOptions, out *management.DevPodUpOptions, s conversion.Scope) error { - out.WebMode = in.WebMode - out.CLIMode = in.CLIMode - out.Debug = in.Debug - out.Options = in.Options +func autoConvert_v1_PodExecOptions_To_management_PodExecOptions(in *PodExecOptions, out *management.PodExecOptions, s conversion.Scope) error { + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + out.Command = *(*[]string)(unsafe.Pointer(&in.Command)) return nil } -// Convert_v1_DevPodUpOptions_To_management_DevPodUpOptions is an autogenerated conversion function. -func Convert_v1_DevPodUpOptions_To_management_DevPodUpOptions(in *DevPodUpOptions, out *management.DevPodUpOptions, s conversion.Scope) error { - return autoConvert_v1_DevPodUpOptions_To_management_DevPodUpOptions(in, out, s) +// Convert_v1_PodExecOptions_To_management_PodExecOptions is an autogenerated conversion function. +func Convert_v1_PodExecOptions_To_management_PodExecOptions(in *PodExecOptions, out *management.PodExecOptions, s conversion.Scope) error { + return autoConvert_v1_PodExecOptions_To_management_PodExecOptions(in, out, s) } -func autoConvert_management_DevPodUpOptions_To_v1_DevPodUpOptions(in *management.DevPodUpOptions, out *DevPodUpOptions, s conversion.Scope) error { - out.WebMode = in.WebMode - out.CLIMode = in.CLIMode - out.Debug = in.Debug - out.Options = in.Options +func autoConvert_management_PodExecOptions_To_v1_PodExecOptions(in *management.PodExecOptions, out *PodExecOptions, s conversion.Scope) error { + out.Stdin = in.Stdin + out.Stdout = in.Stdout + out.Stderr = in.Stderr + out.TTY = in.TTY + out.Container = in.Container + out.Command = *(*[]string)(unsafe.Pointer(&in.Command)) 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_management_PodExecOptions_To_v1_PodExecOptions is an autogenerated conversion function. +func Convert_management_PodExecOptions_To_v1_PodExecOptions(in *management.PodExecOptions, out *PodExecOptions, s conversion.Scope) error { + return autoConvert_management_PodExecOptions_To_v1_PodExecOptions(in, out, s) } -func autoConvert_url_Values_To_v1_DevPodUpOptions(in *url.Values, out *DevPodUpOptions, s conversion.Scope) error { +func autoConvert_url_Values_To_v1_PodExecOptions(in *url.Values, out *PodExecOptions, s conversion.Scope) error { // WARNING: Field TypeMeta does not have json tag, skipping. - if values, ok := map[string][]string(*in)["webMode"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.WebMode, s); err != nil { + if values, ok := map[string][]string(*in)["stdin"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_bool(&values, &out.Stdin, s); err != nil { + return err + } + } else { + out.Stdin = false + } + if values, ok := map[string][]string(*in)["stdout"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_bool(&values, &out.Stdout, s); err != nil { return err } } else { - out.WebMode = false + out.Stdout = 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 { + if values, ok := map[string][]string(*in)["stderr"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_bool(&values, &out.Stderr, s); err != nil { return err } } else { - out.CLIMode = false + out.Stderr = 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 { + if values, ok := map[string][]string(*in)["tty"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_bool(&values, &out.TTY, s); err != nil { return err } } else { - out.Debug = false + out.TTY = 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 { + 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.Options = "" + out.Container = "" + } + if values, ok := map[string][]string(*in)["command"]; ok && len(values) > 0 { + out.Command = *(*[]string)(unsafe.Pointer(&values)) + } else { + out.Command = nil } return nil } -// Convert_url_Values_To_v1_DevPodUpOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodUpOptions(in *url.Values, out *DevPodUpOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodUpOptions(in, out, s) +// Convert_url_Values_To_v1_PodExecOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_PodExecOptions(in *url.Values, out *PodExecOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_PodExecOptions(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_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_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_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_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_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_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_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_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance, out *management.DevPodWorkspaceInstance, s conversion.Scope) error { +func autoConvert_v1_Project_To_management_Project(in *Project, out *management.Project, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_ProjectSpec_To_management_ProjectSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_ProjectStatus_To_management_ProjectStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance, out *management.DevPodWorkspaceInstance, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in, out, s) +// Convert_v1_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_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in *management.DevPodWorkspaceInstance, out *DevPodWorkspaceInstance, 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_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(&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_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(&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_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in *management.DevPodWorkspaceInstance, out *DevPodWorkspaceInstance, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in, out, s) -} - -func autoConvert_v1_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)) - 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) -} - -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)) - 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) -} - -func autoConvert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in *DevPodWorkspaceInstanceSpec, out *management.DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in *DevPodWorkspaceInstanceSpec, out *management.DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec - return nil -} - -// Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceState_To_management_DevPodWorkspaceInstanceState(in *DevPodWorkspaceInstanceState, out *management.DevPodWorkspaceInstanceState, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.State = in.State - 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) -} - -func autoConvert_management_DevPodWorkspaceInstanceState_To_v1_DevPodWorkspaceInstanceState(in *management.DevPodWorkspaceInstanceState, out *DevPodWorkspaceInstanceState, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.State = in.State - 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) -} - -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)) - 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) -} - -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)) - 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) -} - -func autoConvert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in *DevPodWorkspaceInstanceStatus, out *management.DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus - out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in *DevPodWorkspaceInstanceStatus, out *management.DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in *management.DevPodWorkspaceInstanceStatus, out *DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus - out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) - return nil -} - -// Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in *management.DevPodWorkspaceInstanceStatus, out *DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in, out, s) +// 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_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate, out *management.DevPodWorkspaceTemplate, s conversion.Scope) error { +func autoConvert_v1_ProjectChartInfo_To_management_ProjectChartInfo(in *ProjectChartInfo, out *management.ProjectChartInfo, 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_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(&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_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(&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_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_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate(in *management.DevPodWorkspaceTemplate, out *DevPodWorkspaceTemplate, s conversion.Scope) error { +func autoConvert_management_ProjectChartInfo_To_v1_ProjectChartInfo(in *management.ProjectChartInfo, out *ProjectChartInfo, 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_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(&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_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(&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_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_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList, out *management.DevPodWorkspaceTemplateList, 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.DevPodWorkspaceTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ProjectChartInfo)(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_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_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList(in *management.DevPodWorkspaceTemplateList, out *DevPodWorkspaceTemplateList, 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 = *(*[]DevPodWorkspaceTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ProjectChartInfo)(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_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_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(in *DevPodWorkspaceTemplateSpec, out *management.DevPodWorkspaceTemplateSpec, s conversion.Scope) error { - out.DevPodWorkspaceTemplateSpec = in.DevPodWorkspaceTemplateSpec +func autoConvert_v1_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(in *ProjectChartInfoSpec, out *management.ProjectChartInfoSpec, s conversion.Scope) error { + out.ChartInfoSpec = in.ChartInfoSpec 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_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_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(in *management.DevPodWorkspaceTemplateSpec, out *DevPodWorkspaceTemplateSpec, s conversion.Scope) error { - out.DevPodWorkspaceTemplateSpec = in.DevPodWorkspaceTemplateSpec +func autoConvert_management_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(in *management.ProjectChartInfoSpec, out *ProjectChartInfoSpec, s conversion.Scope) error { + out.ChartInfoSpec = in.ChartInfoSpec 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_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_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(in *DevPodWorkspaceTemplateStatus, out *management.DevPodWorkspaceTemplateStatus, s conversion.Scope) error { - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus +func autoConvert_v1_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(in *ProjectChartInfoStatus, out *management.ProjectChartInfoStatus, s conversion.Scope) error { + out.ChartInfoStatus = in.ChartInfoStatus 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_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_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(in *management.DevPodWorkspaceTemplateStatus, out *DevPodWorkspaceTemplateStatus, s conversion.Scope) error { - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus +func autoConvert_management_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(in *management.ProjectChartInfoStatus, out *ProjectChartInfoStatus, s conversion.Scope) error { + out.ChartInfoStatus = in.ChartInfoStatus 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_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_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken(in *DirectClusterEndpointToken, out *management.DirectClusterEndpointToken, 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_DirectClusterEndpointTokenSpec_To_management_DirectClusterEndpointTokenSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus(&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_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_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_DirectClusterEndpointToken_To_v1_DirectClusterEndpointToken(in *management.DirectClusterEndpointToken, out *DirectClusterEndpointToken, 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_DirectClusterEndpointTokenSpec_To_v1_DirectClusterEndpointTokenSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus(&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_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_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_DirectClusterEndpointTokenList_To_management_DirectClusterEndpointTokenList(in *DirectClusterEndpointTokenList, out *management.DirectClusterEndpointTokenList, 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.DirectClusterEndpointToken)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ProjectCharts)(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_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_DirectClusterEndpointTokenList_To_v1_DirectClusterEndpointTokenList(in *management.DirectClusterEndpointTokenList, out *DirectClusterEndpointTokenList, 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 = *(*[]DirectClusterEndpointToken)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ProjectCharts)(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_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_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_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_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_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_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_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_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_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_DirectClusterEndpointTokenStatus_To_management_DirectClusterEndpointTokenStatus(in *DirectClusterEndpointTokenStatus, out *management.DirectClusterEndpointTokenStatus, 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_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_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_DirectClusterEndpointTokenStatus_To_v1_DirectClusterEndpointTokenStatus(in *management.DirectClusterEndpointTokenStatus, out *DirectClusterEndpointTokenStatus, 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_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_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_Event_To_management_Event(in *Event, out *management.Event, 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_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 { + if err := Convert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(&in.SourceSpace, &out.SourceSpace, 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_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_Event_To_v1_Event(in *management.Event, out *Event, 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_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 { + if err := Convert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(&in.SourceSpace, &out.SourceSpace, 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_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_EventList_To_management_EventList(in *EventList, out *management.EventList, 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.Event)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ProjectImportSpace)(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_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_EventList_To_v1_EventList(in *management.EventList, out *EventList, 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 = *(*[]Event)(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) -} - -func autoConvert_v1_EventSpec_To_management_EventSpec(in *EventSpec, out *management.EventSpec, s conversion.Scope) error { - 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) -} - -func autoConvert_management_EventSpec_To_v1_EventSpec(in *management.EventSpec, out *EventSpec, s conversion.Scope) error { - 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) -} - -func autoConvert_v1_EventStatus_To_management_EventStatus(in *EventStatus, out *management.EventStatus, s conversion.Scope) error { - out.Event = in.Event - 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) -} - -func autoConvert_management_EventStatus_To_v1_EventStatus(in *management.EventStatus, out *EventStatus, s conversion.Scope) error { - out.Event = in.Event + out.Items = *(*[]ProjectImportSpace)(unsafe.Pointer(&in.Items)) 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_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_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 - } +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_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_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_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 - } +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_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_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_FeatureList_To_management_FeatureList(in *FeatureList, out *management.FeatureList, 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.Feature)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.Project)(unsafe.Pointer(&in.Items)) 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_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_FeatureList_To_v1_FeatureList(in *management.FeatureList, out *FeatureList, 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 = *(*[]Feature)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]Project)(unsafe.Pointer(&in.Items)) 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_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_FeatureSpec_To_management_FeatureSpec(in *FeatureSpec, out *management.FeatureSpec, 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_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_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_FeatureSpec_To_v1_FeatureSpec(in *management.FeatureSpec, out *FeatureSpec, s conversion.Scope) error { +func autoConvert_management_ProjectMember_To_v1_ProjectMember(in *management.ProjectMember, out *ProjectMember, s conversion.Scope) error { + out.Info = in.Info 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_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_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_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)) 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_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_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_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)) 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_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_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_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)) 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_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_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_ProjectMembersList_To_v1_ProjectMembersList(in *management.ProjectMembersList, out *ProjectMembersList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ProjectMembers)(unsafe.Pointer(&in.Items)) 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_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_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 { +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_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus(&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_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_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_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 { +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_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus(&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_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_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_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)) +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_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_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_IngressAuthTokenList_To_v1_IngressAuthTokenList(in *management.IngressAuthTokenList, out *IngressAuthTokenList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]IngressAuthToken)(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_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_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_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec(in *IngressAuthTokenSpec, out *management.IngressAuthTokenSpec, s conversion.Scope) error { - out.Host = in.Host - out.Signature = in.Signature +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_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_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_IngressAuthTokenSpec_To_v1_IngressAuthTokenSpec(in *management.IngressAuthTokenSpec, out *IngressAuthTokenSpec, s conversion.Scope) error { - out.Host = in.Host - out.Signature = in.Signature +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_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_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_IngressAuthTokenStatus_To_management_IngressAuthTokenStatus(in *IngressAuthTokenStatus, out *management.IngressAuthTokenStatus, s conversion.Scope) error { - out.Token = in.Token +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_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_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_IngressAuthTokenStatus_To_v1_IngressAuthTokenStatus(in *management.IngressAuthTokenStatus, out *IngressAuthTokenStatus, s conversion.Scope) error { - out.Token = in.Token +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_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_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_Kiosk_To_management_Kiosk(in *Kiosk, out *management.Kiosk, 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_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_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource(&in.SourceVirtualClusterInstance, &out.SourceVirtualClusterInstance, 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_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_Kiosk_To_v1_Kiosk(in *management.Kiosk, out *Kiosk, 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_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_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(&in.SourceVirtualClusterInstance, &out.SourceVirtualClusterInstance, 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_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_KioskList_To_management_KioskList(in *KioskList, out *management.KioskList, s conversion.Scope) error { +func autoConvert_v1_ProjectMigrateVirtualClusterInstanceList_To_management_ProjectMigrateVirtualClusterInstanceList(in *ProjectMigrateVirtualClusterInstanceList, out *management.ProjectMigrateVirtualClusterInstanceList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.Kiosk)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ProjectMigrateVirtualClusterInstance)(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_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_KioskList_To_v1_KioskList(in *management.KioskList, out *KioskList, s conversion.Scope) error { +func autoConvert_management_ProjectMigrateVirtualClusterInstanceList_To_v1_ProjectMigrateVirtualClusterInstanceList(in *management.ProjectMigrateVirtualClusterInstanceList, out *ProjectMigrateVirtualClusterInstanceList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]Kiosk)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ProjectMigrateVirtualClusterInstance)(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_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_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_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_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_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_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_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)) + out.OSImages = *(*[]storagev1.OSImage)(unsafe.Pointer(&in.OSImages)) + return nil +} + +// 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_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)) + out.OSImages = *(*[]storagev1.OSImage)(unsafe.Pointer(&in.OSImages)) + return nil +} + +// 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_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_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_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_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_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_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_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_KioskStatus_To_management_KioskStatus(in *KioskStatus, out *management.KioskStatus, s conversion.Scope) error { +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_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_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_KioskStatus_To_v1_KioskStatus(in *management.KioskStatus, out *KioskStatus, s conversion.Scope) error { +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_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_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_License_To_management_License(in *License, out *management.License, 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_LicenseSpec_To_management_LicenseSpec(&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_LicenseStatus_To_management_LicenseStatus(&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_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_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_License_To_v1_License(in *management.License, out *License, 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_LicenseSpec_To_v1_LicenseSpec(&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_LicenseStatus_To_v1_LicenseStatus(&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_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_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_LicenseList_To_management_LicenseList(in *LicenseList, out *management.LicenseList, 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.License)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ProjectSecret)(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_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_LicenseList_To_v1_LicenseList(in *management.LicenseList, out *LicenseList, s conversion.Scope) error { +func autoConvert_management_ProjectSecretList_To_v1_ProjectSecretList(in *management.ProjectSecretList, out *ProjectSecretList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]License)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]ProjectSecret)(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_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_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 - } +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_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_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_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 - } +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_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_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_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_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_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_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_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_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_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_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_LicenseRequestSpec_To_management_LicenseRequestSpec(in *LicenseRequestSpec, out *management.LicenseRequestSpec, s conversion.Scope) error { - out.URL = in.URL - out.Input = in.Input +func autoConvert_v1_ProjectSpec_To_management_ProjectSpec(in *ProjectSpec, out *management.ProjectSpec, s conversion.Scope) error { + out.ProjectSpec = in.ProjectSpec 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_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_LicenseRequestSpec_To_v1_LicenseRequestSpec(in *management.LicenseRequestSpec, out *LicenseRequestSpec, s conversion.Scope) error { - out.URL = in.URL - out.Input = in.Input +func autoConvert_management_ProjectSpec_To_v1_ProjectSpec(in *management.ProjectSpec, out *ProjectSpec, s conversion.Scope) error { + out.ProjectSpec = in.ProjectSpec 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_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_LicenseRequestStatus_To_management_LicenseRequestStatus(in *LicenseRequestStatus, out *management.LicenseRequestStatus, s conversion.Scope) error { - out.Output = (*licenseapi.GenericRequestOutput)(unsafe.Pointer(in.Output)) +func autoConvert_v1_ProjectStatus_To_management_ProjectStatus(in *ProjectStatus, out *management.ProjectStatus, s conversion.Scope) error { + out.ProjectStatus = in.ProjectStatus 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_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_LicenseRequestStatus_To_v1_LicenseRequestStatus(in *management.LicenseRequestStatus, out *LicenseRequestStatus, s conversion.Scope) error { - out.Output = (*licenseapi.GenericRequestOutput)(unsafe.Pointer(in.Output)) +func autoConvert_management_ProjectStatus_To_v1_ProjectStatus(in *management.ProjectStatus, out *ProjectStatus, s conversion.Scope) error { + out.ProjectStatus = in.ProjectStatus 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_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_LicenseSpec_To_management_LicenseSpec(in *LicenseSpec, out *management.LicenseSpec, s conversion.Scope) error { +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)) 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_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_LicenseSpec_To_v1_LicenseSpec(in *management.LicenseSpec, out *LicenseSpec, s conversion.Scope) error { +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)) 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_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_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_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)) 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_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_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_ProjectTemplatesList_To_v1_ProjectTemplatesList(in *management.ProjectTemplatesList, out *ProjectTemplatesList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]ProjectTemplates)(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_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_LicenseToken_To_management_LicenseToken(in *LicenseToken, out *management.LicenseToken, s conversion.Scope) error { +func autoConvert_v1_RedirectToken_To_management_RedirectToken(in *RedirectToken, out *management.RedirectToken, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_LicenseTokenSpec_To_management_LicenseTokenSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_LicenseTokenStatus_To_management_LicenseTokenStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus(&in.Status, &out.Status, s); err != nil { return err } 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_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_LicenseToken_To_v1_LicenseToken(in *management.LicenseToken, out *LicenseToken, s conversion.Scope) error { +func autoConvert_management_RedirectToken_To_v1_RedirectToken(in *management.RedirectToken, out *RedirectToken, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_LicenseTokenSpec_To_v1_LicenseTokenSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_LicenseTokenStatus_To_v1_LicenseTokenStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus(&in.Status, &out.Status, s); err != nil { return err } 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_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_LicenseTokenList_To_management_LicenseTokenList(in *LicenseTokenList, out *management.LicenseTokenList, 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.LicenseToken)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.RedirectToken)(unsafe.Pointer(&in.Items)) 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_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_LicenseTokenList_To_v1_LicenseTokenList(in *management.LicenseTokenList, out *LicenseTokenList, 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 = *(*[]LicenseToken)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]RedirectToken)(unsafe.Pointer(&in.Items)) 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_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_LicenseTokenSpec_To_management_LicenseTokenSpec(in *LicenseTokenSpec, out *management.LicenseTokenSpec, s conversion.Scope) error { - out.URL = in.URL - out.Payload = in.Payload +func autoConvert_v1_RedirectTokenSpec_To_management_RedirectTokenSpec(in *RedirectTokenSpec, out *management.RedirectTokenSpec, s conversion.Scope) error { + out.Token = in.Token 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_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_LicenseTokenSpec_To_v1_LicenseTokenSpec(in *management.LicenseTokenSpec, out *LicenseTokenSpec, s conversion.Scope) error { - out.URL = in.URL - out.Payload = in.Payload +func autoConvert_management_RedirectTokenSpec_To_v1_RedirectTokenSpec(in *management.RedirectTokenSpec, out *RedirectTokenSpec, s conversion.Scope) error { + out.Token = in.Token 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_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_LicenseTokenStatus_To_management_LicenseTokenStatus(in *LicenseTokenStatus, out *management.LicenseTokenStatus, s conversion.Scope) error { - out.Token = (*licenseapi.InstanceTokenAuth)(unsafe.Pointer(in.Token)) +func autoConvert_v1_RedirectTokenStatus_To_management_RedirectTokenStatus(in *RedirectTokenStatus, out *management.RedirectTokenStatus, s conversion.Scope) error { + out.RedirectURL = in.RedirectURL 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_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_LicenseTokenStatus_To_v1_LicenseTokenStatus(in *management.LicenseTokenStatus, out *LicenseTokenStatus, s conversion.Scope) error { - out.Token = (*licenseapi.InstanceTokenAuth)(unsafe.Pointer(in.Token)) +func autoConvert_management_RedirectTokenStatus_To_v1_RedirectTokenStatus(in *management.RedirectTokenStatus, out *RedirectTokenStatus, s conversion.Scope) error { + out.RedirectURL = in.RedirectURL 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_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_LoftUpgrade_To_management_LoftUpgrade(in *LoftUpgrade, out *management.LoftUpgrade, s conversion.Scope) error { +func autoConvert_v1_RegisterVirtualCluster_To_management_RegisterVirtualCluster(in *RegisterVirtualCluster, out *management.RegisterVirtualCluster, 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_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec(&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_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(&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_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_LoftUpgrade_To_v1_LoftUpgrade(in *management.LoftUpgrade, out *LoftUpgrade, s conversion.Scope) error { +func autoConvert_management_RegisterVirtualCluster_To_v1_RegisterVirtualCluster(in *management.RegisterVirtualCluster, out *RegisterVirtualCluster, 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_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec(&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_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(&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_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_LoftUpgradeList_To_management_LoftUpgradeList(in *LoftUpgradeList, out *management.LoftUpgradeList, s conversion.Scope) error { +func autoConvert_v1_RegisterVirtualClusterList_To_management_RegisterVirtualClusterList(in *RegisterVirtualClusterList, out *management.RegisterVirtualClusterList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.LoftUpgrade)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.RegisterVirtualCluster)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_LoftUpgradeList_To_management_LoftUpgradeList is an autogenerated conversion function. -func Convert_v1_LoftUpgradeList_To_management_LoftUpgradeList(in *LoftUpgradeList, out *management.LoftUpgradeList, s conversion.Scope) error { - return autoConvert_v1_LoftUpgradeList_To_management_LoftUpgradeList(in, out, s) +// Convert_v1_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_LoftUpgradeList_To_v1_LoftUpgradeList(in *management.LoftUpgradeList, out *LoftUpgradeList, s conversion.Scope) error { +func autoConvert_management_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterList(in *management.RegisterVirtualClusterList, out *RegisterVirtualClusterList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]LoftUpgrade)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]RegisterVirtualCluster)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_LoftUpgradeList_To_v1_LoftUpgradeList is an autogenerated conversion function. -func Convert_management_LoftUpgradeList_To_v1_LoftUpgradeList(in *management.LoftUpgradeList, out *LoftUpgradeList, s conversion.Scope) error { - return autoConvert_management_LoftUpgradeList_To_v1_LoftUpgradeList(in, out, s) +// Convert_management_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_LoftUpgradeSpec_To_management_LoftUpgradeSpec(in *LoftUpgradeSpec, out *management.LoftUpgradeSpec, s conversion.Scope) error { - out.Namespace = in.Namespace - out.Release = in.Release +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.Version = in.Version + out.Values = in.Values + out.Standalone = (*bool)(unsafe.Pointer(in.Standalone)) 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_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_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(in *management.LoftUpgradeSpec, out *LoftUpgradeSpec, s conversion.Scope) error { - out.Namespace = in.Namespace - out.Release = in.Release +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.Version = in.Version + out.Values = in.Values + out.Standalone = (*bool)(unsafe.Pointer(in.Standalone)) return nil } -// Convert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec is an autogenerated conversion function. -func Convert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(in *management.LoftUpgradeSpec, out *LoftUpgradeSpec, s conversion.Scope) error { - return autoConvert_management_LoftUpgradeSpec_To_v1_LoftUpgradeSpec(in, out, s) -} - -func autoConvert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in *LoftUpgradeStatus, out *management.LoftUpgradeStatus, s conversion.Scope) error { - return nil -} - -// Convert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus is an autogenerated conversion function. -func Convert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in *LoftUpgradeStatus, out *management.LoftUpgradeStatus, s conversion.Scope) error { - return autoConvert_v1_LoftUpgradeStatus_To_management_LoftUpgradeStatus(in, out, s) -} - -func autoConvert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in *management.LoftUpgradeStatus, out *LoftUpgradeStatus, s conversion.Scope) error { - return nil -} - -// Convert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus is an autogenerated conversion function. -func Convert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in *management.LoftUpgradeStatus, out *LoftUpgradeStatus, s conversion.Scope) error { - return autoConvert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in, out, s) +// 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_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_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_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_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_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_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_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_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_OIDCClient_To_management_OIDCClient(in *OIDCClient, out *management.OIDCClient, 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_OIDCClientSpec_To_management_OIDCClientSpec(&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_OIDCClientStatus_To_management_OIDCClientStatus(&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_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_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_OIDCClient_To_v1_OIDCClient(in *management.OIDCClient, out *OIDCClient, 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_OIDCClientSpec_To_v1_OIDCClientSpec(&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_OIDCClientStatus_To_v1_OIDCClientStatus(&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_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_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_OIDCClientList_To_management_OIDCClientList(in *OIDCClientList, out *management.OIDCClientList, 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.OIDCClient)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.ResetAccessKey)(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_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_OIDCClientList_To_v1_OIDCClientList(in *management.OIDCClientList, out *OIDCClientList, 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 = *(*[]OIDCClient)(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) -} - -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)) + out.Items = *(*[]ResetAccessKey)(unsafe.Pointer(&in.Items)) 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_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_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_v1_ResetAccessKeySpec_To_management_ResetAccessKeySpec(in *ResetAccessKeySpec, out *management.ResetAccessKeySpec, s conversion.Scope) error { + out.AccessKeySpec = in.AccessKeySpec 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_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_v1_OIDCClientStatus_To_management_OIDCClientStatus(in *OIDCClientStatus, out *management.OIDCClientStatus, s conversion.Scope) error { +func autoConvert_management_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(in *management.ResetAccessKeySpec, out *ResetAccessKeySpec, s conversion.Scope) error { + out.AccessKeySpec = in.AccessKeySpec 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_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_management_OIDCClientStatus_To_v1_OIDCClientStatus(in *management.OIDCClientStatus, out *OIDCClientStatus, s conversion.Scope) error { +func autoConvert_v1_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(in *ResetAccessKeyStatus, out *management.ResetAccessKeyStatus, s conversion.Scope) error { + out.AccessKeyStatus = in.AccessKeyStatus 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_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_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_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(in *management.ResetAccessKeyStatus, out *ResetAccessKeyStatus, s conversion.Scope) error { + out.AccessKeyStatus = in.AccessKeyStatus 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_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_management_OwnedAccessKey_To_v1_OwnedAccessKey(in *management.OwnedAccessKey, out *OwnedAccessKey, s conversion.Scope) error { +func autoConvert_v1_SSHKey_To_management_SSHKey(in *SSHKey, out *management.SSHKey, 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 { + if err := Convert_v1_SSHKeySpec_To_management_SSHKeySpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_SSHKeyStatus_To_management_SSHKeyStatus(&in.Status, &out.Status, s); err != nil { return err } 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) -} - -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)) - 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_SSHKey_To_management_SSHKey is an autogenerated conversion function. +func Convert_v1_SSHKey_To_management_SSHKey(in *SSHKey, out *management.SSHKey, s conversion.Scope) error { + return autoConvert_v1_SSHKey_To_management_SSHKey(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_SSHKey_To_v1_SSHKey(in *management.SSHKey, out *SSHKey, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_SSHKeySpec_To_v1_SSHKeySpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_SSHKeyStatus_To_v1_SSHKeyStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_SSHKey_To_v1_SSHKey is an autogenerated conversion function. +func Convert_management_SSHKey_To_v1_SSHKey(in *management.SSHKey, out *SSHKey, s conversion.Scope) error { + return autoConvert_management_SSHKey_To_v1_SSHKey(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_SSHKeyList_To_management_SSHKeyList(in *SSHKeyList, out *management.SSHKeyList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.SSHKey)(unsafe.Pointer(&in.Items)) 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_SSHKeyList_To_management_SSHKeyList is an autogenerated conversion function. +func Convert_v1_SSHKeyList_To_management_SSHKeyList(in *SSHKeyList, out *management.SSHKeyList, s conversion.Scope) error { + return autoConvert_v1_SSHKeyList_To_management_SSHKeyList(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_SSHKeyList_To_v1_SSHKeyList(in *management.SSHKeyList, out *SSHKeyList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]SSHKey)(unsafe.Pointer(&in.Items)) 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_SSHKeyList_To_v1_SSHKeyList is an autogenerated conversion function. +func Convert_management_SSHKeyList_To_v1_SSHKeyList(in *management.SSHKeyList, out *SSHKeyList, s conversion.Scope) error { + return autoConvert_management_SSHKeyList_To_v1_SSHKeyList(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_SSHKeySpec_To_management_SSHKeySpec(in *SSHKeySpec, out *management.SSHKeySpec, s conversion.Scope) error { + out.SSHKeySpec = in.SSHKeySpec 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_SSHKeySpec_To_management_SSHKeySpec is an autogenerated conversion function. +func Convert_v1_SSHKeySpec_To_management_SSHKeySpec(in *SSHKeySpec, out *management.SSHKeySpec, s conversion.Scope) error { + return autoConvert_v1_SSHKeySpec_To_management_SSHKeySpec(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_SSHKeySpec_To_v1_SSHKeySpec(in *management.SSHKeySpec, out *SSHKeySpec, s conversion.Scope) error { + out.SSHKeySpec = in.SSHKeySpec 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_SSHKeySpec_To_v1_SSHKeySpec is an autogenerated conversion function. +func Convert_management_SSHKeySpec_To_v1_SSHKeySpec(in *management.SSHKeySpec, out *SSHKeySpec, s conversion.Scope) error { + return autoConvert_management_SSHKeySpec_To_v1_SSHKeySpec(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 +func autoConvert_v1_SSHKeyStatus_To_management_SSHKeyStatus(in *SSHKeyStatus, out *management.SSHKeyStatus, s conversion.Scope) error { + out.SSHKeyStatus = in.SSHKeyStatus 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_SSHKeyStatus_To_management_SSHKeyStatus is an autogenerated conversion function. +func Convert_v1_SSHKeyStatus_To_management_SSHKeyStatus(in *SSHKeyStatus, out *management.SSHKeyStatus, s conversion.Scope) error { + return autoConvert_v1_SSHKeyStatus_To_management_SSHKeyStatus(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 +func autoConvert_management_SSHKeyStatus_To_v1_SSHKeyStatus(in *management.SSHKeyStatus, out *SSHKeyStatus, s conversion.Scope) error { + out.SSHKeyStatus = in.SSHKeyStatus 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_SSHKeyStatus_To_v1_SSHKeyStatus is an autogenerated conversion function. +func Convert_management_SSHKeyStatus_To_v1_SSHKeyStatus(in *management.SSHKeyStatus, out *SSHKeyStatus, s conversion.Scope) error { + return autoConvert_management_SSHKeyStatus_To_v1_SSHKeyStatus(in, out, s) } -func autoConvert_v1_Project_To_management_Project(in *Project, out *management.Project, s conversion.Scope) error { +func autoConvert_v1_Self_To_management_Self(in *Self, out *management.Self, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ProjectSpec_To_management_ProjectSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_SelfSpec_To_management_SelfSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_ProjectStatus_To_management_ProjectStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_SelfStatus_To_management_SelfStatus(&in.Status, &out.Status, s); err != nil { return err } 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_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_Project_To_v1_Project(in *management.Project, out *Project, s conversion.Scope) error { +func autoConvert_management_Self_To_v1_Self(in *management.Self, out *Self, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ProjectSpec_To_v1_ProjectSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_SelfSpec_To_v1_SelfSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_ProjectStatus_To_v1_ProjectStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_SelfStatus_To_v1_SelfStatus(&in.Status, &out.Status, s); err != nil { return err } 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_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_ProjectChartInfo_To_management_ProjectChartInfo(in *ProjectChartInfo, out *management.ProjectChartInfo, 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.Self)(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) +} + +func autoConvert_management_SelfList_To_v1_SelfList(in *management.SelfList, out *SelfList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]Self)(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) +} + +func autoConvert_v1_SelfSpec_To_management_SelfSpec(in *SelfSpec, out *management.SelfSpec, s conversion.Scope) error { + out.AccessKey = in.AccessKey + 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) +} + +func autoConvert_management_SelfSpec_To_v1_SelfSpec(in *management.SelfSpec, out *SelfSpec, s conversion.Scope) error { + out.AccessKey = in.AccessKey + 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) +} + +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_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_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_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_SelfSubjectAccessReview_To_management_SelfSubjectAccessReview(in *SelfSubjectAccessReview, out *management.SelfSubjectAccessReview, 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_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(&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_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(&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_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_ProjectChartInfo_To_v1_ProjectChartInfo(in *management.ProjectChartInfo, out *ProjectChartInfo, 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_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(&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_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(&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_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_ProjectChartInfoList_To_management_ProjectChartInfoList(in *ProjectChartInfoList, out *management.ProjectChartInfoList, 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.ProjectChartInfo)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.SelfSubjectAccessReview)(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_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_ProjectChartInfoList_To_v1_ProjectChartInfoList(in *management.ProjectChartInfoList, out *ProjectChartInfoList, 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 = *(*[]ProjectChartInfo)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]SelfSubjectAccessReview)(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_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_ProjectChartInfoSpec_To_management_ProjectChartInfoSpec(in *ProjectChartInfoSpec, out *management.ProjectChartInfoSpec, s conversion.Scope) error { - out.ChartInfoSpec = in.ChartInfoSpec +func autoConvert_v1_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(in *SelfSubjectAccessReviewSpec, out *management.SelfSubjectAccessReviewSpec, s conversion.Scope) error { + out.SelfSubjectAccessReviewSpec = in.SelfSubjectAccessReviewSpec 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_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_ProjectChartInfoSpec_To_v1_ProjectChartInfoSpec(in *management.ProjectChartInfoSpec, out *ProjectChartInfoSpec, s conversion.Scope) error { - out.ChartInfoSpec = in.ChartInfoSpec +func autoConvert_management_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(in *management.SelfSubjectAccessReviewSpec, out *SelfSubjectAccessReviewSpec, s conversion.Scope) error { + out.SelfSubjectAccessReviewSpec = in.SelfSubjectAccessReviewSpec 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_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_ProjectChartInfoStatus_To_management_ProjectChartInfoStatus(in *ProjectChartInfoStatus, out *management.ProjectChartInfoStatus, s conversion.Scope) error { - out.ChartInfoStatus = in.ChartInfoStatus +func autoConvert_v1_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(in *SelfSubjectAccessReviewStatus, out *management.SelfSubjectAccessReviewStatus, s conversion.Scope) error { + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus 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_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_ProjectChartInfoStatus_To_v1_ProjectChartInfoStatus(in *management.ProjectChartInfoStatus, out *ProjectChartInfoStatus, s conversion.Scope) error { - out.ChartInfoStatus = in.ChartInfoStatus +func autoConvert_management_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(in *management.SelfSubjectAccessReviewStatus, out *SelfSubjectAccessReviewStatus, s conversion.Scope) error { + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus 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_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_ProjectCharts_To_management_ProjectCharts(in *ProjectCharts, out *management.ProjectCharts, s conversion.Scope) error { +func autoConvert_v1_SharedSecret_To_management_SharedSecret(in *SharedSecret, out *management.SharedSecret, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Charts = *(*[]storagev1.HelmChart)(unsafe.Pointer(&in.Charts)) - out.Busy = in.Busy + 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_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_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_ProjectCharts_To_v1_ProjectCharts(in *management.ProjectCharts, out *ProjectCharts, s conversion.Scope) error { +func autoConvert_management_SharedSecret_To_v1_SharedSecret(in *management.SharedSecret, out *SharedSecret, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Charts = *(*[]storagev1.HelmChart)(unsafe.Pointer(&in.Charts)) - out.Busy = in.Busy + 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_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_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_ProjectChartsList_To_management_ProjectChartsList(in *ProjectChartsList, out *management.ProjectChartsList, s conversion.Scope) error { +func autoConvert_v1_SharedSecretList_To_management_SharedSecretList(in *SharedSecretList, out *management.SharedSecretList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectCharts)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.SharedSecret)(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_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_ProjectChartsList_To_v1_ProjectChartsList(in *management.ProjectChartsList, out *ProjectChartsList, s conversion.Scope) error { +func autoConvert_management_SharedSecretList_To_v1_SharedSecretList(in *management.SharedSecretList, out *SharedSecretList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectCharts)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]SharedSecret)(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_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_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_SharedSecretSpec_To_management_SharedSecretSpec(in *SharedSecretSpec, out *management.SharedSecretSpec, s conversion.Scope) error { + out.SharedSecretSpec = in.SharedSecretSpec 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_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_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_SharedSecretSpec_To_v1_SharedSecretSpec(in *management.SharedSecretSpec, out *SharedSecretSpec, s conversion.Scope) error { + out.SharedSecretSpec = in.SharedSecretSpec 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_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_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_SharedSecretStatus_To_management_SharedSecretStatus(in *SharedSecretStatus, out *management.SharedSecretStatus, s conversion.Scope) error { + out.SharedSecretStatus = in.SharedSecretStatus 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_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_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_SharedSecretStatus_To_v1_SharedSecretStatus(in *management.SharedSecretStatus, out *SharedSecretStatus, s conversion.Scope) error { + out.SharedSecretStatus = in.SharedSecretStatus 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_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_ProjectImportSpace_To_management_ProjectImportSpace(in *ProjectImportSpace, out *management.ProjectImportSpace, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(&in.SourceSpace, &out.SourceSpace, 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_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_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_ProjectImportSpace_To_v1_ProjectImportSpace(in *management.ProjectImportSpace, out *ProjectImportSpace, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(&in.SourceSpace, &out.SourceSpace, 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_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_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_ProjectImportSpaceList_To_management_ProjectImportSpaceList(in *ProjectImportSpaceList, out *management.ProjectImportSpaceList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectImportSpace)(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_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_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_ProjectImportSpaceList_To_v1_ProjectImportSpaceList(in *management.ProjectImportSpaceList, out *ProjectImportSpaceList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectImportSpace)(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_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_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_ProjectImportSpaceSource_To_management_ProjectImportSpaceSource(in *ProjectImportSpaceSource, out *management.ProjectImportSpaceSource, 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.Cluster = in.Cluster - out.ImportName = in.ImportName + out.CreationTimestamp = in.CreationTimestamp 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_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_ProjectImportSpaceSource_To_v1_ProjectImportSpaceSource(in *management.ProjectImportSpaceSource, out *ProjectImportSpaceSource, 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.Cluster = in.Cluster - out.ImportName = in.ImportName + out.CreationTimestamp = in.CreationTimestamp 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_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_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_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_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_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_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_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_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_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_ProjectMember_To_management_ProjectMember(in *ProjectMember, out *management.ProjectMember, s conversion.Scope) error { - out.Info = in.Info +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_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_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_ProjectMember_To_v1_ProjectMember(in *management.ProjectMember, out *ProjectMember, s conversion.Scope) error { - out.Info = in.Info +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_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_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_ProjectMembers_To_management_ProjectMembers(in *ProjectMembers, out *management.ProjectMembers, s conversion.Scope) error { +func autoConvert_v1_SpaceInstance_To_management_SpaceInstance(in *SpaceInstance, out *management.SpaceInstance, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Teams = *(*[]management.ProjectMember)(unsafe.Pointer(&in.Teams)) - out.Users = *(*[]management.ProjectMember)(unsafe.Pointer(&in.Users)) + 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_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_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_ProjectMembers_To_v1_ProjectMembers(in *management.ProjectMembers, out *ProjectMembers, s conversion.Scope) error { +func autoConvert_management_SpaceInstance_To_v1_SpaceInstance(in *management.SpaceInstance, out *SpaceInstance, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Teams = *(*[]ProjectMember)(unsafe.Pointer(&in.Teams)) - out.Users = *(*[]ProjectMember)(unsafe.Pointer(&in.Users)) + 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_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_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_ProjectMembersList_To_management_ProjectMembersList(in *ProjectMembersList, out *management.ProjectMembersList, s conversion.Scope) error { +func autoConvert_v1_SpaceInstanceList_To_management_SpaceInstanceList(in *SpaceInstanceList, out *management.SpaceInstanceList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectMembers)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.SpaceInstance)(unsafe.Pointer(&in.Items)) 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_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_ProjectMembersList_To_v1_ProjectMembersList(in *management.ProjectMembersList, out *ProjectMembersList, s conversion.Scope) error { +func autoConvert_management_SpaceInstanceList_To_v1_SpaceInstanceList(in *management.SpaceInstanceList, out *SpaceInstanceList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectMembers)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]SpaceInstance)(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) +} + +func autoConvert_v1_SpaceInstanceSpec_To_management_SpaceInstanceSpec(in *SpaceInstanceSpec, out *management.SpaceInstanceSpec, s conversion.Scope) error { + out.SpaceInstanceSpec = in.SpaceInstanceSpec + 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) +} + +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_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_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_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_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_ProjectMigrateSpaceInstance_To_management_ProjectMigrateSpaceInstance(in *ProjectMigrateSpaceInstance, out *management.ProjectMigrateSpaceInstance, s conversion.Scope) error { +func autoConvert_v1_SpaceTemplate_To_management_SpaceTemplate(in *SpaceTemplate, out *management.SpaceTemplate, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource(&in.SourceSpaceInstance, &out.SourceSpaceInstance, s); err != nil { + 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 } 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_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_ProjectMigrateSpaceInstance_To_v1_ProjectMigrateSpaceInstance(in *management.ProjectMigrateSpaceInstance, out *ProjectMigrateSpaceInstance, 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_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource(&in.SourceSpaceInstance, &out.SourceSpaceInstance, s); err != nil { + 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 } 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_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_ProjectMigrateSpaceInstanceList_To_management_ProjectMigrateSpaceInstanceList(in *ProjectMigrateSpaceInstanceList, out *management.ProjectMigrateSpaceInstanceList, 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.ProjectMigrateSpaceInstance)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.SpaceTemplate)(unsafe.Pointer(&in.Items)) 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_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_ProjectMigrateSpaceInstanceList_To_v1_ProjectMigrateSpaceInstanceList(in *management.ProjectMigrateSpaceInstanceList, out *ProjectMigrateSpaceInstanceList, 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 = *(*[]ProjectMigrateSpaceInstance)(unsafe.Pointer(&in.Items)) - 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) -} - -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_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_ProjectMigrateSpaceInstanceSource_To_v1_ProjectMigrateSpaceInstanceSource(in *management.ProjectMigrateSpaceInstanceSource, out *ProjectMigrateSpaceInstanceSource, s conversion.Scope) error { - out.Name = in.Name - out.Namespace = in.Namespace + out.Items = *(*[]SpaceTemplate)(unsafe.Pointer(&in.Items)) 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_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_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 - } +func autoConvert_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec(in *SpaceTemplateSpec, out *management.SpaceTemplateSpec, s conversion.Scope) error { + out.SpaceTemplateSpec = in.SpaceTemplateSpec 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_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_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 - } +func autoConvert_management_SpaceTemplateSpec_To_v1_SpaceTemplateSpec(in *management.SpaceTemplateSpec, out *SpaceTemplateSpec, s conversion.Scope) error { + out.SpaceTemplateSpec = in.SpaceTemplateSpec 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_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_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_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_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_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_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_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_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_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_ProjectMigrateVirtualClusterInstanceSource_To_management_ProjectMigrateVirtualClusterInstanceSource(in *ProjectMigrateVirtualClusterInstanceSource, out *management.ProjectMigrateVirtualClusterInstanceSource, s conversion.Scope) error { +func autoConvert_v1_StandaloneEtcdPeer_To_management_StandaloneEtcdPeer(in *StandaloneEtcdPeer, out *management.StandaloneEtcdPeer, s conversion.Scope) error { out.Name = in.Name - out.Namespace = in.Namespace + out.NodeClaim = in.NodeClaim + out.Address = in.Address 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_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_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(in *management.ProjectMigrateVirtualClusterInstanceSource, out *ProjectMigrateVirtualClusterInstanceSource, s conversion.Scope) error { +func autoConvert_management_StandaloneEtcdPeer_To_v1_StandaloneEtcdPeer(in *management.StandaloneEtcdPeer, out *StandaloneEtcdPeer, s conversion.Scope) error { out.Name = in.Name - out.Namespace = in.Namespace + out.NodeClaim = in.NodeClaim + out.Address = in.Address 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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_ProjectRunnersList_To_v1_ProjectRunnersList is an autogenerated conversion function. -func Convert_management_ProjectRunnersList_To_v1_ProjectRunnersList(in *management.ProjectRunnersList, out *ProjectRunnersList, s conversion.Scope) error { - return autoConvert_management_ProjectRunnersList_To_v1_ProjectRunnersList(in, out, s) +// Convert_management_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_ProjectSecret_To_management_ProjectSecret(in *ProjectSecret, out *management.ProjectSecret, 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_ProjectSecretSpec_To_management_ProjectSecretSpec(&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_ProjectSecretStatus_To_management_ProjectSecretStatus(&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_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_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_ProjectSecret_To_v1_ProjectSecret(in *management.ProjectSecret, out *ProjectSecret, 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_ProjectSecretSpec_To_v1_ProjectSecretSpec(&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_ProjectSecretStatus_To_v1_ProjectSecretStatus(&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_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_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_ProjectSecretList_To_management_ProjectSecretList(in *ProjectSecretList, out *management.ProjectSecretList, 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.ProjectSecret)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.SubjectAccessReview)(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_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_ProjectSecretList_To_v1_ProjectSecretList(in *management.ProjectSecretList, out *ProjectSecretList, 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 = *(*[]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)) + out.Items = *(*[]SubjectAccessReview)(unsafe.Pointer(&in.Items)) 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) +// 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_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)) +func autoConvert_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec(in *SubjectAccessReviewSpec, out *management.SubjectAccessReviewSpec, s conversion.Scope) error { + out.SubjectAccessReviewSpec = in.SubjectAccessReviewSpec 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_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_v1_ProjectSecretStatus_To_management_ProjectSecretStatus(in *ProjectSecretStatus, out *management.ProjectSecretStatus, s conversion.Scope) error { - out.Conditions = *(*loftstoragev1.Conditions)(unsafe.Pointer(&in.Conditions)) +func autoConvert_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec(in *management.SubjectAccessReviewSpec, out *SubjectAccessReviewSpec, s conversion.Scope) error { + out.SubjectAccessReviewSpec = in.SubjectAccessReviewSpec 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_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_management_ProjectSecretStatus_To_v1_ProjectSecretStatus(in *management.ProjectSecretStatus, out *ProjectSecretStatus, s conversion.Scope) error { - out.Conditions = *(*loftstoragev1.Conditions)(unsafe.Pointer(&in.Conditions)) +func autoConvert_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus(in *SubjectAccessReviewStatus, out *management.SubjectAccessReviewStatus, s conversion.Scope) error { + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus 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_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_v1_ProjectSpec_To_management_ProjectSpec(in *ProjectSpec, out *management.ProjectSpec, s conversion.Scope) error { - out.ProjectSpec = in.ProjectSpec +func autoConvert_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus(in *management.SubjectAccessReviewStatus, out *SubjectAccessReviewStatus, s conversion.Scope) error { + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus 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_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_management_ProjectSpec_To_v1_ProjectSpec(in *management.ProjectSpec, out *ProjectSpec, s conversion.Scope) error { - out.ProjectSpec = in.ProjectSpec +func autoConvert_v1_Task_To_management_Task(in *Task, out *management.Task, 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 + } 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_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_v1_ProjectStatus_To_management_ProjectStatus(in *ProjectStatus, out *management.ProjectStatus, s conversion.Scope) error { - out.ProjectStatus = in.ProjectStatus +func autoConvert_management_Task_To_v1_Task(in *management.Task, out *Task, 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 + } 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_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_management_ProjectStatus_To_v1_ProjectStatus(in *management.ProjectStatus, out *ProjectStatus, s conversion.Scope) error { - out.ProjectStatus = in.ProjectStatus +func autoConvert_v1_TaskList_To_management_TaskList(in *TaskList, out *management.TaskList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.Task)(unsafe.Pointer(&in.Items)) 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_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_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_management_TaskList_To_v1_TaskList(in *management.TaskList, out *TaskList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]Task)(unsafe.Pointer(&in.Items)) 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_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_ProjectTemplates_To_v1_ProjectTemplates(in *management.ProjectTemplates, out *ProjectTemplates, s conversion.Scope) error { +func autoConvert_v1_TaskLog_To_management_TaskLog(in *TaskLog, out *management.TaskLog, 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 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_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_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_management_TaskLog_To_v1_TaskLog(in *management.TaskLog, out *TaskLog, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta 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_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_ProjectTemplatesList_To_v1_ProjectTemplatesList(in *management.ProjectTemplatesList, out *ProjectTemplatesList, s conversion.Scope) error { +func autoConvert_v1_TaskLogList_To_management_TaskLogList(in *TaskLogList, out *management.TaskLogList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]ProjectTemplates)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.TaskLog)(unsafe.Pointer(&in.Items)) 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_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_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 - } +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_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_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_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 - } +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_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_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_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)) +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_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_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_RedirectTokenList_To_v1_RedirectTokenList(in *management.RedirectTokenList, out *RedirectTokenList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]RedirectToken)(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_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_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_RedirectTokenSpec_To_management_RedirectTokenSpec(in *RedirectTokenSpec, out *management.RedirectTokenSpec, s conversion.Scope) error { - out.Token = in.Token +func autoConvert_v1_TaskSpec_To_management_TaskSpec(in *TaskSpec, out *management.TaskSpec, s conversion.Scope) error { + out.TaskSpec = in.TaskSpec 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_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_RedirectTokenSpec_To_v1_RedirectTokenSpec(in *management.RedirectTokenSpec, out *RedirectTokenSpec, s conversion.Scope) error { - out.Token = in.Token +func autoConvert_management_TaskSpec_To_v1_TaskSpec(in *management.TaskSpec, out *TaskSpec, s conversion.Scope) error { + out.TaskSpec = in.TaskSpec 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_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_RedirectTokenStatus_To_management_RedirectTokenStatus(in *RedirectTokenStatus, out *management.RedirectTokenStatus, s conversion.Scope) error { - out.RedirectURL = in.RedirectURL +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_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_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_RedirectTokenStatus_To_v1_RedirectTokenStatus(in *management.RedirectTokenStatus, out *RedirectTokenStatus, s conversion.Scope) error { - out.RedirectURL = in.RedirectURL +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_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_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_RegisterVirtualCluster_To_management_RegisterVirtualCluster(in *RegisterVirtualCluster, out *management.RegisterVirtualCluster, 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_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterSpec(&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_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(&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_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_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_RegisterVirtualCluster_To_v1_RegisterVirtualCluster(in *management.RegisterVirtualCluster, out *RegisterVirtualCluster, 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_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterSpec(&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_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(&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_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_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_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)) +func autoConvert_v1_TeamAccessKeys_To_management_TeamAccessKeys(in *TeamAccessKeys, out *management.TeamAccessKeys, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.AccessKeys = *(*[]management.OwnedAccessKey)(unsafe.Pointer(&in.AccessKeys)) 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_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_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterList(in *management.RegisterVirtualClusterList, out *RegisterVirtualClusterList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]RegisterVirtualCluster)(unsafe.Pointer(&in.Items)) +func autoConvert_management_TeamAccessKeys_To_v1_TeamAccessKeys(in *management.TeamAccessKeys, out *TeamAccessKeys, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.AccessKeys = *(*[]OwnedAccessKey)(unsafe.Pointer(&in.AccessKeys)) 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) +// 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_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 +func autoConvert_v1_TeamAccessKeysList_To_management_TeamAccessKeysList(in *TeamAccessKeysList, out *management.TeamAccessKeysList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.TeamAccessKeys)(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_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_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_management_TeamAccessKeysList_To_v1_TeamAccessKeysList(in *management.TeamAccessKeysList, out *TeamAccessKeysList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]TeamAccessKeys)(unsafe.Pointer(&in.Items)) 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_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_RegisterVirtualClusterStatus_To_management_RegisterVirtualClusterStatus(in *RegisterVirtualClusterStatus, out *management.RegisterVirtualClusterStatus, s conversion.Scope) error { - out.Name = in.Name +func autoConvert_v1_TeamClusters_To_management_TeamClusters(in *TeamClusters, out *management.TeamClusters, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Clusters = *(*[]management.ClusterAccounts)(unsafe.Pointer(&in.Clusters)) 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_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_RegisterVirtualClusterStatus_To_v1_RegisterVirtualClusterStatus(in *management.RegisterVirtualClusterStatus, out *RegisterVirtualClusterStatus, s conversion.Scope) error { - out.Name = in.Name +func autoConvert_management_TeamClusters_To_v1_TeamClusters(in *management.TeamClusters, out *TeamClusters, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Clusters = *(*[]ClusterAccounts)(unsafe.Pointer(&in.Clusters)) 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) +// 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_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 - } +func autoConvert_v1_TeamClustersList_To_management_TeamClustersList(in *TeamClustersList, out *management.TeamClustersList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.TeamClusters)(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_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_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_management_TeamClustersList_To_v1_TeamClustersList(in *management.TeamClustersList, out *TeamClustersList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]TeamClusters)(unsafe.Pointer(&in.Items)) 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_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_ResetAccessKeyList_To_management_ResetAccessKeyList(in *ResetAccessKeyList, out *management.ResetAccessKeyList, 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.ResetAccessKey)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.Team)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList is an autogenerated conversion function. -func Convert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList(in *ResetAccessKeyList, out *management.ResetAccessKeyList, s conversion.Scope) error { - return autoConvert_v1_ResetAccessKeyList_To_management_ResetAccessKeyList(in, out, s) +// 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_ResetAccessKeyList_To_v1_ResetAccessKeyList(in *management.ResetAccessKeyList, out *ResetAccessKeyList, 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 = *(*[]ResetAccessKey)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]Team)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList is an autogenerated conversion function. -func Convert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList(in *management.ResetAccessKeyList, out *ResetAccessKeyList, s conversion.Scope) error { - return autoConvert_management_ResetAccessKeyList_To_v1_ResetAccessKeyList(in, out, s) +// 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_ResetAccessKeySpec_To_management_ResetAccessKeySpec(in *ResetAccessKeySpec, out *management.ResetAccessKeySpec, s conversion.Scope) error { - out.AccessKeySpec = in.AccessKeySpec +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_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_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_ResetAccessKeySpec_To_v1_ResetAccessKeySpec(in *management.ResetAccessKeySpec, out *ResetAccessKeySpec, s conversion.Scope) error { - out.AccessKeySpec = in.AccessKeySpec +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_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_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_ResetAccessKeyStatus_To_management_ResetAccessKeyStatus(in *ResetAccessKeyStatus, out *management.ResetAccessKeyStatus, s conversion.Scope) error { - out.AccessKeyStatus = in.AccessKeyStatus +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_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_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_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(in *management.ResetAccessKeyStatus, out *ResetAccessKeyStatus, s conversion.Scope) error { - out.AccessKeyStatus = in.AccessKeyStatus +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_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_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_Runner_To_management_Runner(in *Runner, out *management.Runner, s conversion.Scope) error { +func autoConvert_v1_TeamPermissions_To_management_TeamPermissions(in *TeamPermissions, out *management.TeamPermissions, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_RunnerSpec_To_management_RunnerSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_RunnerStatus_To_management_RunnerStatus(&in.Status, &out.Status, s); err != nil { - return err - } + 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_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_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_Runner_To_v1_Runner(in *management.Runner, out *Runner, 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_RunnerSpec_To_v1_RunnerSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_RunnerStatus_To_v1_RunnerStatus(&in.Status, &out.Status, s); err != nil { - return err - } + 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_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_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_RunnerAccessKey_To_management_RunnerAccessKey(in *RunnerAccessKey, out *management.RunnerAccessKey, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey +func autoConvert_v1_TeamPermissionsList_To_management_TeamPermissionsList(in *TeamPermissionsList, out *management.TeamPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.TeamPermissions)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_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_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_RunnerAccessKey_To_v1_RunnerAccessKey(in *management.RunnerAccessKey, out *RunnerAccessKey, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey +func autoConvert_management_TeamPermissionsList_To_v1_TeamPermissionsList(in *management.TeamPermissionsList, out *TeamPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]TeamPermissions)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_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_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_RunnerAccessKeyList_To_management_RunnerAccessKeyList(in *RunnerAccessKeyList, out *management.RunnerAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.RunnerAccessKey)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_TeamSpec_To_management_TeamSpec(in *TeamSpec, out *management.TeamSpec, s conversion.Scope) error { + out.TeamSpec = in.TeamSpec 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_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_RunnerAccessKeyList_To_v1_RunnerAccessKeyList(in *management.RunnerAccessKeyList, out *RunnerAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]RunnerAccessKey)(unsafe.Pointer(&in.Items)) +func autoConvert_management_TeamSpec_To_v1_TeamSpec(in *management.TeamSpec, out *TeamSpec, s conversion.Scope) error { + out.TeamSpec = in.TeamSpec 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_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_RunnerConfig_To_management_RunnerConfig(in *RunnerConfig, out *management.RunnerConfig, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) +func autoConvert_v1_TeamStatus_To_management_TeamStatus(in *TeamStatus, out *management.TeamStatus, s conversion.Scope) error { + out.TeamStatus = in.TeamStatus 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_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_RunnerConfig_To_v1_RunnerConfig(in *management.RunnerConfig, out *RunnerConfig, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) +func autoConvert_management_TeamStatus_To_v1_TeamStatus(in *management.TeamStatus, out *TeamStatus, s conversion.Scope) error { + out.TeamStatus = in.TeamStatus 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_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_RunnerConfigList_To_management_RunnerConfigList(in *RunnerConfigList, out *management.RunnerConfigList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.RunnerConfig)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_TranslateVClusterResourceName_To_management_TranslateVClusterResourceName(in *TranslateVClusterResourceName, out *management.TranslateVClusterResourceName, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_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_RunnerConfigList_To_v1_RunnerConfigList(in *management.RunnerConfigList, out *RunnerConfigList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]RunnerConfig)(unsafe.Pointer(&in.Items)) +func autoConvert_management_TranslateVClusterResourceName_To_v1_TranslateVClusterResourceName(in *management.TranslateVClusterResourceName, out *TranslateVClusterResourceName, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_RunnerConfigList_To_v1_RunnerConfigList is an autogenerated conversion function. -func Convert_management_RunnerConfigList_To_v1_RunnerConfigList(in *management.RunnerConfigList, out *RunnerConfigList, s conversion.Scope) error { - return autoConvert_management_RunnerConfigList_To_v1_RunnerConfigList(in, out, s) +// Convert_management_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_RunnerList_To_management_RunnerList(in *RunnerList, out *management.RunnerList, 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.Runner)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.TranslateVClusterResourceName)(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_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_RunnerList_To_v1_RunnerList(in *management.RunnerList, out *RunnerList, 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 = *(*[]Runner)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]TranslateVClusterResourceName)(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_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_RunnerSpec_To_management_RunnerSpec(in *RunnerSpec, out *management.RunnerSpec, s conversion.Scope) error { - out.RunnerSpec = in.RunnerSpec +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_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_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_RunnerSpec_To_v1_RunnerSpec(in *management.RunnerSpec, out *RunnerSpec, s conversion.Scope) error { - out.RunnerSpec = in.RunnerSpec +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_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_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_RunnerStatus_To_management_RunnerStatus(in *RunnerStatus, out *management.RunnerStatus, s conversion.Scope) error { - out.RunnerStatus = in.RunnerStatus +func autoConvert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(in *TranslateVClusterResourceNameStatus, out *management.TranslateVClusterResourceNameStatus, s conversion.Scope) error { + out.Name = in.Name 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_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_RunnerStatus_To_v1_RunnerStatus(in *management.RunnerStatus, out *RunnerStatus, s conversion.Scope) error { - out.RunnerStatus = in.RunnerStatus +func autoConvert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(in *management.TranslateVClusterResourceNameStatus, out *TranslateVClusterResourceNameStatus, s conversion.Scope) error { + out.Name = in.Name return nil } -// Convert_management_RunnerStatus_To_v1_RunnerStatus is an autogenerated conversion function. -func Convert_management_RunnerStatus_To_v1_RunnerStatus(in *management.RunnerStatus, out *RunnerStatus, s conversion.Scope) error { - return autoConvert_management_RunnerStatus_To_v1_RunnerStatus(in, out, s) +// Convert_management_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_Self_To_management_Self(in *Self, out *management.Self, 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_SelfSpec_To_management_SelfSpec(&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_SelfStatus_To_management_SelfStatus(&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_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_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_Self_To_v1_Self(in *management.Self, out *Self, 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_SelfSpec_To_v1_SelfSpec(&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_SelfStatus_To_v1_SelfStatus(&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_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_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_SelfList_To_management_SelfList(in *SelfList, out *management.SelfList, 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.Self)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.UsageDownload)(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_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_SelfList_To_v1_SelfList(in *management.SelfList, out *SelfList, 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 = *(*[]Self)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]UsageDownload)(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_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_SelfSpec_To_management_SelfSpec(in *SelfSpec, out *management.SelfSpec, s conversion.Scope) error { - out.AccessKey = in.AccessKey +func autoConvert_v1_UsageDownloadSpec_To_management_UsageDownloadSpec(in *UsageDownloadSpec, out *management.UsageDownloadSpec, s conversion.Scope) error { 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_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_SelfSpec_To_v1_SelfSpec(in *management.SelfSpec, out *SelfSpec, s conversion.Scope) error { - out.AccessKey = in.AccessKey +func autoConvert_management_UsageDownloadSpec_To_v1_UsageDownloadSpec(in *management.UsageDownloadSpec, out *UsageDownloadSpec, s conversion.Scope) error { 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_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_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_UsageDownloadStatus_To_management_UsageDownloadStatus(in *UsageDownloadStatus, out *management.UsageDownloadStatus, s conversion.Scope) error { 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_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_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_UsageDownloadStatus_To_v1_UsageDownloadStatus(in *management.UsageDownloadStatus, out *UsageDownloadStatus, s conversion.Scope) error { 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_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_SelfSubjectAccessReview_To_management_SelfSubjectAccessReview(in *SelfSubjectAccessReview, out *management.SelfSubjectAccessReview, 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_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(&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_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(&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_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_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_SelfSubjectAccessReview_To_v1_SelfSubjectAccessReview(in *management.SelfSubjectAccessReview, out *SelfSubjectAccessReview, s conversion.Scope) error { +func autoConvert_management_User_To_v1_User(in *management.User, out *User, 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_UserSpec_To_v1_UserSpec(&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_UserStatus_To_v1_UserStatus(&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) -} - -func autoConvert_v1_SelfSubjectAccessReviewList_To_management_SelfSubjectAccessReviewList(in *SelfSubjectAccessReviewList, out *management.SelfSubjectAccessReviewList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.SelfSubjectAccessReview)(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) -} - -func autoConvert_management_SelfSubjectAccessReviewList_To_v1_SelfSubjectAccessReviewList(in *management.SelfSubjectAccessReviewList, out *SelfSubjectAccessReviewList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]SelfSubjectAccessReview)(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_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_SelfSubjectAccessReviewSpec_To_management_SelfSubjectAccessReviewSpec(in *SelfSubjectAccessReviewSpec, out *management.SelfSubjectAccessReviewSpec, s conversion.Scope) error { - out.SelfSubjectAccessReviewSpec = in.SelfSubjectAccessReviewSpec +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_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_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_SelfSubjectAccessReviewSpec_To_v1_SelfSubjectAccessReviewSpec(in *management.SelfSubjectAccessReviewSpec, out *SelfSubjectAccessReviewSpec, s conversion.Scope) error { - out.SelfSubjectAccessReviewSpec = in.SelfSubjectAccessReviewSpec +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)) 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_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_SelfSubjectAccessReviewStatus_To_management_SelfSubjectAccessReviewStatus(in *SelfSubjectAccessReviewStatus, out *management.SelfSubjectAccessReviewStatus, s conversion.Scope) error { - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus +func autoConvert_v1_UserAccessKeysList_To_management_UserAccessKeysList(in *UserAccessKeysList, out *management.UserAccessKeysList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.UserAccessKeys)(unsafe.Pointer(&in.Items)) 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_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_SelfSubjectAccessReviewStatus_To_v1_SelfSubjectAccessReviewStatus(in *management.SelfSubjectAccessReviewStatus, out *SelfSubjectAccessReviewStatus, s conversion.Scope) error { - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus +func autoConvert_management_UserAccessKeysList_To_v1_UserAccessKeysList(in *management.UserAccessKeysList, out *UserAccessKeysList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]UserAccessKeys)(unsafe.Pointer(&in.Items)) 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_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_SharedSecret_To_management_SharedSecret(in *SharedSecret, out *management.SharedSecret, s conversion.Scope) error { +func autoConvert_v1_UserClusters_To_management_UserClusters(in *UserClusters, out *management.UserClusters, 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 - } + out.Clusters = *(*[]management.ClusterAccounts)(unsafe.Pointer(&in.Clusters)) 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_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_SharedSecret_To_v1_SharedSecret(in *management.SharedSecret, out *SharedSecret, s conversion.Scope) error { +func autoConvert_management_UserClusters_To_v1_UserClusters(in *management.UserClusters, out *UserClusters, 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 - } + out.Clusters = *(*[]ClusterAccounts)(unsafe.Pointer(&in.Clusters)) 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_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_SharedSecretList_To_management_SharedSecretList(in *SharedSecretList, out *management.SharedSecretList, s conversion.Scope) error { +func autoConvert_v1_UserClustersList_To_management_UserClustersList(in *UserClustersList, out *management.UserClustersList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.SharedSecret)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.UserClusters)(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_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_SharedSecretList_To_v1_SharedSecretList(in *management.SharedSecretList, out *SharedSecretList, s conversion.Scope) error { +func autoConvert_management_UserClustersList_To_v1_UserClustersList(in *management.UserClustersList, out *UserClustersList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]SharedSecret)(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) -} - -func autoConvert_v1_SharedSecretSpec_To_management_SharedSecretSpec(in *SharedSecretSpec, out *management.SharedSecretSpec, s conversion.Scope) error { - out.SharedSecretSpec = in.SharedSecretSpec + out.Items = *(*[]UserClusters)(unsafe.Pointer(&in.Items)) 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_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_management_SharedSecretSpec_To_v1_SharedSecretSpec(in *management.SharedSecretSpec, out *SharedSecretSpec, s conversion.Scope) error { - out.SharedSecretSpec = in.SharedSecretSpec +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_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_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_v1_SharedSecretStatus_To_management_SharedSecretStatus(in *SharedSecretStatus, out *management.SharedSecretStatus, s conversion.Scope) error { - out.SharedSecretStatus = in.SharedSecretStatus +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_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_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_management_SharedSecretStatus_To_v1_SharedSecretStatus(in *management.SharedSecretStatus, out *SharedSecretStatus, s conversion.Scope) error { - out.SharedSecretStatus = in.SharedSecretStatus +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_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_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_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 - } +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)) 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_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_management_SpaceInstance_To_v1_SpaceInstance(in *management.SpaceInstance, out *SpaceInstance, s conversion.Scope) error { +func autoConvert_v1_UserObjectPermissions_To_management_UserObjectPermissions(in *UserObjectPermissions, out *management.UserObjectPermissions, 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.ObjectPermissions = *(*[]management.ObjectPermission)(unsafe.Pointer(&in.ObjectPermissions)) 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_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_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)) +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_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_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_management_SpaceInstanceList_To_v1_SpaceInstanceList(in *management.SpaceInstanceList, out *SpaceInstanceList, s conversion.Scope) error { +func autoConvert_v1_UserObjectPermissionsList_To_management_UserObjectPermissionsList(in *UserObjectPermissionsList, out *management.UserObjectPermissionsList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]SpaceInstance)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.UserObjectPermissions)(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_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_v1_SpaceInstanceSpec_To_management_SpaceInstanceSpec(in *SpaceInstanceSpec, out *management.SpaceInstanceSpec, s conversion.Scope) error { - out.SpaceInstanceSpec = in.SpaceInstanceSpec +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_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_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_management_SpaceInstanceSpec_To_v1_SpaceInstanceSpec(in *management.SpaceInstanceSpec, out *SpaceInstanceSpec, s conversion.Scope) error { - out.SpaceInstanceSpec = in.SpaceInstanceSpec +func autoConvert_v1_UserPermissions_To_management_UserPermissions(in *UserPermissions, out *management.UserPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ClusterRoles = *(*[]management.UserPermissionsRole)(unsafe.Pointer(&in.ClusterRoles)) + out.NamespaceRoles = *(*[]management.UserPermissionsRole)(unsafe.Pointer(&in.NamespaceRoles)) + out.TeamMemberships = *(*[]management.ObjectName)(unsafe.Pointer(&in.TeamMemberships)) + out.ProjectMemberships = *(*[]management.ProjectMembership)(unsafe.Pointer(&in.ProjectMemberships)) + out.ManagementRoles = *(*[]management.ManagementRole)(unsafe.Pointer(&in.ManagementRoles)) + out.ClusterAccessRoles = *(*[]management.ClusterAccessRole)(unsafe.Pointer(&in.ClusterAccessRoles)) + out.VirtualClusterRoles = *(*[]management.VirtualClusterRole)(unsafe.Pointer(&in.VirtualClusterRoles)) return nil } -// 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_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_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_management_UserPermissions_To_v1_UserPermissions(in *management.UserPermissions, out *UserPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ClusterRoles = *(*[]UserPermissionsRole)(unsafe.Pointer(&in.ClusterRoles)) + out.NamespaceRoles = *(*[]UserPermissionsRole)(unsafe.Pointer(&in.NamespaceRoles)) + out.TeamMemberships = *(*[]ObjectName)(unsafe.Pointer(&in.TeamMemberships)) + out.ProjectMemberships = *(*[]ProjectMembership)(unsafe.Pointer(&in.ProjectMemberships)) + out.ManagementRoles = *(*[]ManagementRole)(unsafe.Pointer(&in.ManagementRoles)) + out.ClusterAccessRoles = *(*[]ClusterAccessRole)(unsafe.Pointer(&in.ClusterAccessRoles)) + out.VirtualClusterRoles = *(*[]VirtualClusterRole)(unsafe.Pointer(&in.VirtualClusterRoles)) return nil } -// 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_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_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_v1_UserPermissionsList_To_management_UserPermissionsList(in *UserPermissionsList, out *management.UserPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.UserPermissions)(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_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_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_management_UserPermissionsList_To_v1_UserPermissionsList(in *management.UserPermissionsList, out *UserPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]UserPermissions)(unsafe.Pointer(&in.Items)) 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_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_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_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_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_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_v1_SpaceTemplateList_To_management_SpaceTemplateList(in *SpaceTemplateList, out *management.SpaceTemplateList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.SpaceTemplate)(unsafe.Pointer(&in.Items)) +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_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_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_management_SpaceTemplateList_To_v1_SpaceTemplateList(in *management.SpaceTemplateList, out *SpaceTemplateList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]SpaceTemplate)(unsafe.Pointer(&in.Items)) +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 + out.Secrets = (*map[string]*management.UserProfileSecret)(unsafe.Pointer(in.Secrets)) 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_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_v1_SpaceTemplateSpec_To_management_SpaceTemplateSpec(in *SpaceTemplateSpec, out *management.SpaceTemplateSpec, s conversion.Scope) error { - out.SpaceTemplateSpec = in.SpaceTemplateSpec +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 + out.Secrets = (*map[string]*UserProfileSecret)(unsafe.Pointer(in.Secrets)) 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_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_management_SpaceTemplateSpec_To_v1_SpaceTemplateSpec(in *management.SpaceTemplateSpec, out *SpaceTemplateSpec, s conversion.Scope) error { - out.SpaceTemplateSpec = in.SpaceTemplateSpec +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)) 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_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_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_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)) 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_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_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_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_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_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_v1_SubjectAccessReview_To_management_SubjectAccessReview(in *SubjectAccessReview, out *management.SubjectAccessReview, 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 - } +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_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_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_management_SubjectAccessReview_To_v1_SubjectAccessReview(in *management.SubjectAccessReview, out *SubjectAccessReview, 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 - } +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_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_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_v1_SubjectAccessReviewList_To_management_SubjectAccessReviewList(in *SubjectAccessReviewList, out *management.SubjectAccessReviewList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.SubjectAccessReview)(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_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_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_management_SubjectAccessReviewList_To_v1_SubjectAccessReviewList(in *management.SubjectAccessReviewList, out *SubjectAccessReviewList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]SubjectAccessReview)(unsafe.Pointer(&in.Items)) +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_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) +// 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_v1_SubjectAccessReviewSpec_To_management_SubjectAccessReviewSpec(in *SubjectAccessReviewSpec, out *management.SubjectAccessReviewSpec, s conversion.Scope) error { - out.SubjectAccessReviewSpec = in.SubjectAccessReviewSpec +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_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) +// 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_management_SubjectAccessReviewSpec_To_v1_SubjectAccessReviewSpec(in *management.SubjectAccessReviewSpec, out *SubjectAccessReviewSpec, s conversion.Scope) error { - out.SubjectAccessReviewSpec = in.SubjectAccessReviewSpec +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_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_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_v1_SubjectAccessReviewStatus_To_management_SubjectAccessReviewStatus(in *SubjectAccessReviewStatus, out *management.SubjectAccessReviewStatus, s conversion.Scope) error { - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus +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 + } 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_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_management_SubjectAccessReviewStatus_To_v1_SubjectAccessReviewStatus(in *management.SubjectAccessReviewStatus, out *SubjectAccessReviewStatus, s conversion.Scope) error { - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus +func autoConvert_v1_UserSpec_To_management_UserSpec(in *UserSpec, out *management.UserSpec, s conversion.Scope) error { + out.UserSpec = in.UserSpec 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_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_v1_Task_To_management_Task(in *Task, out *management.Task, 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 - } +func autoConvert_management_UserSpec_To_v1_UserSpec(in *management.UserSpec, out *UserSpec, s conversion.Scope) error { + out.UserSpec = in.UserSpec 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_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_management_Task_To_v1_Task(in *management.Task, out *Task, 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 - } +func autoConvert_v1_UserStatus_To_management_UserStatus(in *UserStatus, out *management.UserStatus, s conversion.Scope) error { + out.UserStatus = in.UserStatus 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_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_v1_TaskList_To_management_TaskList(in *TaskList, out *management.TaskList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.Task)(unsafe.Pointer(&in.Items)) +func autoConvert_management_UserStatus_To_v1_UserStatus(in *management.UserStatus, out *UserStatus, s conversion.Scope) error { + out.UserStatus = in.UserStatus 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_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_TaskList_To_v1_TaskList(in *management.TaskList, out *TaskList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]Task)(unsafe.Pointer(&in.Items)) +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_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_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_TaskLog_To_management_TaskLog(in *TaskLog, out *management.TaskLog, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta +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_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_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_TaskLog_To_v1_TaskLog(in *management.TaskLog, out *TaskLog, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta +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_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_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_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_VirtualClusterAccessKey_To_management_VirtualClusterAccessKey(in *VirtualClusterAccessKey, out *management.VirtualClusterAccessKey, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.AccessKey = in.AccessKey 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_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_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_VirtualClusterAccessKey_To_v1_VirtualClusterAccessKey(in *management.VirtualClusterAccessKey, out *VirtualClusterAccessKey, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.AccessKey = in.AccessKey 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_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_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_v1_VirtualClusterAccessKeyList_To_management_VirtualClusterAccessKeyList(in *VirtualClusterAccessKeyList, out *management.VirtualClusterAccessKeyList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.VirtualClusterAccessKey)(unsafe.Pointer(&in.Items)) 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_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_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_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)) 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) -} - -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 - } +// 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_VirtualClusterDebugShellPodStatus_To_management_VirtualClusterDebugShellPodStatus(in *VirtualClusterDebugShellPodStatus, out *management.VirtualClusterDebugShellPodStatus, s conversion.Scope) error { + out.Name = in.Name + out.Namespace = in.Namespace + out.Phase = in.Phase + out.Ready = in.Ready 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_v1_VirtualClusterDebugShellPodStatus_To_management_VirtualClusterDebugShellPodStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterDebugShellPodStatus_To_management_VirtualClusterDebugShellPodStatus(in *VirtualClusterDebugShellPodStatus, out *management.VirtualClusterDebugShellPodStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterDebugShellPodStatus_To_management_VirtualClusterDebugShellPodStatus(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_management_VirtualClusterDebugShellPodStatus_To_v1_VirtualClusterDebugShellPodStatus(in *management.VirtualClusterDebugShellPodStatus, out *VirtualClusterDebugShellPodStatus, s conversion.Scope) error { + out.Name = in.Name + out.Namespace = in.Namespace + out.Phase = in.Phase + out.Ready = in.Ready 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_management_VirtualClusterDebugShellPodStatus_To_v1_VirtualClusterDebugShellPodStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterDebugShellPodStatus_To_v1_VirtualClusterDebugShellPodStatus(in *management.VirtualClusterDebugShellPodStatus, out *VirtualClusterDebugShellPodStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterDebugShellPodStatus_To_v1_VirtualClusterDebugShellPodStatus(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_v1_VirtualClusterDebugShellPodsStatus_To_management_VirtualClusterDebugShellPodsStatus(in *VirtualClusterDebugShellPodsStatus, out *management.VirtualClusterDebugShellPodsStatus, s conversion.Scope) error { + out.Pods = *(*[]management.VirtualClusterDebugShellPodStatus)(unsafe.Pointer(&in.Pods)) 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_v1_VirtualClusterDebugShellPodsStatus_To_management_VirtualClusterDebugShellPodsStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterDebugShellPodsStatus_To_management_VirtualClusterDebugShellPodsStatus(in *VirtualClusterDebugShellPodsStatus, out *management.VirtualClusterDebugShellPodsStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterDebugShellPodsStatus_To_management_VirtualClusterDebugShellPodsStatus(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_management_VirtualClusterDebugShellPodsStatus_To_v1_VirtualClusterDebugShellPodsStatus(in *management.VirtualClusterDebugShellPodsStatus, out *VirtualClusterDebugShellPodsStatus, s conversion.Scope) error { + out.Pods = *(*[]VirtualClusterDebugShellPodStatus)(unsafe.Pointer(&in.Pods)) 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_management_VirtualClusterDebugShellPodsStatus_To_v1_VirtualClusterDebugShellPodsStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterDebugShellPodsStatus_To_v1_VirtualClusterDebugShellPodsStatus(in *management.VirtualClusterDebugShellPodsStatus, out *VirtualClusterDebugShellPodsStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterDebugShellPodsStatus_To_v1_VirtualClusterDebugShellPodsStatus(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_VirtualClusterDebugShellSpec_To_management_VirtualClusterDebugShellSpec(in *VirtualClusterDebugShellSpec, out *management.VirtualClusterDebugShellSpec, s conversion.Scope) error { + out.PodName = in.PodName 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_VirtualClusterDebugShellSpec_To_management_VirtualClusterDebugShellSpec is an autogenerated conversion function. +func Convert_v1_VirtualClusterDebugShellSpec_To_management_VirtualClusterDebugShellSpec(in *VirtualClusterDebugShellSpec, out *management.VirtualClusterDebugShellSpec, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterDebugShellSpec_To_management_VirtualClusterDebugShellSpec(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_VirtualClusterDebugShellSpec_To_v1_VirtualClusterDebugShellSpec(in *management.VirtualClusterDebugShellSpec, out *VirtualClusterDebugShellSpec, s conversion.Scope) error { + out.PodName = in.PodName 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_VirtualClusterDebugShellSpec_To_v1_VirtualClusterDebugShellSpec is an autogenerated conversion function. +func Convert_management_VirtualClusterDebugShellSpec_To_v1_VirtualClusterDebugShellSpec(in *management.VirtualClusterDebugShellSpec, out *VirtualClusterDebugShellSpec, s conversion.Scope) error { + return autoConvert_management_VirtualClusterDebugShellSpec_To_v1_VirtualClusterDebugShellSpec(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_v1_VirtualClusterDebugShellStatus_To_management_VirtualClusterDebugShellStatus(in *VirtualClusterDebugShellStatus, out *management.VirtualClusterDebugShellStatus, s conversion.Scope) error { + out.ContainerName = in.ContainerName + out.TargetName = in.TargetName + out.PodName = in.PodName + out.PodNamespace = in.PodNamespace 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_v1_VirtualClusterDebugShellStatus_To_management_VirtualClusterDebugShellStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterDebugShellStatus_To_management_VirtualClusterDebugShellStatus(in *VirtualClusterDebugShellStatus, out *management.VirtualClusterDebugShellStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterDebugShellStatus_To_management_VirtualClusterDebugShellStatus(in, out, s) } -func autoConvert_v1_TeamAccessKeys_To_management_TeamAccessKeys(in *TeamAccessKeys, out *management.TeamAccessKeys, s conversion.Scope) error { +func autoConvert_management_VirtualClusterDebugShellStatus_To_v1_VirtualClusterDebugShellStatus(in *management.VirtualClusterDebugShellStatus, out *VirtualClusterDebugShellStatus, s conversion.Scope) error { + out.ContainerName = in.ContainerName + out.TargetName = in.TargetName + out.PodName = in.PodName + out.PodNamespace = in.PodNamespace + return nil +} + +// Convert_management_VirtualClusterDebugShellStatus_To_v1_VirtualClusterDebugShellStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterDebugShellStatus_To_v1_VirtualClusterDebugShellStatus(in *management.VirtualClusterDebugShellStatus, out *VirtualClusterDebugShellStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterDebugShellStatus_To_v1_VirtualClusterDebugShellStatus(in, out, s) +} + +func autoConvert_v1_VirtualClusterExternalDatabase_To_management_VirtualClusterExternalDatabase(in *VirtualClusterExternalDatabase, out *management.VirtualClusterExternalDatabase, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.AccessKeys = *(*[]management.OwnedAccessKey)(unsafe.Pointer(&in.AccessKeys)) + 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_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_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_TeamAccessKeys_To_v1_TeamAccessKeys(in *management.TeamAccessKeys, out *TeamAccessKeys, 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.AccessKeys = *(*[]OwnedAccessKey)(unsafe.Pointer(&in.AccessKeys)) + 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_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_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_TeamAccessKeysList_To_management_TeamAccessKeysList(in *TeamAccessKeysList, out *management.TeamAccessKeysList, 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.TeamAccessKeys)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.VirtualClusterExternalDatabase)(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_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_TeamAccessKeysList_To_v1_TeamAccessKeysList(in *management.TeamAccessKeysList, out *TeamAccessKeysList, 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 = *(*[]TeamAccessKeys)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]VirtualClusterExternalDatabase)(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_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_TeamClusters_To_management_TeamClusters(in *TeamClusters, out *management.TeamClusters, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Clusters = *(*[]management.ClusterAccounts)(unsafe.Pointer(&in.Clusters)) +func autoConvert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec(in *VirtualClusterExternalDatabaseSpec, out *management.VirtualClusterExternalDatabaseSpec, s conversion.Scope) error { + out.Connector = in.Connector 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_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_TeamClusters_To_v1_TeamClusters(in *management.TeamClusters, out *TeamClusters, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Clusters = *(*[]ClusterAccounts)(unsafe.Pointer(&in.Clusters)) +func autoConvert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec(in *management.VirtualClusterExternalDatabaseSpec, out *VirtualClusterExternalDatabaseSpec, s conversion.Scope) error { + out.Connector = in.Connector 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_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_TeamClustersList_To_management_TeamClustersList(in *TeamClustersList, out *management.TeamClustersList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.TeamClusters)(unsafe.Pointer(&in.Items)) +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_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_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_TeamClustersList_To_v1_TeamClustersList(in *management.TeamClustersList, out *TeamClustersList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]TeamClusters)(unsafe.Pointer(&in.Items)) +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_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_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_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_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_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_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_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_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_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_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_TeamSpec_To_management_TeamSpec(in *TeamSpec, out *management.TeamSpec, s conversion.Scope) error { - out.TeamSpec = in.TeamSpec +func autoConvert_v1_VirtualClusterInstanceDebugShell_To_management_VirtualClusterInstanceDebugShell(in *VirtualClusterInstanceDebugShell, out *management.VirtualClusterInstanceDebugShell, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_VirtualClusterDebugShellSpec_To_management_VirtualClusterDebugShellSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_VirtualClusterDebugShellStatus_To_management_VirtualClusterDebugShellStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_VirtualClusterInstanceDebugShell_To_management_VirtualClusterInstanceDebugShell is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceDebugShell_To_management_VirtualClusterInstanceDebugShell(in *VirtualClusterInstanceDebugShell, out *management.VirtualClusterInstanceDebugShell, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceDebugShell_To_management_VirtualClusterInstanceDebugShell(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_VirtualClusterInstanceDebugShell_To_v1_VirtualClusterInstanceDebugShell(in *management.VirtualClusterInstanceDebugShell, out *VirtualClusterInstanceDebugShell, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_VirtualClusterDebugShellSpec_To_v1_VirtualClusterDebugShellSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_VirtualClusterDebugShellStatus_To_v1_VirtualClusterDebugShellStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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_VirtualClusterInstanceDebugShell_To_v1_VirtualClusterInstanceDebugShell is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceDebugShell_To_v1_VirtualClusterInstanceDebugShell(in *management.VirtualClusterInstanceDebugShell, out *VirtualClusterInstanceDebugShell, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceDebugShell_To_v1_VirtualClusterInstanceDebugShell(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_VirtualClusterInstanceDebugShellList_To_management_VirtualClusterInstanceDebugShellList(in *VirtualClusterInstanceDebugShellList, out *management.VirtualClusterInstanceDebugShellList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.VirtualClusterInstanceDebugShell)(unsafe.Pointer(&in.Items)) 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_VirtualClusterInstanceDebugShellList_To_management_VirtualClusterInstanceDebugShellList is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceDebugShellList_To_management_VirtualClusterInstanceDebugShellList(in *VirtualClusterInstanceDebugShellList, out *management.VirtualClusterInstanceDebugShellList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceDebugShellList_To_management_VirtualClusterInstanceDebugShellList(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_VirtualClusterInstanceDebugShellList_To_v1_VirtualClusterInstanceDebugShellList(in *management.VirtualClusterInstanceDebugShellList, out *VirtualClusterInstanceDebugShellList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]VirtualClusterInstanceDebugShell)(unsafe.Pointer(&in.Items)) 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_VirtualClusterInstanceDebugShellList_To_v1_VirtualClusterInstanceDebugShellList is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceDebugShellList_To_v1_VirtualClusterInstanceDebugShellList(in *management.VirtualClusterInstanceDebugShellList, out *VirtualClusterInstanceDebugShellList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceDebugShellList_To_v1_VirtualClusterInstanceDebugShellList(in, out, s) } -func autoConvert_v1_TranslateVClusterResourceName_To_management_TranslateVClusterResourceName(in *TranslateVClusterResourceName, out *management.TranslateVClusterResourceName, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterInstanceDebugShellPods_To_management_VirtualClusterInstanceDebugShellPods(in *VirtualClusterInstanceDebugShellPods, out *management.VirtualClusterInstanceDebugShellPods, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(&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_VirtualClusterDebugShellPodsStatus_To_management_VirtualClusterDebugShellPodsStatus(&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_VirtualClusterInstanceDebugShellPods_To_management_VirtualClusterInstanceDebugShellPods is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceDebugShellPods_To_management_VirtualClusterInstanceDebugShellPods(in *VirtualClusterInstanceDebugShellPods, out *management.VirtualClusterInstanceDebugShellPods, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceDebugShellPods_To_management_VirtualClusterInstanceDebugShellPods(in, out, s) } -func autoConvert_management_TranslateVClusterResourceName_To_v1_TranslateVClusterResourceName(in *management.TranslateVClusterResourceName, out *TranslateVClusterResourceName, s conversion.Scope) error { +func autoConvert_management_VirtualClusterInstanceDebugShellPods_To_v1_VirtualClusterInstanceDebugShellPods(in *management.VirtualClusterInstanceDebugShellPods, out *VirtualClusterInstanceDebugShellPods, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(&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_VirtualClusterDebugShellPodsStatus_To_v1_VirtualClusterDebugShellPodsStatus(&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_VirtualClusterInstanceDebugShellPods_To_v1_VirtualClusterInstanceDebugShellPods is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceDebugShellPods_To_v1_VirtualClusterInstanceDebugShellPods(in *management.VirtualClusterInstanceDebugShellPods, out *VirtualClusterInstanceDebugShellPods, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceDebugShellPods_To_v1_VirtualClusterInstanceDebugShellPods(in, out, s) } -func autoConvert_v1_TranslateVClusterResourceNameList_To_management_TranslateVClusterResourceNameList(in *TranslateVClusterResourceNameList, out *management.TranslateVClusterResourceNameList, s conversion.Scope) error { +func autoConvert_v1_VirtualClusterInstanceDebugShellPodsList_To_management_VirtualClusterInstanceDebugShellPodsList(in *VirtualClusterInstanceDebugShellPodsList, out *management.VirtualClusterInstanceDebugShellPodsList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.TranslateVClusterResourceName)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.VirtualClusterInstanceDebugShellPods)(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_VirtualClusterInstanceDebugShellPodsList_To_management_VirtualClusterInstanceDebugShellPodsList is an autogenerated conversion function. +func Convert_v1_VirtualClusterInstanceDebugShellPodsList_To_management_VirtualClusterInstanceDebugShellPodsList(in *VirtualClusterInstanceDebugShellPodsList, out *management.VirtualClusterInstanceDebugShellPodsList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterInstanceDebugShellPodsList_To_management_VirtualClusterInstanceDebugShellPodsList(in, out, s) } -func autoConvert_management_TranslateVClusterResourceNameList_To_v1_TranslateVClusterResourceNameList(in *management.TranslateVClusterResourceNameList, out *TranslateVClusterResourceNameList, s conversion.Scope) error { +func autoConvert_management_VirtualClusterInstanceDebugShellPodsList_To_v1_VirtualClusterInstanceDebugShellPodsList(in *management.VirtualClusterInstanceDebugShellPodsList, out *VirtualClusterInstanceDebugShellPodsList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]TranslateVClusterResourceName)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]VirtualClusterInstanceDebugShellPods)(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) +// Convert_management_VirtualClusterInstanceDebugShellPodsList_To_v1_VirtualClusterInstanceDebugShellPodsList is an autogenerated conversion function. +func Convert_management_VirtualClusterInstanceDebugShellPodsList_To_v1_VirtualClusterInstanceDebugShellPodsList(in *management.VirtualClusterInstanceDebugShellPodsList, out *VirtualClusterInstanceDebugShellPodsList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterInstanceDebugShellPodsList_To_v1_VirtualClusterInstanceDebugShellPodsList(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 +func autoConvert_v1_VirtualClusterInstanceKubeConfig_To_management_VirtualClusterInstanceKubeConfig(in *VirtualClusterInstanceKubeConfig, out *management.VirtualClusterInstanceKubeConfig, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_VirtualClusterInstanceKubeConfigStatus_To_management_VirtualClusterInstanceKubeConfigStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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) +// 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_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 +func autoConvert_management_VirtualClusterInstanceKubeConfig_To_v1_VirtualClusterInstanceKubeConfig(in *management.VirtualClusterInstanceKubeConfig, out *VirtualClusterInstanceKubeConfig, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_VirtualClusterInstanceKubeConfigStatus_To_v1_VirtualClusterInstanceKubeConfigStatus(&in.Status, &out.Status, s); err != nil { + return err + } 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) +// 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_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(in *TranslateVClusterResourceNameStatus, out *management.TranslateVClusterResourceNameStatus, s conversion.Scope) error { - out.Name = in.Name +func autoConvert_v1_VirtualClusterInstanceKubeConfigList_To_management_VirtualClusterInstanceKubeConfigList(in *VirtualClusterInstanceKubeConfigList, out *management.VirtualClusterInstanceKubeConfigList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.VirtualClusterInstanceKubeConfig)(unsafe.Pointer(&in.Items)) 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) +// 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_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(in *management.TranslateVClusterResourceNameStatus, out *TranslateVClusterResourceNameStatus, s conversion.Scope) error { - out.Name = in.Name +func autoConvert_management_VirtualClusterInstanceKubeConfigList_To_v1_VirtualClusterInstanceKubeConfigList(in *management.VirtualClusterInstanceKubeConfigList, out *VirtualClusterInstanceKubeConfigList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + 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 +12776,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..a9f97c5d 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,31 @@ 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) + } + if in.Database != nil { + in, out := &in.Database, &out.Database + *out = new(DatabaseKine) + (*in).DeepCopyInto(*out) + } return } @@ -2188,174 +2240,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 +2416,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 +2449,80 @@ 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 +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DatabaseConnectorStatus) DeepCopyInto(out *DatabaseConnectorStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectorStatus. +func (in *DatabaseConnectorStatus) DeepCopy() *DatabaseConnectorStatus { + if in == nil { + return nil } - return nil + out := new(DatabaseConnectorStatus) + in.DeepCopyInto(out) + return out } // 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 *DatabaseKine) DeepCopyInto(out *DatabaseKine) { *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)) + if in.ExtraArgs != nil { + in, out := &in.ExtraArgs, &out.ExtraArgs + *out = make([]string, 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 DatabaseKine. +func (in *DatabaseKine) DeepCopy() *DatabaseKine { if in == nil { return nil } - out := new(DevPodStatusOptionsList) + out := new(DatabaseKine) 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 +2530,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 +2563,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 +2628,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 +2642,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 +2661,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 +2722,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 +2736,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 +2755,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 +2873,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 +2887,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 +2906,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 +2966,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 +2980,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 +2999,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 +3054,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 +3073,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 +3087,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,82 +3106,149 @@ 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 { - if in == nil { +// 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 } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *LicenseRequest) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FeatureStatus) DeepCopyInto(out *FeatureStatus) { +func (in *LicenseRequestList) DeepCopyInto(out *LicenseRequestList) { *out = *in - in.Feature.DeepCopyInto(&out.Feature) + 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 FeatureStatus. -func (in *FeatureStatus) DeepCopy() *FeatureStatus { +// 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(FeatureStatus) + 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 *GitEnvironmentTemplate) DeepCopyInto(out *GitEnvironmentTemplate) { +func (in *LicenseRequestSpec) DeepCopyInto(out *LicenseRequestSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitEnvironmentTemplate. -func (in *GitEnvironmentTemplate) DeepCopy() *GitEnvironmentTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestSpec. +func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { if in == nil { return nil } - out := new(GitEnvironmentTemplate) + out := new(LicenseRequestSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GroupResources) DeepCopyInto(out *GroupResources) { +func (in *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { *out = *in - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestStatus. +func (in *LicenseRequestStatus) DeepCopy() *LicenseRequestStatus { + if in == nil { + return nil } - if in.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames - *out = make([]string, len(*in)) - copy(*out, *in) + out := new(LicenseRequestStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseSpec. +func (in *LicenseSpec) DeepCopy() *LicenseSpec { + if in == nil { + return nil + } + out := new(LicenseSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseStatus) DeepCopyInto(out *LicenseStatus) { + *out = *in + if in.License != nil { + in, out := &in.License, &out.License + *out = new(licenseapi.License) + (*in).DeepCopyInto(*out) + } + if in.ResourceUsage != nil { + in, out := &in.ResourceUsage, &out.ResourceUsage + *out = make(map[string]licenseapi.ResourceCount, len(*in)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() + } + } + 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 GroupResources. -func (in *GroupResources) DeepCopy() *GroupResources { +// 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(GroupResources) + 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 *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { +func (in *LoftUpgrade) DeepCopyInto(out *LoftUpgrade) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3153,18 +3257,18 @@ func (in *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthToken. -func (in *IngressAuthToken) DeepCopy() *IngressAuthToken { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgrade. +func (in *LoftUpgrade) DeepCopy() *LoftUpgrade { if in == nil { return nil } - out := new(IngressAuthToken) + out := new(LoftUpgrade) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IngressAuthToken) DeepCopyObject() runtime.Object { +func (in *LoftUpgrade) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3172,13 +3276,13 @@ func (in *IngressAuthToken) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressAuthTokenList) DeepCopyInto(out *IngressAuthTokenList) { +func (in *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([]IngressAuthToken, len(*in)) + *out = make([]LoftUpgrade, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3186,18 +3290,18 @@ func (in *IngressAuthTokenList) DeepCopyInto(out *IngressAuthTokenList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenList. -func (in *IngressAuthTokenList) DeepCopy() *IngressAuthTokenList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeList. +func (in *LoftUpgradeList) DeepCopy() *LoftUpgradeList { if in == nil { return nil } - out := new(IngressAuthTokenList) + out := new(LoftUpgradeList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IngressAuthTokenList) DeepCopyObject() runtime.Object { +func (in *LoftUpgradeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3205,172 +3309,164 @@ func (in *IngressAuthTokenList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressAuthTokenSpec) DeepCopyInto(out *IngressAuthTokenSpec) { +func (in *LoftUpgradeSpec) DeepCopyInto(out *LoftUpgradeSpec) { *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 LoftUpgradeSpec. +func (in *LoftUpgradeSpec) DeepCopy() *LoftUpgradeSpec { if in == nil { return nil } - out := new(IngressAuthTokenSpec) + 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 *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { +func (in *LoftUpgradeStatus) DeepCopyInto(out *LoftUpgradeStatus) { *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 LoftUpgradeStatus. +func (in *LoftUpgradeStatus) DeepCopy() *LoftUpgradeStatus { if in == nil { return nil } - out := new(IngressAuthTokenStatus) + 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 *Kiosk) DeepCopyInto(out *Kiosk) { +func (in *MaintenanceWindow) DeepCopyInto(out *MaintenanceWindow) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kiosk. -func (in *Kiosk) DeepCopy() *Kiosk { +// 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(Kiosk) + out := new(MaintenanceWindow) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Kiosk) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KioskList) DeepCopyInto(out *KioskList) { +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([]Kiosk, 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 KioskList. -func (in *KioskList) DeepCopy() *KioskList { +// 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(KioskList) + out := new(ManagementRole) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *KioskList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KioskSpec) DeepCopyInto(out *KioskSpec) { +func (in *NamespacedNameArgs) DeepCopyInto(out *NamespacedNameArgs) { *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 NamespacedNameArgs. +func (in *NamespacedNameArgs) DeepCopy() *NamespacedNameArgs { if in == nil { return nil } - out := new(KioskSpec) + 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 *KioskStatus) DeepCopyInto(out *KioskStatus) { +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 KioskStatus. -func (in *KioskStatus) DeepCopy() *KioskStatus { +// 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(KioskStatus) + out := new(NodeClaim) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeClaim) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *License) DeepCopyInto(out *License) { +func (in *NodeClaimData) DeepCopyInto(out *NodeClaimData) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) + if in.Outputs != nil { + in, out := &in.Outputs, &out.Outputs + *out = make([]byte, len(*in)) + copy(*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 License. -func (in *License) DeepCopy() *License { +// 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(License) + out := new(NodeClaimData) 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 *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([]License, len(*in)) + *out = make([]NodeClaim, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3378,18 +3474,18 @@ func (in *LicenseList) DeepCopyInto(out *LicenseList) { 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 NodeClaimList. +func (in *NodeClaimList) DeepCopy() *NodeClaimList { if in == nil { return nil } - out := new(LicenseList) + out := new(NodeClaimList) 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 { +func (in *NodeClaimList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3397,60 +3493,61 @@ func (in *LicenseList) DeepCopyObject() runtime.Object { } // 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 *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.NodeClaimSpec.DeepCopyInto(&out.NodeClaimSpec) 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 NodeClaimSpec. +func (in *NodeClaimSpec) DeepCopy() *NodeClaimSpec { if in == nil { return nil } - out := new(LicenseRequest) + out := new(NodeClaimSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseRequest) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseRequestList) DeepCopyInto(out *LicenseRequestList) { +func (in *NodeClaimStatus) DeepCopyInto(out *NodeClaimStatus) { *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]) - } + in.NodeClaimStatus.DeepCopyInto(&out.NodeClaimStatus) + return +} + +// 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(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 *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 LicenseRequestList. -func (in *LicenseRequestList) DeepCopy() *LicenseRequestList { +// 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(LicenseRequestList) + out := new(NodeEnvironment) 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 *NodeEnvironment) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3458,109 +3555,135 @@ 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 *NodeEnvironmentData) DeepCopyInto(out *NodeEnvironmentData) { *out = *in - in.Input.DeepCopyInto(&out.Input) + if in.Outputs != nil { + in, out := &in.Outputs, &out.Outputs + *out = make([]byte, len(*in)) + copy(*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 LicenseRequestSpec. -func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { +// 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(LicenseRequestSpec) + out := new(NodeEnvironmentData) 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 *NodeEnvironmentList) DeepCopyInto(out *NodeEnvironmentList) { *out = *in - if in.Output != nil { - in, out := &in.Output, &out.Output - *out = new(licenseapi.GenericRequestOutput) - (*in).DeepCopyInto(*out) + 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 LicenseRequestStatus. -func (in *LicenseRequestStatus) DeepCopy() *LicenseRequestStatus { +// 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(LicenseRequestStatus) + 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 *LicenseSpec) DeepCopyInto(out *LicenseSpec) { +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 LicenseSpec. -func (in *LicenseSpec) DeepCopy() *LicenseSpec { +// 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(LicenseSpec) + 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 *LicenseStatus) DeepCopyInto(out *LicenseStatus) { +func (in *NodeEnvironmentStatus) DeepCopyInto(out *NodeEnvironmentStatus) { *out = *in - if in.License != nil { - in, out := &in.License, &out.License - *out = new(licenseapi.License) - (*in).DeepCopyInto(*out) - } - if in.ResourceUsage != nil { - in, out := &in.ResourceUsage, &out.ResourceUsage - *out = make(map[string]licenseapi.ResourceCount, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() - } - } + in.NodeEnvironmentStatus.DeepCopyInto(&out.NodeEnvironmentStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseStatus. -func (in *LicenseStatus) DeepCopy() *LicenseStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeEnvironmentStatus. +func (in *NodeEnvironmentStatus) DeepCopy() *NodeEnvironmentStatus { if in == nil { return nil } - out := new(LicenseStatus) + 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 *LicenseToken) DeepCopyInto(out *LicenseToken) { +func (in *NodeProvider) DeepCopyInto(out *NodeProvider) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec + in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseToken. -func (in *LicenseToken) DeepCopy() *LicenseToken { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProvider. +func (in *NodeProvider) DeepCopy() *NodeProvider { if in == nil { return nil } - out := new(LicenseToken) + out := new(NodeProvider) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseToken) DeepCopyObject() runtime.Object { +func (in *NodeProvider) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3568,13 +3691,18 @@ func (in *LicenseToken) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenList) DeepCopyInto(out *LicenseTokenList) { +func (in *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([]LicenseToken, 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]) } @@ -3582,83 +3710,118 @@ 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 NodeProviderBCMGetResourcesResult. +func (in *NodeProviderBCMGetResourcesResult) DeepCopy() *NodeProviderBCMGetResourcesResult { if in == nil { return nil } - out := new(LicenseTokenList) + out := new(NodeProviderBCMGetResourcesResult) 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 { - 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 *LicenseTokenSpec) DeepCopyInto(out *LicenseTokenSpec) { +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 LicenseTokenSpec. -func (in *LicenseTokenSpec) DeepCopy() *LicenseTokenSpec { +// 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(LicenseTokenSpec) + 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 *LicenseTokenStatus) DeepCopyInto(out *LicenseTokenStatus) { +func (in *NodeProviderBCMTestConnectionResult) DeepCopyInto(out *NodeProviderBCMTestConnectionResult) { *out = *in - if in.Token != nil { - in, out := &in.Token, &out.Token - *out = new(licenseapi.InstanceTokenAuth) - **out = **in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderBCMTestConnectionResult. +func (in *NodeProviderBCMTestConnectionResult) DeepCopy() *NodeProviderBCMTestConnectionResult { + if in == nil { + return nil } + 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 *NodeProviderCalculateCostResult) DeepCopyInto(out *NodeProviderCalculateCostResult) { + *out = *in 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 NodeProviderCalculateCostResult. +func (in *NodeProviderCalculateCostResult) DeepCopy() *NodeProviderCalculateCostResult { if in == nil { return nil } - out := new(LicenseTokenStatus) + 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 *LoftUpgrade) DeepCopyInto(out *LoftUpgrade) { +func (in *NodeProviderExec) DeepCopyInto(out *NodeProviderExec) { *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 NodeProviderExec. +func (in *NodeProviderExec) DeepCopy() *NodeProviderExec { if in == nil { return nil } - out := new(LoftUpgrade) + out := new(NodeProviderExec) 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 *NodeProviderExec) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3666,13 +3829,13 @@ func (in *LoftUpgrade) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgradeList) DeepCopyInto(out *LoftUpgradeList) { +func (in *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([]LoftUpgrade, len(*in)) + *out = make([]NodeProviderExec, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3680,18 +3843,18 @@ func (in *LoftUpgradeList) DeepCopyInto(out *LoftUpgradeList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeList. -func (in *LoftUpgradeList) DeepCopy() *LoftUpgradeList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderExecList. +func (in *NodeProviderExecList) DeepCopy() *NodeProviderExecList { if in == nil { return nil } - out := new(LoftUpgradeList) + out := new(NodeProviderExecList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LoftUpgradeList) DeepCopyObject() runtime.Object { +func (in *NodeProviderExecList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3699,82 +3862,82 @@ func (in *LoftUpgradeList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgradeSpec) DeepCopyInto(out *LoftUpgradeSpec) { +func (in *NodeProviderExecResult) DeepCopyInto(out *NodeProviderExecResult) { *out = *in 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 NodeProviderExecResult. +func (in *NodeProviderExecResult) DeepCopy() *NodeProviderExecResult { if in == nil { return nil } - out := new(LoftUpgradeSpec) + 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 *LoftUpgradeStatus) DeepCopyInto(out *LoftUpgradeStatus) { +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 LoftUpgradeStatus. -func (in *LoftUpgradeStatus) DeepCopy() *LoftUpgradeStatus { +// 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(LoftUpgradeStatus) + 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 *OIDC) DeepCopyInto(out *OIDC) { +func (in *NodeProviderExecStatus) DeepCopyInto(out *NodeProviderExecStatus) { *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]) - } - } + in.Result.DeepCopyInto(&out.Result) 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 NodeProviderExecStatus. +func (in *NodeProviderExecStatus) DeepCopy() *NodeProviderExecStatus { if in == nil { return nil } - out := new(OIDC) + out := new(NodeProviderExecStatus) 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 *NodeProviderList) DeepCopyInto(out *NodeProviderList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]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 OIDCClient. -func (in *OIDCClient) DeepCopy() *OIDCClient { +// 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(OIDCClient) + out := new(NodeProviderList) 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 *NodeProviderList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3782,77 +3945,57 @@ 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 *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { *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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.NodeProviderSpec.DeepCopyInto(&out.NodeProviderSpec) 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 NodeProviderSpec. +func (in *NodeProviderSpec) DeepCopy() *NodeProviderSpec { if in == nil { return nil } - out := new(OIDCClientList) + out := new(NodeProviderSpec) 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 { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // 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 *NodeProviderStatus) DeepCopyInto(out *NodeProviderStatus) { *out = *in - if in.RedirectURIs != nil { - in, out := &in.RedirectURIs, &out.RedirectURIs - *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 OIDCClientSpec. -func (in *OIDCClientSpec) DeepCopy() *OIDCClientSpec { +// 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(OIDCClientSpec) + 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 *OIDCClientStatus) DeepCopyInto(out *OIDCClientStatus) { +func (in *NodeProviderTerraformValidateResult) DeepCopyInto(out *NodeProviderTerraformValidateResult) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClientStatus. -func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderTerraformValidateResult. +func (in *NodeProviderTerraformValidateResult) DeepCopy() *NodeProviderTerraformValidateResult { if in == nil { return nil } - out := new(OIDCClientStatus) + out := new(NodeProviderTerraformValidateResult) 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 *NodeType) DeepCopyInto(out *NodeType) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3861,18 +4004,18 @@ func (in *OwnedAccessKey) DeepCopyInto(out *OwnedAccessKey) { 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 NodeType. +func (in *NodeType) DeepCopy() *NodeType { if in == nil { return nil } - out := new(OwnedAccessKey) + out := new(NodeType) 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 { +func (in *NodeType) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3880,13 +4023,13 @@ func (in *OwnedAccessKey) DeepCopyObject() runtime.Object { } // 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 *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([]OwnedAccessKey, len(*in)) + *out = make([]NodeType, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3894,18 +4037,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 NodeTypeList. +func (in *NodeTypeList) DeepCopy() *NodeTypeList { if in == nil { return nil } - out := new(OwnedAccessKeyList) + out := new(NodeTypeList) 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 *NodeTypeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3913,110 +4056,84 @@ 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) { +func (in *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { *out = *in - in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnedAccessKeySpec. -func (in *OwnedAccessKeySpec) DeepCopy() *OwnedAccessKeySpec { +// 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(OwnedAccessKeySpec) + 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 *OwnedAccessKeyStatus) DeepCopyInto(out *OwnedAccessKeyStatus) { +func (in *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { *out = *in - in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) + in.NodeTypeStatus.DeepCopyInto(&out.NodeTypeStatus) 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 NodeTypeStatus. +func (in *NodeTypeStatus) DeepCopy() *NodeTypeStatus { if in == nil { return nil } - out := new(OwnedAccessKeyStatus) + 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 *PredefinedApp) DeepCopyInto(out *PredefinedApp) { +func (in *OIDC) DeepCopyInto(out *OIDC) { *out = *in - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make([]string, len(*in)) - copy(*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 PredefinedApp. -func (in *PredefinedApp) DeepCopy() *PredefinedApp { +// 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(PredefinedApp) + 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 *Project) DeepCopyInto(out *Project) { +func (in *OIDCClient) DeepCopyInto(out *OIDCClient) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Status = in.Status return } -// 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(Project) - 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) { - *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 ProjectChartInfo. -func (in *ProjectChartInfo) DeepCopy() *ProjectChartInfo { +// 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(ProjectChartInfo) + out := new(OIDCClient) 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 *OIDCClient) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4024,13 +4141,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 *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([]ProjectChartInfo, len(*in)) + *out = make([]OIDCClient, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4038,18 +4155,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 OIDCClientList. +func (in *OIDCClientList) DeepCopy() *OIDCClientList { if in == nil { return nil } - out := new(ProjectChartInfoList) + out := new(OIDCClientList) 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 *OIDCClientList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4057,66 +4174,64 @@ 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 *OIDCClientSpec) DeepCopyInto(out *OIDCClientSpec) { *out = *in - in.ChartInfoSpec.DeepCopyInto(&out.ChartInfoSpec) + 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 ProjectChartInfoSpec. -func (in *ProjectChartInfoSpec) DeepCopy() *ProjectChartInfoSpec { +// 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(ProjectChartInfoSpec) + 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 *ProjectChartInfoStatus) DeepCopyInto(out *ProjectChartInfoStatus) { +func (in *OIDCClientStatus) DeepCopyInto(out *OIDCClientStatus) { *out = *in - in.ChartInfoStatus.DeepCopyInto(&out.ChartInfoStatus) 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 OIDCClientStatus. +func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus { if in == nil { return nil } - out := new(ProjectChartInfoStatus) + out := new(OIDCClientStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectCharts) DeepCopyInto(out *ProjectCharts) { +func (in *OSImage) DeepCopyInto(out *OSImage) { *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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status 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 OSImage. +func (in *OSImage) DeepCopy() *OSImage { if in == nil { return nil } - out := new(ProjectCharts) + out := new(OSImage) 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 *OSImage) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4124,13 +4239,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 *OSImageList) DeepCopyInto(out *OSImageList) { *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([]OSImage, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4138,18 +4253,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 OSImageList. +func (in *OSImageList) DeepCopy() *OSImageList { if in == nil { return nil } - out := new(ProjectChartsList) + out := new(OSImageList) 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 *OSImageList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4157,99 +4272,122 @@ 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 *OSImageSpec) DeepCopyInto(out *OSImageSpec) { *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.Runners != nil { - in, out := &in.Runners, &out.Runners - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + in.OSImageSpec.DeepCopyInto(&out.OSImageSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSImageSpec. +func (in *OSImageSpec) DeepCopy() *OSImageSpec { + if in == nil { + return nil } + out := new(OSImageSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *OSImageStatus) DeepCopyInto(out *OSImageStatus) { + *out = *in + out.OSImageStatus = in.OSImageStatus 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 OSImageStatus. +func (in *OSImageStatus) DeepCopy() *OSImageStatus { if in == nil { return nil } - out := new(ProjectClusters) + out := new(OSImageStatus) 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 +4395,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 +4409,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 +4428,79 @@ 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 *PodExecOptions) DeepCopyInto(out *PodExecOptions) { *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.Command != nil { + in, out := &in.Command, &out.Command + *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 PodExecOptions. +func (in *PodExecOptions) DeepCopy() *PodExecOptions { if in == nil { return nil } - out := new(ProjectMembers) + out := new(PodExecOptions) 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 *PodExecOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4392,32 +4508,48 @@ 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 *PredefinedApp) DeepCopyInto(out *PredefinedApp) { *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]) - } - } + 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 ProjectMembersList. -func (in *ProjectMembersList) DeepCopy() *ProjectMembersList { +// 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(ProjectMembersList) + 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 *Project) DeepCopyInto(out *Project) { + *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 { + if in == nil { + return nil + } + 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 } @@ -4425,26 +4557,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 } @@ -4452,13 +4585,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]) } @@ -4466,18 +4599,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 } @@ -4485,56 +4618,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]) } @@ -4542,18 +4666,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 } @@ -4561,29 +4685,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]) } @@ -4591,18 +4732,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 +4751,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 +4765,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 +4784,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 +4811,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 +4825,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 +4844,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 +4874,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 +4946,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 +4960,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 +4979,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 +5039,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 +5058,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 +5101,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 +5115,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 +5134,62 @@ 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]) + } + } + if in.OSImages != nil { + in, out := &in.OSImages, &out.OSImages + *out = make([]storagev1.OSImage, 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 +5197,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 +5211,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 +5230,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,44 +5256,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 } @@ -5242,13 +5275,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]) } @@ -5256,18 +5289,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 } @@ -5275,44 +5308,31 @@ 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 } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerConfig. -func (in *RunnerConfig) DeepCopy() *RunnerConfig { - if in == nil { - return nil - } - out := new(RunnerConfig) - 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 + 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 + } } - 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) { - *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.Access != nil { + in, out := &in.Access, &out.Access + *out = make([]storagev1.Access, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5320,32 +5340,22 @@ 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 ProjectSecretSpec. +func (in *ProjectSecretSpec) DeepCopy() *ProjectSecretSpec { if in == nil { return nil } - out := new(RunnerConfigList) + out := new(ProjectSecretSpec) 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 *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([]Runner, 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]) } @@ -5353,80 +5363,84 @@ 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 ProjectSecretStatus. +func (in *ProjectSecretStatus) DeepCopy() *ProjectSecretStatus { if in == nil { return nil } - out := new(RunnerList) + out := new(ProjectSecretStatus) 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 *RunnerSpec) DeepCopyInto(out *RunnerSpec) { +func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec) { *out = *in - in.RunnerSpec.DeepCopyInto(&out.RunnerSpec) + in.ProjectSpec.DeepCopyInto(&out.ProjectSpec) 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 ProjectSpec. +func (in *ProjectSpec) DeepCopy() *ProjectSpec { if in == nil { return nil } - out := new(RunnerSpec) + 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 *RunnerStatus) DeepCopyInto(out *RunnerStatus) { +func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus) { *out = *in - in.RunnerStatus.DeepCopyInto(&out.RunnerStatus) + in.ProjectStatus.DeepCopyInto(&out.ProjectStatus) 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 ProjectStatus. +func (in *ProjectStatus) DeepCopy() *ProjectStatus { if in == nil { return nil } - out := new(RunnerStatus) + 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 *Self) DeepCopyInto(out *Self) { +func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) + 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 Self. -func (in *Self) DeepCopy() *Self { +// 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(Self) + out := new(ProjectTemplates) 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 *ProjectTemplates) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5434,13 +5448,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 *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([]Self, len(*in)) + *out = make([]ProjectTemplates, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5448,18 +5462,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 ProjectTemplatesList. +func (in *ProjectTemplatesList) DeepCopy() *ProjectTemplatesList { if in == nil { return nil } - out := new(SelfList) + out := new(ProjectTemplatesList) 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 *ProjectTemplatesList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5467,98 +5481,57 @@ 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 *RedirectToken) DeepCopyInto(out *RedirectToken) { *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSpec. -func (in *SelfSpec) DeepCopy() *SelfSpec { +// 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(SelfSpec) + 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 *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 +// 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(SelfStatus) - 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 *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) { +func (in *RedirectTokenClaims) DeepCopyInto(out *RedirectTokenClaims) { *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 { +// 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(SelfSubjectAccessReview) + out := new(RedirectTokenClaims) 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) { +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([]SelfSubjectAccessReview, len(*in)) + *out = make([]RedirectToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5566,18 +5539,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 RedirectTokenList. +func (in *RedirectTokenList) DeepCopy() *RedirectTokenList { if in == nil { return nil } - out := new(SelfSubjectAccessReviewList) + out := new(RedirectTokenList) 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 *RedirectTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5585,61 +5558,59 @@ 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 *RedirectTokenSpec) DeepCopyInto(out *RedirectTokenSpec) { *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 RedirectTokenSpec. +func (in *RedirectTokenSpec) DeepCopy() *RedirectTokenSpec { if in == nil { return nil } - out := new(SelfSubjectAccessReviewSpec) + 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 *SelfSubjectAccessReviewStatus) DeepCopyInto(out *SelfSubjectAccessReviewStatus) { +func (in *RedirectTokenStatus) DeepCopyInto(out *RedirectTokenStatus) { *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 RedirectTokenStatus. +func (in *RedirectTokenStatus) DeepCopy() *RedirectTokenStatus { if in == nil { return nil } - out := new(SelfSubjectAccessReviewStatus) + 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 *SharedSecret) DeepCopyInto(out *SharedSecret) { +func (in *RegisterVirtualCluster) DeepCopyInto(out *RegisterVirtualCluster) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Status = in.Status 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 RegisterVirtualCluster. +func (in *RegisterVirtualCluster) DeepCopy() *RegisterVirtualCluster { if in == nil { return nil } - out := new(SharedSecret) + out := new(RegisterVirtualCluster) 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 *RegisterVirtualCluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5647,13 +5618,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 *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([]SharedSecret, len(*in)) + *out = make([]RegisterVirtualCluster, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5661,18 +5632,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 RegisterVirtualClusterList. +func (in *RegisterVirtualClusterList) DeepCopy() *RegisterVirtualClusterList { if in == nil { return nil } - out := new(SharedSecretList) + out := new(RegisterVirtualClusterList) 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 *RegisterVirtualClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5680,41 +5651,44 @@ 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 *RegisterVirtualClusterSpec) DeepCopyInto(out *RegisterVirtualClusterSpec) { *out = *in - in.SharedSecretSpec.DeepCopyInto(&out.SharedSecretSpec) + if in.Standalone != nil { + in, out := &in.Standalone, &out.Standalone + *out = new(bool) + **out = **in + } 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 RegisterVirtualClusterSpec. +func (in *RegisterVirtualClusterSpec) DeepCopy() *RegisterVirtualClusterSpec { if in == nil { return nil } - out := new(SharedSecretSpec) + 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 *SharedSecretStatus) DeepCopyInto(out *SharedSecretStatus) { +func (in *RegisterVirtualClusterStatus) DeepCopyInto(out *RegisterVirtualClusterStatus) { *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 { +// 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(SharedSecretStatus) + 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 *SpaceInstance) DeepCopyInto(out *SpaceInstance) { +func (in *ResetAccessKey) DeepCopyInto(out *ResetAccessKey) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -5723,18 +5697,18 @@ func (in *SpaceInstance) DeepCopyInto(out *SpaceInstance) { 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 ResetAccessKey. +func (in *ResetAccessKey) DeepCopy() *ResetAccessKey { if in == nil { return nil } - out := new(SpaceInstance) + out := new(ResetAccessKey) 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 *ResetAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5742,13 +5716,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 *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([]SpaceInstance, len(*in)) + *out = make([]ResetAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5756,18 +5730,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 ResetAccessKeyList. +func (in *ResetAccessKeyList) DeepCopy() *ResetAccessKeyList { if in == nil { return nil } - out := new(SpaceInstanceList) + out := new(ResetAccessKeyList) 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 *ResetAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5775,66 +5749,61 @@ 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 *ResetAccessKeySpec) DeepCopyInto(out *ResetAccessKeySpec) { *out = *in - in.SpaceInstanceSpec.DeepCopyInto(&out.SpaceInstanceSpec) + in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) 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 ResetAccessKeySpec. +func (in *ResetAccessKeySpec) DeepCopy() *ResetAccessKeySpec { if in == nil { return nil } - out := new(SpaceInstanceSpec) + 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 *SpaceInstanceStatus) DeepCopyInto(out *SpaceInstanceStatus) { +func (in *ResetAccessKeyStatus) DeepCopyInto(out *ResetAccessKeyStatus) { *out = *in - in.SpaceInstanceStatus.DeepCopyInto(&out.SpaceInstanceStatus) - if in.SleepModeConfig != nil { - in, out := &in.SleepModeConfig, &out.SleepModeConfig - *out = new(clusterv1.SleepModeConfig) - (*in).DeepCopyInto(*out) - } + in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) 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 ResetAccessKeyStatus. +func (in *ResetAccessKeyStatus) DeepCopy() *ResetAccessKeyStatus { if in == nil { return nil } - out := new(SpaceInstanceStatus) + 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 *SpaceTemplate) DeepCopyInto(out *SpaceTemplate) { +func (in *SSHKey) DeepCopyInto(out *SSHKey) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Status = in.Status 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 SSHKey. +func (in *SSHKey) DeepCopy() *SSHKey { if in == nil { return nil } - out := new(SpaceTemplate) + out := new(SSHKey) 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 *SSHKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5842,13 +5811,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 *SSHKeyList) DeepCopyInto(out *SSHKeyList) { *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([]SSHKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5856,18 +5825,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 SSHKeyList. +func (in *SSHKeyList) DeepCopy() *SSHKeyList { if in == nil { return nil } - out := new(SpaceTemplateList) + out := new(SSHKeyList) 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 *SSHKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5875,52 +5844,159 @@ 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 *SSHKeySpec) DeepCopyInto(out *SSHKeySpec) { *out = *in - in.SpaceTemplateSpec.DeepCopyInto(&out.SpaceTemplateSpec) + in.SSHKeySpec.DeepCopyInto(&out.SSHKeySpec) 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 SSHKeySpec. +func (in *SSHKeySpec) DeepCopy() *SSHKeySpec { if in == nil { return nil } - out := new(SpaceTemplateSpec) + out := new(SSHKeySpec) 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 *SSHKeyStatus) DeepCopyInto(out *SSHKeyStatus) { *out = *in - out.SpaceTemplateStatus = in.SpaceTemplateStatus - if in.Apps != nil { - in, out := &in.Apps, &out.Apps - *out = make([]*storagev1.EntityInfo, len(*in)) + out.SSHKeyStatus = in.SSHKeyStatus + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHKeyStatus. +func (in *SSHKeyStatus) DeepCopy() *SSHKeyStatus { + if in == nil { + return nil + } + out := new(SSHKeyStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Self) DeepCopyInto(out *Self) { + *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 { + if in == nil { + return nil + } + out := new(Self) + 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) { + *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)) 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 SelfList. +func (in *SelfList) DeepCopy() *SelfList { if in == nil { return nil } - out := new(SpaceTemplateStatus) + 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 *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) { +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) @@ -5929,18 +6005,18 @@ func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) { 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 SelfSubjectAccessReview. +func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview { if in == nil { return nil } - out := new(SubjectAccessReview) + out := new(SelfSubjectAccessReview) 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 *SelfSubjectAccessReview) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5948,13 +6024,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 *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([]SubjectAccessReview, len(*in)) + *out = make([]SelfSubjectAccessReview, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5962,18 +6038,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 SelfSubjectAccessReviewList. +func (in *SelfSubjectAccessReviewList) DeepCopy() *SelfSubjectAccessReviewList { if in == nil { return nil } - out := new(SubjectAccessReviewList) + out := new(SelfSubjectAccessReviewList) 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 *SelfSubjectAccessReviewList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5981,94 +6057,1985 @@ 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 *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) { *out = *in - in.SubjectAccessReviewSpec.DeepCopyInto(&out.SubjectAccessReviewSpec) + in.SelfSubjectAccessReviewSpec.DeepCopyInto(&out.SelfSubjectAccessReviewSpec) 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 SelfSubjectAccessReviewSpec. +func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec { if in == nil { return nil } - out := new(SubjectAccessReviewSpec) + 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 *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) { +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 SubjectAccessReviewStatus. -func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus { +// 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(SubjectAccessReviewStatus) + 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 *Task) DeepCopyInto(out *Task) { +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(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 *UserAccessKeys) DeepCopyInto(out *UserAccessKeys) { + *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 { + if in == nil { + return nil + } + 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 *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([]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 UserAccessKeysList. +func (in *UserAccessKeysList) DeepCopy() *UserAccessKeysList { + if in == nil { + return nil + } + 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 *UserClusters) DeepCopyInto(out *UserClusters) { + *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 UserClusters. +func (in *UserClusters) DeepCopy() *UserClusters { + if in == nil { + return nil + } + 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 *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) { + *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) + if in.ObjectPermissions != nil { + in, out := &in.ObjectPermissions, &out.ObjectPermissions + *out = make([]ObjectPermission, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserObjectPermissions. +func (in *UserObjectPermissions) DeepCopy() *UserObjectPermissions { + if in == nil { + return nil + } + out := new(UserObjectPermissions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserObjectPermissions) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserObjectPermissionsList) DeepCopyInto(out *UserObjectPermissionsList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UserObjectPermissions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserObjectPermissionsList. +func (in *UserObjectPermissionsList) DeepCopy() *UserObjectPermissionsList { + if in == nil { + return nil + } + out := new(UserObjectPermissionsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserObjectPermissionsList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserPermissions) DeepCopyInto(out *UserPermissions) { + *out = *in + 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 UserPermissions. +func (in *UserPermissions) DeepCopy() *UserPermissions { + if in == nil { + return nil + } + 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 *UserPermissionsList) DeepCopyInto(out *UserPermissionsList) { + *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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// 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(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 *UserProfile) DeepCopyInto(out *UserProfile) { + *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 + } + 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 UserProfile. +func (in *UserProfile) DeepCopy() *UserProfile { + if in == nil { + return nil + } + out := new(UserProfile) + 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) { + *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]) + } + } + return +} + +// 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(UserProfileList) + 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 +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserProfileSecret) DeepCopyInto(out *UserProfileSecret) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProfileSecret. +func (in *UserProfileSecret) DeepCopy() *UserProfileSecret { + if in == nil { + return nil + } + out := new(UserProfileSecret) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserQuotasOptions) DeepCopyInto(out *UserQuotasOptions) { + *out = *in + out.TypeMeta = in.TypeMeta + 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 UserQuotasOptions. +func (in *UserQuotasOptions) DeepCopy() *UserQuotasOptions { + if in == nil { + return nil + } + out := new(UserQuotasOptions) + 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserSpacesOptions) DeepCopyInto(out *UserSpacesOptions) { + *out = *in + out.TypeMeta = in.TypeMeta + 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 UserSpacesOptions. +func (in *UserSpacesOptions) DeepCopy() *UserSpacesOptions { + if in == nil { + return nil + } + out := new(UserSpacesOptions) + 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserSpec) DeepCopyInto(out *UserSpec) { + *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 { + if in == nil { + return nil + } + 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 *UserStatus) DeepCopyInto(out *UserStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.UserStatus.DeepCopyInto(&out.UserStatus) 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 UserStatus. +func (in *UserStatus) DeepCopy() *UserStatus { if in == nil { return nil } - out := new(Task) + out := new(UserStatus) 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) { +func (in *UserVirtualClustersOptions) DeepCopyInto(out *UserVirtualClustersOptions) { *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]) - } + 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 TaskList. -func (in *TaskList) DeepCopy() *TaskList { +// 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(TaskList) + out := new(UserVirtualClustersOptions) 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 *UserVirtualClustersOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6076,25 +8043,25 @@ 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 *VirtualClusterAccessKey) DeepCopyInto(out *VirtualClusterAccessKey) { *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 VirtualClusterAccessKey. +func (in *VirtualClusterAccessKey) DeepCopy() *VirtualClusterAccessKey { if in == nil { return nil } - out := new(TaskLog) + out := new(VirtualClusterAccessKey) 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 { +func (in *VirtualClusterAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6102,13 +8069,13 @@ func (in *TaskLog) DeepCopyObject() runtime.Object { } // 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 *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([]TaskLog, len(*in)) + *out = make([]VirtualClusterAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6116,18 +8083,18 @@ func (in *TaskLogList) DeepCopyInto(out *TaskLogList) { 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 VirtualClusterAccessKeyList. +func (in *VirtualClusterAccessKeyList) DeepCopy() *VirtualClusterAccessKeyList { if in == nil { return nil } - out := new(TaskLogList) + out := new(VirtualClusterAccessKeyList) 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 *VirtualClusterAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6135,115 +8102,96 @@ 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 *VirtualClusterDebugShellPodStatus) DeepCopyInto(out *VirtualClusterDebugShellPodStatus) { *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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterDebugShellPodStatus. +func (in *VirtualClusterDebugShellPodStatus) DeepCopy() *VirtualClusterDebugShellPodStatus { if in == nil { return nil } - out := new(TaskLogOptions) + out := new(VirtualClusterDebugShellPodStatus) 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 +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterDebugShellPodsStatus) DeepCopyInto(out *VirtualClusterDebugShellPodsStatus) { + *out = *in + if in.Pods != nil { + in, out := &in.Pods, &out.Pods + *out = make([]VirtualClusterDebugShellPodStatus, len(*in)) + copy(*out, *in) } - return nil + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterDebugShellPodsStatus. +func (in *VirtualClusterDebugShellPodsStatus) DeepCopy() *VirtualClusterDebugShellPodsStatus { + if in == nil { + return nil + } + out := new(VirtualClusterDebugShellPodsStatus) + in.DeepCopyInto(out) + return out } // 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 *VirtualClusterDebugShellSpec) DeepCopyInto(out *VirtualClusterDebugShellSpec) { *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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterDebugShellSpec. +func (in *VirtualClusterDebugShellSpec) DeepCopy() *VirtualClusterDebugShellSpec { if in == nil { return nil } - out := new(TaskSpec) + out := new(VirtualClusterDebugShellSpec) 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 *VirtualClusterDebugShellStatus) DeepCopyInto(out *VirtualClusterDebugShellStatus) { *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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterDebugShellStatus. +func (in *VirtualClusterDebugShellStatus) DeepCopy() *VirtualClusterDebugShellStatus { if in == nil { return nil } - out := new(TaskStatus) + out := new(VirtualClusterDebugShellStatus) 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 *VirtualClusterExternalDatabase) DeepCopyInto(out *VirtualClusterExternalDatabase) { *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 Team. -func (in *Team) DeepCopy() *Team { +// 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(Team) + out := new(VirtualClusterExternalDatabase) 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 *VirtualClusterExternalDatabase) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6251,13 +8199,13 @@ 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 *VirtualClusterExternalDatabaseList) DeepCopyInto(out *VirtualClusterExternalDatabaseList) { *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)) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterExternalDatabase, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6265,18 +8213,18 @@ func (in *TeamAccessKeys) DeepCopyInto(out *TeamAccessKeys) { 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 VirtualClusterExternalDatabaseList. +func (in *VirtualClusterExternalDatabaseList) DeepCopy() *VirtualClusterExternalDatabaseList { if in == nil { return nil } - out := new(TeamAccessKeys) + out := new(VirtualClusterExternalDatabaseList) 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 *VirtualClusterExternalDatabaseList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6284,65 +8232,59 @@ 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 *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([]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 { +// 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(TeamAccessKeysList) + out := new(VirtualClusterExternalDatabaseSpec) 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 +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopyInto(out *VirtualClusterExternalDatabaseStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseStatus. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopy() *VirtualClusterExternalDatabaseStatus { + if in == nil { + return nil } - return nil + out := new(VirtualClusterExternalDatabaseStatus) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamClusters) DeepCopyInto(out *TeamClusters) { +func (in *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { *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]) - } - } + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.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 VirtualClusterInstance. +func (in *VirtualClusterInstance) DeepCopy() *VirtualClusterInstance { if in == nil { return nil } - out := new(TeamClusters) + out := new(VirtualClusterInstance) 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 *VirtualClusterInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6350,32 +8292,27 @@ 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 *VirtualClusterInstanceDebugShell) DeepCopyInto(out *VirtualClusterInstanceDebugShell) { *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]) - } - } + 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 TeamClustersList. -func (in *TeamClustersList) DeepCopy() *TeamClustersList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceDebugShell. +func (in *VirtualClusterInstanceDebugShell) DeepCopy() *VirtualClusterInstanceDebugShell { if in == nil { return nil } - out := new(TeamClustersList) + out := new(VirtualClusterInstanceDebugShell) 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 *VirtualClusterInstanceDebugShell) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6383,13 +8320,13 @@ func (in *TeamClustersList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamList) DeepCopyInto(out *TeamList) { +func (in *VirtualClusterInstanceDebugShellList) DeepCopyInto(out *VirtualClusterInstanceDebugShellList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Team, len(*in)) + *out = make([]VirtualClusterInstanceDebugShell, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6397,18 +8334,18 @@ func (in *TeamList) DeepCopyInto(out *TeamList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamList. -func (in *TeamList) DeepCopy() *TeamList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceDebugShellList. +func (in *VirtualClusterInstanceDebugShellList) DeepCopy() *VirtualClusterInstanceDebugShellList { if in == nil { return nil } - out := new(TeamList) + out := new(VirtualClusterInstanceDebugShellList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceDebugShellList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6416,61 +8353,87 @@ func (in *TeamList) DeepCopyObject() runtime.Object { } // 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 *VirtualClusterInstanceDebugShellPods) DeepCopyInto(out *VirtualClusterInstanceDebugShellPods) { *out = *in - in.TeamSpec.DeepCopyInto(&out.TeamSpec) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Status.DeepCopyInto(&out.Status) 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 VirtualClusterInstanceDebugShellPods. +func (in *VirtualClusterInstanceDebugShellPods) DeepCopy() *VirtualClusterInstanceDebugShellPods { if in == nil { return nil } - out := new(TeamSpec) + out := new(VirtualClusterInstanceDebugShellPods) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterInstanceDebugShellPods) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // 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 *VirtualClusterInstanceDebugShellPodsList) DeepCopyInto(out *VirtualClusterInstanceDebugShellPodsList) { *out = *in - out.TeamStatus = in.TeamStatus + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterInstanceDebugShellPods, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } 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 VirtualClusterInstanceDebugShellPodsList. +func (in *VirtualClusterInstanceDebugShellPodsList) DeepCopy() *VirtualClusterInstanceDebugShellPodsList { if in == nil { return nil } - out := new(TeamStatus) + out := new(VirtualClusterInstanceDebugShellPodsList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterInstanceDebugShellPodsList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != 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 +8441,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 +8455,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 +8474,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 +8544,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 +8570,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 +8584,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 +8603,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 +8647,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 +8675,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 +8689,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 +8708,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 +8735,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 +8749,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 +8768,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 +8780,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 +8858,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 +8891,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 +8950,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 +8983,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 +9069,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 +9083,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 +9102,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 +9194,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 +9227,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 +9371,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/v1/zz_generated.model_name.go b/pkg/apis/management/v1/zz_generated.model_name.go new file mode 100644 index 00000000..37f0da65 --- /dev/null +++ b/pkg/apis/management/v1/zz_generated.model_name.go @@ -0,0 +1,1816 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// Code generated by openapi-gen. DO NOT EDIT. + +package v1 + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AgentAnalyticsSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AgentAnalyticsSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AgentAuditConfig) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AgentAuditConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AgentAuditEvent) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AgentAuditEvent" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AgentAuditEventList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AgentAuditEventList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AgentAuditEventSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AgentAuditEventSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AgentAuditEventStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AgentAuditEventStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AgentCostControlConfig) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AgentCostControlConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Announcement) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Announcement" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AnnouncementList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AnnouncementList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AnnouncementSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AnnouncementSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AnnouncementStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AnnouncementStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in App) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.App" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppCredentials) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AppCredentials" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppCredentialsList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AppCredentialsList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AppList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AppSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AppStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Apps) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Apps" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AssignedVia) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AssignedVia" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Audit) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Audit" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AuditPolicy) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AuditPolicy" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AuditPolicyRule) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AuditPolicyRule" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Authentication) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Authentication" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AuthenticationGithub) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AuthenticationGithub" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AuthenticationGithubOrg) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AuthenticationGithubOrg" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AuthenticationGitlab) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AuthenticationGitlab" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AuthenticationGoogle) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AuthenticationGoogle" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AuthenticationMicrosoft) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AuthenticationMicrosoft" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AuthenticationOIDC) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AuthenticationOIDC" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AuthenticationPassword) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AuthenticationPassword" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AuthenticationRancher) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AuthenticationRancher" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AuthenticationSAML) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.AuthenticationSAML" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Backup) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Backup" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in BackupApply) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.BackupApply" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in BackupApplyList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.BackupApplyList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in BackupApplyOptions) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.BackupApplyOptions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in BackupApplySpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.BackupApplySpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in BackupList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.BackupList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in BackupSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.BackupSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in BackupStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.BackupStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Cloud) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Cloud" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Cluster) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Cluster" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAccess) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterAccess" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAccessKey) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterAccessKey" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAccessKeyList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterAccessKeyList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAccessList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterAccessList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAccessRole) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterAccessRole" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAccessSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterAccessSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAccessStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterAccessStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAccounts) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterAccounts" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAgentConfig) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterAgentConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAgentConfigCommon) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterAgentConfigCommon" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAgentConfigList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterAgentConfigList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterCharts) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterCharts" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterChartsList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterChartsList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterDomain) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterDomain" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterDomainList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterDomainList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterMember) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterMember" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterMemberAccess) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterMemberAccess" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterMemberAccessList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterMemberAccessList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterMembers) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterMembers" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterMembersList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterMembersList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterReset) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterReset" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterResetList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterResetList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterRoleTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterRoleTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterRoleTemplateList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterRoleTemplateList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterRoleTemplateSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterRoleTemplateSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterRoleTemplateStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterRoleTemplateStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ClusterStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Config) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Config" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ConfigList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ConfigList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ConfigSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ConfigSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ConfigStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ConfigStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Connector) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Connector" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ConnectorWithName) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ConnectorWithName" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ConvertVirtualClusterConfig) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ConvertVirtualClusterConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ConvertVirtualClusterConfigList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ConvertVirtualClusterConfigList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ConvertVirtualClusterConfigSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ConvertVirtualClusterConfigSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ConvertVirtualClusterConfigStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ConvertVirtualClusterConfigStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CostControl) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.CostControl" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CostControlClusterConfig) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.CostControlClusterConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CostControlGPUSettings) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.CostControlGPUSettings" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CostControlGlobalConfig) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.CostControlGlobalConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CostControlResourcePrice) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.CostControlResourcePrice" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CostControlSettings) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.CostControlSettings" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in DatabaseConnector) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.DatabaseConnector" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in DatabaseConnectorList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.DatabaseConnectorList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in DatabaseConnectorSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.DatabaseConnectorSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in DatabaseConnectorStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.DatabaseConnectorStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in DatabaseKine) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.DatabaseKine" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in DirectClusterEndpointToken) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.DirectClusterEndpointToken" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in DirectClusterEndpointTokenList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.DirectClusterEndpointTokenList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in DirectClusterEndpointTokenSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.DirectClusterEndpointTokenSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in DirectClusterEndpointTokenStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.DirectClusterEndpointTokenStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Event) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Event" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in EventList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.EventList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in EventSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.EventSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in EventStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.EventStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Feature) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Feature" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in FeatureList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.FeatureList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in FeatureSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.FeatureSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in FeatureStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.FeatureStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in GroupResources) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.GroupResources" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ImageBuilder) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ImageBuilder" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in IngressAuthToken) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.IngressAuthToken" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in IngressAuthTokenList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.IngressAuthTokenList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in IngressAuthTokenSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.IngressAuthTokenSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in IngressAuthTokenStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.IngressAuthTokenStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Kiosk) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Kiosk" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in KioskList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.KioskList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in KioskSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.KioskSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in KioskStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.KioskStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in License) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.License" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LicenseList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.LicenseList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LicenseRequest) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.LicenseRequest" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LicenseRequestList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.LicenseRequestList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LicenseRequestSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.LicenseRequestSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LicenseRequestStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.LicenseRequestStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LicenseSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.LicenseSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LicenseStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.LicenseStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LoftUpgrade) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.LoftUpgrade" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LoftUpgradeList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.LoftUpgradeList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LoftUpgradeSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.LoftUpgradeSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LoftUpgradeStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.LoftUpgradeStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in MaintenanceWindow) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.MaintenanceWindow" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ManagementRole) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ManagementRole" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NamespacedNameArgs) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NamespacedNameArgs" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeClaim) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeClaim" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeClaimData) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeClaimData" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeClaimList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeClaimList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeClaimSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeClaimSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeClaimStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeClaimStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeEnvironment) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeEnvironment" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeEnvironmentData) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeEnvironmentData" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeEnvironmentList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeEnvironmentList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeEnvironmentSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeEnvironmentSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeEnvironmentStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeEnvironmentStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProvider) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProvider" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderBCMGetResourcesResult) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderBCMGetResourcesResult" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderBCMNodeGroup) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderBCMNodeGroup" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderBCMNodeWithResources) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderBCMNodeWithResources" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderBCMTestConnectionResult) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderBCMTestConnectionResult" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderCalculateCostResult) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderCalculateCostResult" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderExec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderExec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderExecList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderExecList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderExecResult) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderExecResult" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderExecSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderExecSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderExecStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderExecStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderTerraformValidateResult) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeProviderTerraformValidateResult" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeType) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeType" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeTypeList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeTypeList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeTypeSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeTypeSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeTypeStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.NodeTypeStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OIDC) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OIDC" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OIDCClient) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OIDCClient" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OIDCClientList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OIDCClientList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OIDCClientSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OIDCClientSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OIDCClientStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OIDCClientStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OSImage) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OSImage" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OSImageList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OSImageList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OSImageSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OSImageSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OSImageStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OSImageStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ObjectName) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ObjectName" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ObjectPermission) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ObjectPermission" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Operation) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Operation" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OwnedAccessKey) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OwnedAccessKey" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OwnedAccessKeyList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OwnedAccessKeyList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OwnedAccessKeySpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OwnedAccessKeySpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OwnedAccessKeyStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.OwnedAccessKeyStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in PlatformDB) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.PlatformDB" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in PodExecOptions) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.PodExecOptions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in PredefinedApp) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.PredefinedApp" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Project) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Project" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectChartInfo) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectChartInfo" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectChartInfoList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectChartInfoList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectChartInfoSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectChartInfoSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectChartInfoStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectChartInfoStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectCharts) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectCharts" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectChartsList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectChartsList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectClusters) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectClusters" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectClustersList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectClustersList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectImportSpace) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectImportSpace" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectImportSpaceList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectImportSpaceList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectImportSpaceSource) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectImportSpaceSource" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectMember) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectMember" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectMembers) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectMembers" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectMembersList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectMembersList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectMembership) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectMembership" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectMigrateSpaceInstance) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectMigrateSpaceInstance" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectMigrateSpaceInstanceList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectMigrateSpaceInstanceList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectMigrateSpaceInstanceSource) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectMigrateSpaceInstanceSource" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectMigrateVirtualClusterInstance) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectMigrateVirtualClusterInstance" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectMigrateVirtualClusterInstanceList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectMigrateVirtualClusterInstanceList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectMigrateVirtualClusterInstanceSource) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectMigrateVirtualClusterInstanceSource" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectNodeTypes) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectNodeTypes" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectNodeTypesList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectNodeTypesList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectRole) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectRole" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectSecret) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectSecret" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectSecretList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectSecretList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectSecretSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectSecretSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectSecretStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectSecretStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectTemplates) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectTemplates" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectTemplatesList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ProjectTemplatesList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RedirectToken) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.RedirectToken" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RedirectTokenClaims) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.RedirectTokenClaims" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RedirectTokenList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.RedirectTokenList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RedirectTokenSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.RedirectTokenSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RedirectTokenStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.RedirectTokenStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RegisterVirtualCluster) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.RegisterVirtualCluster" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RegisterVirtualClusterList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.RegisterVirtualClusterList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RegisterVirtualClusterSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.RegisterVirtualClusterSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RegisterVirtualClusterStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.RegisterVirtualClusterStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ResetAccessKey) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ResetAccessKey" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ResetAccessKeyList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ResetAccessKeyList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ResetAccessKeySpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ResetAccessKeySpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ResetAccessKeyStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.ResetAccessKeyStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SSHKey) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SSHKey" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SSHKeyList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SSHKeyList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SSHKeySpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SSHKeySpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SSHKeyStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SSHKeyStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Self) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Self" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SelfList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SelfList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SelfSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SelfSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SelfStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SelfStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SelfSubjectAccessReview) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SelfSubjectAccessReview" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SelfSubjectAccessReviewList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SelfSubjectAccessReviewList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SelfSubjectAccessReviewSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SelfSubjectAccessReviewSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SelfSubjectAccessReviewStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SelfSubjectAccessReviewStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SharedSecret) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SharedSecret" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SharedSecretList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SharedSecretList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SharedSecretSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SharedSecretSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SharedSecretStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SharedSecretStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SnapshotRequest) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SnapshotRequest" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SnapshotRequestError) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SnapshotRequestError" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SnapshotRequestMetadata) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SnapshotRequestMetadata" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SnapshotRequestStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SnapshotRequestStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SnapshotTaken) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SnapshotTaken" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceInstance) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SpaceInstance" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceInstanceList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SpaceInstanceList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceInstanceSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SpaceInstanceSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceInstanceStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SpaceInstanceStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SpaceTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceTemplateList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SpaceTemplateList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceTemplateSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SpaceTemplateSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceTemplateStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SpaceTemplateStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in StandaloneEtcdPeer) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.StandaloneEtcdPeer" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in StandaloneEtcdPeerCoordinator) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.StandaloneEtcdPeerCoordinator" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in StandalonePKI) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.StandalonePKI" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SubjectAccessReview) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SubjectAccessReview" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SubjectAccessReviewList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SubjectAccessReviewList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SubjectAccessReviewSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SubjectAccessReviewSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SubjectAccessReviewStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.SubjectAccessReviewStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Task) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Task" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TaskList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TaskList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TaskLog) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TaskLog" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TaskLogList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TaskLogList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TaskLogOptions) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TaskLogOptions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TaskSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TaskSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TaskStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TaskStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Team) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.Team" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamAccessKeys) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TeamAccessKeys" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamAccessKeysList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TeamAccessKeysList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamClusters) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TeamClusters" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamClustersList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TeamClustersList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TeamList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamObjectPermissions) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TeamObjectPermissions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamObjectPermissionsList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TeamObjectPermissionsList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamPermissions) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TeamPermissions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamPermissionsList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TeamPermissionsList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TeamSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TeamStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TranslateVClusterResourceName) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TranslateVClusterResourceName" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TranslateVClusterResourceNameList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TranslateVClusterResourceNameList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TranslateVClusterResourceNameSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TranslateVClusterResourceNameSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TranslateVClusterResourceNameStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.TranslateVClusterResourceNameStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UsageDownload) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UsageDownload" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UsageDownloadList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UsageDownloadList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UsageDownloadSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UsageDownloadSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UsageDownloadStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UsageDownloadStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in User) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.User" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserAccessKeys) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserAccessKeys" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserAccessKeysList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserAccessKeysList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserClusters) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserClusters" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserClustersList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserClustersList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserInfo) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserInfo" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserObjectPermissions) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserObjectPermissions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserObjectPermissionsList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserObjectPermissionsList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserPermissions) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserPermissions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserPermissionsList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserPermissionsList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserPermissionsRole) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserPermissionsRole" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserProfile) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserProfile" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserProfileList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserProfileList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserProfileSecret) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserProfileSecret" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserQuotasOptions) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserQuotasOptions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserSpacesOptions) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserSpacesOptions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserVirtualClustersOptions) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.UserVirtualClustersOptions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterAccessKey) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterAccessKey" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterAccessKeyList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterAccessKeyList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterDebugShellPodStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterDebugShellPodStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterDebugShellPodsStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterDebugShellPodsStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterDebugShellSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterDebugShellSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterDebugShellStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterDebugShellStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterExternalDatabase) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabase" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterExternalDatabaseList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabaseList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterExternalDatabaseSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabaseSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterExternalDatabaseStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabaseStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstance) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstance" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceDebugShell) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceDebugShell" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceDebugShellList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceDebugShellList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceDebugShellPods) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceDebugShellPods" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceDebugShellPodsList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceDebugShellPodsList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceKubeConfig) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceKubeConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceKubeConfigList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceKubeConfigList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceKubeConfigSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceKubeConfigSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceKubeConfigStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceKubeConfigStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceLog) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceLog" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceLogList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceLogList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceLogOptions) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceLogOptions" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceShell) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceShell" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceShellList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceShellList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceSnapshot) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceSnapshot" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceSnapshotList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceSnapshotList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceSnapshotStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceSnapshotStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstanceStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterNodeAccessKey) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterNodeAccessKey" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterNodeAccessKeyList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterNodeAccessKeyList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterNodeAccessKeySpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterNodeAccessKeySpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterNodeAccessKeyStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterNodeAccessKeyStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterResourceUsage) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterResourceUsage" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterResourceUsageList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterResourceUsageList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterResourceUsageMap) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterResourceUsageMap" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterResourceUsageStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterResourceUsageStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterRole) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterRole" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterSchema) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterSchema" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterSchemaList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterSchemaList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterSchemaSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterSchemaSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterSchemaStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterSchemaStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterShellSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterShellSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterShellStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterShellStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterStandalone) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterStandalone" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterStandaloneList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterStandaloneList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterStandaloneSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterStandaloneSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterStandaloneStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterStandaloneStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterTemplateList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterTemplateList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterTemplateSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterTemplateSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterTemplateStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterTemplateStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VolumeSnapshotRequestStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VolumeSnapshotRequestStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VolumeSnapshotsRequestStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.management.v1.VolumeSnapshotsRequestStatus" +} diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 15c51fdc..ec63a39d 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 @@ -240,7 +272,17 @@ var ( NewOIDCClientREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewOIDCClientRESTFunc(Factory) } - NewOIDCClientRESTFunc NewRESTFunc + NewOIDCClientRESTFunc NewRESTFunc + ManagementOSImageStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalOSImage, + func() runtime.Object { return &OSImage{} }, // Register versioned resource + func() runtime.Object { return &OSImageList{} }, // Register versioned resource list + NewOSImageREST, + ) + NewOSImageREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewOSImageRESTFunc(Factory) + } + NewOSImageRESTFunc NewRESTFunc ManagementOwnedAccessKeyStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalOwnedAccessKey, func() runtime.Object { return &OwnedAccessKey{} }, // Register versioned resource @@ -305,21 +347,17 @@ 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, + ManagementSSHKeyStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalSSHKey, + func() runtime.Object { return &SSHKey{} }, // Register versioned resource + func() runtime.Object { return &SSHKeyList{} }, // Register versioned resource list + NewSSHKeyREST, ) - NewRunnerREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewRunnerRESTFunc(Factory) - } - NewRunnerRESTFunc NewRESTFunc - NewRunnerStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewRunnerStatusRESTFunc(Factory) + NewSSHKeyREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewSSHKeyRESTFunc(Factory) } - NewRunnerStatusRESTFunc NewRESTFunc - ManagementSelfStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + NewSSHKeyRESTFunc NewRESTFunc + 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 +447,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 +476,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 +628,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 +677,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 +769,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 +781,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", @@ -827,6 +849,18 @@ var ( func() runtime.Object { return &OIDCClient{} }, func() runtime.Object { return &OIDCClientList{} }, ) + InternalOSImage = builders.NewInternalResource( + "osimages", + "OSImage", + func() runtime.Object { return &OSImage{} }, + func() runtime.Object { return &OSImageList{} }, + ) + InternalOSImageStatus = builders.NewInternalResourceStatus( + "osimages", + "OSImageStatus", + func() runtime.Object { return &OSImage{} }, + func() runtime.Object { return &OSImageList{} }, + ) InternalOwnedAccessKey = builders.NewInternalResource( "ownedaccesskeys", "OwnedAccessKey", @@ -907,14 +941,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 +1005,19 @@ 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{} }, + InternalSSHKey = builders.NewInternalResource( + "sshkeys", + "SSHKey", + func() runtime.Object { return &SSHKey{} }, + func() runtime.Object { return &SSHKeyList{} }, ) - NewRunnerAccessKeyREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewRunnerAccessKeyRESTFunc(Factory) - } - NewRunnerAccessKeyRESTFunc NewRESTFunc - InternalRunnerConfigREST = builders.NewInternalSubresource( - "runners", "RunnerConfig", "config", - func() runtime.Object { return &RunnerConfig{} }, + InternalSSHKeyStatus = builders.NewInternalResourceStatus( + "sshkeys", + "SSHKeyStatus", + func() runtime.Object { return &SSHKey{} }, + func() runtime.Object { return &SSHKeyList{} }, ) - 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 +1136,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 +1165,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 +1204,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{} }, ) @@ -1195,6 +1249,30 @@ var ( return NewVirtualClusterAccessKeyRESTFunc(Factory) } NewVirtualClusterAccessKeyRESTFunc NewRESTFunc + InternalVirtualClusterInstanceDebugShellREST = builders.NewInternalSubresource( + "virtualclusterinstances", "VirtualClusterInstanceDebugShell", "debug-shell", + func() runtime.Object { return &VirtualClusterInstanceDebugShell{} }, + ) + NewVirtualClusterInstanceDebugShellREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewVirtualClusterInstanceDebugShellRESTFunc(Factory) + } + NewVirtualClusterInstanceDebugShellRESTFunc NewRESTFunc + InternalVirtualClusterInstanceDebugShellPodsREST = builders.NewInternalSubresource( + "virtualclusterinstances", "VirtualClusterInstanceDebugShellPods", "debug-shell-pods", + func() runtime.Object { return &VirtualClusterInstanceDebugShellPods{} }, + ) + NewVirtualClusterInstanceDebugShellPodsREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewVirtualClusterInstanceDebugShellPodsRESTFunc(Factory) + } + NewVirtualClusterInstanceDebugShellPodsRESTFunc 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 +1288,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 +1374,6 @@ var ( InternalClusterMemberAccessREST, InternalClusterMembersREST, InternalClusterResetREST, - InternalClusterVirtualClusterDefaultsREST, InternalClusterAccess, InternalClusterAccessStatus, InternalClusterRoleTemplate, @@ -1253,18 +1382,8 @@ var ( InternalConfigStatus, InternalConvertVirtualClusterConfig, InternalConvertVirtualClusterConfigStatus, - InternalDevPodEnvironmentTemplate, - InternalDevPodEnvironmentTemplateStatus, - InternalDevPodWorkspaceInstance, - InternalDevPodWorkspaceInstanceStatus, - InternalDevPodDeleteOptionsREST, - InternalDevPodStatusOptionsREST, - InternalDevPodSshOptionsREST, - InternalDevPodWorkspaceInstanceStateREST, - InternalDevPodStopOptionsREST, - InternalDevPodUpOptionsREST, - InternalDevPodWorkspaceTemplate, - InternalDevPodWorkspaceTemplateStatus, + InternalDatabaseConnector, + InternalDatabaseConnectorStatus, InternalDirectClusterEndpointToken, InternalDirectClusterEndpointTokenStatus, InternalEvent, @@ -1278,12 +1397,21 @@ var ( InternalLicense, InternalLicenseStatus, InternalLicenseRequestREST, - InternalLicenseToken, - InternalLicenseTokenStatus, InternalLoftUpgrade, InternalLoftUpgradeStatus, + InternalNodeClaim, + InternalNodeClaimStatus, + InternalNodeEnvironment, + InternalNodeEnvironmentStatus, + InternalNodeProvider, + InternalNodeProviderStatus, + InternalNodeProviderExecREST, + InternalNodeType, + InternalNodeTypeStatus, InternalOIDCClient, InternalOIDCClientStatus, + InternalOSImage, + InternalOSImageStatus, InternalOwnedAccessKey, InternalOwnedAccessKeyStatus, InternalProject, @@ -1295,7 +1423,7 @@ var ( InternalProjectMembersREST, InternalProjectMigrateSpaceInstanceREST, InternalProjectMigrateVirtualClusterInstanceREST, - InternalProjectRunnersREST, + InternalProjectNodeTypesREST, InternalProjectTemplatesREST, InternalProjectSecret, InternalProjectSecretStatus, @@ -1305,10 +1433,8 @@ var ( InternalRegisterVirtualClusterStatus, InternalResetAccessKey, InternalResetAccessKeyStatus, - InternalRunner, - InternalRunnerStatus, - InternalRunnerAccessKeyREST, - InternalRunnerConfigREST, + InternalSSHKey, + InternalSSHKeyStatus, InternalSelf, InternalSelfStatus, InternalSelfSubjectAccessReview, @@ -1328,19 +1454,34 @@ var ( InternalTeamStatus, InternalTeamAccessKeysREST, InternalTeamClustersREST, + InternalTeamObjectPermissionsREST, + InternalTeamPermissionsREST, InternalTranslateVClusterResourceName, InternalTranslateVClusterResourceNameStatus, + InternalUsageDownload, + InternalUsageDownloadStatus, InternalUser, InternalUserStatus, InternalUserAccessKeysREST, InternalUserClustersREST, + InternalUserObjectPermissionsREST, InternalUserPermissionsREST, InternalUserProfileREST, InternalVirtualClusterInstance, InternalVirtualClusterInstanceStatus, InternalVirtualClusterAccessKeyREST, + InternalVirtualClusterInstanceDebugShellREST, + InternalVirtualClusterInstanceDebugShellPodsREST, + InternalVirtualClusterExternalDatabaseREST, InternalVirtualClusterInstanceKubeConfigREST, InternalVirtualClusterInstanceLogREST, + InternalVirtualClusterNodeAccessKeyREST, + InternalVirtualClusterResourceUsageREST, + InternalVirtualClusterInstanceShellREST, + InternalVirtualClusterInstanceSnapshotREST, + InternalVirtualClusterStandaloneREST, + InternalVirtualClusterSchema, + InternalVirtualClusterSchemaStatus, InternalVirtualClusterTemplate, InternalVirtualClusterTemplateStatus, ) @@ -1369,7 +1510,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 +1550,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 +1606,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 +1712,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 +1720,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 +1780,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 +1818,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 +1849,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 +1939,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 +1955,22 @@ 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"` + Database *DatabaseKine `json:"database,omitempty"` } type Connector struct { @@ -1845,107 +2010,67 @@ 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 CostControl struct { + Enabled *bool `json:"enabled,omitempty"` + Global CostControlGlobalConfig `json:"global,omitempty"` + Cluster CostControlClusterConfig `json:"cluster,omitempty"` + Settings *CostControlSettings `json:"settings,omitempty"` } -type DevPodEnvironmentTemplateStatus struct { +type CostControlClusterConfig struct { + Metrics *storagev1.Metrics `json:"metrics,omitempty"` + OpenCost *storagev1.OpenCost `json:"opencost,omitempty"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodSshOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` +type CostControlGPUSettings struct { + Enabled bool `json:"enabled,omitempty"` + AvgGPUPrice *CostControlResourcePrice `json:"averageGPUPrice,omitempty"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodStatusOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` +type CostControlGlobalConfig struct { + Metrics *storagev1.Metrics `json:"metrics,omitempty"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodStopOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` +type CostControlResourcePrice struct { + Price float64 `json:"price,omitempty"` + TimePeriod string `json:"timePeriod,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 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 -// +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 DevPodWorkspaceInstanceSpec struct { - storagev1.DevPodWorkspaceInstanceSpec `json:",inline"` -} - +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceState struct { +type DatabaseConnector struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - State string `json:"state,omitempty"` -} - -type DevPodWorkspaceInstanceStatus struct { - storagev1.DevPodWorkspaceInstanceStatus `json:",inline"` - SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` + Spec DatabaseConnectorSpec `json:"spec,omitempty"` + Status DatabaseConnectorStatus `json:"status,omitempty"` } -// +genclient -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceTemplate struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceTemplateSpec `json:"spec,omitempty"` - Status DevPodWorkspaceTemplateStatus `json:"status,omitempty"` +type DatabaseConnectorSpec struct { + Type string `json:"type,omitempty"` + DisplayName string `json:"displayName,omitempty"` } -type DevPodWorkspaceTemplateSpec struct { - storagev1.DevPodWorkspaceTemplateSpec `json:",inline"` +type DatabaseConnectorStatus struct { } -type DevPodWorkspaceTemplateStatus struct { - storagev1.DevPodWorkspaceTemplateStatus `json:",inline"` +type DatabaseKine struct { + Enabled bool `json:"enabled,omitempty"` + DataSource string `json:"dataSource,omitempty"` + IdentityProvider string `json:"identityProvider,omitempty"` + KeyFile string `json:"keyFile,omitempty"` + CertFile string `json:"certFile,omitempty"` + CaFile string `json:"caFile,omitempty"` + ExtraArgs []string `json:"extraArgs,omitempty"` } // +genclient @@ -2012,6 +2137,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,19 +2175,27 @@ 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 { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type License struct { @@ -2076,60 +2215,192 @@ 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"` + Outputs []byte `json:"outputs,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 +2430,44 @@ type OIDCClientSpec struct { type OIDCClientStatus struct { } +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type OSImage struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec OSImageSpec `json:"spec,omitempty"` + Status OSImageStatus `json:"status,omitempty"` +} + +type OSImageSpec struct { + storagev1.OSImageSpec `json:",inline"` +} + +type OSImageStatus struct { + storagev1.OSImageStatus `json:",inline"` +} + +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 +2487,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 +2544,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 +2573,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 +2607,17 @@ 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"` + OSImages []storagev1.OSImage `json:"osImages,omitempty"` +} + +type ProjectRole struct { + ObjectName `json:",inline"` + IsAdmin bool `json:"isAdmin,omitempty"` } // +genclient @@ -2329,16 +2654,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 +2693,20 @@ 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"` + Standalone *bool `json:"standalone,omitempty"` } type RegisterVirtualClusterStatus struct { - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty"` + Namespace string `json:"namespace,omitempty"` } // +genclient @@ -2405,38 +2729,22 @@ type ResetAccessKeyStatus struct { } // +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"` -} - +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type RunnerConfig struct { +type SSHKey struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - TokenCaCert []byte `json:"tokenCaCert,omitempty"` + Spec SSHKeySpec `json:"spec,omitempty"` + Status SSHKeyStatus `json:"status,omitempty"` } -type RunnerSpec struct { - storagev1.RunnerSpec `json:",inline"` +type SSHKeySpec struct { + storagev1.SSHKeySpec `json:",inline"` } -type RunnerStatus struct { - storagev1.RunnerStatus `json:",inline"` +type SSHKeyStatus struct { + storagev1.SSHKeyStatus `json:",inline"` } // +genclient @@ -2465,6 +2773,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 +2815,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 +2887,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,7 +2976,27 @@ type TeamClusters struct { Clusters []ClusterAccounts `json:"clusters,omitempty"` } -type TeamSpec struct { +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type TeamObjectPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + ObjectPermissions []ObjectPermission `json:"objectPermissions,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type TeamPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Members []ObjectName `json:"members,omitempty"` + ProjectMemberships []ProjectMembership `json:"projectMemberships,omitempty"` + ManagementRoles []ManagementRole `json:"managementRoles,omitempty"` + ClusterAccessRoles []ClusterAccessRole `json:"clusterAccessRoles,omitempty"` + VirtualClusterRoles []VirtualClusterRole `json:"virtualClusterRoles,omitempty"` +} + +type TeamSpec struct { storagev1.TeamSpec `json:",inline"` } @@ -2655,6 +3029,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 +3076,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 +3108,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 +3139,46 @@ type VirtualClusterAccessKey struct { AccessKey string `json:"accessKey,omitempty"` } +type VirtualClusterDebugShellPodStatus struct { + Name string `json:"name,omitempty"` + Namespace string `json:"namespace,omitempty"` + Phase string `json:"phase,omitempty"` + Ready bool `json:"ready,omitempty"` +} + +type VirtualClusterDebugShellPodsStatus struct { + Pods []VirtualClusterDebugShellPodStatus `json:"pods,omitempty"` +} + +type VirtualClusterDebugShellSpec struct { + PodName string `json:"podName,omitempty"` +} + +type VirtualClusterDebugShellStatus struct { + ContainerName string `json:"containerName,omitempty"` + TargetName string `json:"target,omitempty"` + PodName string `json:"podName,omitempty"` + PodNamespace string `json:"podNamespace,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 @@ -2742,6 +3192,23 @@ type VirtualClusterInstance struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type VirtualClusterInstanceDebugShell struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec VirtualClusterDebugShellSpec `json:"spec,omitempty"` + Status VirtualClusterDebugShellStatus `json:"status,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterInstanceDebugShellPods struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Status VirtualClusterDebugShellPodsStatus `json:"status,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type VirtualClusterInstanceKubeConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` @@ -2751,6 +3218,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 +3233,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 +3266,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 +3372,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 +3951,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 +4526,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 +4609,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 +4728,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 +4847,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 +4966,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 +5085,363 @@ 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 *Kiosk) SetStatus(s interface{}) { + pc.Status = s.(KioskStatus) +} + +func (pc *Kiosk) GetSpec() interface{} { + return pc.Spec +} + +func (pc *Kiosk) SetSpec(s interface{}) { + pc.Spec = s.(KioskSpec) +} + +func (pc *Kiosk) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *Kiosk) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc Kiosk) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store Kiosk. +// +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) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewKioskRegistry(sp builders.StandardStorageProvider) KioskRegistry { + return &storageKiosk{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageKiosk struct { + builders.StandardStorageProvider +} + +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") + } + st := s.GetStandardStorage() + obj, err := st.List(ctx, options) + if err != nil { + return nil, err + } + return obj.(*KioskList), err +} + +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.(*Kiosk), nil +} + +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.(*Kiosk), nil +} + +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.(*Kiosk), nil +} + +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 +} + +// License Functions and Structs +// +// +k8s:deepcopy-gen=false +type LicenseStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type LicenseStatusStrategy 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 { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []LicenseRequest `json:"items"` +} + +func (License) NewStatus() interface{} { + return LicenseStatus{} +} + +func (pc *License) GetStatus() interface{} { + return pc.Status +} + +func (pc *License) SetStatus(s interface{}) { + pc.Status = s.(LicenseStatus) +} + +func (pc *License) GetSpec() interface{} { + return pc.Spec +} + +func (pc *License) SetSpec(s interface{}) { + pc.Spec = s.(LicenseSpec) +} + +func (pc *License) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *License) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc License) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store License. +// +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) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewLicenseRegistry(sp builders.StandardStorageProvider) LicenseRegistry { + return &storageLicense{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageLicense struct { + builders.StandardStorageProvider +} + +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") + } + st := s.GetStandardStorage() + obj, err := st.List(ctx, options) + if err != nil { + return nil, err + } + return obj.(*LicenseList), err +} + +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.(*License), nil +} + +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.(*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 *Feature) SetStatus(s interface{}) { - pc.Status = s.(FeatureStatus) +func (pc *LoftUpgrade) SetStatus(s interface{}) { + pc.Status = s.(LoftUpgradeStatus) } -func (pc *Feature) GetSpec() interface{} { +func (pc *LoftUpgrade) GetSpec() interface{} { return pc.Spec } -func (pc *Feature) SetSpec(s interface{}) { - pc.Spec = s.(FeatureSpec) +func (pc *LoftUpgrade) SetSpec(s interface{}) { + pc.Spec = s.(LoftUpgradeSpec) } -func (pc *Feature) GetObjectMeta() *metav1.ObjectMeta { +func (pc *LoftUpgrade) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *Feature) SetGeneration(generation int64) { +func (pc *LoftUpgrade) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc Feature) GetGeneration() int64 { +func (pc LoftUpgrade) 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 LoftUpgrade. // +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 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 NewFeatureRegistry(sp builders.StandardStorageProvider) FeatureRegistry { - return &storageFeature{sp} +func NewLoftUpgradeRegistry(sp builders.StandardStorageProvider) LoftUpgradeRegistry { + return &storageLoftUpgrade{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageFeature struct { +type storageLoftUpgrade struct { builders.StandardStorageProvider } -func (s *storageFeature) ListFeatures(ctx context.Context, options *internalversion.ListOptions) (*FeatureList, error) { +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") } @@ -4673,117 +5450,117 @@ func (s *storageFeature) ListFeatures(ctx context.Context, options *internalvers if err != nil { return nil, err } - return obj.(*FeatureList), err + return obj.(*LoftUpgradeList), err } -func (s *storageFeature) GetFeature(ctx context.Context, id string, options *metav1.GetOptions) (*Feature, error) { +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.(*Feature), nil + return obj.(*LoftUpgrade), nil } -func (s *storageFeature) CreateFeature(ctx context.Context, object *Feature) (*Feature, error) { +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.(*Feature), nil + return obj.(*LoftUpgrade), nil } -func (s *storageFeature) UpdateFeature(ctx context.Context, object *Feature) (*Feature, 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.(*Feature), nil + return obj.(*LoftUpgrade), nil } -func (s *storageFeature) DeleteFeature(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 } -// IngressAuthToken Functions and Structs +// NodeClaim Functions and Structs // // +k8s:deepcopy-gen=false -type IngressAuthTokenStrategy struct { +type NodeClaimStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type IngressAuthTokenStatusStrategy struct { +type NodeClaimStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type IngressAuthTokenList struct { +type NodeClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []IngressAuthToken `json:"items"` + Items []NodeClaim `json:"items"` } -func (IngressAuthToken) NewStatus() interface{} { - return IngressAuthTokenStatus{} +func (NodeClaim) NewStatus() interface{} { + return NodeClaimStatus{} } -func (pc *IngressAuthToken) GetStatus() interface{} { +func (pc *NodeClaim) GetStatus() interface{} { return pc.Status } -func (pc *IngressAuthToken) SetStatus(s interface{}) { - pc.Status = s.(IngressAuthTokenStatus) +func (pc *NodeClaim) SetStatus(s interface{}) { + pc.Status = s.(NodeClaimStatus) } -func (pc *IngressAuthToken) GetSpec() interface{} { +func (pc *NodeClaim) GetSpec() interface{} { return pc.Spec } -func (pc *IngressAuthToken) SetSpec(s interface{}) { - pc.Spec = s.(IngressAuthTokenSpec) +func (pc *NodeClaim) SetSpec(s interface{}) { + pc.Spec = s.(NodeClaimSpec) } -func (pc *IngressAuthToken) GetObjectMeta() *metav1.ObjectMeta { +func (pc *NodeClaim) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *IngressAuthToken) SetGeneration(generation int64) { +func (pc *NodeClaim) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc IngressAuthToken) GetGeneration() int64 { +func (pc NodeClaim) 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 NodeClaim. // +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 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 NewIngressAuthTokenRegistry(sp builders.StandardStorageProvider) IngressAuthTokenRegistry { - return &storageIngressAuthToken{sp} +func NewNodeClaimRegistry(sp builders.StandardStorageProvider) NodeClaimRegistry { + return &storageNodeClaim{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageIngressAuthToken struct { +type storageNodeClaim struct { builders.StandardStorageProvider } -func (s *storageIngressAuthToken) ListIngressAuthTokens(ctx context.Context, options *internalversion.ListOptions) (*IngressAuthTokenList, 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") } @@ -4792,117 +5569,117 @@ func (s *storageIngressAuthToken) ListIngressAuthTokens(ctx context.Context, opt if err != nil { return nil, err } - return obj.(*IngressAuthTokenList), err + return obj.(*NodeClaimList), err } -func (s *storageIngressAuthToken) GetIngressAuthToken(ctx context.Context, id string, options *metav1.GetOptions) (*IngressAuthToken, 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.(*IngressAuthToken), nil + return obj.(*NodeClaim), nil } -func (s *storageIngressAuthToken) CreateIngressAuthToken(ctx context.Context, object *IngressAuthToken) (*IngressAuthToken, 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.(*IngressAuthToken), nil + return obj.(*NodeClaim), nil } -func (s *storageIngressAuthToken) UpdateIngressAuthToken(ctx context.Context, object *IngressAuthToken) (*IngressAuthToken, 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.(*IngressAuthToken), nil + return obj.(*NodeClaim), nil } -func (s *storageIngressAuthToken) DeleteIngressAuthToken(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 } -// Kiosk Functions and Structs +// NodeEnvironment Functions and Structs // // +k8s:deepcopy-gen=false -type KioskStrategy struct { +type NodeEnvironmentStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type KioskStatusStrategy struct { +type NodeEnvironmentStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type KioskList struct { +type NodeEnvironmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Kiosk `json:"items"` + Items []NodeEnvironment `json:"items"` } -func (Kiosk) NewStatus() interface{} { - return KioskStatus{} +func (NodeEnvironment) NewStatus() interface{} { + return NodeEnvironmentStatus{} } -func (pc *Kiosk) GetStatus() interface{} { +func (pc *NodeEnvironment) GetStatus() interface{} { return pc.Status } -func (pc *Kiosk) SetStatus(s interface{}) { - pc.Status = s.(KioskStatus) +func (pc *NodeEnvironment) SetStatus(s interface{}) { + pc.Status = s.(NodeEnvironmentStatus) } -func (pc *Kiosk) GetSpec() interface{} { +func (pc *NodeEnvironment) GetSpec() interface{} { return pc.Spec } -func (pc *Kiosk) SetSpec(s interface{}) { - pc.Spec = s.(KioskSpec) +func (pc *NodeEnvironment) SetSpec(s interface{}) { + pc.Spec = s.(NodeEnvironmentSpec) } -func (pc *Kiosk) GetObjectMeta() *metav1.ObjectMeta { +func (pc *NodeEnvironment) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *Kiosk) SetGeneration(generation int64) { +func (pc *NodeEnvironment) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc Kiosk) GetGeneration() int64 { +func (pc NodeEnvironment) 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 NodeEnvironment. // +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 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 NewKioskRegistry(sp builders.StandardStorageProvider) KioskRegistry { - return &storageKiosk{sp} +func NewNodeEnvironmentRegistry(sp builders.StandardStorageProvider) NodeEnvironmentRegistry { + return &storageNodeEnvironment{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageKiosk struct { +type storageNodeEnvironment struct { builders.StandardStorageProvider } -func (s *storageKiosk) ListKiosks(ctx context.Context, options *internalversion.ListOptions) (*KioskList, 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") } @@ -4911,125 +5688,125 @@ func (s *storageKiosk) ListKiosks(ctx context.Context, options *internalversion. if err != nil { return nil, err } - return obj.(*KioskList), err + return obj.(*NodeEnvironmentList), err } -func (s *storageKiosk) GetKiosk(ctx context.Context, id string, options *metav1.GetOptions) (*Kiosk, 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.(*Kiosk), nil + return obj.(*NodeEnvironment), nil } -func (s *storageKiosk) CreateKiosk(ctx context.Context, object *Kiosk) (*Kiosk, 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.(*Kiosk), nil + return obj.(*NodeEnvironment), nil } -func (s *storageKiosk) UpdateKiosk(ctx context.Context, object *Kiosk) (*Kiosk, 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.(*Kiosk), nil + return obj.(*NodeEnvironment), nil } -func (s *storageKiosk) DeleteKiosk(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 } -// License Functions and Structs +// NodeProvider Functions and Structs // // +k8s:deepcopy-gen=false -type LicenseStrategy struct { +type NodeProviderStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type LicenseStatusStrategy struct { +type NodeProviderStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseList struct { +type NodeProviderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []License `json:"items"` + Items []NodeProvider `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseRequestList struct { +type NodeProviderExecList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LicenseRequest `json:"items"` + Items []NodeProviderExec `json:"items"` } -func (License) NewStatus() interface{} { - return LicenseStatus{} +func (NodeProvider) NewStatus() interface{} { + return NodeProviderStatus{} } -func (pc *License) GetStatus() interface{} { +func (pc *NodeProvider) GetStatus() interface{} { return pc.Status } -func (pc *License) SetStatus(s interface{}) { - pc.Status = s.(LicenseStatus) +func (pc *NodeProvider) SetStatus(s interface{}) { + pc.Status = s.(NodeProviderStatus) } -func (pc *License) GetSpec() interface{} { +func (pc *NodeProvider) GetSpec() interface{} { return pc.Spec } -func (pc *License) SetSpec(s interface{}) { - pc.Spec = s.(LicenseSpec) +func (pc *NodeProvider) SetSpec(s interface{}) { + pc.Spec = s.(NodeProviderSpec) } -func (pc *License) GetObjectMeta() *metav1.ObjectMeta { +func (pc *NodeProvider) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *License) SetGeneration(generation int64) { +func (pc *NodeProvider) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc License) GetGeneration() int64 { +func (pc NodeProvider) 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 NodeProvider. // +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 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 NewLicenseRegistry(sp builders.StandardStorageProvider) LicenseRegistry { - return &storageLicense{sp} +func NewNodeProviderRegistry(sp builders.StandardStorageProvider) NodeProviderRegistry { + return &storageNodeProvider{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageLicense struct { +type storageNodeProvider struct { builders.StandardStorageProvider } -func (s *storageLicense) ListLicenses(ctx context.Context, options *internalversion.ListOptions) (*LicenseList, 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") } @@ -5038,117 +5815,117 @@ func (s *storageLicense) ListLicenses(ctx context.Context, options *internalvers if err != nil { return nil, err } - return obj.(*LicenseList), err + return obj.(*NodeProviderList), err } -func (s *storageLicense) GetLicense(ctx context.Context, id string, options *metav1.GetOptions) (*License, 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.(*License), nil + return obj.(*NodeProvider), nil } -func (s *storageLicense) CreateLicense(ctx context.Context, object *License) (*License, 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.(*License), nil + return obj.(*NodeProvider), nil } -func (s *storageLicense) UpdateLicense(ctx context.Context, object *License) (*License, 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.(*License), nil + return obj.(*NodeProvider), nil } -func (s *storageLicense) DeleteLicense(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 } -// LicenseToken Functions and Structs +// NodeType Functions and Structs // // +k8s:deepcopy-gen=false -type LicenseTokenStrategy struct { +type NodeTypeStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type LicenseTokenStatusStrategy struct { +type NodeTypeStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseTokenList struct { +type NodeTypeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LicenseToken `json:"items"` + Items []NodeType `json:"items"` } -func (LicenseToken) NewStatus() interface{} { - return LicenseTokenStatus{} +func (NodeType) NewStatus() interface{} { + return NodeTypeStatus{} } -func (pc *LicenseToken) GetStatus() interface{} { +func (pc *NodeType) GetStatus() interface{} { return pc.Status } -func (pc *LicenseToken) SetStatus(s interface{}) { - pc.Status = s.(LicenseTokenStatus) +func (pc *NodeType) SetStatus(s interface{}) { + pc.Status = s.(NodeTypeStatus) } -func (pc *LicenseToken) GetSpec() interface{} { +func (pc *NodeType) GetSpec() interface{} { return pc.Spec } -func (pc *LicenseToken) SetSpec(s interface{}) { - pc.Spec = s.(LicenseTokenSpec) +func (pc *NodeType) SetSpec(s interface{}) { + pc.Spec = s.(NodeTypeSpec) } -func (pc *LicenseToken) GetObjectMeta() *metav1.ObjectMeta { +func (pc *NodeType) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *LicenseToken) SetGeneration(generation int64) { +func (pc *NodeType) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc LicenseToken) GetGeneration() int64 { +func (pc NodeType) 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 NodeType. // +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 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 NewLicenseTokenRegistry(sp builders.StandardStorageProvider) LicenseTokenRegistry { - return &storageLicenseToken{sp} +func NewNodeTypeRegistry(sp builders.StandardStorageProvider) NodeTypeRegistry { + return &storageNodeType{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageLicenseToken struct { +type storageNodeType struct { builders.StandardStorageProvider } -func (s *storageLicenseToken) ListLicenseTokens(ctx context.Context, options *internalversion.ListOptions) (*LicenseTokenList, 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") } @@ -5157,117 +5934,117 @@ func (s *storageLicenseToken) ListLicenseTokens(ctx context.Context, options *in if err != nil { return nil, err } - return obj.(*LicenseTokenList), err + return obj.(*NodeTypeList), err } -func (s *storageLicenseToken) GetLicenseToken(ctx context.Context, id string, options *metav1.GetOptions) (*LicenseToken, 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.(*LicenseToken), nil + return obj.(*NodeType), nil } -func (s *storageLicenseToken) CreateLicenseToken(ctx context.Context, object *LicenseToken) (*LicenseToken, 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.(*LicenseToken), nil + return obj.(*NodeType), nil } -func (s *storageLicenseToken) UpdateLicenseToken(ctx context.Context, object *LicenseToken) (*LicenseToken, 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.(*LicenseToken), nil + return obj.(*NodeType), nil } -func (s *storageLicenseToken) DeleteLicenseToken(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 } -// LoftUpgrade Functions and Structs +// OIDCClient Functions and Structs // // +k8s:deepcopy-gen=false -type LoftUpgradeStrategy struct { +type OIDCClientStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type LoftUpgradeStatusStrategy struct { +type OIDCClientStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LoftUpgradeList struct { +type OIDCClientList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LoftUpgrade `json:"items"` + Items []OIDCClient `json:"items"` } -func (LoftUpgrade) NewStatus() interface{} { - return LoftUpgradeStatus{} +func (OIDCClient) NewStatus() interface{} { + return OIDCClientStatus{} } -func (pc *LoftUpgrade) GetStatus() interface{} { +func (pc *OIDCClient) GetStatus() interface{} { return pc.Status } -func (pc *LoftUpgrade) SetStatus(s interface{}) { - pc.Status = s.(LoftUpgradeStatus) +func (pc *OIDCClient) SetStatus(s interface{}) { + pc.Status = s.(OIDCClientStatus) } -func (pc *LoftUpgrade) GetSpec() interface{} { +func (pc *OIDCClient) GetSpec() interface{} { return pc.Spec } -func (pc *LoftUpgrade) SetSpec(s interface{}) { - pc.Spec = s.(LoftUpgradeSpec) +func (pc *OIDCClient) SetSpec(s interface{}) { + pc.Spec = s.(OIDCClientSpec) } -func (pc *LoftUpgrade) GetObjectMeta() *metav1.ObjectMeta { +func (pc *OIDCClient) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *LoftUpgrade) SetGeneration(generation int64) { +func (pc *OIDCClient) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc LoftUpgrade) GetGeneration() int64 { +func (pc OIDCClient) 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 OIDCClient. // +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 OIDCClientRegistry interface { + ListOIDCClients(ctx context.Context, options *internalversion.ListOptions) (*OIDCClientList, error) + GetOIDCClient(ctx context.Context, id string, options *metav1.GetOptions) (*OIDCClient, error) + CreateOIDCClient(ctx context.Context, id *OIDCClient) (*OIDCClient, error) + UpdateOIDCClient(ctx context.Context, id *OIDCClient) (*OIDCClient, error) + DeleteOIDCClient(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewLoftUpgradeRegistry(sp builders.StandardStorageProvider) LoftUpgradeRegistry { - return &storageLoftUpgrade{sp} +func NewOIDCClientRegistry(sp builders.StandardStorageProvider) OIDCClientRegistry { + return &storageOIDCClient{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageLoftUpgrade struct { +type storageOIDCClient struct { builders.StandardStorageProvider } -func (s *storageLoftUpgrade) ListLoftUpgrades(ctx context.Context, options *internalversion.ListOptions) (*LoftUpgradeList, error) { +func (s *storageOIDCClient) ListOIDCClients(ctx context.Context, options *internalversion.ListOptions) (*OIDCClientList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -5276,117 +6053,117 @@ func (s *storageLoftUpgrade) ListLoftUpgrades(ctx context.Context, options *inte if err != nil { return nil, err } - return obj.(*LoftUpgradeList), err + return obj.(*OIDCClientList), err } -func (s *storageLoftUpgrade) GetLoftUpgrade(ctx context.Context, id string, options *metav1.GetOptions) (*LoftUpgrade, error) { +func (s *storageOIDCClient) GetOIDCClient(ctx context.Context, id string, options *metav1.GetOptions) (*OIDCClient, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*LoftUpgrade), nil + return obj.(*OIDCClient), nil } -func (s *storageLoftUpgrade) CreateLoftUpgrade(ctx context.Context, object *LoftUpgrade) (*LoftUpgrade, error) { +func (s *storageOIDCClient) CreateOIDCClient(ctx context.Context, object *OIDCClient) (*OIDCClient, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*LoftUpgrade), nil + return obj.(*OIDCClient), nil } -func (s *storageLoftUpgrade) UpdateLoftUpgrade(ctx context.Context, object *LoftUpgrade) (*LoftUpgrade, error) { +func (s *storageOIDCClient) UpdateOIDCClient(ctx context.Context, object *OIDCClient) (*OIDCClient, error) { st := s.GetStandardStorage() obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) if err != nil { return nil, err } - return obj.(*LoftUpgrade), nil + return obj.(*OIDCClient), nil } -func (s *storageLoftUpgrade) DeleteLoftUpgrade(ctx context.Context, id string) (bool, error) { +func (s *storageOIDCClient) DeleteOIDCClient(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err } -// OIDCClient Functions and Structs +// OSImage Functions and Structs // // +k8s:deepcopy-gen=false -type OIDCClientStrategy struct { +type OSImageStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type OIDCClientStatusStrategy struct { +type OSImageStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type OIDCClientList struct { +type OSImageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []OIDCClient `json:"items"` + Items []OSImage `json:"items"` } -func (OIDCClient) NewStatus() interface{} { - return OIDCClientStatus{} +func (OSImage) NewStatus() interface{} { + return OSImageStatus{} } -func (pc *OIDCClient) GetStatus() interface{} { +func (pc *OSImage) GetStatus() interface{} { return pc.Status } -func (pc *OIDCClient) SetStatus(s interface{}) { - pc.Status = s.(OIDCClientStatus) +func (pc *OSImage) SetStatus(s interface{}) { + pc.Status = s.(OSImageStatus) } -func (pc *OIDCClient) GetSpec() interface{} { +func (pc *OSImage) GetSpec() interface{} { return pc.Spec } -func (pc *OIDCClient) SetSpec(s interface{}) { - pc.Spec = s.(OIDCClientSpec) +func (pc *OSImage) SetSpec(s interface{}) { + pc.Spec = s.(OSImageSpec) } -func (pc *OIDCClient) GetObjectMeta() *metav1.ObjectMeta { +func (pc *OSImage) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *OIDCClient) SetGeneration(generation int64) { +func (pc *OSImage) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc OIDCClient) GetGeneration() int64 { +func (pc OSImage) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store OIDCClient. +// Registry is an interface for things that know how to store OSImage. // +k8s:deepcopy-gen=false -type OIDCClientRegistry interface { - ListOIDCClients(ctx context.Context, options *internalversion.ListOptions) (*OIDCClientList, error) - GetOIDCClient(ctx context.Context, id string, options *metav1.GetOptions) (*OIDCClient, error) - CreateOIDCClient(ctx context.Context, id *OIDCClient) (*OIDCClient, error) - UpdateOIDCClient(ctx context.Context, id *OIDCClient) (*OIDCClient, error) - DeleteOIDCClient(ctx context.Context, id string) (bool, error) +type OSImageRegistry interface { + ListOSImages(ctx context.Context, options *internalversion.ListOptions) (*OSImageList, error) + GetOSImage(ctx context.Context, id string, options *metav1.GetOptions) (*OSImage, error) + CreateOSImage(ctx context.Context, id *OSImage) (*OSImage, error) + UpdateOSImage(ctx context.Context, id *OSImage) (*OSImage, error) + DeleteOSImage(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewOIDCClientRegistry(sp builders.StandardStorageProvider) OIDCClientRegistry { - return &storageOIDCClient{sp} +func NewOSImageRegistry(sp builders.StandardStorageProvider) OSImageRegistry { + return &storageOSImage{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageOIDCClient struct { +type storageOSImage struct { builders.StandardStorageProvider } -func (s *storageOIDCClient) ListOIDCClients(ctx context.Context, options *internalversion.ListOptions) (*OIDCClientList, error) { +func (s *storageOSImage) ListOSImages(ctx context.Context, options *internalversion.ListOptions) (*OSImageList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -5395,37 +6172,37 @@ func (s *storageOIDCClient) ListOIDCClients(ctx context.Context, options *intern if err != nil { return nil, err } - return obj.(*OIDCClientList), err + return obj.(*OSImageList), err } -func (s *storageOIDCClient) GetOIDCClient(ctx context.Context, id string, options *metav1.GetOptions) (*OIDCClient, error) { +func (s *storageOSImage) GetOSImage(ctx context.Context, id string, options *metav1.GetOptions) (*OSImage, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*OIDCClient), nil + return obj.(*OSImage), nil } -func (s *storageOIDCClient) CreateOIDCClient(ctx context.Context, object *OIDCClient) (*OIDCClient, error) { +func (s *storageOSImage) CreateOSImage(ctx context.Context, object *OSImage) (*OSImage, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*OIDCClient), nil + return obj.(*OSImage), nil } -func (s *storageOIDCClient) UpdateOIDCClient(ctx context.Context, object *OIDCClient) (*OIDCClient, error) { +func (s *storageOSImage) UpdateOSImage(ctx context.Context, object *OSImage) (*OSImage, error) { st := s.GetStandardStorage() obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) if err != nil { return nil, err } - return obj.(*OIDCClient), nil + return obj.(*OSImage), nil } -func (s *storageOIDCClient) DeleteOIDCClient(ctx context.Context, id string) (bool, error) { +func (s *storageOSImage) DeleteOSImage(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err @@ -5628,10 +6405,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 @@ -6217,97 +6994,81 @@ func (s *storageResetAccessKey) DeleteResetAccessKey(ctx context.Context, id str return sync, err } -// Runner Functions and Structs +// SSHKey Functions and Structs // // +k8s:deepcopy-gen=false -type RunnerStrategy struct { +type SSHKeyStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type RunnerStatusStrategy struct { +type SSHKeyStatusStrategy 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 { +type SSHKeyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []RunnerAccessKey `json:"items"` + Items []SSHKey `json:"items"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerConfigList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RunnerConfig `json:"items"` +func (SSHKey) NewStatus() interface{} { + return SSHKeyStatus{} } -func (Runner) NewStatus() interface{} { - return RunnerStatus{} -} - -func (pc *Runner) GetStatus() interface{} { +func (pc *SSHKey) GetStatus() interface{} { return pc.Status } -func (pc *Runner) SetStatus(s interface{}) { - pc.Status = s.(RunnerStatus) +func (pc *SSHKey) SetStatus(s interface{}) { + pc.Status = s.(SSHKeyStatus) } -func (pc *Runner) GetSpec() interface{} { +func (pc *SSHKey) GetSpec() interface{} { return pc.Spec } -func (pc *Runner) SetSpec(s interface{}) { - pc.Spec = s.(RunnerSpec) +func (pc *SSHKey) SetSpec(s interface{}) { + pc.Spec = s.(SSHKeySpec) } -func (pc *Runner) GetObjectMeta() *metav1.ObjectMeta { +func (pc *SSHKey) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *Runner) SetGeneration(generation int64) { +func (pc *SSHKey) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc Runner) GetGeneration() int64 { +func (pc SSHKey) 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 SSHKey. // +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 SSHKeyRegistry interface { + ListSSHKeys(ctx context.Context, options *internalversion.ListOptions) (*SSHKeyList, error) + GetSSHKey(ctx context.Context, id string, options *metav1.GetOptions) (*SSHKey, error) + CreateSSHKey(ctx context.Context, id *SSHKey) (*SSHKey, error) + UpdateSSHKey(ctx context.Context, id *SSHKey) (*SSHKey, error) + DeleteSSHKey(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 NewSSHKeyRegistry(sp builders.StandardStorageProvider) SSHKeyRegistry { + return &storageSSHKey{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageRunner struct { +type storageSSHKey struct { builders.StandardStorageProvider } -func (s *storageRunner) ListRunners(ctx context.Context, options *internalversion.ListOptions) (*RunnerList, error) { +func (s *storageSSHKey) ListSSHKeys(ctx context.Context, options *internalversion.ListOptions) (*SSHKeyList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -6316,37 +7077,37 @@ func (s *storageRunner) ListRunners(ctx context.Context, options *internalversio if err != nil { return nil, err } - return obj.(*RunnerList), err + return obj.(*SSHKeyList), err } -func (s *storageRunner) GetRunner(ctx context.Context, id string, options *metav1.GetOptions) (*Runner, error) { +func (s *storageSSHKey) GetSSHKey(ctx context.Context, id string, options *metav1.GetOptions) (*SSHKey, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*Runner), nil + return obj.(*SSHKey), nil } -func (s *storageRunner) CreateRunner(ctx context.Context, object *Runner) (*Runner, error) { +func (s *storageSSHKey) CreateSSHKey(ctx context.Context, object *SSHKey) (*SSHKey, 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.(*SSHKey), nil } -func (s *storageRunner) UpdateRunner(ctx context.Context, object *Runner) (*Runner, error) { +func (s *storageSSHKey) UpdateSSHKey(ctx context.Context, object *SSHKey) (*SSHKey, 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.(*SSHKey), nil } -func (s *storageRunner) DeleteRunner(ctx context.Context, id string) (bool, error) { +func (s *storageSSHKey) DeleteSSHKey(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err @@ -7229,6 +7990,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 +8224,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 +8381,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 +8532,30 @@ type VirtualClusterAccessKeyList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type VirtualClusterInstanceDebugShellList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterInstanceDebugShell `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterInstanceDebugShellPodsList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterInstanceDebugShellPods `json:"items"` +} + +// +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 +8570,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 +8709,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..20e239d8 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,31 @@ 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) + } + if in.Database != nil { + in, out := &in.Database, &out.Database + *out = new(DatabaseKine) + (*in).DeepCopyInto(*out) + } return } @@ -2163,174 +2215,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 +2391,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 +2424,80 @@ 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 +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DatabaseConnectorStatus) DeepCopyInto(out *DatabaseConnectorStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectorStatus. +func (in *DatabaseConnectorStatus) DeepCopy() *DatabaseConnectorStatus { + if in == nil { + return nil } - return nil + out := new(DatabaseConnectorStatus) + in.DeepCopyInto(out) + return out } // 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 *DatabaseKine) DeepCopyInto(out *DatabaseKine) { *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)) + if in.ExtraArgs != nil { + in, out := &in.ExtraArgs, &out.ExtraArgs + *out = make([]string, 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 DatabaseKine. +func (in *DatabaseKine) DeepCopy() *DatabaseKine { if in == nil { return nil } - out := new(DevPodStatusOptionsList) + out := new(DatabaseKine) 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 +2505,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 +2538,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 +2603,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 +2617,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 +2636,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 +2697,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 +2711,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 +2730,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 +2848,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 +2862,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 +2881,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 +2941,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 +2955,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 +2974,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 +3029,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 +3048,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 +3062,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 +3081,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 { - if in == nil { +// 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 +3251,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 +3265,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 +3284,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 +3359,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 +3378,54 @@ 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.Outputs != nil { + in, out := &in.Outputs, &out.Outputs + *out = make([]byte, len(*in)) + copy(*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 +3433,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 +3452,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 +3569,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 +3588,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 +3650,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 +3669,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 +3788,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 +3802,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 +3821,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 +3885,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 +3904,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 +3963,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 +3982,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 +3996,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 +4015,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,51 +4061,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 { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // 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 *OIDCClient) DeepCopyInto(out *OIDCClient) { *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]) - } - } + 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 ProjectChartsList. -func (in *ProjectChartsList) DeepCopy() *ProjectChartsList { +// 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(ProjectChartsList) + out := new(OIDCClient) 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 *OIDCClient) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4116,20 +4100,13 @@ 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 *OIDCClientList) DeepCopyInto(out *OIDCClientList) { *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.Runners != nil { - in, out := &in.Runners, &out.Runners - *out = make([]Runner, len(*in)) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]OIDCClient, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4137,18 +4114,18 @@ func (in *ProjectClusters) DeepCopyInto(out *ProjectClusters) { 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 OIDCClientList. +func (in *OIDCClientList) DeepCopy() *OIDCClientList { if in == nil { return nil } - out := new(ProjectClusters) + out := new(OIDCClientList) 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 { +func (in *OIDCClientList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4156,59 +4133,64 @@ func (in *ProjectClusters) DeepCopyObject() runtime.Object { } // 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 *OIDCClientSpec) DeepCopyInto(out *OIDCClientSpec) { *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]) - } + 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 ProjectClustersList. -func (in *ProjectClustersList) DeepCopy() *ProjectClustersList { +// 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(ProjectClustersList) + out := new(OIDCClientSpec) 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 *OIDCClientStatus) DeepCopyInto(out *OIDCClientStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClientStatus. +func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus { + if in == nil { + return nil } - return nil + out := new(OIDCClientStatus) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectImportSpace) DeepCopyInto(out *ProjectImportSpace) { +func (in *OSImage) DeepCopyInto(out *OSImage) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.SourceSpace = in.SourceSpace + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.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 OSImage. +func (in *OSImage) DeepCopy() *OSImage { if in == nil { return nil } - out := new(ProjectImportSpace) + out := new(OSImage) 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 *OSImage) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4216,13 +4198,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 *OSImageList) DeepCopyInto(out *OSImageList) { *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([]OSImage, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4230,18 +4212,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 OSImageList. +func (in *OSImageList) DeepCopy() *OSImageList { if in == nil { return nil } - out := new(ProjectImportSpaceList) + out := new(OSImageList) 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 *OSImageList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4249,161 +4231,122 @@ 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 *OSImageSpec) DeepCopyInto(out *OSImageSpec) { *out = *in + in.OSImageSpec.DeepCopyInto(&out.OSImageSpec) 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 OSImageSpec. +func (in *OSImageSpec) DeepCopy() *OSImageSpec { if in == nil { return nil } - out := new(ProjectImportSpaceSource) + out := new(OSImageSpec) 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 *OSImageStatus) DeepCopyInto(out *OSImageStatus) { *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]) - } - } + out.OSImageStatus = in.OSImageStatus 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 OSImageStatus. +func (in *OSImageStatus) DeepCopy() *OSImageStatus { if in == nil { return nil } - out := new(ProjectList) + out := new(OSImageStatus) 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 *ObjectName) DeepCopyInto(out *ObjectName) { *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 ObjectName. +func (in *ObjectName) DeepCopy() *ObjectName { if in == nil { return nil } - out := new(ProjectMember) + 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 *ProjectMembers) DeepCopyInto(out *ProjectMembers) { +func (in *ObjectPermission) DeepCopyInto(out *ObjectPermission) { *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)) + 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 ProjectMembers. -func (in *ProjectMembers) DeepCopy() *ProjectMembers { +// 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(ProjectMembers) + out := new(ObjectPermission) 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 *Operation) DeepCopyInto(out *Operation) { *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.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 } -// 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 Operation. +func (in *Operation) DeepCopy() *Operation { if in == nil { return nil } - out := new(ProjectMembersList) + out := new(Operation) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMembersList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateSpaceInstance) DeepCopyInto(out *ProjectMigrateSpaceInstance) { +func (in *OwnedAccessKey) DeepCopyInto(out *OwnedAccessKey) { *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 OwnedAccessKey. +func (in *OwnedAccessKey) DeepCopy() *OwnedAccessKey { if in == nil { return nil } - out := new(ProjectMigrateSpaceInstance) + out := new(OwnedAccessKey) 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 *OwnedAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4411,13 +4354,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 *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([]ProjectMigrateSpaceInstance, len(*in)) + *out = make([]OwnedAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4425,18 +4368,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 OwnedAccessKeyList. +func (in *OwnedAccessKeyList) DeepCopy() *OwnedAccessKeyList { if in == nil { return nil } - out := new(ProjectMigrateSpaceInstanceList) + out := new(OwnedAccessKeyList) 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 *OwnedAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4444,157 +4387,128 @@ 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 *OwnedAccessKeySpec) DeepCopyInto(out *OwnedAccessKeySpec) { *out = *in + in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) 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 OwnedAccessKeySpec. +func (in *OwnedAccessKeySpec) DeepCopy() *OwnedAccessKeySpec { if in == nil { return nil } - out := new(ProjectMigrateSpaceInstanceSource) + 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 *ProjectMigrateVirtualClusterInstance) DeepCopyInto(out *ProjectMigrateVirtualClusterInstance) { +func (in *OwnedAccessKeyStatus) DeepCopyInto(out *OwnedAccessKeyStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.SourceVirtualClusterInstance = in.SourceVirtualClusterInstance + in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) 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 OwnedAccessKeyStatus. +func (in *OwnedAccessKeyStatus) DeepCopy() *OwnedAccessKeyStatus { if in == nil { return nil } - out := new(ProjectMigrateVirtualClusterInstance) + out := new(OwnedAccessKeyStatus) 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 *PlatformDB) DeepCopyInto(out *PlatformDB) { *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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } 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 PlatformDB. +func (in *PlatformDB) DeepCopy() *PlatformDB { if in == nil { return nil } - out := new(ProjectMigrateVirtualClusterInstanceList) + out := new(PlatformDB) 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 { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // 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 *PodExecOptions) DeepCopyInto(out *PodExecOptions) { *out = *in + out.TypeMeta = in.TypeMeta + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } 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 PodExecOptions. +func (in *PodExecOptions) DeepCopy() *PodExecOptions { if in == nil { return nil } - out := new(ProjectMigrateVirtualClusterInstanceSource) + out := new(PodExecOptions) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PodExecOptions) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != 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 *PredefinedApp) DeepCopyInto(out *PredefinedApp) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Runners != nil { - in, out := &in.Runners, &out.Runners - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + 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 ProjectRunners. -func (in *ProjectRunners) DeepCopy() *ProjectRunners { +// 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(ProjectRunners) + out := new(PredefinedApp) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectRunners) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectRunnersList) DeepCopyInto(out *ProjectRunnersList) { +func (in *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([]ProjectRunners, 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 ProjectRunnersList. -func (in *ProjectRunnersList) DeepCopy() *ProjectRunnersList { +// 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(ProjectRunnersList) + out := new(Project) 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 *Project) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4602,7 +4516,7 @@ 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 *ProjectChartInfo) DeepCopyInto(out *ProjectChartInfo) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -4611,18 +4525,18 @@ func (in *ProjectSecret) DeepCopyInto(out *ProjectSecret) { 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 ProjectChartInfo. +func (in *ProjectChartInfo) DeepCopy() *ProjectChartInfo { if in == nil { return nil } - out := new(ProjectSecret) + out := new(ProjectChartInfo) 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 *ProjectChartInfo) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4630,13 +4544,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 *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([]ProjectSecret, len(*in)) + *out = make([]ProjectChartInfo, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4644,18 +4558,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 ProjectChartInfoList. +func (in *ProjectChartInfoList) DeepCopy() *ProjectChartInfoList { if in == nil { return nil } - out := new(ProjectSecretList) + out := new(ProjectChartInfoList) 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 *ProjectChartInfoList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4663,134 +4577,113 @@ 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 *ProjectChartInfoSpec) DeepCopyInto(out *ProjectChartInfoSpec) { *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]) - } - } + in.ChartInfoSpec.DeepCopyInto(&out.ChartInfoSpec) 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 ProjectChartInfoSpec. +func (in *ProjectChartInfoSpec) DeepCopy() *ProjectChartInfoSpec { if in == nil { return nil } - out := new(ProjectSecretSpec) + 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 *ProjectSecretStatus) DeepCopyInto(out *ProjectSecretStatus) { +func (in *ProjectChartInfoStatus) DeepCopyInto(out *ProjectChartInfoStatus) { *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]) - } - } + in.ChartInfoStatus.DeepCopyInto(&out.ChartInfoStatus) 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 ProjectChartInfoStatus. +func (in *ProjectChartInfoStatus) DeepCopy() *ProjectChartInfoStatus { if in == nil { return nil } - out := new(ProjectSecretStatus) + 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 *ProjectSpec) DeepCopyInto(out *ProjectSpec) { +func (in *ProjectCharts) DeepCopyInto(out *ProjectCharts) { *out = *in - in.ProjectSpec.DeepCopyInto(&out.ProjectSpec) + 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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSpec. -func (in *ProjectSpec) DeepCopy() *ProjectSpec { +// 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(ProjectSpec) + out := new(ProjectCharts) 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 { + if c := in.DeepCopy(); c != nil { + return c + } + 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 *ProjectChartsList) DeepCopyInto(out *ProjectChartsList) { *out = *in - in.ProjectStatus.DeepCopyInto(&out.ProjectStatus) + 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 ProjectStatus. -func (in *ProjectStatus) DeepCopy() *ProjectStatus { +// 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(ProjectStatus) + 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 *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { +func (in *ProjectClusters) DeepCopyInto(out *ProjectClusters) { *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.DevPodEnvironmentTemplates != nil { - in, out := &in.DevPodEnvironmentTemplates, &out.DevPodEnvironmentTemplates - *out = make([]DevPodEnvironmentTemplate, 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]) } @@ -4798,18 +4691,18 @@ func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { 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 ProjectClusters. +func (in *ProjectClusters) DeepCopy() *ProjectClusters { if in == nil { return nil } - out := new(ProjectTemplates) + out := new(ProjectClusters) 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 *ProjectClusters) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4817,13 +4710,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 *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([]ProjectTemplates, len(*in)) + *out = make([]ProjectClusters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4831,18 +4724,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 ProjectClustersList. +func (in *ProjectClustersList) DeepCopy() *ProjectClustersList { if in == nil { return nil } - out := new(ProjectTemplatesList) + out := new(ProjectClustersList) 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 *ProjectClustersList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4850,27 +4743,26 @@ 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 *ProjectImportSpace) DeepCopyInto(out *ProjectImportSpace) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + out.SourceSpace = in.SourceSpace 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 ProjectImportSpace. +func (in *ProjectImportSpace) DeepCopy() *ProjectImportSpace { if in == nil { return nil } - out := new(RedirectToken) + out := new(ProjectImportSpace) 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 { +func (in *ProjectImportSpace) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4878,13 +4770,13 @@ func (in *RedirectToken) DeepCopyObject() runtime.Object { } // 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 *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([]RedirectToken, len(*in)) + *out = make([]ProjectImportSpace, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4892,18 +4784,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 ProjectImportSpaceList. +func (in *ProjectImportSpaceList) DeepCopy() *ProjectImportSpaceList { if in == nil { return nil } - out := new(RedirectTokenList) + out := new(ProjectImportSpaceList) 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 *ProjectImportSpaceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4911,59 +4803,101 @@ 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 *ProjectImportSpaceSource) DeepCopyInto(out *ProjectImportSpaceSource) { *out = *in 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 ProjectImportSpaceSource. +func (in *ProjectImportSpaceSource) DeepCopy() *ProjectImportSpaceSource { if in == nil { return nil } - out := new(RedirectTokenSpec) + 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 *RedirectTokenStatus) DeepCopyInto(out *RedirectTokenStatus) { +func (in *ProjectList) DeepCopyInto(out *ProjectList) { *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]) + } + } 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 ProjectList. +func (in *ProjectList) DeepCopy() *ProjectList { if in == nil { return nil } - out := new(RedirectTokenStatus) + out := new(ProjectList) 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 *RegisterVirtualCluster) DeepCopyInto(out *RegisterVirtualCluster) { +func (in *ProjectMember) DeepCopyInto(out *ProjectMember) { + *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 { + if in == nil { + return nil + } + 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 *ProjectMembers) DeepCopyInto(out *ProjectMembers) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + 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) + } 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 ProjectMembers. +func (in *ProjectMembers) DeepCopy() *ProjectMembers { if in == nil { return nil } - out := new(RegisterVirtualCluster) + out := new(ProjectMembers) 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 *ProjectMembers) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4971,13 +4905,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 *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([]RegisterVirtualCluster, len(*in)) + *out = make([]ProjectMembers, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4985,18 +4919,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 ProjectMembersList. +func (in *ProjectMembersList) DeepCopy() *ProjectMembersList { if in == nil { return nil } - out := new(RegisterVirtualClusterList) + out := new(ProjectMembersList) 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 *ProjectMembersList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5004,59 +4938,45 @@ 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 *ProjectMembership) DeepCopyInto(out *ProjectMembership) { *out = *in + out.ObjectName = in.ObjectName + out.Role = in.Role + out.AssignedVia = in.AssignedVia return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterStatus. -func (in *RegisterVirtualClusterStatus) DeepCopy() *RegisterVirtualClusterStatus { +// 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(RegisterVirtualClusterStatus) + out := new(ProjectMembership) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResetAccessKey) DeepCopyInto(out *ResetAccessKey) { +func (in *ProjectMigrateSpaceInstance) DeepCopyInto(out *ProjectMigrateSpaceInstance) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.SourceSpaceInstance = in.SourceSpaceInstance 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 ProjectMigrateSpaceInstance. +func (in *ProjectMigrateSpaceInstance) DeepCopy() *ProjectMigrateSpaceInstance { if in == nil { return nil } - out := new(ResetAccessKey) + out := new(ProjectMigrateSpaceInstance) 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 *ProjectMigrateSpaceInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5064,13 +4984,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 *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([]ResetAccessKey, len(*in)) + *out = make([]ProjectMigrateSpaceInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5078,18 +4998,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 ProjectMigrateSpaceInstanceList. +func (in *ProjectMigrateSpaceInstanceList) DeepCopy() *ProjectMigrateSpaceInstanceList { if in == nil { return nil } - out := new(ResetAccessKeyList) + out := new(ProjectMigrateSpaceInstanceList) 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 *ProjectMigrateSpaceInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5097,87 +5017,42 @@ 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) { - *out = *in - in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeyStatus. -func (in *ResetAccessKeyStatus) DeepCopy() *ResetAccessKeyStatus { - if in == nil { - return nil - } - 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 *Runner) DeepCopyInto(out *Runner) { +func (in *ProjectMigrateSpaceInstanceSource) DeepCopyInto(out *ProjectMigrateSpaceInstanceSource) { *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 { +// 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(Runner) + out := new(ProjectMigrateSpaceInstanceSource) 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) { +func (in *ProjectMigrateVirtualClusterInstance) DeepCopyInto(out *ProjectMigrateVirtualClusterInstance) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.SourceVirtualClusterInstance = in.SourceVirtualClusterInstance 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 ProjectMigrateVirtualClusterInstance. +func (in *ProjectMigrateVirtualClusterInstance) DeepCopy() *ProjectMigrateVirtualClusterInstance { if in == nil { return nil } - out := new(RunnerAccessKey) + out := new(ProjectMigrateVirtualClusterInstance) 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 *ProjectMigrateVirtualClusterInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5185,13 +5060,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 *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([]RunnerAccessKey, len(*in)) + *out = make([]ProjectMigrateVirtualClusterInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5199,18 +5074,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 ProjectMigrateVirtualClusterInstanceList. +func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopy() *ProjectMigrateVirtualClusterInstanceList { if in == nil { return nil } - out := new(RunnerAccessKeyList) + out := new(ProjectMigrateVirtualClusterInstanceList) 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 *ProjectMigrateVirtualClusterInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5218,44 +5093,43 @@ 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 *ProjectMigrateVirtualClusterInstanceSource) DeepCopyInto(out *ProjectMigrateVirtualClusterInstanceSource) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.TokenCaCert != nil { - in, out := &in.TokenCaCert, &out.TokenCaCert - *out = make([]byte, len(*in)) - copy(*out, *in) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerConfig. -func (in *RunnerConfig) DeepCopy() *RunnerConfig { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateVirtualClusterInstanceSource. +func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrateVirtualClusterInstanceSource { if in == nil { return nil } - out := new(RunnerConfig) + out := new(ProjectMigrateVirtualClusterInstanceSource) 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 *ProjectNodeTypes) DeepCopyInto(out *ProjectNodeTypes) { *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.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]) + } + } + if in.OSImages != nil { + in, out := &in.OSImages, &out.OSImages + *out = make([]storagev1.OSImage, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5263,18 +5137,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 ProjectNodeTypes. +func (in *ProjectNodeTypes) DeepCopy() *ProjectNodeTypes { if in == nil { return nil } - out := new(RunnerConfigList) + out := new(ProjectNodeTypes) 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 *ProjectNodeTypes) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5282,13 +5156,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 *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([]Runner, len(*in)) + *out = make([]ProjectNodeTypes, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5296,18 +5170,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 ProjectNodeTypesList. +func (in *ProjectNodeTypesList) DeepCopy() *ProjectNodeTypesList { if in == nil { return nil } - out := new(RunnerList) + out := new(ProjectNodeTypesList) 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 *ProjectNodeTypesList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5315,61 +5189,44 @@ 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) { - *out = *in - in.RunnerSpec.DeepCopyInto(&out.RunnerSpec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerSpec. -func (in *RunnerSpec) DeepCopy() *RunnerSpec { - if in == nil { - return nil - } - out := new(RunnerSpec) - 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 *ProjectRole) DeepCopyInto(out *ProjectRole) { *out = *in - in.RunnerStatus.DeepCopyInto(&out.RunnerStatus) + out.ObjectName = in.ObjectName 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 ProjectRole. +func (in *ProjectRole) DeepCopy() *ProjectRole { if in == nil { return nil } - out := new(RunnerStatus) + 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 *Self) DeepCopyInto(out *Self) { +func (in *ProjectSecret) DeepCopyInto(out *ProjectSecret) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec + in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Self. -func (in *Self) DeepCopy() *Self { +// 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(Self) + out := new(ProjectSecret) 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 *ProjectSecret) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5377,13 +5234,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 *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([]Self, len(*in)) + *out = make([]ProjectSecret, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5391,18 +5248,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 ProjectSecretList. +func (in *ProjectSecretList) DeepCopy() *ProjectSecretList { if in == nil { return nil } - out := new(SelfList) + out := new(ProjectSecretList) 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 *ProjectSecretList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5410,98 +5267,120 @@ 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 *ProjectSecretSpec) DeepCopyInto(out *ProjectSecretSpec) { *out = *in - return + 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 SelfSpec. -func (in *SelfSpec) DeepCopy() *SelfSpec { +// 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(SelfSpec) + out := new(ProjectSecretSpec) 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 *ProjectSecretStatus) DeepCopyInto(out *ProjectSecretStatus) { *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 + 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 SelfStatus. -func (in *SelfStatus) DeepCopy() *SelfStatus { +// 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(SelfStatus) + out := new(ProjectSecretStatus) 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 *ProjectSpec) DeepCopyInto(out *ProjectSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.ProjectSpec.DeepCopyInto(&out.ProjectSpec) 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 ProjectSpec. +func (in *ProjectSpec) DeepCopy() *ProjectSpec { if in == nil { return nil } - out := new(SelfSubjectAccessReview) + out := new(ProjectSpec) 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 +// 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 *SelfSubjectAccessReviewList) DeepCopyInto(out *SelfSubjectAccessReviewList) { +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([]SelfSubjectAccessReview, 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]) } @@ -5509,18 +5388,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 ProjectTemplates. +func (in *ProjectTemplates) DeepCopy() *ProjectTemplates { if in == nil { return nil } - out := new(SelfSubjectAccessReviewList) + out := new(ProjectTemplates) 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 *ProjectTemplates) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5528,61 +5407,60 @@ 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 *ProjectTemplatesList) DeepCopyInto(out *ProjectTemplatesList) { *out = *in - in.SelfSubjectAccessReviewSpec.DeepCopyInto(&out.SelfSubjectAccessReviewSpec) + 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 SelfSubjectAccessReviewSpec. -func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec { +// 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(SelfSubjectAccessReviewSpec) + out := new(ProjectTemplatesList) 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 +// 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 } - out := new(SelfSubjectAccessReviewStatus) - 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 *SharedSecret) DeepCopyInto(out *SharedSecret) { +func (in *RedirectToken) DeepCopyInto(out *RedirectToken) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Spec = in.Spec + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharedSecret. -func (in *SharedSecret) DeepCopy() *SharedSecret { +// 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(SharedSecret) + out := new(RedirectToken) 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 *RedirectToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5590,13 +5468,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 *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([]SharedSecret, len(*in)) + *out = make([]RedirectToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5604,18 +5482,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 RedirectTokenList. +func (in *RedirectTokenList) DeepCopy() *RedirectTokenList { if in == nil { return nil } - out := new(SharedSecretList) + out := new(RedirectTokenList) 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 *RedirectTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5623,61 +5501,59 @@ 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 *RedirectTokenSpec) DeepCopyInto(out *RedirectTokenSpec) { *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 { +// 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(SharedSecretSpec) + 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 *SharedSecretStatus) DeepCopyInto(out *SharedSecretStatus) { +func (in *RedirectTokenStatus) DeepCopyInto(out *RedirectTokenStatus) { *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 { +// 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(SharedSecretStatus) + 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 *SpaceInstance) DeepCopyInto(out *SpaceInstance) { +func (in *RegisterVirtualCluster) DeepCopyInto(out *RegisterVirtualCluster) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Status = in.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 RegisterVirtualCluster. +func (in *RegisterVirtualCluster) DeepCopy() *RegisterVirtualCluster { if in == nil { return nil } - out := new(SpaceInstance) + out := new(RegisterVirtualCluster) 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 *RegisterVirtualCluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5685,13 +5561,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 *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([]SpaceInstance, len(*in)) + *out = make([]RegisterVirtualCluster, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5699,18 +5575,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 RegisterVirtualClusterList. +func (in *RegisterVirtualClusterList) DeepCopy() *RegisterVirtualClusterList { if in == nil { return nil } - out := new(SpaceInstanceList) + out := new(RegisterVirtualClusterList) 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 *RegisterVirtualClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5718,46 +5594,44 @@ 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 *RegisterVirtualClusterSpec) DeepCopyInto(out *RegisterVirtualClusterSpec) { *out = *in - in.SpaceInstanceSpec.DeepCopyInto(&out.SpaceInstanceSpec) + if in.Standalone != nil { + in, out := &in.Standalone, &out.Standalone + *out = new(bool) + **out = **in + } 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 RegisterVirtualClusterSpec. +func (in *RegisterVirtualClusterSpec) DeepCopy() *RegisterVirtualClusterSpec { if in == nil { return nil } - out := new(SpaceInstanceSpec) + 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 *SpaceInstanceStatus) DeepCopyInto(out *SpaceInstanceStatus) { +func (in *RegisterVirtualClusterStatus) DeepCopyInto(out *RegisterVirtualClusterStatus) { *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 { +// 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(SpaceInstanceStatus) + 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 *SpaceTemplate) DeepCopyInto(out *SpaceTemplate) { +func (in *ResetAccessKey) DeepCopyInto(out *ResetAccessKey) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -5766,18 +5640,18 @@ func (in *SpaceTemplate) DeepCopyInto(out *SpaceTemplate) { 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 ResetAccessKey. +func (in *ResetAccessKey) DeepCopy() *ResetAccessKey { if in == nil { return nil } - out := new(SpaceTemplate) + out := new(ResetAccessKey) 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 *ResetAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5785,13 +5659,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 *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([]SpaceTemplate, len(*in)) + *out = make([]ResetAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5799,18 +5673,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 ResetAccessKeyList. +func (in *ResetAccessKeyList) DeepCopy() *ResetAccessKeyList { if in == nil { return nil } - out := new(SpaceTemplateList) + out := new(ResetAccessKeyList) 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 *ResetAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5818,72 +5692,156 @@ 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 *ResetAccessKeySpec) DeepCopyInto(out *ResetAccessKeySpec) { *out = *in - in.SpaceTemplateSpec.DeepCopyInto(&out.SpaceTemplateSpec) + in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) 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 ResetAccessKeySpec. +func (in *ResetAccessKeySpec) DeepCopy() *ResetAccessKeySpec { if in == nil { return nil } - out := new(SpaceTemplateSpec) + 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 *SpaceTemplateStatus) DeepCopyInto(out *SpaceTemplateStatus) { +func (in *ResetAccessKeyStatus) DeepCopyInto(out *ResetAccessKeyStatus) { *out = *in - out.SpaceTemplateStatus = in.SpaceTemplateStatus - if in.Apps != nil { - in, out := &in.Apps, &out.Apps - *out = make([]*storagev1.EntityInfo, len(*in)) + in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeyStatus. +func (in *ResetAccessKeyStatus) DeepCopy() *ResetAccessKeyStatus { + if in == nil { + return nil + } + 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 *SSHKey) DeepCopyInto(out *SSHKey) { + *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 SSHKey. +func (in *SSHKey) DeepCopy() *SSHKey { + if in == nil { + return nil + } + out := new(SSHKey) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SSHKey) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SSHKeyList) DeepCopyInto(out *SSHKeyList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SSHKey, 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 SSHKeyList. +func (in *SSHKeyList) DeepCopy() *SSHKeyList { if in == nil { return nil } - out := new(SpaceTemplateStatus) + out := new(SSHKeyList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SSHKeyList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SSHKeySpec) DeepCopyInto(out *SSHKeySpec) { + *out = *in + in.SSHKeySpec.DeepCopyInto(&out.SSHKeySpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHKeySpec. +func (in *SSHKeySpec) DeepCopy() *SSHKeySpec { + if in == nil { + return nil + } + out := new(SSHKeySpec) 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 *SSHKeyStatus) DeepCopyInto(out *SSHKeyStatus) { + *out = *in + out.SSHKeyStatus = in.SSHKeyStatus + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHKeyStatus. +func (in *SSHKeyStatus) DeepCopy() *SSHKeyStatus { + if in == nil { + return nil + } + out := new(SSHKeyStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Self) DeepCopyInto(out *Self) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) 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 Self. +func (in *Self) DeepCopy() *Self { if in == nil { return nil } - out := new(SubjectAccessReview) + out := new(Self) 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 *Self) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5891,13 +5849,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 *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([]SubjectAccessReview, len(*in)) + *out = make([]Self, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5905,18 +5863,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 SelfList. +func (in *SelfList) DeepCopy() *SelfList { if in == nil { return nil } - out := new(SubjectAccessReviewList) + out := new(SelfList) 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 *SelfList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5924,94 +5882,2103 @@ 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 *SelfSpec) DeepCopyInto(out *SelfSpec) { *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 { +// 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(SubjectAccessReviewSpec) + 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 *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) { +func (in *SelfStatus) DeepCopyInto(out *SelfStatus) { *out = *in - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus + 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 SubjectAccessReviewStatus. -func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus { +// 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(SubjectAccessReviewStatus) + 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 *Task) DeepCopyInto(out *Task) { +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(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 *UserAccessKeys) DeepCopyInto(out *UserAccessKeys) { + *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 { + if in == nil { + return nil + } + 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 *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([]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 UserAccessKeysList. +func (in *UserAccessKeysList) DeepCopy() *UserAccessKeysList { + if in == nil { + return nil + } + 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 *UserClusters) DeepCopyInto(out *UserClusters) { + *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 UserClusters. +func (in *UserClusters) DeepCopy() *UserClusters { + if in == nil { + return nil + } + 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 *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) { + *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) + if in.ObjectPermissions != nil { + in, out := &in.ObjectPermissions, &out.ObjectPermissions + *out = make([]ObjectPermission, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserObjectPermissions. +func (in *UserObjectPermissions) DeepCopy() *UserObjectPermissions { + if in == nil { + return nil + } + out := new(UserObjectPermissions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserObjectPermissions) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserObjectPermissionsList) DeepCopyInto(out *UserObjectPermissionsList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UserObjectPermissions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserObjectPermissionsList. +func (in *UserObjectPermissionsList) DeepCopy() *UserObjectPermissionsList { + if in == nil { + return nil + } + out := new(UserObjectPermissionsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserObjectPermissionsList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserPermissions) DeepCopyInto(out *UserPermissions) { + *out = *in + 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 UserPermissions. +func (in *UserPermissions) DeepCopy() *UserPermissions { + if in == nil { + return nil + } + 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 *UserPermissionsList) DeepCopyInto(out *UserPermissionsList) { + *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)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// 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(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 *UserProfile) DeepCopyInto(out *UserProfile) { + *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 + } + 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 UserProfile. +func (in *UserProfile) DeepCopy() *UserProfile { + if in == nil { + return nil + } + out := new(UserProfile) + 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) { + *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]) + } + } + return +} + +// 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(UserProfileList) + 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 +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserProfileSecret) DeepCopyInto(out *UserProfileSecret) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProfileSecret. +func (in *UserProfileSecret) DeepCopy() *UserProfileSecret { + if in == nil { + return nil + } + out := new(UserProfileSecret) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserQuotasOptions) DeepCopyInto(out *UserQuotasOptions) { + *out = *in + out.TypeMeta = in.TypeMeta + 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 UserQuotasOptions. +func (in *UserQuotasOptions) DeepCopy() *UserQuotasOptions { + if in == nil { + return nil + } + out := new(UserQuotasOptions) + 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserSpacesOptions) DeepCopyInto(out *UserSpacesOptions) { + *out = *in + out.TypeMeta = in.TypeMeta + 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 UserSpacesOptions. +func (in *UserSpacesOptions) DeepCopy() *UserSpacesOptions { + if in == nil { + return nil + } + out := new(UserSpacesOptions) + 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserSpec) DeepCopyInto(out *UserSpec) { + *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 { + if in == nil { + return nil + } + 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 *UserStatus) DeepCopyInto(out *UserStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.UserStatus.DeepCopyInto(&out.UserStatus) 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 UserStatus. +func (in *UserStatus) DeepCopy() *UserStatus { if in == nil { return nil } - out := new(Task) + out := new(UserStatus) 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) { +func (in *UserVirtualClustersOptions) DeepCopyInto(out *UserVirtualClustersOptions) { *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]) - } + 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 TaskList. -func (in *TaskList) DeepCopy() *TaskList { +// 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(TaskList) + out := new(UserVirtualClustersOptions) 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 *UserVirtualClustersOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6019,25 +7986,25 @@ 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 *VirtualClusterAccessKey) DeepCopyInto(out *VirtualClusterAccessKey) { *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 VirtualClusterAccessKey. +func (in *VirtualClusterAccessKey) DeepCopy() *VirtualClusterAccessKey { if in == nil { return nil } - out := new(TaskLog) + out := new(VirtualClusterAccessKey) 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 { +func (in *VirtualClusterAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6045,13 +8012,13 @@ func (in *TaskLog) DeepCopyObject() runtime.Object { } // 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 *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([]TaskLog, len(*in)) + *out = make([]VirtualClusterAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6059,18 +8026,18 @@ func (in *TaskLogList) DeepCopyInto(out *TaskLogList) { 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 VirtualClusterAccessKeyList. +func (in *VirtualClusterAccessKeyList) DeepCopy() *VirtualClusterAccessKeyList { if in == nil { return nil } - out := new(TaskLogList) + out := new(VirtualClusterAccessKeyList) 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 *VirtualClusterAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6078,115 +8045,96 @@ 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 *VirtualClusterDebugShellPodStatus) DeepCopyInto(out *VirtualClusterDebugShellPodStatus) { *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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterDebugShellPodStatus. +func (in *VirtualClusterDebugShellPodStatus) DeepCopy() *VirtualClusterDebugShellPodStatus { if in == nil { return nil } - out := new(TaskLogOptions) + out := new(VirtualClusterDebugShellPodStatus) 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 +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterDebugShellPodsStatus) DeepCopyInto(out *VirtualClusterDebugShellPodsStatus) { + *out = *in + if in.Pods != nil { + in, out := &in.Pods, &out.Pods + *out = make([]VirtualClusterDebugShellPodStatus, len(*in)) + copy(*out, *in) } - return nil + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterDebugShellPodsStatus. +func (in *VirtualClusterDebugShellPodsStatus) DeepCopy() *VirtualClusterDebugShellPodsStatus { + if in == nil { + return nil + } + out := new(VirtualClusterDebugShellPodsStatus) + in.DeepCopyInto(out) + return out } // 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 *VirtualClusterDebugShellSpec) DeepCopyInto(out *VirtualClusterDebugShellSpec) { *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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterDebugShellSpec. +func (in *VirtualClusterDebugShellSpec) DeepCopy() *VirtualClusterDebugShellSpec { if in == nil { return nil } - out := new(TaskSpec) + out := new(VirtualClusterDebugShellSpec) 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 *VirtualClusterDebugShellStatus) DeepCopyInto(out *VirtualClusterDebugShellStatus) { *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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterDebugShellStatus. +func (in *VirtualClusterDebugShellStatus) DeepCopy() *VirtualClusterDebugShellStatus { if in == nil { return nil } - out := new(TaskStatus) + out := new(VirtualClusterDebugShellStatus) 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 *VirtualClusterExternalDatabase) DeepCopyInto(out *VirtualClusterExternalDatabase) { *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 Team. -func (in *Team) DeepCopy() *Team { +// 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(Team) + out := new(VirtualClusterExternalDatabase) 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 *VirtualClusterExternalDatabase) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6194,13 +8142,13 @@ 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 *VirtualClusterExternalDatabaseList) DeepCopyInto(out *VirtualClusterExternalDatabaseList) { *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)) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterExternalDatabase, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6208,18 +8156,18 @@ func (in *TeamAccessKeys) DeepCopyInto(out *TeamAccessKeys) { 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 VirtualClusterExternalDatabaseList. +func (in *VirtualClusterExternalDatabaseList) DeepCopy() *VirtualClusterExternalDatabaseList { if in == nil { return nil } - out := new(TeamAccessKeys) + out := new(VirtualClusterExternalDatabaseList) 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 *VirtualClusterExternalDatabaseList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6227,65 +8175,59 @@ 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 *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([]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 { +// 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(TeamAccessKeysList) + out := new(VirtualClusterExternalDatabaseSpec) 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 +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopyInto(out *VirtualClusterExternalDatabaseStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseStatus. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopy() *VirtualClusterExternalDatabaseStatus { + if in == nil { + return nil } - return nil + out := new(VirtualClusterExternalDatabaseStatus) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamClusters) DeepCopyInto(out *TeamClusters) { +func (in *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { *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]) - } - } + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.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 VirtualClusterInstance. +func (in *VirtualClusterInstance) DeepCopy() *VirtualClusterInstance { if in == nil { return nil } - out := new(TeamClusters) + out := new(VirtualClusterInstance) 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 *VirtualClusterInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6293,32 +8235,27 @@ 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 *VirtualClusterInstanceDebugShell) DeepCopyInto(out *VirtualClusterInstanceDebugShell) { *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]) - } - } + 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 TeamClustersList. -func (in *TeamClustersList) DeepCopy() *TeamClustersList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceDebugShell. +func (in *VirtualClusterInstanceDebugShell) DeepCopy() *VirtualClusterInstanceDebugShell { if in == nil { return nil } - out := new(TeamClustersList) + out := new(VirtualClusterInstanceDebugShell) 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 *VirtualClusterInstanceDebugShell) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6326,13 +8263,13 @@ func (in *TeamClustersList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamList) DeepCopyInto(out *TeamList) { +func (in *VirtualClusterInstanceDebugShellList) DeepCopyInto(out *VirtualClusterInstanceDebugShellList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Team, len(*in)) + *out = make([]VirtualClusterInstanceDebugShell, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6340,18 +8277,18 @@ func (in *TeamList) DeepCopyInto(out *TeamList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamList. -func (in *TeamList) DeepCopy() *TeamList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceDebugShellList. +func (in *VirtualClusterInstanceDebugShellList) DeepCopy() *VirtualClusterInstanceDebugShellList { if in == nil { return nil } - out := new(TeamList) + out := new(VirtualClusterInstanceDebugShellList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceDebugShellList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6359,61 +8296,87 @@ func (in *TeamList) DeepCopyObject() runtime.Object { } // 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 *VirtualClusterInstanceDebugShellPods) DeepCopyInto(out *VirtualClusterInstanceDebugShellPods) { *out = *in - in.TeamSpec.DeepCopyInto(&out.TeamSpec) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Status.DeepCopyInto(&out.Status) 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 VirtualClusterInstanceDebugShellPods. +func (in *VirtualClusterInstanceDebugShellPods) DeepCopy() *VirtualClusterInstanceDebugShellPods { if in == nil { return nil } - out := new(TeamSpec) + out := new(VirtualClusterInstanceDebugShellPods) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterInstanceDebugShellPods) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // 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 *VirtualClusterInstanceDebugShellPodsList) DeepCopyInto(out *VirtualClusterInstanceDebugShellPodsList) { *out = *in - out.TeamStatus = in.TeamStatus + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterInstanceDebugShellPods, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } 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 VirtualClusterInstanceDebugShellPodsList. +func (in *VirtualClusterInstanceDebugShellPodsList) DeepCopy() *VirtualClusterInstanceDebugShellPodsList { if in == nil { return nil } - out := new(TeamStatus) + out := new(VirtualClusterInstanceDebugShellPodsList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterInstanceDebugShellPodsList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != 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 +8384,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 +8398,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 +8417,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 +8487,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 +8513,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 +8527,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 +8546,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 +8590,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 +8618,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 +8632,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 +8651,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 +8678,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 +8692,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 +8711,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 +8723,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 +8801,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 +8834,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 +8893,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 +8926,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 +9012,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 +9026,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 +9045,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 +9137,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 +9170,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 +9314,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/doc.go b/pkg/apis/storage/doc.go index bfa56175..2888ad3f 100644 --- a/pkg/apis/storage/doc.go +++ b/pkg/apis/storage/doc.go @@ -1,3 +1,4 @@ // +k8s:openapi-gen=true +// +k8s:openapi-model-package=com.github.loft-sh.api.v4.pkg.apis.storage // +groupName=storage.loft.sh package storage 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/doc.go b/pkg/apis/storage/v1/doc.go index 3cbd7a9f..4ac1dc4f 100644 --- a/pkg/apis/storage/v1/doc.go +++ b/pkg/apis/storage/v1/doc.go @@ -7,6 +7,7 @@ //go:generate go run ../../../../vendor/k8s.io/code-generator/cmd/conversion-gen/main.go -O zz_generated.conversion -i . -h ../../../../boilerplate.go.txt // +k8s:openapi-gen=true +// +k8s:openapi-model-package=com.github.loft-sh.api.v4.pkg.apis.storage.v1 // +k8s:deepcopy-gen=package // +k8s:defaulter-gen=TypeMeta // +groupName=storage.loft.sh 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..c9c90f97 --- /dev/null +++ b/pkg/apis/storage/v1/nodeclaim_types.go @@ -0,0 +1,172 @@ +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 +} + +func (a *NodeClaim) GetOwner() *UserOrTeam { + return a.Spec.Owner +} + +func (a *NodeClaim) SetOwner(userOrTeam *UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *NodeClaim) GetAccess() []Access { + return a.Spec.Access +} + +func (a *NodeClaim) SetAccess(access []Access) { + a.Spec.Access = access +} + +// NodeClaimSpec defines spec of node claim. +type NodeClaimSpec struct { + // DisplayName is the name of the NodeClaim that is displayed in the UI. + // +optional + DisplayName string `json:"displayName,omitempty"` + + // Owner holds the owner of this object + // +optional + Owner *UserOrTeam `json:"owner,omitempty"` + + // Access holds the access rights for users and teams + // +optional + Access []Access `json:"access,omitempty"` + + // 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"` + + // EnvironmentRef is the name of the NodeEnvironment that this NodeClaim is based on. + // +optional + EnvironmentRef string `json:"environmentRef,omitempty"` + + // Properties are extra properties for the NodeClaim. + // +optional + Properties map[string]string `json:"properties,omitempty"` + + // Below are options specifically for scheduling with vCluster. + + // VClusterRef references source vCluster. + // +optional + VClusterRef string `json:"vClusterRef,omitempty"` + + // 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"` + + // 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"` +} + +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..dddb3f47 --- /dev/null +++ b/pkg/apis/storage/v1/nodeenvironment_types.go @@ -0,0 +1,141 @@ +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 +} + +func (a *NodeEnvironment) GetOwner() *UserOrTeam { + return a.Spec.Owner +} + +func (a *NodeEnvironment) SetOwner(userOrTeam *UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *NodeEnvironment) GetAccess() []Access { + return a.Spec.Access +} + +func (a *NodeEnvironment) SetAccess(access []Access) { + a.Spec.Access = access +} + +// NodeEnvironmentSpec defines spec of node environment. +type NodeEnvironmentSpec struct { + // DisplayName is the name of the NodeClaim that is displayed in the UI. + // +optional + DisplayName string `json:"displayName,omitempty"` + + // Owner holds the owner of this object + // +optional + Owner *UserOrTeam `json:"owner,omitempty"` + + // Access holds the access rights for users and teams + // +optional + Access []Access `json:"access,omitempty"` + + // 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. + // +optional + ProviderRef string `json:"providerRef,omitempty"` + + // Below are options specifically for scheduling with vCluster. + + // VClusterRef references source vCluster. + // +optional + VClusterRef string `json:"vClusterRef,omitempty"` + + // 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..73080d21 --- /dev/null +++ b/pkg/apis/storage/v1/nodeprovider_types.go @@ -0,0 +1,403 @@ +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" + NodeProviderTypeMetal3 string = "metal3" + + // NodeProviderConditionTypeInitialized is the condition that indicates if the node provider is initialized. + NodeProviderConditionTypeInitialized = "Initialized" + + // NodeProviderConditionTypeDeployed is the condition that indicates if infrastructure components are deployed. + NodeProviderConditionTypeDeployed = "Deployed" +) + +var ( + NodeProviderConditions = []agentstoragev1.ConditionType{ + NodeProviderConditionTypeInitialized, + NodeProviderConditionTypeDeployed, + } +) + +// 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"` + + // Metal3 configures a node provider using metal3.io BareMetalHost resources. + // +optional + Metal3 *NodeProviderMetal3 `json:"metal3,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"` +} + +type MultusDeployment struct { + // Enabled controls whether Multus CNI is deployed into the cluster. + Enabled bool `json:"enabled"` + + // HelmValues is raw YAML that will be passed as values to the Multus Helm chart. + // +optional + HelmValues string `json:"helmValues,omitempty"` +} + +type DHCPDeployment struct { + // Enabled controls whether the DHCP server is deployed into the cluster. + Enabled bool `json:"enabled"` + + // HelmValues is raw YAML that will be passed as values to the DHCP Helm chart. + // +optional + HelmValues string `json:"helmValues,omitempty"` +} + +type Metal3Deployment struct { + // Enabled controls whether Metal3 and Ironic are deployed into the cluster. + Enabled bool `json:"enabled"` + + // HelmValues is raw YAML that will be passed as values to the Metal3 Helm chart. + // +optional + HelmValues string `json:"helmValues,omitempty"` +} + +type Metal3ProviderDeployment struct { + // Multus configures the Multus CNI deployment. + // +optional + Multus MultusDeployment `json:"multus,omitempty"` + + // DHCP configures the DHCP server deployment. + // +optional + DHCP DHCPDeployment `json:"dhcp,omitempty"` + + // Metal3 configures the Metal3/Ironic deployment. + // +optional + Metal3 Metal3Deployment `json:"metal3,omitempty"` +} + +type NodeProviderMetal3 struct { + // ClusterRef is a reference to connected host cluster in which KubeVirt operator is running + ClusterRef NodeProviderClusterRef `json:"clusterRef,omitempty"` + + Deploy Metal3ProviderDeployment `json:"deploy,omitempty"` + + // NodeTypes define NodeTypes that should be automatically created for this provider. + NodeTypes []Metal3NodeTypeSpec `json:"nodeTypes,omitempty"` +} + +type Metal3NodeTypeSpec struct { + NamedNodeTypeSpec `json:",inline"` + + // BareMetalHosts is a list of BareMetalHosts to use for this NodeType. + // +optional + BareMetalHosts Metal3BareMetalHosts `json:"bareMetalHosts,omitempty"` +} + +type Metal3BareMetalHosts struct { + // Selector is a label selector to select the BareMetalHosts to use for this NodeType. + // +optional + Selector *metav1.LabelSelector `json:"selector,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/osimage_types.go b/pkg/apis/storage/v1/osimage_types.go new file mode 100644 index 00000000..45c60178 --- /dev/null +++ b/pkg/apis/storage/v1/osimage_types.go @@ -0,0 +1,72 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// OSImage holds the information of machine networks +// +k8s:openapi-gen=true +type OSImage struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec OSImageSpec `json:"spec,omitempty"` + Status OSImageStatus `json:"status,omitempty"` +} + +func (a *OSImage) GetOwner() *UserOrTeam { + return a.Spec.Owner +} + +func (a *OSImage) SetOwner(userOrTeam *UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *OSImage) GetAccess() []Access { + return a.Spec.Access +} + +func (a *OSImage) SetAccess(access []Access) { + a.Spec.Access = access +} + +type OSImageSpec struct { + // DisplayName is the name that should be displayed in the UI + // +optional + DisplayName string `json:"displayName,omitempty"` + + // Description describes an OS image + // +optional + Description string `json:"description,omitempty"` + + // Owner holds the owner of this object + // +optional + Owner *UserOrTeam `json:"owner,omitempty"` + + // Access holds the access rights for users and teams + // +optional + Access []Access `json:"access,omitempty"` + + // Properties is the configuration for the OS image + // +optional + Properties map[string]string `json:"properties,omitempty"` +} + +type OSImageStatus struct{} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// OSImageList contains a list of OSImages +type OSImageList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []OSImage `json:"items"` +} + +func init() { + SchemeBuilder.Register(&OSImage{}, &OSImageList{}) +} diff --git a/pkg/apis/storage/v1/project_types.go b/pkg/apis/storage/v1/project_types.go index 2fec41e1..ec2eea47 100644 --- a/pkg/apis/storage/v1/project_types.go +++ b/pkg/apis/storage/v1/project_types.go @@ -32,6 +32,10 @@ const ( RancherLastAppliedHashAnnotation = "loft.sh/rancher-integration-last-applied-hash" ) +const ( + ConditionTypeNamespaceTemplateSynced agentstoragev1.ConditionType = "NamespaceTemplateSynced" +) + // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -93,7 +97,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 +109,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"` @@ -114,6 +121,12 @@ type ProjectSpec struct { // +optional Access []Access `json:"access,omitempty"` + // NamespaceTemplate defines metadata that should be applied to the project's namespace on creation. + // This is useful for environments where admission controllers (e.g., Kyverno) + // require specific labels or annotations on namespaces. + // +optional + NamespaceTemplate *ProjectNamespaceTemplate `json:"namespaceTemplate,omitempty"` + // NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace // +optional NamespacePattern *NamespacePattern `json:"namespacePattern,omitempty"` @@ -129,10 +142,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 +151,20 @@ 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"` +} + +// ProjectNamespaceTemplate defines metadata to apply to the auto-created project namespace. +type ProjectNamespaceTemplate struct { + // The namespace metadata + // +optional + TemplateMetadata `json:"metadata,omitempty"` +} + type NamespacePattern struct { // Space holds the namespace pattern to use for space instances // +optional @@ -162,9 +185,8 @@ type Quotas struct { } var ( - SpaceTemplateKind = "SpaceTemplate" - VirtualClusterTemplateKind = "VirtualClusterTemplate" - DevPodWorkspaceTemplateKind = "DevPodWorkspaceTemplate" + SpaceTemplateKind = "SpaceTemplate" + VirtualClusterTemplateKind = "VirtualClusterTemplate" ) type AllowedTemplate struct { @@ -199,7 +221,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 { @@ -372,6 +394,23 @@ type ArgoProjectSpec struct { // configure sane default values. // +optional Roles []ArgoProjectRole `json:"roles,omitempty"` + // ClusterResourceWhitelist contains a list of whitelisted cluster level resources + // If not specified or empty, deny all cluster-scope resources. + // +optional + ClusterResourceWhitelist []metav1.GroupKind `json:"clusterResourceWhitelist,omitempty"` + // NamespaceResourceWhitelist contains a list of whitelisted namespace level resources + // If not specified or empty, allow all namespace-scope resources. + // +optional + NamespaceResourceWhitelist []metav1.GroupKind `json:"namespaceResourceWhitelist,omitempty"` + // ClusterResourceBlacklist contains a list of blacklisted cluster level resources + // +optional + ClusterResourceBlacklist []metav1.GroupKind `json:"clusterResourceBlacklist,omitempty"` + // NamespaceResourceBlacklist contains a list of blacklisted namespace level resources + // +optional + NamespaceResourceBlacklist []metav1.GroupKind `json:"namespaceResourceBlacklist,omitempty"` + // SourceNamespaces defines the namespaces application resources are allowed to be created in + // +optional + SourceNamespaces []string `json:"sourceNamespaces,omitempty"` } type ArgoProjectSpecMetadata struct { @@ -499,44 +538,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/sshkey_types.go b/pkg/apis/storage/v1/sshkey_types.go new file mode 100644 index 00000000..d8fc5486 --- /dev/null +++ b/pkg/apis/storage/v1/sshkey_types.go @@ -0,0 +1,71 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// SSHKey holds the information of SSH keys +// +k8s:openapi-gen=true +type SSHKey struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec SSHKeySpec `json:"spec,omitempty"` + Status SSHKeyStatus `json:"status,omitempty"` +} + +func (a *SSHKey) GetOwner() *UserOrTeam { + return a.Spec.Owner +} + +func (a *SSHKey) SetOwner(userOrTeam *UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *SSHKey) GetAccess() []Access { + return a.Spec.Access +} + +func (a *SSHKey) SetAccess(access []Access) { + a.Spec.Access = access +} + +type SSHKeySpec struct { + // DisplayName is the name that should be displayed in the UI + // +optional + DisplayName string `json:"displayName,omitempty"` + + // Description describes an SSH key + // +optional + Description string `json:"description,omitempty"` + + // Owner holds the owner of this object + // +optional + Owner *UserOrTeam `json:"owner,omitempty"` + + // Access holds the access rights for users and teams + // +optional + Access []Access `json:"access,omitempty"` + + // PublicKey is the public SSH key + PublicKey string `json:"publicKey,omitempty"` +} + +type SSHKeyStatus struct{} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// SSHKeyList contains a list of SSHKeys +type SSHKeyList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []SSHKey `json:"items"` +} + +func init() { + SchemeBuilder.Register(&SSHKey{}, &SSHKeyList{}) +} 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..deadae12 100644 --- a/pkg/apis/storage/v1/virtualclusterinstance_types.go +++ b/pkg/apis/storage/v1/virtualclusterinstance_types.go @@ -7,18 +7,31 @@ 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" + InstanceVirtualClusterAutoDeletionBlocked agentstoragev1.ConditionType = "VirtualClusterAutoDeletionBlocked" + + InstanceVirtualClusterAppsAndObjectsSynced agentstoragev1.ConditionType = "VirtualClusterAppsAndObjectsSynced" + InstanceVirtualClusterDBConnectorSynced agentstoragev1.ConditionType = "DBConnectorSynced" + InstanceVirtualClusterDBIdentityProviderSynced agentstoragev1.ConditionType = "DBIdentityProviderSynced" + + // Etcd health condition types + InstanceEtcdClusterHealthy agentstoragev1.ConditionType = "EtcdClusterHealthy" + InstanceEtcdLeaderAvailable agentstoragev1.ConditionType = "EtcdLeaderAvailable" + InstanceEtcdQuorumMet agentstoragev1.ConditionType = "EtcdQuorumMet" + InstanceEtcdMemberHealthy agentstoragev1.ConditionType = "EtcdMemberHealthy" + InstanceEtcdNoAlarms agentstoragev1.ConditionType = "EtcdNoAlarms" + InstanceEtcdDbSizeOk agentstoragev1.ConditionType = "EtcdDbSizeOk" ) // +genclient @@ -107,6 +120,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 +145,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 +303,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 +342,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..aabe3b1a 100644 --- a/pkg/apis/storage/v1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1/zz_generated.deepcopy.go @@ -9,6 +9,7 @@ import ( storagev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -76,32 +77,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 +364,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 { @@ -841,6 +816,31 @@ func (in *ArgoProjectSpec) DeepCopyInto(out *ArgoProjectSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.ClusterResourceWhitelist != nil { + in, out := &in.ClusterResourceWhitelist, &out.ClusterResourceWhitelist + *out = make([]metav1.GroupKind, len(*in)) + copy(*out, *in) + } + if in.NamespaceResourceWhitelist != nil { + in, out := &in.NamespaceResourceWhitelist, &out.NamespaceResourceWhitelist + *out = make([]metav1.GroupKind, len(*in)) + copy(*out, *in) + } + if in.ClusterResourceBlacklist != nil { + in, out := &in.ClusterResourceBlacklist, &out.ClusterResourceBlacklist + *out = make([]metav1.GroupKind, len(*in)) + copy(*out, *in) + } + if in.NamespaceResourceBlacklist != nil { + in, out := &in.NamespaceResourceBlacklist, &out.NamespaceResourceBlacklist + *out = make([]metav1.GroupKind, len(*in)) + copy(*out, *in) + } + if in.SourceNamespaces != nil { + in, out := &in.SourceNamespaces, &out.SourceNamespaces + *out = make([]string, len(*in)) + copy(*out, *in) + } return } @@ -905,6 +905,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 +970,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 +992,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 +1383,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 +1409,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,925 +1430,927 @@ 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 *DHCPDeployment) DeepCopyInto(out *DHCPDeployment) { *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 DHCPDeployment. +func (in *DHCPDeployment) DeepCopy() *DHCPDeployment { if in == nil { return nil } - out := new(CredentialForwarding) + out := new(DHCPDeployment) 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 *EntityInfo) DeepCopyInto(out *EntityInfo) { *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 EntityInfo. +func (in *EntityInfo) DeepCopy() *EntityInfo { if in == nil { return nil } - out := new(DevPodCommandDeleteOptions) + 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 *DevPodCommandStatusOptions) DeepCopyInto(out *DevPodCommandStatusOptions) { +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 DevPodCommandStatusOptions. -func (in *DevPodCommandStatusOptions) DeepCopy() *DevPodCommandStatusOptions { +// 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(DevPodCommandStatusOptions) + 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 *DevPodCommandStopOptions) DeepCopyInto(out *DevPodCommandStopOptions) { +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 DevPodCommandStopOptions. -func (in *DevPodCommandStopOptions) DeepCopy() *DevPodCommandStopOptions { +// 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(DevPodCommandStopOptions) + 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 *DevPodCommandUpOptions) DeepCopyInto(out *DevPodCommandUpOptions) { +func (in *HelmChartRepository) DeepCopyInto(out *HelmChartRepository) { *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 HelmChartRepository. +func (in *HelmChartRepository) DeepCopy() *HelmChartRepository { if in == nil { return nil } - out := new(DevPodCommandUpOptions) + 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 *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { +func (in *HelmConfiguration) DeepCopyInto(out *HelmConfiguration) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) 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 HelmConfiguration. +func (in *HelmConfiguration) DeepCopy() *HelmConfiguration { if in == nil { return nil } - out := new(DevPodEnvironmentTemplate) + out := new(HelmConfiguration) 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 *HelmTask) DeepCopyInto(out *HelmTask) { *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.Release.DeepCopyInto(&out.Release) 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 HelmTask. +func (in *HelmTask) DeepCopy() *HelmTask { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateList) + out := new(HelmTask) 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 *HelmTaskRelease) DeepCopyInto(out *HelmTaskRelease) { *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]) + 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 } } - 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 HelmTaskRelease. +func (in *HelmTaskRelease) DeepCopy() *HelmTaskRelease { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateSpec) + out := new(HelmTaskRelease) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateVersion) DeepCopyInto(out *DevPodEnvironmentTemplateVersion) { +func (in *ImportVirtualClustersSpec) DeepCopyInto(out *ImportVirtualClustersSpec) { *out = *in - out.Git = in.Git + if in.RoleMapping != nil { + in, out := &in.RoleMapping, &out.RoleMapping + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateVersion. -func (in *DevPodEnvironmentTemplateVersion) DeepCopy() *DevPodEnvironmentTemplateVersion { +// 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(DevPodEnvironmentTemplateVersion) + 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 *DevPodProjectSpec) DeepCopyInto(out *DevPodProjectSpec) { +func (in *InstanceAccess) DeepCopyInto(out *InstanceAccess) { *out = *in - if in.Git != nil { - in, out := &in.Git, &out.Git - *out = new(GitProjectSpec) - (*in).DeepCopyInto(*out) - } - if in.SSH != nil { - in, out := &in.SSH, &out.SSH - *out = new(SSHProjectSpec) - (*in).DeepCopyInto(*out) + 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 DevPodProjectSpec. -func (in *DevPodProjectSpec) DeepCopy() *DevPodProjectSpec { +// 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(DevPodProjectSpec) + 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 *DevPodProviderOption) DeepCopyInto(out *DevPodProviderOption) { +func (in *InstanceAccessRule) DeepCopyInto(out *InstanceAccessRule) { *out = *in - if in.ValueFrom != nil { - in, out := &in.ValueFrom, &out.ValueFrom - *out = new(DevPodProviderOptionFrom) - (*in).DeepCopyInto(*out) + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make([]string, len(*in)) + copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodProviderOption. -func (in *DevPodProviderOption) DeepCopy() *DevPodProviderOption { +// 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(DevPodProviderOption) + 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 *DevPodProviderOptionFrom) DeepCopyInto(out *DevPodProviderOptionFrom) { +func (in *InstanceDeployedAppStatus) DeepCopyInto(out *InstanceDeployedAppStatus) { *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 InstanceDeployedAppStatus. +func (in *InstanceDeployedAppStatus) DeepCopy() *InstanceDeployedAppStatus { if in == nil { return nil } - out := new(DevPodProviderOptionFrom) + 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 *DevPodProviderSource) DeepCopyInto(out *DevPodProviderSource) { +func (in *KindSecretRef) DeepCopyInto(out *KindSecretRef) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodProviderSource. -func (in *DevPodProviderSource) DeepCopy() *DevPodProviderSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KindSecretRef. +func (in *KindSecretRef) DeepCopy() *KindSecretRef { if in == nil { return nil } - out := new(DevPodProviderSource) + 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 *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { +func (in *KubeVirtNodeTypeSpec) DeepCopyInto(out *KubeVirtNodeTypeSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + 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 DevPodWorkspaceInstance. -func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { +// 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(DevPodWorkspaceInstance) + out := new(KubeVirtNodeTypeSpec) 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 - } - 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) { +func (in *LocalClusterAccessSpec) DeepCopyInto(out *LocalClusterAccessSpec) { *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.Users != nil { + in, out := &in.Users, &out.Users + *out = make([]UserOrTeam, len(*in)) + copy(*out, *in) + } + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ClusterRoles != nil { + in, out := &in.ClusterRoles, &out.ClusterRoles + *out = make([]ClusterRoleRef, len(*in)) + copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new 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 *Metal3BareMetalHosts) DeepCopyInto(out *Metal3BareMetalHosts) { *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) - **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.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(metav1.LabelSelector) (*in).DeepCopyInto(*out) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateDefinition. -func (in *DevPodWorkspaceTemplateDefinition) DeepCopy() *DevPodWorkspaceTemplateDefinition { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metal3BareMetalHosts. +func (in *Metal3BareMetalHosts) DeepCopy() *Metal3BareMetalHosts { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateDefinition) + out := new(Metal3BareMetalHosts) 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 *Metal3Deployment) DeepCopyInto(out *Metal3Deployment) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceTemplate, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateList. -func (in *DevPodWorkspaceTemplateList) DeepCopy() *DevPodWorkspaceTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metal3Deployment. +func (in *Metal3Deployment) DeepCopy() *Metal3Deployment { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateList) + out := new(Metal3Deployment) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplateList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplateSpec) { +func (in *Metal3NodeTypeSpec) DeepCopyInto(out *Metal3NodeTypeSpec) { *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]) - } - } + in.NamedNodeTypeSpec.DeepCopyInto(&out.NamedNodeTypeSpec) + in.BareMetalHosts.DeepCopyInto(&out.BareMetalHosts) 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 Metal3NodeTypeSpec. +func (in *Metal3NodeTypeSpec) DeepCopy() *Metal3NodeTypeSpec { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateSpec) + out := new(Metal3NodeTypeSpec) 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 *Metal3ProviderDeployment) DeepCopyInto(out *Metal3ProviderDeployment) { *out = *in + out.Multus = in.Multus + out.DHCP = in.DHCP + out.Metal3 = in.Metal3 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 Metal3ProviderDeployment. +func (in *Metal3ProviderDeployment) DeepCopy() *Metal3ProviderDeployment { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateStatus) + out := new(Metal3ProviderDeployment) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateVersion) DeepCopyInto(out *DevPodWorkspaceTemplateVersion) { +func (in *Metrics) DeepCopyInto(out *Metrics) { *out = *in - in.Template.DeepCopyInto(&out.Template) - if in.Parameters != nil { - in, out := &in.Parameters, &out.Parameters - *out = make([]AppParameter, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = new(corev1.ResourceRequirements) + (*in).DeepCopyInto(*out) } + in.Storage.DeepCopyInto(&out.Storage) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateVersion. -func (in *DevPodWorkspaceTemplateVersion) DeepCopy() *DevPodWorkspaceTemplateVersion { +// 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(DevPodWorkspaceTemplateVersion) + 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 *DockerCredentialForwarding) DeepCopyInto(out *DockerCredentialForwarding) { +func (in *MultusDeployment) DeepCopyInto(out *MultusDeployment) { *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 MultusDeployment. +func (in *MultusDeployment) DeepCopy() *MultusDeployment { if in == nil { return nil } - out := new(DockerCredentialForwarding) + out := new(MultusDeployment) 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 *NamedNodeTypeSpec) DeepCopyInto(out *NamedNodeTypeSpec) { *out = *in + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) + in.Metadata.DeepCopyInto(&out.Metadata) 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 NamedNodeTypeSpec. +func (in *NamedNodeTypeSpec) DeepCopy() *NamedNodeTypeSpec { if in == nil { return nil } - out := new(EntityInfo) + out := new(NamedNodeTypeSpec) 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 *NamespacePattern) DeepCopyInto(out *NamespacePattern) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentRef. -func (in *EnvironmentRef) DeepCopy() *EnvironmentRef { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacePattern. +func (in *NamespacePattern) DeepCopy() *NamespacePattern { if in == nil { return nil } - out := new(EnvironmentRef) + 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 *GitCredentialForwarding) DeepCopyInto(out *GitCredentialForwarding) { +func (in *NamespacedRef) DeepCopyInto(out *NamespacedRef) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCredentialForwarding. -func (in *GitCredentialForwarding) DeepCopy() *GitCredentialForwarding { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedRef. +func (in *NamespacedRef) DeepCopy() *NamespacedRef { if in == nil { return nil } - out := new(GitCredentialForwarding) + 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 *GitEnvironmentTemplate) DeepCopyInto(out *GitEnvironmentTemplate) { +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 GitEnvironmentTemplate. -func (in *GitEnvironmentTemplate) DeepCopy() *GitEnvironmentTemplate { +// 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(GitEnvironmentTemplate) + 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 *GitProjectSpec) DeepCopyInto(out *GitProjectSpec) { +func (in *NetworkPeerList) DeepCopyInto(out *NetworkPeerList) { *out = *in - if in.TokenProjectSecretRef != nil { - in, out := &in.TokenProjectSecretRef, &out.TokenProjectSecretRef - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) + 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]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitProjectSpec. -func (in *GitProjectSpec) DeepCopy() *GitProjectSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPeerList. +func (in *NetworkPeerList) DeepCopy() *NetworkPeerList { if in == nil { return nil } - out := new(GitProjectSpec) + 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 *GroupResources) DeepCopyInto(out *GroupResources) { +func (in *NetworkPeerSpec) DeepCopyInto(out *NetworkPeerSpec) { *out = *in - if in.Resources != nil { - in, out := &in.Resources, &out.Resources + if in.Addresses != nil { + in, out := &in.Addresses, &out.Addresses *out = make([]string, len(*in)) copy(*out, *in) } - if in.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames + 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 GroupResources. -func (in *GroupResources) DeepCopy() *GroupResources { +// 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(GroupResources) + 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 *HelmChart) DeepCopyInto(out *HelmChart) { +func (in *NetworkPeerStatus) DeepCopyInto(out *NetworkPeerStatus) { *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) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPeerStatus. +func (in *NetworkPeerStatus) DeepCopy() *NetworkPeerStatus { + if in == nil { + return nil } - out.Repository = in.Repository + 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 *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 HelmChart. -func (in *HelmChart) DeepCopy() *HelmChart { +// 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(HelmChart) + out := new(NodeClaim) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeClaim) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HelmChartRepository) DeepCopyInto(out *HelmChartRepository) { +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 HelmChartRepository. -func (in *HelmChartRepository) DeepCopy() *HelmChartRepository { +// 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(HelmChartRepository) + out := new(NodeClaimList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeClaimList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HelmConfiguration) DeepCopyInto(out *HelmConfiguration) { +func (in *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { + *out = *in + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = new(UserOrTeam) + **out = **in + } + if in.Access != nil { + in, out := &in.Access, &out.Access + *out = make([]Access, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.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.Taints != nil { + in, out := &in.Taints, &out.Taints + *out = make([]corev1.Taint, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.StartupTaints != nil { + in, out := &in.StartupTaints, &out.StartupTaints + *out = make([]corev1.Taint, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.KubeletArgs != nil { + in, out := &in.KubeletArgs, &out.KubeletArgs + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.DesiredCapacity != nil { + in, out := &in.DesiredCapacity, &out.DesiredCapacity + *out = make(corev1.ResourceList, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } + if in.Requirements != nil { + in, out := &in.Requirements, &out.Requirements + *out = make([]corev1.NodeSelectorRequirement, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimSpec. +func (in *NodeClaimSpec) DeepCopy() *NodeClaimSpec { + if in == nil { + return nil + } + 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 *NodeClaimStatus) DeepCopyInto(out *NodeClaimStatus) { *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 HelmConfiguration. -func (in *HelmConfiguration) DeepCopy() *HelmConfiguration { +// 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(HelmConfiguration) + 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 *HelmTask) DeepCopyInto(out *HelmTask) { +func (in *NodeEnvironment) DeepCopyInto(out *NodeEnvironment) { *out = *in - in.Release.DeepCopyInto(&out.Release) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmTask. -func (in *HelmTask) DeepCopy() *HelmTask { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeEnvironment. +func (in *NodeEnvironment) DeepCopy() *NodeEnvironment { if in == nil { return nil } - out := new(HelmTask) + 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 *HelmTaskRelease) DeepCopyInto(out *HelmTaskRelease) { +func (in *NodeEnvironmentList) DeepCopyInto(out *NodeEnvironmentList) { *out = *in - in.Config.DeepCopyInto(&out.Config) - if in.Labels != nil { - in, out := &in.Labels, &out.Labels - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]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 HelmTaskRelease. -func (in *HelmTaskRelease) DeepCopy() *HelmTaskRelease { +// 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(HelmTaskRelease) + 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 *ImportVirtualClustersSpec) DeepCopyInto(out *ImportVirtualClustersSpec) { +func (in *NodeEnvironmentSpec) DeepCopyInto(out *NodeEnvironmentSpec) { *out = *in - if in.RoleMapping != nil { - in, out := &in.RoleMapping, &out.RoleMapping + 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.Properties != nil { + in, out := &in.Properties, &out.Properties *out = make(map[string]string, len(*in)) for key, val := range *in { (*out)[key] = val @@ -2259,22 +2359,22 @@ func (in *ImportVirtualClustersSpec) DeepCopyInto(out *ImportVirtualClustersSpec 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 NodeEnvironmentSpec. +func (in *NodeEnvironmentSpec) DeepCopy() *NodeEnvironmentSpec { if in == nil { return nil } - out := new(ImportVirtualClustersSpec) + 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 *InstanceAccess) DeepCopyInto(out *InstanceAccess) { +func (in *NodeEnvironmentStatus) DeepCopyInto(out *NodeEnvironmentStatus) { *out = *in - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]InstanceAccessRule, len(*in)) + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make(storagev1.Conditions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2282,192 +2382,472 @@ func (in *InstanceAccess) DeepCopyInto(out *InstanceAccess) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceAccess. -func (in *InstanceAccess) DeepCopy() *InstanceAccess { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeEnvironmentStatus. +func (in *NodeEnvironmentStatus) DeepCopy() *NodeEnvironmentStatus { if in == nil { return nil } - out := new(InstanceAccess) + 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 *InstanceAccessRule) DeepCopyInto(out *InstanceAccessRule) { +func (in *NodeProvider) DeepCopyInto(out *NodeProvider) { *out = *in - if in.Users != nil { - in, out := &in.Users, &out.Users - *out = make([]string, len(*in)) - copy(*out, *in) + 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 NodeProvider. +func (in *NodeProvider) DeepCopy() *NodeProvider { + if in == nil { + return nil } - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]string, len(*in)) - copy(*out, *in) + 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 *NodeProviderBCM) DeepCopyInto(out *NodeProviderBCM) { + *out = *in + if in.SecretRef != nil { + in, out := &in.SecretRef, &out.SecretRef + *out = new(NamespacedRef) + **out = **in + } + if in.NodeTypes != nil { + in, out := &in.NodeTypes, &out.NodeTypes + *out = make([]BCMNodeTypeSpec, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new 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) + out.ClusterRef = in.ClusterRef + 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) + out.ClusterRef = in.ClusterRef + if in.VirtualMachineTemplate != nil { + in, out := &in.VirtualMachineTemplate, &out.VirtualMachineTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) } - 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([]KubeVirtNodeTypeSpec, 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 NodeProviderKubeVirt. +func (in *NodeProviderKubeVirt) DeepCopy() *NodeProviderKubeVirt { + if in == nil { + return nil + } + 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 *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([]NodeProvider, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalClusterAccessSpec. -func (in *LocalClusterAccessSpec) DeepCopy() *LocalClusterAccessSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderList. +func (in *NodeProviderList) DeepCopy() *NodeProviderList { if in == nil { return nil } - out := new(LocalClusterAccessSpec) + out := new(NodeProviderList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeProviderList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LocalClusterAccessTemplate) DeepCopyInto(out *LocalClusterAccessTemplate) { +func (in *NodeProviderMetal3) DeepCopyInto(out *NodeProviderMetal3) { *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.LocalClusterAccessSpec.DeepCopyInto(&out.LocalClusterAccessSpec) + out.ClusterRef = in.ClusterRef + out.Deploy = in.Deploy + if in.NodeTypes != nil { + in, out := &in.NodeTypes, &out.NodeTypes + *out = make([]Metal3NodeTypeSpec, 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 NodeProviderMetal3. +func (in *NodeProviderMetal3) DeepCopy() *NodeProviderMetal3 { if in == nil { return nil } - out := new(LocalClusterAccessTemplate) + out := new(NodeProviderMetal3) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LocalClusterRoleTemplate) DeepCopyInto(out *LocalClusterRoleTemplate) { +func (in *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.LocalClusterRoleTemplateSpec.DeepCopyInto(&out.LocalClusterRoleTemplateSpec) + if in.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) + } + if in.Metal3 != nil { + in, out := &in.Metal3, &out.Metal3 + *out = new(NodeProviderMetal3) + (*in).DeepCopyInto(*out) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalClusterRoleTemplate. -func (in *LocalClusterRoleTemplate) DeepCopy() *LocalClusterRoleTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderSpec. +func (in *NodeProviderSpec) DeepCopy() *NodeProviderSpec { if in == nil { return nil } - out := new(LocalClusterRoleTemplate) + out := new(NodeProviderSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *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 NodeProviderStatus. +func (in *NodeProviderStatus) DeepCopy() *NodeProviderStatus { + if in == nil { + return nil + } + 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 *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 NodeProviderTerraform. +func (in *NodeProviderTerraform) DeepCopy() *NodeProviderTerraform { + if in == nil { + return nil + } + 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 *LocalClusterRoleTemplateSpec) DeepCopyInto(out *LocalClusterRoleTemplateSpec) { +func (in *NodeType) DeepCopyInto(out *NodeType) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeType. +func (in *NodeType) DeepCopy() *NodeType { + if in == nil { + return nil + } + out := new(NodeType) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeType) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *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([]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 NodeTypeList. +func (in *NodeTypeList) DeepCopy() *NodeTypeList { + if in == nil { + return nil + } + out := new(NodeTypeList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeTypeList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NodeTypeOverhead) DeepCopyInto(out *NodeTypeOverhead) { *out = *in - in.ClusterRoleTemplate.DeepCopyInto(&out.ClusterRoleTemplate) + if in.KubeReserved != nil { + in, out := &in.KubeReserved, &out.KubeReserved + *out = make(corev1.ResourceList, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalClusterRoleTemplateSpec. -func (in *LocalClusterRoleTemplateSpec) DeepCopy() *LocalClusterRoleTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeOverhead. +func (in *NodeTypeOverhead) DeepCopy() *NodeTypeOverhead { if in == nil { return nil } - out := new(LocalClusterRoleTemplateSpec) + 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 *Member) DeepCopyInto(out *Member) { +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 Member. -func (in *Member) DeepCopy() *Member { +// 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(Member) + 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 *NamespacePattern) DeepCopyInto(out *NamespacePattern) { +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 NamespacePattern. -func (in *NamespacePattern) DeepCopy() *NamespacePattern { +// 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(NamespacePattern) + 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 *NetworkPeer) DeepCopyInto(out *NetworkPeer) { +func (in *OSImage) DeepCopyInto(out *OSImage) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2476,18 +2856,18 @@ func (in *NetworkPeer) DeepCopyInto(out *NetworkPeer) { 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 OSImage. +func (in *OSImage) DeepCopy() *OSImage { if in == nil { return nil } - out := new(NetworkPeer) + out := new(OSImage) 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 *OSImage) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2495,13 +2875,13 @@ 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 *OSImageList) DeepCopyInto(out *OSImageList) { *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([]OSImage, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2509,18 +2889,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 OSImageList. +func (in *OSImageList) DeepCopy() *OSImageList { if in == nil { return nil } - out := new(NetworkPeerList) + out := new(OSImageList) 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 *OSImageList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2528,48 +2908,52 @@ 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 *OSImageSpec) DeepCopyInto(out *OSImageSpec) { *out = *in - if in.Addresses != nil { - in, out := &in.Addresses, &out.Addresses - *out = make([]string, len(*in)) - copy(*out, *in) + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = new(UserOrTeam) + **out = **in } - if in.AllowedIPs != nil { - in, out := &in.AllowedIPs, &out.AllowedIPs - *out = make([]string, len(*in)) - copy(*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.Endpoints != nil { - in, out := &in.Endpoints, &out.Endpoints - *out = make([]string, len(*in)) - copy(*out, *in) + if in.Properties != nil { + in, out := &in.Properties, &out.Properties + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } } 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 OSImageSpec. +func (in *OSImageSpec) DeepCopy() *OSImageSpec { if in == nil { return nil } - out := new(NetworkPeerSpec) + out := new(OSImageSpec) 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 *OSImageStatus) DeepCopyInto(out *OSImageStatus) { *out = *in 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 OSImageStatus. +func (in *OSImageStatus) DeepCopy() *OSImageStatus { if in == nil { return nil } - out := new(NetworkPeerStatus) + out := new(OSImageStatus) in.DeepCopyInto(out) return out } @@ -2600,6 +2984,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 @@ -2683,6 +3093,23 @@ func (in *ProjectList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectNamespaceTemplate) DeepCopyInto(out *ProjectNamespaceTemplate) { + *out = *in + in.TemplateMetadata.DeepCopyInto(&out.TemplateMetadata) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectNamespaceTemplate. +func (in *ProjectNamespaceTemplate) DeepCopy() *ProjectNamespaceTemplate { + if in == nil { + return nil + } + out := new(ProjectNamespaceTemplate) + 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 @@ -2708,6 +3135,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)) @@ -2720,6 +3148,11 @@ func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.NamespaceTemplate != nil { + in, out := &in.NamespaceTemplate, &out.NamespaceTemplate + *out = new(ProjectNamespaceTemplate) + (*in).DeepCopyInto(*out) + } if in.NamespacePattern != nil { in, out := &in.NamespacePattern, &out.NamespacePattern *out = new(NamespacePattern) @@ -2740,11 +3173,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 } @@ -2928,402 +3356,192 @@ func (in *QuotaStatusUserUsed) DeepCopyInto(out *QuotaStatusUserUsed) { *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) + 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 RunnerClusterRef. -func (in *RunnerClusterRef) DeepCopy() *RunnerClusterRef { +// 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(RunnerClusterRef) + 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 *RunnerList) DeepCopyInto(out *RunnerList) { +func (in *Quotas) DeepCopyInto(out *Quotas) { *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]) + 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 RunnerList. -func (in *RunnerList) DeepCopy() *RunnerList { +// 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(RunnerList) + out := new(Quotas) 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) { +func (in *RancherIntegrationSpec) DeepCopyInto(out *RancherIntegrationSpec) { *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.Spec.DeepCopyInto(&out.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 RunnerPersistentVolumeClaimTemplate. -func (in *RunnerPersistentVolumeClaimTemplate) DeepCopy() *RunnerPersistentVolumeClaimTemplate { +// 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(RunnerPersistentVolumeClaimTemplate) + 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 *RunnerPersistentVolumeClaimTemplateSpec) DeepCopyInto(out *RunnerPersistentVolumeClaimTemplateSpec) { +func (in *RancherProjectRef) DeepCopyInto(out *RancherProjectRef) { *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 RancherProjectRef. +func (in *RancherProjectRef) DeepCopy() *RancherProjectRef { if in == nil { return nil } - out := new(RunnerPersistentVolumeClaimTemplateSpec) + 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 *RunnerPodTemplate) DeepCopyInto(out *RunnerPodTemplate) { +func (in *RequirePreset) DeepCopyInto(out *RequirePreset) { *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 RunnerPodTemplate. -func (in *RunnerPodTemplate) DeepCopy() *RunnerPodTemplate { +// 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(RunnerPodTemplate) + 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 *RunnerPodTemplateSpec) DeepCopyInto(out *RunnerPodTemplateSpec) { +func (in *RequireTemplate) DeepCopyInto(out *RequireTemplate) { *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)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Affinity != nil { - in, out := &in.Affinity, &out.Affinity - *out = new(corev1.Affinity) - (*in).DeepCopyInto(*out) - } - if in.Tolerations != nil { - in, out := &in.Tolerations, &out.Tolerations - *out = make([]corev1.Toleration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.VolumeMounts != nil { - in, out := &in.VolumeMounts, &out.VolumeMounts - *out = make([]corev1.VolumeMount, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]corev1.Volume, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.InitContainers != nil { - in, out := &in.InitContainers, &out.InitContainers - *out = make([]corev1.Container, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.HostAliases != nil { - in, out := &in.HostAliases, &out.HostAliases - *out = make([]corev1.HostAlias, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } 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 RequireTemplate. +func (in *RequireTemplate) DeepCopy() *RequireTemplate { if in == nil { return nil } - out := new(RunnerPodTemplateSpec) + 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 *RunnerRef) DeepCopyInto(out *RunnerRef) { +func (in *SSHKey) DeepCopyInto(out *SSHKey) { *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 RunnerRef. -func (in *RunnerRef) DeepCopy() *RunnerRef { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHKey. +func (in *SSHKey) DeepCopy() *SSHKey { if in == nil { return nil } - out := new(RunnerRef) + out := new(SSHKey) 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) { - *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - out.Spec = in.Spec - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerServiceTemplate. -func (in *RunnerServiceTemplate) DeepCopy() *RunnerServiceTemplate { - if in == nil { - return nil +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SSHKey) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - out := new(RunnerServiceTemplate) - 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 *RunnerServiceTemplateSpec) DeepCopyInto(out *RunnerServiceTemplateSpec) { +func (in *SSHKeyList) DeepCopyInto(out *SSHKeyList) { *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SSHKey, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } 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 SSHKeyList. +func (in *SSHKeyList) DeepCopy() *SSHKeyList { if in == nil { return nil } - out := new(RunnerServiceTemplateSpec) + out := new(SSHKeyList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SSHKeyList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // 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 *SSHKeySpec) DeepCopyInto(out *SSHKeySpec) { *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) @@ -3339,56 +3557,61 @@ func (in *RunnerSpec) DeepCopyInto(out *RunnerSpec) { 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 SSHKeySpec. +func (in *SSHKeySpec) DeepCopy() *SSHKeySpec { if in == nil { return nil } - out := new(RunnerSpec) + out := new(SSHKeySpec) 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 *SSHKeyStatus) DeepCopyInto(out *SSHKeyStatus) { *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 SSHKeyStatus. +func (in *SSHKeyStatus) DeepCopy() *SSHKeyStatus { if in == nil { return nil } - out := new(RunnerStatus) + out := new(SSHKeyStatus) 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 +4095,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 +4579,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 +4829,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 +5478,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/storage/v1/zz_generated.model_name.go b/pkg/apis/storage/v1/zz_generated.model_name.go new file mode 100644 index 00000000..a5b73a84 --- /dev/null +++ b/pkg/apis/storage/v1/zz_generated.model_name.go @@ -0,0 +1,1041 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// Code generated by openapi-gen. DO NOT EDIT. + +package v1 + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Access) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Access" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKey) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKey" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeyList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeyList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeyOIDC) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeyOIDC" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeyOIDCProvider) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeyOIDCProvider" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeyScope) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeyScope" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeyScopeCluster) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeyScopeCluster" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeyScopeProject) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeyScopeProject" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeyScopeRole) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeyScopeRole" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeyScopeRule) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeyScopeRule" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeyScopeSpace) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeyScopeSpace" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeyScopeVirtualCluster) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeyScopeVirtualCluster" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeySpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeySpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeyStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeyStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AccessKeyVirtualCluster) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AccessKeyVirtualCluster" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AllowedCluster) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AllowedCluster" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AllowedClusterAccountTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AllowedClusterAccountTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AllowedRunner) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AllowedRunner" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AllowedTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AllowedTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in App) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.App" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppConfig) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AppConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AppList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppParameter) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AppParameter" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppReference) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AppReference" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AppSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AppStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppTask) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AppTask" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in AppVersion) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.AppVersion" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ArgoIntegrationSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ArgoIntegrationSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ArgoProjectPolicyRule) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ArgoProjectPolicyRule" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ArgoProjectRole) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ArgoProjectRole" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ArgoProjectSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ArgoProjectSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ArgoProjectSpecMetadata) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ArgoProjectSpecMetadata" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ArgoSSOSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ArgoSSOSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in BCMNodeTypeSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.BCMNodeTypeSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Chart) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Chart" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ChartStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ChartStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Cluster) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Cluster" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAPINodeTypeSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterAPINodeTypeSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAPIObjects) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterAPIObjects" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAccess) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterAccess" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAccessList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterAccessList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAccessSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterAccessSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterAccessStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterAccessStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterRef) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterRef" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterRoleRef) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterRoleRef" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterRoleTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterRoleTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterRoleTemplateList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterRoleTemplateList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterRoleTemplateSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterRoleTemplateSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterRoleTemplateStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterRoleTemplateStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterRoleTemplateTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterRoleTemplateTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ClusterStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ClusterStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in DHCPDeployment) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.DHCPDeployment" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in EntityInfo) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.EntityInfo" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in GroupResources) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.GroupResources" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in HelmChart) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.HelmChart" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in HelmChartRepository) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.HelmChartRepository" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in HelmConfiguration) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.HelmConfiguration" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in HelmTask) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.HelmTask" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in HelmTaskRelease) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.HelmTaskRelease" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ImportVirtualClustersSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ImportVirtualClustersSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in InstanceAccess) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.InstanceAccess" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in InstanceAccessRule) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.InstanceAccessRule" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in InstanceDeployedAppStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.InstanceDeployedAppStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in KindSecretRef) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.KindSecretRef" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in KubeVirtNodeTypeSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.KubeVirtNodeTypeSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LocalClusterAccessSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.LocalClusterAccessSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LocalClusterAccessTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.LocalClusterAccessTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LocalClusterRoleTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.LocalClusterRoleTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in LocalClusterRoleTemplateSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.LocalClusterRoleTemplateSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ManagedNodeTypeObjectMeta) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ManagedNodeTypeObjectMeta" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Member) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Member" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Metal3BareMetalHosts) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Metal3BareMetalHosts" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Metal3Deployment) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Metal3Deployment" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Metal3NodeTypeSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Metal3NodeTypeSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Metal3ProviderDeployment) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Metal3ProviderDeployment" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Metrics) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Metrics" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in MultusDeployment) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.MultusDeployment" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NamedNodeTypeSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NamedNodeTypeSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NamespacePattern) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NamespacePattern" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NamespacedRef) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NamespacedRef" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NetworkPeer) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NetworkPeer" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NetworkPeerList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NetworkPeerList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NetworkPeerSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NetworkPeerSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NetworkPeerStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NetworkPeerStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeClaim) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeClaim" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeClaimList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeClaimList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeClaimSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeClaimSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeClaimStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeClaimStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeEnvironment) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeEnvironment" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeEnvironmentList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeEnvironmentList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeEnvironmentSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeEnvironmentSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeEnvironmentStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeEnvironmentStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProvider) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeProvider" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderBCM) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeProviderBCM" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderClusterAPI) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeProviderClusterAPI" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderClusterRef) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeProviderClusterRef" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderKubeVirt) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeProviderKubeVirt" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeProviderList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderMetal3) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeProviderMetal3" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeProviderSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeProviderStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeProviderTerraform) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeProviderTerraform" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeType) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeType" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeTypeCapacity) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeTypeCapacity" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeTypeList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeTypeList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeTypeOverhead) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeTypeOverhead" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeTypeSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeTypeSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NodeTypeStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.NodeTypeStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OSImage) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.OSImage" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OSImageList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.OSImageList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OSImageSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.OSImageSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OSImageStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.OSImageStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ObjectsStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ObjectsStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in OpenCost) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.OpenCost" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in PodSelector) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.PodSelector" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Project) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Project" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ProjectList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectNamespaceTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ProjectNamespaceTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ProjectSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ProjectStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.ProjectStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in QuotaStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.QuotaStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in QuotaStatusProject) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.QuotaStatusProject" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in QuotaStatusProjectCluster) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.QuotaStatusProjectCluster" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in QuotaStatusUser) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.QuotaStatusUser" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in QuotaStatusUserUsed) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.QuotaStatusUserUsed" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Quotas) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Quotas" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RancherIntegrationSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.RancherIntegrationSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RancherProjectRef) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.RancherProjectRef" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RequirePreset) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.RequirePreset" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in RequireTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.RequireTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SSHKey) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SSHKey" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SSHKeyList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SSHKeyList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SSHKeySpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SSHKeySpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SSHKeyStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SSHKeyStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SSOIdentity) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SSOIdentity" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SecretRef) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SecretRef" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SharedSecret) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SharedSecret" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SharedSecretList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SharedSecretList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SharedSecretSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SharedSecretSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SharedSecretStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SharedSecretStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceInstance) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SpaceInstance" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceInstanceList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SpaceInstanceList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceInstanceSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SpaceInstanceSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceInstanceStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SpaceInstanceStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceInstanceTemplateDefinition) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SpaceInstanceTemplateDefinition" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SpaceTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceTemplateDefinition) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SpaceTemplateDefinition" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceTemplateList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SpaceTemplateList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceTemplateSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SpaceTemplateSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceTemplateStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SpaceTemplateStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SpaceTemplateVersion) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SpaceTemplateVersion" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Storage) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Storage" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in StreamContainer) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.StreamContainer" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in SyncMembersSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.SyncMembersSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Target) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Target" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TargetCluster) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TargetCluster" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TargetInstance) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TargetInstance" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TargetVirtualCluster) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TargetVirtualCluster" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Task) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Task" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TaskDefinition) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TaskDefinition" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TaskList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TaskList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TaskSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TaskSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TaskStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TaskStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in Team) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.Team" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TeamList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TeamSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TeamStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TeamStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TemplateHelmChart) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TemplateHelmChart" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TemplateMetadata) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TemplateMetadata" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TemplateRef) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TemplateRef" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TerraformNodeEnvironmentTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TerraformNodeEnvironmentTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TerraformNodeTypeSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TerraformNodeTypeSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TerraformTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TerraformTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in TerraformTemplateSourceGit) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.TerraformTemplateSourceGit" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in User) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.User" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.UserList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserOrTeam) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.UserOrTeam" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserOrTeamEntity) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.UserOrTeamEntity" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.UserSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UserStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.UserStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VaultAuthSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VaultAuthSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VaultIntegrationSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VaultIntegrationSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterAccessPoint) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterAccessPoint" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterAccessPointIngressSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterAccessPointIngressSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterClusterRef) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterClusterRef" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterCommonSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterCommonSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterHelmChart) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterHelmChart" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterHelmRelease) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterHelmRelease" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterHelmReleaseStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterHelmReleaseStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstance) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterInstance" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterInstanceList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterInstanceSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterInstanceStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterInstanceTemplateDefinition) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterInstanceTemplateDefinition" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterProSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterProSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterSpaceTemplateDefinition) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterSpaceTemplateDefinition" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterTemplate) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterTemplate" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterTemplateDefinition) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterTemplateDefinition" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterTemplateList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterTemplateList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterTemplateSpaceTemplateRef) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterTemplateSpaceTemplateRef" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterTemplateSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterTemplateSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterTemplateStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterTemplateStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VirtualClusterTemplateVersion) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.storage.v1.VirtualClusterTemplateVersion" +} diff --git a/pkg/apis/ui/v1/doc.go b/pkg/apis/ui/v1/doc.go index 0a29e261..048ccd17 100644 --- a/pkg/apis/ui/v1/doc.go +++ b/pkg/apis/ui/v1/doc.go @@ -3,6 +3,7 @@ // of the same resource // +k8s:openapi-gen=true +// +k8s:openapi-model-package=com.github.loft-sh.api.v4.pkg.apis.ui.v1 // +k8s:deepcopy-gen=package,register // +k8s:defaulter-gen=TypeMeta // +groupName=ui.loft.sh diff --git a/pkg/apis/ui/v1/ui_types.go b/pkg/apis/ui/v1/ui_types.go index b5cd94b1..db380768 100644 --- a/pkg/apis/ui/v1/ui_types.go +++ b/pkg/apis/ui/v1/ui_types.go @@ -34,21 +34,44 @@ 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"` + + // MultiRegion holds the multi-region configuration + MultiRegion MultiRegion `json:"multiRegion,omitempty"` + + // AgentNamespace is the namespace where the connected cluster agents are deployed by default + AgentNamespace string `json:"agentNamespace,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 +96,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 +133,37 @@ 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"` +} + +type MultiRegion struct { + // Enabled indicates whether multi-region is enabled + Enabled bool `json:"enabled,omitempty"` + + // Region is the region where this vCluster Platform instance is running + Region string `json:"region,omitempty"` +} diff --git a/pkg/apis/ui/v1/zz_generated.deepcopy.go b/pkg/apis/ui/v1/zz_generated.deepcopy.go index 0674acd7..ed86e6b4 100644 --- a/pkg/apis/ui/v1/zz_generated.deepcopy.go +++ b/pkg/apis/ui/v1/zz_generated.deepcopy.go @@ -9,6 +9,81 @@ 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 *MultiRegion) DeepCopyInto(out *MultiRegion) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiRegion. +func (in *MultiRegion) DeepCopy() *MultiRegion { + if in == nil { + return nil + } + out := new(MultiRegion) + 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 +106,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 +146,7 @@ func (in *UISettingsConfig) DeepCopyInto(out *UISettingsConfig) { *out = make([]NavBarButton, len(*in)) copy(*out, *in) } + in.ExternalURLs.DeepCopyInto(&out.ExternalURLs) return } @@ -88,6 +164,12 @@ 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) + } + out.MultiRegion = in.MultiRegion return } @@ -104,6 +186,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 +205,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/ui/v1/zz_generated.model_name.go b/pkg/apis/ui/v1/zz_generated.model_name.go new file mode 100644 index 00000000..e436b4d3 --- /dev/null +++ b/pkg/apis/ui/v1/zz_generated.model_name.go @@ -0,0 +1,51 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// Code generated by openapi-gen. DO NOT EDIT. + +package v1 + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in CspPolicy) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.ui.v1.CspPolicy" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in ExternalURLs) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.ui.v1.ExternalURLs" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in MultiRegion) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.ui.v1.MultiRegion" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in NavBarButton) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.ui.v1.NavBarButton" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UISettings) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.ui.v1.UISettings" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UISettingsConfig) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.ui.v1.UISettingsConfig" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UISettingsSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.ui.v1.UISettingsSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in UISettingsStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.ui.v1.UISettingsStatus" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in VClusterVersion) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.ui.v1.VClusterVersion" +} 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/virtualcluster/v1/doc.go b/pkg/apis/virtualcluster/v1/doc.go index 8c9a0035..797324db 100644 --- a/pkg/apis/virtualcluster/v1/doc.go +++ b/pkg/apis/virtualcluster/v1/doc.go @@ -3,6 +3,7 @@ // of the same resource // +k8s:openapi-gen=true +// +k8s:openapi-model-package=com.github.loft-sh.api.v4.pkg.apis.virtualcluster.v1 // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=github.com/loft-sh/api/v4/pkg/apis/virtualcluster // +k8s:defaulter-gen=TypeMeta diff --git a/pkg/apis/virtualcluster/v1/zz_generated.model_name.go b/pkg/apis/virtualcluster/v1/zz_generated.model_name.go new file mode 100644 index 00000000..6360f86a --- /dev/null +++ b/pkg/apis/virtualcluster/v1/zz_generated.model_name.go @@ -0,0 +1,26 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// Code generated by openapi-gen. DO NOT EDIT. + +package v1 + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in HelmRelease) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.virtualcluster.v1.HelmRelease" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in HelmReleaseList) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.virtualcluster.v1.HelmReleaseList" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in HelmReleaseSpec) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.virtualcluster.v1.HelmReleaseSpec" +} + +// OpenAPIModelName returns the OpenAPI model name for this type. +func (in HelmReleaseStatus) OpenAPIModelName() string { + return "com.github.loft-sh.api.v4.pkg.apis.virtualcluster.v1.HelmReleaseStatus" +} diff --git a/pkg/apis/zz_generated.api.register.go b/pkg/apis/zz_generated.api.register.go index 3e4477ae..4746f564 100644 --- a/pkg/apis/zz_generated.api.register.go +++ b/pkg/apis/zz_generated.api.register.go @@ -48,22 +48,23 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "ClusterRoleTemplate", "Config", "ConvertVirtualClusterConfig", - "DevPodEnvironmentTemplate", - "DevPodWorkspaceTemplate", + "DatabaseConnector", "DirectClusterEndpointToken", "Event", "Feature", "IngressAuthToken", "License", - "LicenseToken", "LoftUpgrade", + "NodeProvider", + "NodeType", "OIDCClient", + "OSImage", "OwnedAccessKey", "Project", "RedirectToken", "RegisterVirtualCluster", "ResetAccessKey", - "Runner", + "SSHKey", "Self", "SelfSubjectAccessReview", "SpaceTemplate", @@ -71,7 +72,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..33c11167 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" @@ -22,7 +23,7 @@ import ( // without applying any field management, validations and/or defaults. It shouldn't be considered a replacement // for a real clientset and is mostly useful in simple unit tests. // -// DEPRECATED: NewClientset replaces this with support for field management, which significantly improves +// Deprecated: NewClientset replaces this with support for field management, which significantly improves // server side apply testing. NewClientset is only available when apply configurations are generated (e.g. // via --with-applyconfig). func NewSimpleClientset(objects ...runtime.Object) *Clientset { @@ -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 watchAction, ok := action.(testing.WatchActionImpl); ok { + opts = watchAction.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 } @@ -66,6 +71,17 @@ func (c *Clientset) Tracker() testing.ObjectTracker { return c.tracker } +// IsWatchListSemanticsSupported informs the reflector that this client +// doesn't support WatchList semantics. +// +// This is a synthetic method whose sole purpose is to satisfy the optional +// interface check performed by the reflector. +// Returning true signals that WatchList can NOT be used. +// No additional logic is implemented here. +func (c *Clientset) IsWatchListSemanticsUnSupported() bool { + return true +} + var ( _ clientset.Interface = &Clientset{} _ testing.FakeClient = &Clientset{} diff --git a/pkg/clientset/versioned/typed/management/v1/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..ccb6d765 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,175 @@ 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) OSImages() v1.OSImageInterface { + return newFakeOSImages(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} + return newFakeResetAccessKeys(c) } -func (c *FakeManagementV1) Runners() v1.RunnerInterface { - return &FakeRunners{c} +func (c *FakeManagementV1) SSHKeys() v1.SSHKeyInterface { + return newFakeSSHKeys(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_osimage.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_osimage.go new file mode 100644 index 00000000..e9a53945 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_osimage.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" +) + +// fakeOSImages implements OSImageInterface +type fakeOSImages struct { + *gentype.FakeClientWithList[*v1.OSImage, *v1.OSImageList] + Fake *FakeManagementV1 +} + +func newFakeOSImages(fake *FakeManagementV1) managementv1.OSImageInterface { + return &fakeOSImages{ + gentype.NewFakeClientWithList[*v1.OSImage, *v1.OSImageList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("osimages"), + v1.SchemeGroupVersion.WithKind("OSImage"), + func() *v1.OSImage { return &v1.OSImage{} }, + func() *v1.OSImageList { return &v1.OSImageList{} }, + func(dst, src *v1.OSImageList) { dst.ListMeta = src.ListMeta }, + func(list *v1.OSImageList) []*v1.OSImage { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.OSImageList, items []*v1.OSImage) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} 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_sshkey.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_sshkey.go new file mode 100644 index 00000000..9895df05 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_sshkey.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" +) + +// fakeSSHKeys implements SSHKeyInterface +type fakeSSHKeys struct { + *gentype.FakeClientWithList[*v1.SSHKey, *v1.SSHKeyList] + Fake *FakeManagementV1 +} + +func newFakeSSHKeys(fake *FakeManagementV1) managementv1.SSHKeyInterface { + return &fakeSSHKeys{ + gentype.NewFakeClientWithList[*v1.SSHKey, *v1.SSHKeyList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("sshkeys"), + v1.SchemeGroupVersion.WithKind("SSHKey"), + func() *v1.SSHKey { return &v1.SSHKey{} }, + func() *v1.SSHKeyList { return &v1.SSHKeyList{} }, + func(dst, src *v1.SSHKeyList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SSHKeyList) []*v1.SSHKey { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SSHKeyList, items []*v1.SSHKey) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} 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..94bc639d 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,122 @@ 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") +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, + } +} -// 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{} +// 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.NewGetActionWithOptions(virtualclusterinstancesResource, c.ns, name, options), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "kubeconfig", c.Namespace(), virtualClusterInstanceKubeConfig, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.VirtualClusterInstance), err + return obj.(*v1.VirtualClusterInstanceKubeConfig), err } -// 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{} +// 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.NewListActionWithOptions(virtualclusterinstancesResource, virtualclusterinstancesKind, c.ns, opts), emptyResult) + Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "accesskey", virtualClusterInstanceName, options), 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.VirtualClusterAccessKey), 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{} +// 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.NewCreateActionWithOptions(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 + return obj.(*v1.VirtualClusterExternalDatabase), 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{} +// 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.NewUpdateActionWithOptions(virtualclusterinstancesResource, c.ns, virtualClusterInstance, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "nodeaccesskey", c.Namespace(), virtualClusterNodeAccessKey, 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 + return obj.(*v1.VirtualClusterNodeAccessKey), 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{} +// 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.NewPatchSubresourceActionWithOptions(virtualclusterinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "standalone", c.Namespace(), virtualClusterStandalone, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.VirtualClusterInstance), err + return obj.(*v1.VirtualClusterStandalone), 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{} +// 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.NewCreateSubresourceActionWithOptions(virtualclusterinstancesResource, virtualClusterInstanceName, "kubeconfig", c.ns, virtualClusterInstanceKubeConfig, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "shell", c.Namespace(), virtualClusterInstanceShell, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.VirtualClusterInstanceKubeConfig), err + return obj.(*v1.VirtualClusterInstanceShell), 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{} +// GetDebugShell takes the representation of a virtualClusterInstanceDebugShell and creates it. Returns the server's representation of the virtualClusterInstanceDebugShell, and an error, if there is any. +func (c *fakeVirtualClusterInstances) GetDebugShell(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceDebugShell *v1.VirtualClusterInstanceDebugShell, opts metav1.CreateOptions) (result *v1.VirtualClusterInstanceDebugShell, err error) { + emptyResult := &v1.VirtualClusterInstanceDebugShell{} obj, err := c.Fake. - Invokes(testing.NewGetSubresourceActionWithOptions(virtualclusterinstancesResource, c.ns, "accesskey", virtualClusterInstanceName, options), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "debug-shell", c.Namespace(), virtualClusterInstanceDebugShell, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.VirtualClusterAccessKey), err + return obj.(*v1.VirtualClusterInstanceDebugShell), 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..4db2f6d8 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,12 +32,20 @@ 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 OSImageExpansion interface{} + type OwnedAccessKeyExpansion interface{} type ProjectExpansion interface{} @@ -54,7 +58,7 @@ type RegisterVirtualClusterExpansion interface{} type ResetAccessKeyExpansion interface{} -type RunnerExpansion interface{} +type SSHKeyExpansion interface{} type SelfExpansion interface{} @@ -74,8 +78,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..23ee58cb 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,24 +21,26 @@ type ManagementV1Interface interface { ClusterRoleTemplatesGetter ConfigsGetter ConvertVirtualClusterConfigsGetter - DevPodEnvironmentTemplatesGetter - DevPodWorkspaceInstancesGetter - DevPodWorkspaceTemplatesGetter + DatabaseConnectorsGetter DirectClusterEndpointTokensGetter EventsGetter FeaturesGetter IngressAuthTokensGetter LicensesGetter - LicenseTokensGetter LoftUpgradesGetter + NodeClaimsGetter + NodeEnvironmentsGetter + NodeProvidersGetter + NodeTypesGetter OIDCClientsGetter + OSImagesGetter OwnedAccessKeysGetter ProjectsGetter ProjectSecretsGetter RedirectTokensGetter RegisterVirtualClustersGetter ResetAccessKeysGetter - RunnersGetter + SSHKeysGetter SelvesGetter SelfSubjectAccessReviewsGetter SharedSecretsGetter @@ -48,8 +50,10 @@ type ManagementV1Interface interface { TasksGetter TeamsGetter TranslateVClusterResourceNamesGetter + UsageDownloadsGetter UsersGetter VirtualClusterInstancesGetter + VirtualClusterSchemasGetter VirtualClusterTemplatesGetter } @@ -94,16 +98,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,18 +122,34 @@ 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) } +func (c *ManagementV1Client) OSImages() OSImageInterface { + return newOSImages(c) +} + func (c *ManagementV1Client) OwnedAccessKeys() OwnedAccessKeyInterface { return newOwnedAccessKeys(c) } @@ -162,8 +174,8 @@ func (c *ManagementV1Client) ResetAccessKeys() ResetAccessKeyInterface { return newResetAccessKeys(c) } -func (c *ManagementV1Client) Runners() RunnerInterface { - return newRunners(c) +func (c *ManagementV1Client) SSHKeys() SSHKeyInterface { + return newSSHKeys(c) } func (c *ManagementV1Client) Selves() SelfInterface { @@ -202,6 +214,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 +226,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 +239,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 +251,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 +274,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/osimage.go b/pkg/clientset/versioned/typed/management/v1/osimage.go new file mode 100644 index 00000000..58a33406 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/osimage.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" +) + +// OSImagesGetter has a method to return a OSImageInterface. +// A group's client should implement this interface. +type OSImagesGetter interface { + OSImages() OSImageInterface +} + +// OSImageInterface has methods to work with OSImage resources. +type OSImageInterface interface { + Create(ctx context.Context, oSImage *managementv1.OSImage, opts metav1.CreateOptions) (*managementv1.OSImage, error) + Update(ctx context.Context, oSImage *managementv1.OSImage, opts metav1.UpdateOptions) (*managementv1.OSImage, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, oSImage *managementv1.OSImage, opts metav1.UpdateOptions) (*managementv1.OSImage, 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.OSImage, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.OSImageList, 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.OSImage, err error) + OSImageExpansion +} + +// oSImages implements OSImageInterface +type oSImages struct { + *gentype.ClientWithList[*managementv1.OSImage, *managementv1.OSImageList] +} + +// newOSImages returns a OSImages +func newOSImages(c *ManagementV1Client) *oSImages { + return &oSImages{ + gentype.NewClientWithList[*managementv1.OSImage, *managementv1.OSImageList]( + "osimages", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *managementv1.OSImage { return &managementv1.OSImage{} }, + func() *managementv1.OSImageList { return &managementv1.OSImageList{} }, + ), + } +} 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/sshkey.go b/pkg/clientset/versioned/typed/management/v1/sshkey.go new file mode 100644 index 00000000..7dd1b711 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/sshkey.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" +) + +// SSHKeysGetter has a method to return a SSHKeyInterface. +// A group's client should implement this interface. +type SSHKeysGetter interface { + SSHKeys() SSHKeyInterface +} + +// SSHKeyInterface has methods to work with SSHKey resources. +type SSHKeyInterface interface { + Create(ctx context.Context, sSHKey *managementv1.SSHKey, opts metav1.CreateOptions) (*managementv1.SSHKey, error) + Update(ctx context.Context, sSHKey *managementv1.SSHKey, opts metav1.UpdateOptions) (*managementv1.SSHKey, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, sSHKey *managementv1.SSHKey, opts metav1.UpdateOptions) (*managementv1.SSHKey, 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.SSHKey, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SSHKeyList, 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.SSHKey, err error) + SSHKeyExpansion +} + +// sSHKeys implements SSHKeyInterface +type sSHKeys struct { + *gentype.ClientWithList[*managementv1.SSHKey, *managementv1.SSHKeyList] +} + +// newSSHKeys returns a SSHKeys +func newSSHKeys(c *ManagementV1Client) *sSHKeys { + return &sSHKeys{ + gentype.NewClientWithList[*managementv1.SSHKey, *managementv1.SSHKeyList]( + "sshkeys", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *managementv1.SSHKey { return &managementv1.SSHKey{} }, + func() *managementv1.SSHKeyList { return &managementv1.SSHKeyList{} }, + ), + } +} 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..f54e5900 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,47 @@ 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) + GetDebugShell(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceDebugShell *managementv1.VirtualClusterInstanceDebugShell, opts metav1.CreateOptions) (*managementv1.VirtualClusterInstanceDebugShell, 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 +74,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 +87,78 @@ 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 +} + +// GetDebugShell takes the representation of a virtualClusterInstanceDebugShell and creates it. Returns the server's representation of the virtualClusterInstanceDebugShell, and an error, if there is any. +func (c *virtualClusterInstances) GetDebugShell(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceDebugShell *managementv1.VirtualClusterInstanceDebugShell, opts metav1.CreateOptions) (result *managementv1.VirtualClusterInstanceDebugShell, err error) { + result = &managementv1.VirtualClusterInstanceDebugShell{} + err = c.GetClient().Post(). + Namespace(c.GetNamespace()). + Resource("virtualclusterinstances"). + Name(virtualClusterInstanceName). + SubResource("debug-shell"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(virtualClusterInstanceDebugShell). + 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_osimage.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_osimage.go new file mode 100644 index 00000000..fe18a508 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_osimage.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" +) + +// fakeOSImages implements OSImageInterface +type fakeOSImages struct { + *gentype.FakeClientWithList[*v1.OSImage, *v1.OSImageList] + Fake *FakeStorageV1 +} + +func newFakeOSImages(fake *FakeStorageV1) storagev1.OSImageInterface { + return &fakeOSImages{ + gentype.NewFakeClientWithList[*v1.OSImage, *v1.OSImageList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("osimages"), + v1.SchemeGroupVersion.WithKind("OSImage"), + func() *v1.OSImage { return &v1.OSImage{} }, + func() *v1.OSImageList { return &v1.OSImageList{} }, + func(dst, src *v1.OSImageList) { dst.ListMeta = src.ListMeta }, + func(list *v1.OSImageList) []*v1.OSImage { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.OSImageList, items []*v1.OSImage) { 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_sshkey.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_sshkey.go new file mode 100644 index 00000000..95cc36d4 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_sshkey.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" +) + +// fakeSSHKeys implements SSHKeyInterface +type fakeSSHKeys struct { + *gentype.FakeClientWithList[*v1.SSHKey, *v1.SSHKeyList] + Fake *FakeStorageV1 +} + +func newFakeSSHKeys(fake *FakeStorageV1) storagev1.SSHKeyInterface { + return &fakeSSHKeys{ + gentype.NewFakeClientWithList[*v1.SSHKey, *v1.SSHKeyList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("sshkeys"), + v1.SchemeGroupVersion.WithKind("SSHKey"), + func() *v1.SSHKey { return &v1.SSHKey{} }, + func() *v1.SSHKeyList { return &v1.SSHKeyList{} }, + func(dst, src *v1.SSHKeyList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SSHKeyList) []*v1.SSHKey { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SSHKeyList, items []*v1.SSHKey) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go index 81d78c2f..a024458d 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,87 @@ 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) NodeTypes() v1.NodeTypeInterface { + return newFakeNodeTypes(c) +} + +func (c *FakeStorageV1) OSImages() v1.OSImageInterface { + return newFakeOSImages(c) } func (c *FakeStorageV1) Projects() v1.ProjectInterface { - return &FakeProjects{c} + return newFakeProjects(c) } -func (c *FakeStorageV1) Runners() v1.RunnerInterface { - return &FakeRunners{c} +func (c *FakeStorageV1) SSHKeys() v1.SSHKeyInterface { + return newFakeSSHKeys(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..ecd8701c 100644 --- a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go @@ -12,17 +12,21 @@ 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 NodeTypeExpansion interface{} + +type OSImageExpansion interface{} type ProjectExpansion interface{} -type RunnerExpansion interface{} +type SSHKeyExpansion 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/osimage.go b/pkg/clientset/versioned/typed/storage/v1/osimage.go new file mode 100644 index 00000000..d922cf73 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/osimage.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" +) + +// OSImagesGetter has a method to return a OSImageInterface. +// A group's client should implement this interface. +type OSImagesGetter interface { + OSImages() OSImageInterface +} + +// OSImageInterface has methods to work with OSImage resources. +type OSImageInterface interface { + Create(ctx context.Context, oSImage *storagev1.OSImage, opts metav1.CreateOptions) (*storagev1.OSImage, error) + Update(ctx context.Context, oSImage *storagev1.OSImage, opts metav1.UpdateOptions) (*storagev1.OSImage, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, oSImage *storagev1.OSImage, opts metav1.UpdateOptions) (*storagev1.OSImage, 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.OSImage, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.OSImageList, 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.OSImage, err error) + OSImageExpansion +} + +// oSImages implements OSImageInterface +type oSImages struct { + *gentype.ClientWithList[*storagev1.OSImage, *storagev1.OSImageList] +} + +// newOSImages returns a OSImages +func newOSImages(c *StorageV1Client) *oSImages { + return &oSImages{ + gentype.NewClientWithList[*storagev1.OSImage, *storagev1.OSImageList]( + "osimages", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *storagev1.OSImage { return &storagev1.OSImage{} }, + func() *storagev1.OSImageList { return &storagev1.OSImageList{} }, + ), + } +} 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/sshkey.go b/pkg/clientset/versioned/typed/storage/v1/sshkey.go new file mode 100644 index 00000000..c6b7e337 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/sshkey.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" +) + +// SSHKeysGetter has a method to return a SSHKeyInterface. +// A group's client should implement this interface. +type SSHKeysGetter interface { + SSHKeys() SSHKeyInterface +} + +// SSHKeyInterface has methods to work with SSHKey resources. +type SSHKeyInterface interface { + Create(ctx context.Context, sSHKey *storagev1.SSHKey, opts metav1.CreateOptions) (*storagev1.SSHKey, error) + Update(ctx context.Context, sSHKey *storagev1.SSHKey, opts metav1.UpdateOptions) (*storagev1.SSHKey, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, sSHKey *storagev1.SSHKey, opts metav1.UpdateOptions) (*storagev1.SSHKey, 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.SSHKey, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.SSHKeyList, 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.SSHKey, err error) + SSHKeyExpansion +} + +// sSHKeys implements SSHKeyInterface +type sSHKeys struct { + *gentype.ClientWithList[*storagev1.SSHKey, *storagev1.SSHKeyList] +} + +// newSSHKeys returns a SSHKeys +func newSSHKeys(c *StorageV1Client) *sSHKeys { + return &sSHKeys{ + gentype.NewClientWithList[*storagev1.SSHKey, *storagev1.SSHKeyList]( + "sshkeys", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *storagev1.SSHKey { return &storagev1.SSHKey{} }, + func() *storagev1.SSHKeyList { return &storagev1.SSHKeyList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/storage_client.go b/pkg/clientset/versioned/typed/storage/v1/storage_client.go index c360fa26..3b687190 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,14 @@ type StorageV1Interface interface { ClustersGetter ClusterAccessesGetter ClusterRoleTemplatesGetter - DevPodEnvironmentTemplatesGetter - DevPodWorkspaceInstancesGetter - DevPodWorkspaceTemplatesGetter NetworkPeersGetter + NodeClaimsGetter + NodeEnvironmentsGetter + NodeProvidersGetter + NodeTypesGetter + OSImagesGetter ProjectsGetter - RunnersGetter + SSHKeysGetter SharedSecretsGetter SpaceInstancesGetter SpaceTemplatesGetter @@ -58,28 +60,36 @@ 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) NodeTypes() NodeTypeInterface { + return newNodeTypes(c) +} + +func (c *StorageV1Client) OSImages() OSImageInterface { + return newOSImages(c) } func (c *StorageV1Client) Projects() ProjectInterface { return newProjects(c) } -func (c *StorageV1Client) Runners() RunnerInterface { - return newRunners(c) +func (c *StorageV1Client) SSHKeys() SSHKeyInterface { + return newSSHKeys(c) } func (c *StorageV1Client) SharedSecrets(namespace string) SharedSecretInterface { @@ -119,9 +129,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 +141,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 +164,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/factory.go b/pkg/informers/externalversions/factory.go index 21039159..9e656d2a 100644 --- a/pkg/informers/externalversions/factory.go +++ b/pkg/informers/externalversions/factory.go @@ -83,6 +83,7 @@ func NewSharedInformerFactory(client versioned.Interface, defaultResync time.Dur // NewFilteredSharedInformerFactory constructs a new instance of sharedInformerFactory. // Listers obtained via this SharedInformerFactory will be subject to the same filters // as specified here. +// // Deprecated: Please use NewSharedInformerFactoryWithOptions instead func NewFilteredSharedInformerFactory(client versioned.Interface, defaultResync time.Duration, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) SharedInformerFactory { return NewSharedInformerFactoryWithOptions(client, defaultResync, WithNamespace(namespace), WithTweakListOptions(tweakListOptions)) @@ -190,7 +191,7 @@ func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internal // // It is typically used like this: // -// ctx, cancel := context.Background() +// ctx, cancel := context.WithCancel(context.Background()) // defer cancel() // factory := NewSharedInformerFactory(client, resyncPeriod) // defer factory.WaitForStop() // Returns immediately if nothing was started. diff --git a/pkg/informers/externalversions/generic.go b/pkg/informers/externalversions/generic.go index 19bb27f5..9d177822 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,12 +69,20 @@ 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("osimages"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().OSImages().Informer()}, nil case v1.SchemeGroupVersion.WithResource("ownedaccesskeys"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().OwnedAccessKeys().Informer()}, nil case v1.SchemeGroupVersion.WithResource("projects"): @@ -91,8 +95,8 @@ 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("sshkeys"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().SSHKeys().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 +115,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 +137,22 @@ 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("osimages"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().OSImages().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("sshkeys"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().SSHKeys().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..68d5c33d 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 { @@ -40,21 +40,33 @@ func NewAgentAuditEventInformer(client versioned.Interface, resyncPeriod time.Du // one. This reduces memory footprint and number of connections to the server. func NewFilteredAgentAuditEventInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.AgentAuditEvent{}, + 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) + }, + }, client), + &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..3b16d3ce 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 { @@ -40,21 +40,33 @@ func NewAnnouncementInformer(client versioned.Interface, resyncPeriod time.Durat // one. This reduces memory footprint and number of connections to the server. func NewFilteredAnnouncementInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.Announcement{}, + 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) + }, + }, client), + &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..c886736a 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 { @@ -40,21 +40,33 @@ func NewAppInformer(client versioned.Interface, resyncPeriod time.Duration, inde // one. This reduces memory footprint and number of connections to the server. func NewFilteredAppInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.App{}, + 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) + }, + }, client), + &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..d1c929ef 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 { @@ -40,21 +40,33 @@ func NewBackupInformer(client versioned.Interface, resyncPeriod time.Duration, i // one. This reduces memory footprint and number of connections to the server. func NewFilteredBackupInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.Backup{}, + 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) + }, + }, client), + &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..4e121b79 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 { @@ -40,21 +40,33 @@ func NewClusterInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.Cluster{}, + 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) + }, + }, client), + &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..f10e7061 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 { @@ -40,21 +40,33 @@ func NewClusterAccessInformer(client versioned.Interface, resyncPeriod time.Dura // one. This reduces memory footprint and number of connections to the server. func NewFilteredClusterAccessInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.ClusterAccess{}, + 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) + }, + }, client), + &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..0b7df8fb 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 { @@ -40,21 +40,33 @@ func NewClusterRoleTemplateInformer(client versioned.Interface, resyncPeriod tim // one. This reduces memory footprint and number of connections to the server. func NewFilteredClusterRoleTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.ClusterRoleTemplate{}, + 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) + }, + }, client), + &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..8f1de154 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 { @@ -40,21 +40,33 @@ func NewConfigInformer(client versioned.Interface, resyncPeriod time.Duration, i // one. This reduces memory footprint and number of connections to the server. func NewFilteredConfigInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.Config{}, + 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) + }, + }, client), + &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..613994b6 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 { @@ -40,21 +40,33 @@ func NewConvertVirtualClusterConfigInformer(client versioned.Interface, resyncPe // one. This reduces memory footprint and number of connections to the server. func NewFilteredConvertVirtualClusterConfigInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.ConvertVirtualClusterConfig{}, + 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) + }, + }, client), + &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..b02b6f56 --- /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.ToListWatcherWithWatchListSemantics(&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) + }, + }, client), + &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..1f3d8edf 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 { @@ -40,21 +40,33 @@ func NewDirectClusterEndpointTokenInformer(client versioned.Interface, resyncPer // one. This reduces memory footprint and number of connections to the server. func NewFilteredDirectClusterEndpointTokenInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.DirectClusterEndpointToken{}, + 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) + }, + }, client), + &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..d5f64779 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 { @@ -40,21 +40,33 @@ func NewEventInformer(client versioned.Interface, resyncPeriod time.Duration, in // one. This reduces memory footprint and number of connections to the server. func NewFilteredEventInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.Event{}, + 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) + }, + }, client), + &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..0b71bf1e 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 { @@ -40,21 +40,33 @@ func NewFeatureInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredFeatureInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.Feature{}, + 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) + }, + }, client), + &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..86a295d6 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 { @@ -40,21 +40,33 @@ func NewIngressAuthTokenInformer(client versioned.Interface, resyncPeriod time.D // one. This reduces memory footprint and number of connections to the server. func NewFilteredIngressAuthTokenInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.IngressAuthToken{}, + 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) + }, + }, client), + &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..0f37ae6a 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,12 +38,20 @@ 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 + // OSImages returns a OSImageInformer. + OSImages() OSImageInformer // OwnedAccessKeys returns a OwnedAccessKeyInformer. OwnedAccessKeys() OwnedAccessKeyInformer // Projects returns a ProjectInformer. @@ -60,8 +64,8 @@ type Interface interface { RegisterVirtualClusters() RegisterVirtualClusterInformer // ResetAccessKeys returns a ResetAccessKeyInformer. ResetAccessKeys() ResetAccessKeyInformer - // Runners returns a RunnerInformer. - Runners() RunnerInformer + // SSHKeys returns a SSHKeyInformer. + SSHKeys() SSHKeyInformer // Selves returns a SelfInformer. Selves() SelfInformer // SelfSubjectAccessReviews returns a SelfSubjectAccessReviewInformer. @@ -80,10 +84,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 +152,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,21 +182,41 @@ 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} } +// OSImages returns a OSImageInformer. +func (v *version) OSImages() OSImageInformer { + return &oSImageInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + // OwnedAccessKeys returns a OwnedAccessKeyInformer. func (v *version) OwnedAccessKeys() OwnedAccessKeyInformer { return &ownedAccessKeyInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} @@ -229,9 +247,9 @@ 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} +// SSHKeys returns a SSHKeyInformer. +func (v *version) SSHKeys() SSHKeyInformer { + return &sSHKeyInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } // Selves returns a SelfInformer. @@ -279,6 +297,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 +312,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..fd9750e7 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 { @@ -40,21 +40,33 @@ func NewLicenseInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredLicenseInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.License{}, + 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) + }, + }, client), + &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..589ba8ed 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 { @@ -40,21 +40,33 @@ func NewLoftUpgradeInformer(client versioned.Interface, resyncPeriod time.Durati // one. This reduces memory footprint and number of connections to the server. func NewFilteredLoftUpgradeInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.LoftUpgrade{}, + 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) + }, + }, client), + &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..2bafdc5a --- /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.ToListWatcherWithWatchListSemantics(&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) + }, + }, client), + &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..a8b74f3d --- /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.ToListWatcherWithWatchListSemantics(&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) + }, + }, client), + &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..68bce804 --- /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.ToListWatcherWithWatchListSemantics(&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) + }, + }, client), + &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..593dbf11 --- /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.ToListWatcherWithWatchListSemantics(&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) + }, + }, client), + &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..590c589f 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 { @@ -40,21 +40,33 @@ func NewOIDCClientInformer(client versioned.Interface, resyncPeriod time.Duratio // one. This reduces memory footprint and number of connections to the server. func NewFilteredOIDCClientInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.OIDCClient{}, + 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) + }, + }, client), + &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/osimage.go b/pkg/informers/externalversions/management/v1/osimage.go new file mode 100644 index 00000000..7a21aa2a --- /dev/null +++ b/pkg/informers/externalversions/management/v1/osimage.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" +) + +// OSImageInformer provides access to a shared informer and lister for +// OSImages. +type OSImageInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.OSImageLister +} + +type oSImageInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewOSImageInformer constructs a new informer for OSImage 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 NewOSImageInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredOSImageInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredOSImageInformer constructs a new informer for OSImage 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 NewFilteredOSImageInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().OSImages().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().OSImages().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().OSImages().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().OSImages().Watch(ctx, options) + }, + }, client), + &apismanagementv1.OSImage{}, + resyncPeriod, + indexers, + ) +} + +func (f *oSImageInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredOSImageInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *oSImageInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.OSImage{}, f.defaultInformer) +} + +func (f *oSImageInformer) Lister() managementv1.OSImageLister { + return managementv1.NewOSImageLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/ownedaccesskey.go b/pkg/informers/externalversions/management/v1/ownedaccesskey.go index 7c76e8e4..ad6de23e 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 { @@ -40,21 +40,33 @@ func NewOwnedAccessKeyInformer(client versioned.Interface, resyncPeriod time.Dur // one. This reduces memory footprint and number of connections to the server. func NewFilteredOwnedAccessKeyInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.OwnedAccessKey{}, + 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) + }, + }, client), + &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..dcf9d520 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 { @@ -40,21 +40,33 @@ func NewProjectInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.Project{}, + 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) + }, + }, client), + &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..02e0ed2e 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 { @@ -41,21 +41,33 @@ func NewProjectSecretInformer(client versioned.Interface, namespace string, resy // one. This reduces memory footprint and number of connections to the server. func NewFilteredProjectSecretInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.ProjectSecret{}, + 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) + }, + }, client), + &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..d9596f3d 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 { @@ -40,21 +40,33 @@ func NewRedirectTokenInformer(client versioned.Interface, resyncPeriod time.Dura // one. This reduces memory footprint and number of connections to the server. func NewFilteredRedirectTokenInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.RedirectToken{}, + 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) + }, + }, client), + &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..48201dc3 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 { @@ -40,21 +40,33 @@ func NewRegisterVirtualClusterInformer(client versioned.Interface, resyncPeriod // one. This reduces memory footprint and number of connections to the server. func NewFilteredRegisterVirtualClusterInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.RegisterVirtualCluster{}, + 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) + }, + }, client), + &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..e7feb271 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 { @@ -40,21 +40,33 @@ func NewResetAccessKeyInformer(client versioned.Interface, resyncPeriod time.Dur // one. This reduces memory footprint and number of connections to the server. func NewFilteredResetAccessKeyInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.ResetAccessKey{}, + 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) + }, + }, client), + &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..2f40abd2 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 { @@ -40,21 +40,33 @@ func NewSelfInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredSelfInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.Self{}, + 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) + }, + }, client), + &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..405884fb 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 { @@ -40,21 +40,33 @@ func NewSelfSubjectAccessReviewInformer(client versioned.Interface, resyncPeriod // one. This reduces memory footprint and number of connections to the server. func NewFilteredSelfSubjectAccessReviewInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.SelfSubjectAccessReview{}, + 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) + }, + }, client), + &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..4fc48b3b 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 { @@ -41,21 +41,33 @@ func NewSharedSecretInformer(client versioned.Interface, namespace string, resyn // one. This reduces memory footprint and number of connections to the server. func NewFilteredSharedSecretInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.SharedSecret{}, + 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) + }, + }, client), + &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..08609cd3 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 { @@ -41,21 +41,33 @@ func NewSpaceInstanceInformer(client versioned.Interface, namespace string, resy // one. This reduces memory footprint and number of connections to the server. func NewFilteredSpaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.SpaceInstance{}, + 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) + }, + }, client), + &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..79f6b208 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 { @@ -40,21 +40,33 @@ func NewSpaceTemplateInformer(client versioned.Interface, resyncPeriod time.Dura // one. This reduces memory footprint and number of connections to the server. func NewFilteredSpaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.SpaceTemplate{}, + 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) + }, + }, client), + &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/sshkey.go b/pkg/informers/externalversions/management/v1/sshkey.go new file mode 100644 index 00000000..d0c8a2f7 --- /dev/null +++ b/pkg/informers/externalversions/management/v1/sshkey.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" +) + +// SSHKeyInformer provides access to a shared informer and lister for +// SSHKeys. +type SSHKeyInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.SSHKeyLister +} + +type sSHKeyInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewSSHKeyInformer constructs a new informer for SSHKey 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 NewSSHKeyInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredSSHKeyInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredSSHKeyInformer constructs a new informer for SSHKey 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 NewFilteredSSHKeyInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SSHKeys().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SSHKeys().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SSHKeys().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SSHKeys().Watch(ctx, options) + }, + }, client), + &apismanagementv1.SSHKey{}, + resyncPeriod, + indexers, + ) +} + +func (f *sSHKeyInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredSSHKeyInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *sSHKeyInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.SSHKey{}, f.defaultInformer) +} + +func (f *sSHKeyInformer) Lister() managementv1.SSHKeyLister { + return managementv1.NewSSHKeyLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/subjectaccessreview.go b/pkg/informers/externalversions/management/v1/subjectaccessreview.go index a4afaf37..d4ed2623 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 { @@ -40,21 +40,33 @@ func NewSubjectAccessReviewInformer(client versioned.Interface, resyncPeriod tim // one. This reduces memory footprint and number of connections to the server. func NewFilteredSubjectAccessReviewInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.SubjectAccessReview{}, + 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) + }, + }, client), + &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..a7024010 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 { @@ -40,21 +40,33 @@ func NewTaskInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredTaskInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.Task{}, + 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) + }, + }, client), + &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..4c824f0b 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 { @@ -40,21 +40,33 @@ func NewTeamInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredTeamInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.Team{}, + 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) + }, + }, client), + &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..2031281d 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 { @@ -40,21 +40,33 @@ func NewTranslateVClusterResourceNameInformer(client versioned.Interface, resync // one. This reduces memory footprint and number of connections to the server. func NewFilteredTranslateVClusterResourceNameInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.TranslateVClusterResourceName{}, + 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) + }, + }, client), + &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..807bb81f --- /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.ToListWatcherWithWatchListSemantics(&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) + }, + }, client), + &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..6767fb10 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 { @@ -40,21 +40,33 @@ func NewUserInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.User{}, + 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) + }, + }, client), + &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..5f0cea77 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 { @@ -41,21 +41,33 @@ func NewVirtualClusterInstanceInformer(client versioned.Interface, namespace str // one. This reduces memory footprint and number of connections to the server. func NewFilteredVirtualClusterInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.VirtualClusterInstance{}, + 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) + }, + }, client), + &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..5ca95b00 --- /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.ToListWatcherWithWatchListSemantics(&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) + }, + }, client), + &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..0963d174 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 { @@ -40,21 +40,33 @@ func NewVirtualClusterTemplateInformer(client versioned.Interface, resyncPeriod // one. This reduces memory footprint and number of connections to the server. func NewFilteredVirtualClusterTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &managementv1.VirtualClusterTemplate{}, + 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) + }, + }, client), + &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..f372bbcf 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 { @@ -40,21 +40,33 @@ func NewAccessKeyInformer(client versioned.Interface, resyncPeriod time.Duration // one. This reduces memory footprint and number of connections to the server. func NewFilteredAccessKeyInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.AccessKey{}, + 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) + }, + }, client), + &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..4442ef13 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 { @@ -40,21 +40,33 @@ func NewAppInformer(client versioned.Interface, resyncPeriod time.Duration, inde // one. This reduces memory footprint and number of connections to the server. func NewFilteredAppInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.App{}, + 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) + }, + }, client), + &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..150677ae 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 { @@ -40,21 +40,33 @@ func NewClusterInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.Cluster{}, + 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) + }, + }, client), + &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..b6ddfafd 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 { @@ -40,21 +40,33 @@ func NewClusterAccessInformer(client versioned.Interface, resyncPeriod time.Dura // one. This reduces memory footprint and number of connections to the server. func NewFilteredClusterAccessInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.ClusterAccess{}, + 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) + }, + }, client), + &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..7353c4e4 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 { @@ -40,21 +40,33 @@ func NewClusterRoleTemplateInformer(client versioned.Interface, resyncPeriod tim // one. This reduces memory footprint and number of connections to the server. func NewFilteredClusterRoleTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.ClusterRoleTemplate{}, + 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) + }, + }, client), + &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..a41861b4 100644 --- a/pkg/informers/externalversions/storage/v1/interface.go +++ b/pkg/informers/externalversions/storage/v1/interface.go @@ -18,18 +18,22 @@ 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 + // OSImages returns a OSImageInformer. + OSImages() OSImageInformer // Projects returns a ProjectInformer. Projects() ProjectInformer - // Runners returns a RunnerInformer. - Runners() RunnerInformer + // SSHKeys returns a SSHKeyInformer. + SSHKeys() SSHKeyInformer // SharedSecrets returns a SharedSecretInformer. SharedSecrets() SharedSecretInformer // SpaceInstances returns a SpaceInstanceInformer. @@ -84,24 +88,34 @@ 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} +} + +// OSImages returns a OSImageInformer. +func (v *version) OSImages() OSImageInformer { + return &oSImageInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } // Projects returns a ProjectInformer. @@ -109,9 +123,9 @@ 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} +// SSHKeys returns a SSHKeyInformer. +func (v *version) SSHKeys() SSHKeyInformer { + return &sSHKeyInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } // SharedSecrets returns a SharedSecretInformer. diff --git a/pkg/informers/externalversions/storage/v1/networkpeer.go b/pkg/informers/externalversions/storage/v1/networkpeer.go index ef865824..a8b2013c 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 { @@ -40,21 +40,33 @@ func NewNetworkPeerInformer(client versioned.Interface, resyncPeriod time.Durati // one. This reduces memory footprint and number of connections to the server. func NewFilteredNetworkPeerInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.NetworkPeer{}, + 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) + }, + }, client), + &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..bc29256b --- /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.ToListWatcherWithWatchListSemantics(&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) + }, + }, client), + &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..23dce361 --- /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.ToListWatcherWithWatchListSemantics(&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) + }, + }, client), + &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..2117d110 --- /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.ToListWatcherWithWatchListSemantics(&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) + }, + }, client), + &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..d94aef38 --- /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.ToListWatcherWithWatchListSemantics(&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) + }, + }, client), + &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/osimage.go b/pkg/informers/externalversions/storage/v1/osimage.go new file mode 100644 index 00000000..d5c5c19c --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/osimage.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" +) + +// OSImageInformer provides access to a shared informer and lister for +// OSImages. +type OSImageInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.OSImageLister +} + +type oSImageInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewOSImageInformer constructs a new informer for OSImage 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 NewOSImageInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredOSImageInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredOSImageInformer constructs a new informer for OSImage 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 NewFilteredOSImageInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().OSImages().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().OSImages().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().OSImages().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().OSImages().Watch(ctx, options) + }, + }, client), + &apisstoragev1.OSImage{}, + resyncPeriod, + indexers, + ) +} + +func (f *oSImageInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredOSImageInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *oSImageInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.OSImage{}, f.defaultInformer) +} + +func (f *oSImageInformer) Lister() storagev1.OSImageLister { + return storagev1.NewOSImageLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/project.go b/pkg/informers/externalversions/storage/v1/project.go index d2d5cf54..5eb6a753 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 { @@ -40,21 +40,33 @@ func NewProjectInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.Project{}, + 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) + }, + }, client), + &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..e15d1b9c 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 { @@ -41,21 +41,33 @@ func NewSharedSecretInformer(client versioned.Interface, namespace string, resyn // one. This reduces memory footprint and number of connections to the server. func NewFilteredSharedSecretInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.SharedSecret{}, + 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) + }, + }, client), + &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..4a467b55 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 { @@ -41,21 +41,33 @@ func NewSpaceInstanceInformer(client versioned.Interface, namespace string, resy // one. This reduces memory footprint and number of connections to the server. func NewFilteredSpaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.SpaceInstance{}, + 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) + }, + }, client), + &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..877c7d9a 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 { @@ -40,21 +40,33 @@ func NewSpaceTemplateInformer(client versioned.Interface, resyncPeriod time.Dura // one. This reduces memory footprint and number of connections to the server. func NewFilteredSpaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.SpaceTemplate{}, + 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) + }, + }, client), + &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/sshkey.go b/pkg/informers/externalversions/storage/v1/sshkey.go new file mode 100644 index 00000000..7fa93f5a --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/sshkey.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" +) + +// SSHKeyInformer provides access to a shared informer and lister for +// SSHKeys. +type SSHKeyInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.SSHKeyLister +} + +type sSHKeyInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewSSHKeyInformer constructs a new informer for SSHKey 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 NewSSHKeyInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredSSHKeyInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredSSHKeyInformer constructs a new informer for SSHKey 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 NewFilteredSSHKeyInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SSHKeys().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SSHKeys().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SSHKeys().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SSHKeys().Watch(ctx, options) + }, + }, client), + &apisstoragev1.SSHKey{}, + resyncPeriod, + indexers, + ) +} + +func (f *sSHKeyInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredSSHKeyInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *sSHKeyInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.SSHKey{}, f.defaultInformer) +} + +func (f *sSHKeyInformer) Lister() storagev1.SSHKeyLister { + return storagev1.NewSSHKeyLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/task.go b/pkg/informers/externalversions/storage/v1/task.go index 347b82f7..271f721b 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 { @@ -40,21 +40,33 @@ func NewTaskInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredTaskInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.Task{}, + 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) + }, + }, client), + &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..81d21559 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 { @@ -40,21 +40,33 @@ func NewTeamInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredTeamInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.Team{}, + 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) + }, + }, client), + &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..68d58fd4 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 { @@ -40,21 +40,33 @@ func NewUserInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.User{}, + 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) + }, + }, client), + &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..0947a7d9 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 { @@ -41,21 +41,33 @@ func NewVirtualClusterInstanceInformer(client versioned.Interface, namespace str // one. This reduces memory footprint and number of connections to the server. func NewFilteredVirtualClusterInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.VirtualClusterInstance{}, + 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) + }, + }, client), + &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..da0623f2 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 { @@ -40,21 +40,33 @@ func NewVirtualClusterTemplateInformer(client versioned.Interface, resyncPeriod // one. This reduces memory footprint and number of connections to the server. func NewFilteredVirtualClusterTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &storagev1.VirtualClusterTemplate{}, + 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) + }, + }, client), + &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..24b48511 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 { @@ -41,21 +41,33 @@ func NewHelmReleaseInformer(client versioned.Interface, namespace string, resync // one. This reduces memory footprint and number of connections to the server. func NewFilteredHelmReleaseInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } - 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) }, - }, - &virtualclusterv1.HelmRelease{}, + 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) + }, + }, client), + &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..5c4fa6f4 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,18 +62,42 @@ 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{} +// OSImageListerExpansion allows custom methods to be added to +// OSImageLister. +type OSImageListerExpansion interface{} + // OwnedAccessKeyListerExpansion allows custom methods to be added to // OwnedAccessKeyLister. type OwnedAccessKeyListerExpansion interface{} @@ -114,9 +126,9 @@ type RegisterVirtualClusterListerExpansion interface{} // ResetAccessKeyLister. type ResetAccessKeyListerExpansion interface{} -// RunnerListerExpansion allows custom methods to be added to -// RunnerLister. -type RunnerListerExpansion interface{} +// SSHKeyListerExpansion allows custom methods to be added to +// SSHKeyLister. +type SSHKeyListerExpansion interface{} // SelfListerExpansion allows custom methods to be added to // SelfLister. @@ -162,6 +174,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 +190,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/osimage.go b/pkg/listers/management/v1/osimage.go new file mode 100644 index 00000000..529ce1db --- /dev/null +++ b/pkg/listers/management/v1/osimage.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" +) + +// OSImageLister helps list OSImages. +// All objects returned here must be treated as read-only. +type OSImageLister interface { + // List lists all OSImages in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.OSImage, err error) + // Get retrieves the OSImage from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.OSImage, error) + OSImageListerExpansion +} + +// oSImageLister implements the OSImageLister interface. +type oSImageLister struct { + listers.ResourceIndexer[*managementv1.OSImage] +} + +// NewOSImageLister returns a new OSImageLister. +func NewOSImageLister(indexer cache.Indexer) OSImageLister { + return &oSImageLister{listers.New[*managementv1.OSImage](indexer, managementv1.Resource("osimage"))} +} 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/sshkey.go b/pkg/listers/management/v1/sshkey.go new file mode 100644 index 00000000..c77dffe8 --- /dev/null +++ b/pkg/listers/management/v1/sshkey.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" +) + +// SSHKeyLister helps list SSHKeys. +// All objects returned here must be treated as read-only. +type SSHKeyLister interface { + // List lists all SSHKeys in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.SSHKey, err error) + // Get retrieves the SSHKey from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.SSHKey, error) + SSHKeyListerExpansion +} + +// sSHKeyLister implements the SSHKeyLister interface. +type sSHKeyLister struct { + listers.ResourceIndexer[*managementv1.SSHKey] +} + +// NewSSHKeyLister returns a new SSHKeyLister. +func NewSSHKeyLister(indexer cache.Indexer) SSHKeyLister { + return &sSHKeyLister{listers.New[*managementv1.SSHKey](indexer, managementv1.Resource("sshkey"))} +} 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..167689f9 100644 --- a/pkg/listers/storage/v1/expansion_generated.go +++ b/pkg/listers/storage/v1/expansion_generated.go @@ -22,33 +22,45 @@ 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{} + +// OSImageListerExpansion allows custom methods to be added to +// OSImageLister. +type OSImageListerExpansion 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{} +// SSHKeyListerExpansion allows custom methods to be added to +// SSHKeyLister. +type SSHKeyListerExpansion interface{} // SharedSecretListerExpansion allows custom methods to be added to // SharedSecretLister. 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/osimage.go b/pkg/listers/storage/v1/osimage.go new file mode 100644 index 00000000..f310034e --- /dev/null +++ b/pkg/listers/storage/v1/osimage.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" +) + +// OSImageLister helps list OSImages. +// All objects returned here must be treated as read-only. +type OSImageLister interface { + // List lists all OSImages in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.OSImage, err error) + // Get retrieves the OSImage from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.OSImage, error) + OSImageListerExpansion +} + +// oSImageLister implements the OSImageLister interface. +type oSImageLister struct { + listers.ResourceIndexer[*storagev1.OSImage] +} + +// NewOSImageLister returns a new OSImageLister. +func NewOSImageLister(indexer cache.Indexer) OSImageLister { + return &oSImageLister{listers.New[*storagev1.OSImage](indexer, storagev1.Resource("osimage"))} +} 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/sshkey.go b/pkg/listers/storage/v1/sshkey.go new file mode 100644 index 00000000..52762878 --- /dev/null +++ b/pkg/listers/storage/v1/sshkey.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" +) + +// SSHKeyLister helps list SSHKeys. +// All objects returned here must be treated as read-only. +type SSHKeyLister interface { + // List lists all SSHKeys in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.SSHKey, err error) + // Get retrieves the SSHKey from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.SSHKey, error) + SSHKeyListerExpansion +} + +// sSHKeyLister implements the SSHKeyLister interface. +type sSHKeyLister struct { + listers.ResourceIndexer[*storagev1.SSHKey] +} + +// NewSSHKeyLister returns a new SSHKeyLister. +func NewSSHKeyLister(indexer cache.Indexer) SSHKeyLister { + return &sSHKeyLister{listers.New[*storagev1.SSHKey](indexer, storagev1.Resource("sshkey"))} +} 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..6195f731 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -6,1336 +6,1539 @@ package openapi import ( - v1 "k8s.io/api/core/v1" + licenseapi "github.com/loft-sh/admin-apis/pkg/licenseapi" + v1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1" + storagev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + auditv1 "github.com/loft-sh/api/v4/pkg/apis/audit/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + uiv1 "github.com/loft-sh/api/v4/pkg/apis/ui/v1" + virtualclusterv1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" + admissionregistrationv1 "k8s.io/api/admissionregistration/v1" + v1beta1 "k8s.io/api/admissionregistration/v1beta1" + appsv1 "k8s.io/api/apps/v1" + appsv1beta1 "k8s.io/api/apps/v1beta1" + v1beta2 "k8s.io/api/apps/v1beta2" + authenticationv1 "k8s.io/api/authentication/v1" + authenticationv1beta1 "k8s.io/api/authentication/v1beta1" + authorizationv1 "k8s.io/api/authorization/v1" + authorizationv1beta1 "k8s.io/api/authorization/v1beta1" + autoscalingv1 "k8s.io/api/autoscaling/v1" + v2beta1 "k8s.io/api/autoscaling/v2beta1" + v2beta2 "k8s.io/api/autoscaling/v2beta2" + batchv1 "k8s.io/api/batch/v1" + batchv1beta1 "k8s.io/api/batch/v1beta1" + certificatesv1beta1 "k8s.io/api/certificates/v1beta1" + coordinationv1 "k8s.io/api/coordination/v1" + coordinationv1beta1 "k8s.io/api/coordination/v1beta1" + corev1 "k8s.io/api/core/v1" + eventsv1beta1 "k8s.io/api/events/v1beta1" + extensionsv1beta1 "k8s.io/api/extensions/v1beta1" + networkingv1 "k8s.io/api/networking/v1" + networkingv1beta1 "k8s.io/api/networking/v1beta1" + v1alpha1 "k8s.io/api/node/v1alpha1" + nodev1beta1 "k8s.io/api/node/v1beta1" + policyv1beta1 "k8s.io/api/policy/v1beta1" + rbacv1 "k8s.io/api/rbac/v1" + rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" + rbacv1beta1 "k8s.io/api/rbac/v1beta1" + schedulingv1 "k8s.io/api/scheduling/v1" + schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1" + schedulingv1beta1 "k8s.io/api/scheduling/v1beta1" + apistoragev1 "k8s.io/api/storage/v1" + storagev1alpha1 "k8s.io/api/storage/v1alpha1" + storagev1beta1 "k8s.io/api/storage/v1beta1" resource "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" intstr "k8s.io/apimachinery/pkg/util/intstr" + version "k8s.io/apimachinery/pkg/version" + clientauthenticationv1beta1 "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1" common "k8s.io/kube-openapi/pkg/common" spec "k8s.io/kube-openapi/pkg/validation/spec" + metricsv1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.Analytics": schema_loft_sh_admin_apis_pkg_licenseapi_Analytics(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Announcement": schema_loft_sh_admin_apis_pkg_licenseapi_Announcement(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.BlockRequest": schema_loft_sh_admin_apis_pkg_licenseapi_BlockRequest(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Button": schema_loft_sh_admin_apis_pkg_licenseapi_Button(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Feature": schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestInput(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestOutput(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenAuth(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenClaims": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenClaims(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Invoice": schema_loft_sh_admin_apis_pkg_licenseapi_Invoice(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.License": schema_loft_sh_admin_apis_pkg_licenseapi_License(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoute(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoutes": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoutes(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Limit": schema_loft_sh_admin_apis_pkg_licenseapi_Limit(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Module": schema_loft_sh_admin_apis_pkg_licenseapi_Module(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.OfflineLicenseKeyClaims": schema_loft_sh_admin_apis_pkg_licenseapi_OfflineLicenseKeyClaims(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Plan": schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanExpiration": schema_loft_sh_admin_apis_pkg_licenseapi_PlanExpiration(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPeriod": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPeriod(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPrice": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PriceTier": schema_loft_sh_admin_apis_pkg_licenseapi_PriceTier(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Request": schema_loft_sh_admin_apis_pkg_licenseapi_Request(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount": schema_loft_sh_admin_apis_pkg_licenseapi_ResourceCount(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.TierResource": schema_loft_sh_admin_apis_pkg_licenseapi_TierResource(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Trial": schema_loft_sh_admin_apis_pkg_licenseapi_Trial(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash": schema_apis_loft_cluster_v1_Bash(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart": schema_apis_loft_cluster_v1_Chart(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo": schema_apis_loft_cluster_v1_ChartInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoList": schema_apis_loft_cluster_v1_ChartInfoList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoSpec": schema_apis_loft_cluster_v1_ChartInfoSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoStatus": schema_apis_loft_cluster_v1_ChartInfoStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef": schema_apis_loft_cluster_v1_ChartSecretRef(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.EpochInfo": schema_apis_loft_cluster_v1_EpochInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Feature": schema_apis_loft_cluster_v1_Feature(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureList": schema_apis_loft_cluster_v1_FeatureList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureSpec": schema_apis_loft_cluster_v1_FeatureSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureStatus": schema_apis_loft_cluster_v1_FeatureStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease": schema_apis_loft_cluster_v1_HelmRelease(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseApp": schema_apis_loft_cluster_v1_HelmReleaseApp(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig": schema_apis_loft_cluster_v1_HelmReleaseConfig(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseList": schema_apis_loft_cluster_v1_HelmReleaseList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseSpec": schema_apis_loft_cluster_v1_HelmReleaseSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseStatus": schema_apis_loft_cluster_v1_HelmReleaseStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info": schema_apis_loft_cluster_v1_Info(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.LastActivityInfo": schema_apis_loft_cluster_v1_LastActivityInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Maintainer": schema_apis_loft_cluster_v1_Maintainer(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata": schema_apis_loft_cluster_v1_Metadata(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ProjectSecretRef": schema_apis_loft_cluster_v1_ProjectSecretRef(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig": schema_apis_loft_cluster_v1_SleepModeConfig(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigSpec": schema_apis_loft_cluster_v1_SleepModeConfigSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigStatus": schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota": schema_apis_loft_storage_v1_ClusterQuota(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaList": schema_apis_loft_storage_v1_ClusterQuotaList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaSpec": schema_apis_loft_storage_v1_ClusterQuotaSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatus": schema_apis_loft_storage_v1_ClusterQuotaStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatusByNamespace": schema_apis_loft_storage_v1_ClusterQuotaStatusByNamespace(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition": schema_apis_loft_storage_v1_Condition(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event": schema_pkg_apis_audit_v1_Event(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.EventList": schema_pkg_apis_audit_v1_EventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference": schema_pkg_apis_audit_v1_ObjectReference(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec": schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig": schema_pkg_apis_management_v1_AgentAuditConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEvent": schema_pkg_apis_management_v1_AgentAuditEvent(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventList": schema_pkg_apis_management_v1_AgentAuditEventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventSpec": schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventStatus": schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Announcement": schema_pkg_apis_management_v1_Announcement(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementList": schema_pkg_apis_management_v1_AnnouncementList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementSpec": schema_pkg_apis_management_v1_AnnouncementSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementStatus": schema_pkg_apis_management_v1_AnnouncementStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.App": schema_pkg_apis_management_v1_App(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentials": schema_pkg_apis_management_v1_AppCredentials(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentialsList": schema_pkg_apis_management_v1_AppCredentialsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppList": schema_pkg_apis_management_v1_AppList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppSpec": schema_pkg_apis_management_v1_AppSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppStatus": schema_pkg_apis_management_v1_AppStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps": schema_pkg_apis_management_v1_Apps(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit": schema_pkg_apis_management_v1_Audit(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy": schema_pkg_apis_management_v1_AuditPolicy(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicyRule": schema_pkg_apis_management_v1_AuditPolicyRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication": schema_pkg_apis_management_v1_Authentication(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub": schema_pkg_apis_management_v1_AuthenticationGithub(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithubOrg": schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab": schema_pkg_apis_management_v1_AuthenticationGitlab(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle": schema_pkg_apis_management_v1_AuthenticationGoogle(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft": schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC": schema_pkg_apis_management_v1_AuthenticationOIDC(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationPassword": schema_pkg_apis_management_v1_AuthenticationPassword(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationRancher": schema_pkg_apis_management_v1_AuthenticationRancher(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML": schema_pkg_apis_management_v1_AuthenticationSAML(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Backup": schema_pkg_apis_management_v1_Backup(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApply": schema_pkg_apis_management_v1_BackupApply(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyList": schema_pkg_apis_management_v1_BackupApplyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyOptions": schema_pkg_apis_management_v1_BackupApplyOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplySpec": schema_pkg_apis_management_v1_BackupApplySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupList": schema_pkg_apis_management_v1_BackupList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupSpec": schema_pkg_apis_management_v1_BackupSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupStatus": schema_pkg_apis_management_v1_BackupStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster": schema_pkg_apis_management_v1_Cluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccess": schema_pkg_apis_management_v1_ClusterAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKeyList": schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessList": schema_pkg_apis_management_v1_ClusterAccessList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessSpec": schema_pkg_apis_management_v1_ClusterAccessSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessStatus": schema_pkg_apis_management_v1_ClusterAccessStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts": schema_pkg_apis_management_v1_ClusterAccounts(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfig": schema_pkg_apis_management_v1_ClusterAgentConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfigCommon": schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfigList": schema_pkg_apis_management_v1_ClusterAgentConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterCharts": schema_pkg_apis_management_v1_ClusterCharts(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterChartsList": schema_pkg_apis_management_v1_ClusterChartsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterDomain": schema_pkg_apis_management_v1_ClusterDomain(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterDomainList": schema_pkg_apis_management_v1_ClusterDomainList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterList": schema_pkg_apis_management_v1_ClusterList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMember": schema_pkg_apis_management_v1_ClusterMember(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccess": schema_pkg_apis_management_v1_ClusterMemberAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccessList": schema_pkg_apis_management_v1_ClusterMemberAccessList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMembers": schema_pkg_apis_management_v1_ClusterMembers(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMembersList": schema_pkg_apis_management_v1_ClusterMembersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterReset": schema_pkg_apis_management_v1_ClusterReset(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterResetList": schema_pkg_apis_management_v1_ClusterResetList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplate": schema_pkg_apis_management_v1_ClusterRoleTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateList": schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateSpec": schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateStatus": schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterSpec": schema_pkg_apis_management_v1_ClusterSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterStatus": schema_pkg_apis_management_v1_ClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterVirtualClusterDefaults": schema_pkg_apis_management_v1_ClusterVirtualClusterDefaults(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterVirtualClusterDefaultsList": schema_pkg_apis_management_v1_ClusterVirtualClusterDefaultsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Config": schema_pkg_apis_management_v1_Config(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigList": schema_pkg_apis_management_v1_ConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigSpec": schema_pkg_apis_management_v1_ConfigSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigStatus": schema_pkg_apis_management_v1_ConfigStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Connector": schema_pkg_apis_management_v1_Connector(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConnectorWithName": schema_pkg_apis_management_v1_ConnectorWithName(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfig": schema_pkg_apis_management_v1_ConvertVirtualClusterConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigList": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodDeleteOptions": schema_pkg_apis_management_v1_DevPodDeleteOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodDeleteOptionsList": schema_pkg_apis_management_v1_DevPodDeleteOptionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate": schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodSshOptions": schema_pkg_apis_management_v1_DevPodSshOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodSshOptionsList": schema_pkg_apis_management_v1_DevPodSshOptionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStatusOptions": schema_pkg_apis_management_v1_DevPodStatusOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStatusOptionsList": schema_pkg_apis_management_v1_DevPodStatusOptionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStopOptions": schema_pkg_apis_management_v1_DevPodStopOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStopOptionsList": schema_pkg_apis_management_v1_DevPodStopOptionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodUpOptions": schema_pkg_apis_management_v1_DevPodUpOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodUpOptionsList": schema_pkg_apis_management_v1_DevPodUpOptionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance": schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceState(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStateList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate": schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken": schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenList": schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec": schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus": schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Event": schema_pkg_apis_management_v1_Event(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventList": schema_pkg_apis_management_v1_EventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec": schema_pkg_apis_management_v1_EventSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus": schema_pkg_apis_management_v1_EventStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature": schema_pkg_apis_management_v1_Feature(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureList": schema_pkg_apis_management_v1_FeatureList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec": schema_pkg_apis_management_v1_FeatureSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus": schema_pkg_apis_management_v1_FeatureStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.GitEnvironmentTemplate": schema_pkg_apis_management_v1_GitEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.GroupResources": schema_pkg_apis_management_v1_GroupResources(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken": schema_pkg_apis_management_v1_IngressAuthToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenList": schema_pkg_apis_management_v1_IngressAuthTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec": schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus": schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk": schema_pkg_apis_management_v1_Kiosk(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskList": schema_pkg_apis_management_v1_KioskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec": schema_pkg_apis_management_v1_KioskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus": schema_pkg_apis_management_v1_KioskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.License": schema_pkg_apis_management_v1_License(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseList": schema_pkg_apis_management_v1_LicenseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest": schema_pkg_apis_management_v1_LicenseRequest(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestList": schema_pkg_apis_management_v1_LicenseRequestList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec": schema_pkg_apis_management_v1_LicenseRequestSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus": schema_pkg_apis_management_v1_LicenseRequestStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec": schema_pkg_apis_management_v1_LicenseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus": schema_pkg_apis_management_v1_LicenseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken": schema_pkg_apis_management_v1_LicenseToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenList": schema_pkg_apis_management_v1_LicenseTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec": schema_pkg_apis_management_v1_LicenseTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus": schema_pkg_apis_management_v1_LicenseTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade": schema_pkg_apis_management_v1_LoftUpgrade(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeList": schema_pkg_apis_management_v1_LoftUpgradeList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec": schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus": schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC": schema_pkg_apis_management_v1_OIDC(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient": schema_pkg_apis_management_v1_OIDCClient(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientList": schema_pkg_apis_management_v1_OIDCClientList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec": schema_pkg_apis_management_v1_OIDCClientSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus": schema_pkg_apis_management_v1_OIDCClientStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey": schema_pkg_apis_management_v1_OwnedAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyList": schema_pkg_apis_management_v1_OwnedAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec": schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus": schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.PredefinedApp": schema_pkg_apis_management_v1_PredefinedApp(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Project": schema_pkg_apis_management_v1_Project(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo": schema_pkg_apis_management_v1_ProjectChartInfo(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoList": schema_pkg_apis_management_v1_ProjectChartInfoList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec": schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus": schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts": schema_pkg_apis_management_v1_ProjectCharts(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartsList": schema_pkg_apis_management_v1_ProjectChartsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters": schema_pkg_apis_management_v1_ProjectClusters(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClustersList": schema_pkg_apis_management_v1_ProjectClustersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace": schema_pkg_apis_management_v1_ProjectImportSpace(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceList": schema_pkg_apis_management_v1_ProjectImportSpaceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource": schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectList": schema_pkg_apis_management_v1_ProjectList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember": schema_pkg_apis_management_v1_ProjectMember(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers": schema_pkg_apis_management_v1_ProjectMembers(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembersList": schema_pkg_apis_management_v1_ProjectMembersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceList": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceList": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRunners": schema_pkg_apis_management_v1_ProjectRunners(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRunnersList": schema_pkg_apis_management_v1_ProjectRunnersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret": schema_pkg_apis_management_v1_ProjectSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretList": schema_pkg_apis_management_v1_ProjectSecretList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec": schema_pkg_apis_management_v1_ProjectSecretSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus": schema_pkg_apis_management_v1_ProjectSecretStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec": schema_pkg_apis_management_v1_ProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus": schema_pkg_apis_management_v1_ProjectStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates": schema_pkg_apis_management_v1_ProjectTemplates(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplatesList": schema_pkg_apis_management_v1_ProjectTemplatesList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken": schema_pkg_apis_management_v1_RedirectToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenClaims": schema_pkg_apis_management_v1_RedirectTokenClaims(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenList": schema_pkg_apis_management_v1_RedirectTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec": schema_pkg_apis_management_v1_RedirectTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus": schema_pkg_apis_management_v1_RedirectTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster": schema_pkg_apis_management_v1_RegisterVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterList": schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec": schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus": schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey": schema_pkg_apis_management_v1_ResetAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyList": schema_pkg_apis_management_v1_ResetAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec": schema_pkg_apis_management_v1_ResetAccessKeySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus": schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner": schema_pkg_apis_management_v1_Runner(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerAccessKey": schema_pkg_apis_management_v1_RunnerAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerAccessKeyList": schema_pkg_apis_management_v1_RunnerAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerConfig": schema_pkg_apis_management_v1_RunnerConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerConfigList": schema_pkg_apis_management_v1_RunnerConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerList": schema_pkg_apis_management_v1_RunnerList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerSpec": schema_pkg_apis_management_v1_RunnerSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerStatus": schema_pkg_apis_management_v1_RunnerStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self": schema_pkg_apis_management_v1_Self(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfList": schema_pkg_apis_management_v1_SelfList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec": schema_pkg_apis_management_v1_SelfSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus": schema_pkg_apis_management_v1_SelfStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview": schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewList": schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec": schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus": schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret": schema_pkg_apis_management_v1_SharedSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretList": schema_pkg_apis_management_v1_SharedSecretList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec": schema_pkg_apis_management_v1_SharedSecretSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus": schema_pkg_apis_management_v1_SharedSecretStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance": schema_pkg_apis_management_v1_SpaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceList": schema_pkg_apis_management_v1_SpaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec": schema_pkg_apis_management_v1_SpaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus": schema_pkg_apis_management_v1_SpaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate": schema_pkg_apis_management_v1_SpaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateList": schema_pkg_apis_management_v1_SpaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec": schema_pkg_apis_management_v1_SpaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus": schema_pkg_apis_management_v1_SpaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview": schema_pkg_apis_management_v1_SubjectAccessReview(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewList": schema_pkg_apis_management_v1_SubjectAccessReviewList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec": schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus": schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task": schema_pkg_apis_management_v1_Task(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskList": schema_pkg_apis_management_v1_TaskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog": schema_pkg_apis_management_v1_TaskLog(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogList": schema_pkg_apis_management_v1_TaskLogList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogOptions": schema_pkg_apis_management_v1_TaskLogOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec": schema_pkg_apis_management_v1_TaskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus": schema_pkg_apis_management_v1_TaskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team": schema_pkg_apis_management_v1_Team(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys": schema_pkg_apis_management_v1_TeamAccessKeys(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeysList": schema_pkg_apis_management_v1_TeamAccessKeysList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters": schema_pkg_apis_management_v1_TeamClusters(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClustersList": schema_pkg_apis_management_v1_TeamClustersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamList": schema_pkg_apis_management_v1_TeamList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec": schema_pkg_apis_management_v1_TeamSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus": schema_pkg_apis_management_v1_TeamStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName": schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameList": schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec": schema_pkg_apis_management_v1_TranslateVClusterResourceNameSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus": schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.User": schema_pkg_apis_management_v1_User(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys": schema_pkg_apis_management_v1_UserAccessKeys(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeysList": schema_pkg_apis_management_v1_UserAccessKeysList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters": schema_pkg_apis_management_v1_UserClusters(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClustersList": schema_pkg_apis_management_v1_UserClustersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserInfo": schema_pkg_apis_management_v1_UserInfo(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserList": schema_pkg_apis_management_v1_UserList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions": schema_pkg_apis_management_v1_UserPermissions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsList": schema_pkg_apis_management_v1_UserPermissionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole": schema_pkg_apis_management_v1_UserPermissionsRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile": schema_pkg_apis_management_v1_UserProfile(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileList": schema_pkg_apis_management_v1_UserProfileList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserQuotasOptions": schema_pkg_apis_management_v1_UserQuotasOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpacesOptions": schema_pkg_apis_management_v1_UserSpacesOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec": schema_pkg_apis_management_v1_UserSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus": schema_pkg_apis_management_v1_UserStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserVirtualClustersOptions": schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey": schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance": schema_pkg_apis_management_v1_VirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigList": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceList": schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog": schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogList": schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogOptions": schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate": schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateList": schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec": schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus": schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access": schema_pkg_apis_storage_v1_Access(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey": schema_pkg_apis_storage_v1_AccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity": schema_pkg_apis_storage_v1_AccessKeyIdentity(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyList": schema_pkg_apis_storage_v1_AccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC": schema_pkg_apis_storage_v1_AccessKeyOIDC(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider": schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope": schema_pkg_apis_storage_v1_AccessKeyScope(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeCluster": schema_pkg_apis_storage_v1_AccessKeyScopeCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeProject": schema_pkg_apis_storage_v1_AccessKeyScopeProject(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRole": schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRule": schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeSpace": schema_pkg_apis_storage_v1_AccessKeyScopeSpace(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyScopeVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeySpec": schema_pkg_apis_storage_v1_AccessKeySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyStatus": schema_pkg_apis_storage_v1_AccessKeyStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster": schema_pkg_apis_storage_v1_AllowedCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedClusterAccountTemplate": schema_pkg_apis_storage_v1_AllowedClusterAccountTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner": schema_pkg_apis_storage_v1_AllowedRunner(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate": schema_pkg_apis_storage_v1_AllowedTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.App": schema_pkg_apis_storage_v1_App(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppConfig": schema_pkg_apis_storage_v1_AppConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppList": schema_pkg_apis_storage_v1_AppList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter": schema_pkg_apis_storage_v1_AppParameter(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference": schema_pkg_apis_storage_v1_AppReference(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppSpec": schema_pkg_apis_storage_v1_AppSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppStatus": schema_pkg_apis_storage_v1_AppStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppTask": schema_pkg_apis_storage_v1_AppTask(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion": schema_pkg_apis_storage_v1_AppVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec": schema_pkg_apis_storage_v1_ArgoIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectPolicyRule": schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectRole": schema_pkg_apis_storage_v1_ArgoProjectRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpec": schema_pkg_apis_storage_v1_ArgoProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpecMetadata": schema_pkg_apis_storage_v1_ArgoProjectSpecMetadata(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoSSOSpec": schema_pkg_apis_storage_v1_ArgoSSOSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Chart": schema_pkg_apis_storage_v1_Chart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ChartStatus": schema_pkg_apis_storage_v1_ChartStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster": schema_pkg_apis_storage_v1_Cluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess": schema_pkg_apis_storage_v1_ClusterAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessList": schema_pkg_apis_storage_v1_ClusterAccessList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec": schema_pkg_apis_storage_v1_ClusterAccessSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus": schema_pkg_apis_storage_v1_ClusterAccessStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterList": schema_pkg_apis_storage_v1_ClusterList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef": schema_pkg_apis_storage_v1_ClusterRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef": schema_pkg_apis_storage_v1_ClusterRoleRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate": schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateList": schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus": schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate": schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterSpec": schema_pkg_apis_storage_v1_ClusterSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterStatus": schema_pkg_apis_storage_v1_ClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.CredentialForwarding": schema_pkg_apis_storage_v1_CredentialForwarding(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandDeleteOptions": schema_pkg_apis_storage_v1_DevPodCommandDeleteOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandStatusOptions": schema_pkg_apis_storage_v1_DevPodCommandStatusOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandStopOptions": schema_pkg_apis_storage_v1_DevPodCommandStopOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandUpOptions": schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplate": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec": schema_pkg_apis_storage_v1_DevPodProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption": schema_pkg_apis_storage_v1_DevPodProviderOption(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom": schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderSource": schema_pkg_apis_storage_v1_DevPodProviderSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance": schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider": schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DockerCredentialForwarding": schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo": schema_pkg_apis_storage_v1_EntityInfo(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef": schema_pkg_apis_storage_v1_EnvironmentRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding": schema_pkg_apis_storage_v1_GitCredentialForwarding(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate": schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec": schema_pkg_apis_storage_v1_GitProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources": schema_pkg_apis_storage_v1_GroupResources(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart": schema_pkg_apis_storage_v1_HelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository": schema_pkg_apis_storage_v1_HelmChartRepository(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration": schema_pkg_apis_storage_v1_HelmConfiguration(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTask": schema_pkg_apis_storage_v1_HelmTask(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease": schema_pkg_apis_storage_v1_HelmTaskRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec": schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess": schema_pkg_apis_storage_v1_InstanceAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule": schema_pkg_apis_storage_v1_InstanceAccessRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceDeployedAppStatus": schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef": schema_pkg_apis_storage_v1_KindSecretRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec": schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate": schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate": schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member": schema_pkg_apis_storage_v1_Member(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer": schema_pkg_apis_storage_v1_NetworkPeer(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerList": schema_pkg_apis_storage_v1_NetworkPeerList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec": schema_pkg_apis_storage_v1_NetworkPeerSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus": schema_pkg_apis_storage_v1_NetworkPeerStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus": schema_pkg_apis_storage_v1_ObjectsStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectList": schema_pkg_apis_storage_v1_ProjectList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec": schema_pkg_apis_storage_v1_ProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus": schema_pkg_apis_storage_v1_ProjectStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus": schema_pkg_apis_storage_v1_QuotaStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject": schema_pkg_apis_storage_v1_QuotaStatusProject(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster": schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser": schema_pkg_apis_storage_v1_QuotaStatusUser(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed": schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas": schema_pkg_apis_storage_v1_Quotas(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec": schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef": schema_pkg_apis_storage_v1_RancherProjectRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Runner": schema_pkg_apis_storage_v1_Runner(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef": schema_pkg_apis_storage_v1_RunnerClusterRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerList": schema_pkg_apis_storage_v1_RunnerList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPersistentVolumeClaimTemplate": schema_pkg_apis_storage_v1_RunnerPersistentVolumeClaimTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPersistentVolumeClaimTemplateSpec": schema_pkg_apis_storage_v1_RunnerPersistentVolumeClaimTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPodTemplate": schema_pkg_apis_storage_v1_RunnerPodTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPodTemplateSpec": schema_pkg_apis_storage_v1_RunnerPodTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef": schema_pkg_apis_storage_v1_RunnerRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplate": schema_pkg_apis_storage_v1_RunnerServiceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplateSpec": schema_pkg_apis_storage_v1_RunnerServiceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerSpec": schema_pkg_apis_storage_v1_RunnerSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerStatus": schema_pkg_apis_storage_v1_RunnerStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSHProjectSpec": schema_pkg_apis_storage_v1_SSHProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef": schema_pkg_apis_storage_v1_SecretRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecret": schema_pkg_apis_storage_v1_SharedSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretList": schema_pkg_apis_storage_v1_SharedSecretList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretSpec": schema_pkg_apis_storage_v1_SharedSecretSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretStatus": schema_pkg_apis_storage_v1_SharedSecretStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstance": schema_pkg_apis_storage_v1_SpaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceList": schema_pkg_apis_storage_v1_SpaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceSpec": schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceStatus": schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplate": schema_pkg_apis_storage_v1_SpaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateList": schema_pkg_apis_storage_v1_SpaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateSpec": schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateStatus": schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion": schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer": schema_pkg_apis_storage_v1_StreamContainer(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec": schema_pkg_apis_storage_v1_SyncMembersSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target": schema_pkg_apis_storage_v1_Target(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetCluster": schema_pkg_apis_storage_v1_TargetCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetInstance": schema_pkg_apis_storage_v1_TargetInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetVirtualCluster": schema_pkg_apis_storage_v1_TargetVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Task": schema_pkg_apis_storage_v1_Task(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition": schema_pkg_apis_storage_v1_TaskDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskList": schema_pkg_apis_storage_v1_TaskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskSpec": schema_pkg_apis_storage_v1_TaskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskStatus": schema_pkg_apis_storage_v1_TaskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Team": schema_pkg_apis_storage_v1_Team(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamList": schema_pkg_apis_storage_v1_TeamList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamSpec": schema_pkg_apis_storage_v1_TeamSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamStatus": schema_pkg_apis_storage_v1_TeamStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart": schema_pkg_apis_storage_v1_TemplateHelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata": schema_pkg_apis_storage_v1_TemplateMetadata(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef": schema_pkg_apis_storage_v1_TemplateRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.User": schema_pkg_apis_storage_v1_User(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserList": schema_pkg_apis_storage_v1_UserList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam": schema_pkg_apis_storage_v1_UserOrTeam(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity": schema_pkg_apis_storage_v1_UserOrTeamEntity(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserSpec": schema_pkg_apis_storage_v1_UserSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserStatus": schema_pkg_apis_storage_v1_UserStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultAuthSpec": schema_pkg_apis_storage_v1_VaultAuthSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec": schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPoint": schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec": schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef": schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterCommonSpec": schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmChart": schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease": schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus": schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstance": schema_pkg_apis_storage_v1_VirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceList": schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceSpec": schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceStatus": schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterProSpec": schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterStatus": schema_pkg_apis_storage_v1_VirtualClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplate": schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateList": schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpec": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateStatus": schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion": schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceStatusResult": schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton": schema_pkg_apis_ui_v1_NavBarButton(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings": schema_pkg_apis_ui_v1_UISettings(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig": schema_pkg_apis_ui_v1_UISettingsConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsSpec": schema_pkg_apis_ui_v1_UISettingsSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsStatus": schema_pkg_apis_ui_v1_UISettingsStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmRelease": schema_pkg_apis_virtualcluster_v1_HelmRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseList": schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseSpec": schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseStatus": schema_pkg_apis_virtualcluster_v1_HelmReleaseStatus(ref), - "k8s.io/api/admissionregistration/v1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1_AuditAnnotation(ref), - "k8s.io/api/admissionregistration/v1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1_ExpressionWarning(ref), - "k8s.io/api/admissionregistration/v1.MatchCondition": schema_k8sio_api_admissionregistration_v1_MatchCondition(ref), - "k8s.io/api/admissionregistration/v1.MatchResources": schema_k8sio_api_admissionregistration_v1_MatchResources(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1.ParamKind": schema_k8sio_api_admissionregistration_v1_ParamKind(ref), - "k8s.io/api/admissionregistration/v1.ParamRef": schema_k8sio_api_admissionregistration_v1_ParamRef(ref), - "k8s.io/api/admissionregistration/v1.Rule": schema_k8sio_api_admissionregistration_v1_Rule(ref), - "k8s.io/api/admissionregistration/v1.RuleWithOperations": schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1.ServiceReference": schema_k8sio_api_admissionregistration_v1_ServiceReference(ref), - "k8s.io/api/admissionregistration/v1.TypeChecking": schema_k8sio_api_admissionregistration_v1_TypeChecking(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicy(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingList(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingSpec(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyList(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1.Validation": schema_k8sio_api_admissionregistration_v1_Validation(ref), - "k8s.io/api/admissionregistration/v1.Variable": schema_k8sio_api_admissionregistration_v1_Variable(ref), - "k8s.io/api/admissionregistration/v1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref), - "k8s.io/api/admissionregistration/v1beta1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref), - "k8s.io/api/admissionregistration/v1beta1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref), - "k8s.io/api/admissionregistration/v1beta1.MatchCondition": schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref), - "k8s.io/api/admissionregistration/v1beta1.MatchResources": schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1beta1.ParamKind": schema_k8sio_api_admissionregistration_v1beta1_ParamKind(ref), - "k8s.io/api/admissionregistration/v1beta1.ParamRef": schema_k8sio_api_admissionregistration_v1beta1_ParamRef(ref), - "k8s.io/api/admissionregistration/v1beta1.ServiceReference": schema_k8sio_api_admissionregistration_v1beta1_ServiceReference(ref), - "k8s.io/api/admissionregistration/v1beta1.TypeChecking": schema_k8sio_api_admissionregistration_v1beta1_TypeChecking(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicy(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBinding(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingList(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingSpec(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyList(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpec(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyStatus(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1beta1.Validation": schema_k8sio_api_admissionregistration_v1beta1_Validation(ref), - "k8s.io/api/admissionregistration/v1beta1.Variable": schema_k8sio_api_admissionregistration_v1beta1_Variable(ref), - "k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1beta1_WebhookClientConfig(ref), - "k8s.io/api/apps/v1.ControllerRevision": schema_k8sio_api_apps_v1_ControllerRevision(ref), - "k8s.io/api/apps/v1.ControllerRevisionList": schema_k8sio_api_apps_v1_ControllerRevisionList(ref), - "k8s.io/api/apps/v1.DaemonSet": schema_k8sio_api_apps_v1_DaemonSet(ref), - "k8s.io/api/apps/v1.DaemonSetCondition": schema_k8sio_api_apps_v1_DaemonSetCondition(ref), - "k8s.io/api/apps/v1.DaemonSetList": schema_k8sio_api_apps_v1_DaemonSetList(ref), - "k8s.io/api/apps/v1.DaemonSetSpec": schema_k8sio_api_apps_v1_DaemonSetSpec(ref), - "k8s.io/api/apps/v1.DaemonSetStatus": schema_k8sio_api_apps_v1_DaemonSetStatus(ref), - "k8s.io/api/apps/v1.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref), - "k8s.io/api/apps/v1.Deployment": schema_k8sio_api_apps_v1_Deployment(ref), - "k8s.io/api/apps/v1.DeploymentCondition": schema_k8sio_api_apps_v1_DeploymentCondition(ref), - "k8s.io/api/apps/v1.DeploymentList": schema_k8sio_api_apps_v1_DeploymentList(ref), - "k8s.io/api/apps/v1.DeploymentSpec": schema_k8sio_api_apps_v1_DeploymentSpec(ref), - "k8s.io/api/apps/v1.DeploymentStatus": schema_k8sio_api_apps_v1_DeploymentStatus(ref), - "k8s.io/api/apps/v1.DeploymentStrategy": schema_k8sio_api_apps_v1_DeploymentStrategy(ref), - "k8s.io/api/apps/v1.ReplicaSet": schema_k8sio_api_apps_v1_ReplicaSet(ref), - "k8s.io/api/apps/v1.ReplicaSetCondition": schema_k8sio_api_apps_v1_ReplicaSetCondition(ref), - "k8s.io/api/apps/v1.ReplicaSetList": schema_k8sio_api_apps_v1_ReplicaSetList(ref), - "k8s.io/api/apps/v1.ReplicaSetSpec": schema_k8sio_api_apps_v1_ReplicaSetSpec(ref), - "k8s.io/api/apps/v1.ReplicaSetStatus": schema_k8sio_api_apps_v1_ReplicaSetStatus(ref), - "k8s.io/api/apps/v1.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref), - "k8s.io/api/apps/v1.RollingUpdateDeployment": schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1.StatefulSet": schema_k8sio_api_apps_v1_StatefulSet(ref), - "k8s.io/api/apps/v1.StatefulSetCondition": schema_k8sio_api_apps_v1_StatefulSetCondition(ref), - "k8s.io/api/apps/v1.StatefulSetList": schema_k8sio_api_apps_v1_StatefulSetList(ref), - "k8s.io/api/apps/v1.StatefulSetOrdinals": schema_k8sio_api_apps_v1_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1.StatefulSetSpec": schema_k8sio_api_apps_v1_StatefulSetSpec(ref), - "k8s.io/api/apps/v1.StatefulSetStatus": schema_k8sio_api_apps_v1_StatefulSetStatus(ref), - "k8s.io/api/apps/v1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta1.ControllerRevision": schema_k8sio_api_apps_v1beta1_ControllerRevision(ref), - "k8s.io/api/apps/v1beta1.ControllerRevisionList": schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref), - "k8s.io/api/apps/v1beta1.Deployment": schema_k8sio_api_apps_v1beta1_Deployment(ref), - "k8s.io/api/apps/v1beta1.DeploymentCondition": schema_k8sio_api_apps_v1beta1_DeploymentCondition(ref), - "k8s.io/api/apps/v1beta1.DeploymentList": schema_k8sio_api_apps_v1beta1_DeploymentList(ref), - "k8s.io/api/apps/v1beta1.DeploymentRollback": schema_k8sio_api_apps_v1beta1_DeploymentRollback(ref), - "k8s.io/api/apps/v1beta1.DeploymentSpec": schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref), - "k8s.io/api/apps/v1beta1.DeploymentStatus": schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref), - "k8s.io/api/apps/v1beta1.DeploymentStrategy": schema_k8sio_api_apps_v1beta1_DeploymentStrategy(ref), - "k8s.io/api/apps/v1beta1.RollbackConfig": schema_k8sio_api_apps_v1beta1_RollbackConfig(ref), - "k8s.io/api/apps/v1beta1.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta1_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1beta1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta1_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1beta1.Scale": schema_k8sio_api_apps_v1beta1_Scale(ref), - "k8s.io/api/apps/v1beta1.ScaleSpec": schema_k8sio_api_apps_v1beta1_ScaleSpec(ref), - "k8s.io/api/apps/v1beta1.ScaleStatus": schema_k8sio_api_apps_v1beta1_ScaleStatus(ref), - "k8s.io/api/apps/v1beta1.StatefulSet": schema_k8sio_api_apps_v1beta1_StatefulSet(ref), - "k8s.io/api/apps/v1beta1.StatefulSetCondition": schema_k8sio_api_apps_v1beta1_StatefulSetCondition(ref), - "k8s.io/api/apps/v1beta1.StatefulSetList": schema_k8sio_api_apps_v1beta1_StatefulSetList(ref), - "k8s.io/api/apps/v1beta1.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta1_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1beta1.StatefulSetSpec": schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref), - "k8s.io/api/apps/v1beta1.StatefulSetStatus": schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref), - "k8s.io/api/apps/v1beta1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta1_StatefulSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta2.ControllerRevision": schema_k8sio_api_apps_v1beta2_ControllerRevision(ref), - "k8s.io/api/apps/v1beta2.ControllerRevisionList": schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref), - "k8s.io/api/apps/v1beta2.DaemonSet": schema_k8sio_api_apps_v1beta2_DaemonSet(ref), - "k8s.io/api/apps/v1beta2.DaemonSetCondition": schema_k8sio_api_apps_v1beta2_DaemonSetCondition(ref), - "k8s.io/api/apps/v1beta2.DaemonSetList": schema_k8sio_api_apps_v1beta2_DaemonSetList(ref), - "k8s.io/api/apps/v1beta2.DaemonSetSpec": schema_k8sio_api_apps_v1beta2_DaemonSetSpec(ref), - "k8s.io/api/apps/v1beta2.DaemonSetStatus": schema_k8sio_api_apps_v1beta2_DaemonSetStatus(ref), - "k8s.io/api/apps/v1beta2.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_DaemonSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta2.Deployment": schema_k8sio_api_apps_v1beta2_Deployment(ref), - "k8s.io/api/apps/v1beta2.DeploymentCondition": schema_k8sio_api_apps_v1beta2_DeploymentCondition(ref), - "k8s.io/api/apps/v1beta2.DeploymentList": schema_k8sio_api_apps_v1beta2_DeploymentList(ref), - "k8s.io/api/apps/v1beta2.DeploymentSpec": schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref), - "k8s.io/api/apps/v1beta2.DeploymentStatus": schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref), - "k8s.io/api/apps/v1beta2.DeploymentStrategy": schema_k8sio_api_apps_v1beta2_DeploymentStrategy(ref), - "k8s.io/api/apps/v1beta2.ReplicaSet": schema_k8sio_api_apps_v1beta2_ReplicaSet(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetCondition": schema_k8sio_api_apps_v1beta2_ReplicaSetCondition(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetList": schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetSpec": schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetStatus": schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta2_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta2_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1beta2.Scale": schema_k8sio_api_apps_v1beta2_Scale(ref), - "k8s.io/api/apps/v1beta2.ScaleSpec": schema_k8sio_api_apps_v1beta2_ScaleSpec(ref), - "k8s.io/api/apps/v1beta2.ScaleStatus": schema_k8sio_api_apps_v1beta2_ScaleStatus(ref), - "k8s.io/api/apps/v1beta2.StatefulSet": schema_k8sio_api_apps_v1beta2_StatefulSet(ref), - "k8s.io/api/apps/v1beta2.StatefulSetCondition": schema_k8sio_api_apps_v1beta2_StatefulSetCondition(ref), - "k8s.io/api/apps/v1beta2.StatefulSetList": schema_k8sio_api_apps_v1beta2_StatefulSetList(ref), - "k8s.io/api/apps/v1beta2.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta2_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta2_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1beta2.StatefulSetSpec": schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref), - "k8s.io/api/apps/v1beta2.StatefulSetStatus": schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref), - "k8s.io/api/apps/v1beta2.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_StatefulSetUpdateStrategy(ref), - "k8s.io/api/authentication/v1.BoundObjectReference": schema_k8sio_api_authentication_v1_BoundObjectReference(ref), - "k8s.io/api/authentication/v1.SelfSubjectReview": schema_k8sio_api_authentication_v1_SelfSubjectReview(ref), - "k8s.io/api/authentication/v1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1_SelfSubjectReviewStatus(ref), - "k8s.io/api/authentication/v1.TokenRequest": schema_k8sio_api_authentication_v1_TokenRequest(ref), - "k8s.io/api/authentication/v1.TokenRequestSpec": schema_k8sio_api_authentication_v1_TokenRequestSpec(ref), - "k8s.io/api/authentication/v1.TokenRequestStatus": schema_k8sio_api_authentication_v1_TokenRequestStatus(ref), - "k8s.io/api/authentication/v1.TokenReview": schema_k8sio_api_authentication_v1_TokenReview(ref), - "k8s.io/api/authentication/v1.TokenReviewSpec": schema_k8sio_api_authentication_v1_TokenReviewSpec(ref), - "k8s.io/api/authentication/v1.TokenReviewStatus": schema_k8sio_api_authentication_v1_TokenReviewStatus(ref), - "k8s.io/api/authentication/v1.UserInfo": schema_k8sio_api_authentication_v1_UserInfo(ref), - "k8s.io/api/authentication/v1beta1.SelfSubjectReview": schema_k8sio_api_authentication_v1beta1_SelfSubjectReview(ref), - "k8s.io/api/authentication/v1beta1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1beta1_SelfSubjectReviewStatus(ref), - "k8s.io/api/authentication/v1beta1.TokenReview": schema_k8sio_api_authentication_v1beta1_TokenReview(ref), - "k8s.io/api/authentication/v1beta1.TokenReviewSpec": schema_k8sio_api_authentication_v1beta1_TokenReviewSpec(ref), - "k8s.io/api/authentication/v1beta1.TokenReviewStatus": schema_k8sio_api_authentication_v1beta1_TokenReviewStatus(ref), - "k8s.io/api/authentication/v1beta1.UserInfo": schema_k8sio_api_authentication_v1beta1_UserInfo(ref), - "k8s.io/api/authorization/v1.FieldSelectorAttributes": schema_k8sio_api_authorization_v1_FieldSelectorAttributes(ref), - "k8s.io/api/authorization/v1.LabelSelectorAttributes": schema_k8sio_api_authorization_v1_LabelSelectorAttributes(ref), - "k8s.io/api/authorization/v1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1_LocalSubjectAccessReview(ref), - "k8s.io/api/authorization/v1.NonResourceAttributes": schema_k8sio_api_authorization_v1_NonResourceAttributes(ref), - "k8s.io/api/authorization/v1.NonResourceRule": schema_k8sio_api_authorization_v1_NonResourceRule(ref), - "k8s.io/api/authorization/v1.ResourceAttributes": schema_k8sio_api_authorization_v1_ResourceAttributes(ref), - "k8s.io/api/authorization/v1.ResourceRule": schema_k8sio_api_authorization_v1_ResourceRule(ref), - "k8s.io/api/authorization/v1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1_SelfSubjectAccessReview(ref), - "k8s.io/api/authorization/v1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1_SelfSubjectRulesReview(ref), - "k8s.io/api/authorization/v1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectRulesReviewSpec(ref), - "k8s.io/api/authorization/v1.SubjectAccessReview": schema_k8sio_api_authorization_v1_SubjectAccessReview(ref), - "k8s.io/api/authorization/v1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1_SubjectAccessReviewStatus(ref), - "k8s.io/api/authorization/v1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref), - "k8s.io/api/authorization/v1beta1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_LocalSubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.NonResourceAttributes": schema_k8sio_api_authorization_v1beta1_NonResourceAttributes(ref), - "k8s.io/api/authorization/v1beta1.NonResourceRule": schema_k8sio_api_authorization_v1beta1_NonResourceRule(ref), - "k8s.io/api/authorization/v1beta1.ResourceAttributes": schema_k8sio_api_authorization_v1beta1_ResourceAttributes(ref), - "k8s.io/api/authorization/v1beta1.ResourceRule": schema_k8sio_api_authorization_v1beta1_ResourceRule(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReview(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewStatus(ref), - "k8s.io/api/authorization/v1beta1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref), - "k8s.io/api/autoscaling/v1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v1_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v1.ExternalMetricSource": schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v1.MetricSpec": schema_k8sio_api_autoscaling_v1_MetricSpec(ref), - "k8s.io/api/autoscaling/v1.MetricStatus": schema_k8sio_api_autoscaling_v1_MetricStatus(ref), - "k8s.io/api/autoscaling/v1.ObjectMetricSource": schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v1.PodsMetricSource": schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v1.PodsMetricStatus": schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v1.ResourceMetricSource": schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v1.Scale": schema_k8sio_api_autoscaling_v1_Scale(ref), - "k8s.io/api/autoscaling/v1.ScaleSpec": schema_k8sio_api_autoscaling_v1_ScaleSpec(ref), - "k8s.io/api/autoscaling/v1.ScaleStatus": schema_k8sio_api_autoscaling_v1_ScaleStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta1_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v2beta1.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v2beta1.MetricSpec": schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref), - "k8s.io/api/autoscaling/v2beta1.MetricStatus": schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta1_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta1_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta2_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v2beta2.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.HPAScalingPolicy": schema_k8sio_api_autoscaling_v2beta2_HPAScalingPolicy(ref), - "k8s.io/api/autoscaling/v2beta2.HPAScalingRules": schema_k8sio_api_autoscaling_v2beta2_HPAScalingRules(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerBehavior": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerBehavior(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v2beta2.MetricIdentifier": schema_k8sio_api_autoscaling_v2beta2_MetricIdentifier(ref), - "k8s.io/api/autoscaling/v2beta2.MetricSpec": schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref), - "k8s.io/api/autoscaling/v2beta2.MetricStatus": schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.MetricTarget": schema_k8sio_api_autoscaling_v2beta2_MetricTarget(ref), - "k8s.io/api/autoscaling/v2beta2.MetricValueStatus": schema_k8sio_api_autoscaling_v2beta2_MetricValueStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta2_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta2_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricStatus(ref), - "k8s.io/api/batch/v1.CronJob": schema_k8sio_api_batch_v1_CronJob(ref), - "k8s.io/api/batch/v1.CronJobList": schema_k8sio_api_batch_v1_CronJobList(ref), - "k8s.io/api/batch/v1.CronJobSpec": schema_k8sio_api_batch_v1_CronJobSpec(ref), - "k8s.io/api/batch/v1.CronJobStatus": schema_k8sio_api_batch_v1_CronJobStatus(ref), - "k8s.io/api/batch/v1.Job": schema_k8sio_api_batch_v1_Job(ref), - "k8s.io/api/batch/v1.JobCondition": schema_k8sio_api_batch_v1_JobCondition(ref), - "k8s.io/api/batch/v1.JobList": schema_k8sio_api_batch_v1_JobList(ref), - "k8s.io/api/batch/v1.JobSpec": schema_k8sio_api_batch_v1_JobSpec(ref), - "k8s.io/api/batch/v1.JobStatus": schema_k8sio_api_batch_v1_JobStatus(ref), - "k8s.io/api/batch/v1.JobTemplateSpec": schema_k8sio_api_batch_v1_JobTemplateSpec(ref), - "k8s.io/api/batch/v1.PodFailurePolicy": schema_k8sio_api_batch_v1_PodFailurePolicy(ref), - "k8s.io/api/batch/v1.PodFailurePolicyOnExitCodesRequirement": schema_k8sio_api_batch_v1_PodFailurePolicyOnExitCodesRequirement(ref), - "k8s.io/api/batch/v1.PodFailurePolicyOnPodConditionsPattern": schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref), - "k8s.io/api/batch/v1.PodFailurePolicyRule": schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref), - "k8s.io/api/batch/v1.SuccessPolicy": schema_k8sio_api_batch_v1_SuccessPolicy(ref), - "k8s.io/api/batch/v1.SuccessPolicyRule": schema_k8sio_api_batch_v1_SuccessPolicyRule(ref), - "k8s.io/api/batch/v1.UncountedTerminatedPods": schema_k8sio_api_batch_v1_UncountedTerminatedPods(ref), - "k8s.io/api/batch/v1beta1.CronJob": schema_k8sio_api_batch_v1beta1_CronJob(ref), - "k8s.io/api/batch/v1beta1.CronJobList": schema_k8sio_api_batch_v1beta1_CronJobList(ref), - "k8s.io/api/batch/v1beta1.CronJobSpec": schema_k8sio_api_batch_v1beta1_CronJobSpec(ref), - "k8s.io/api/batch/v1beta1.CronJobStatus": schema_k8sio_api_batch_v1beta1_CronJobStatus(ref), - "k8s.io/api/batch/v1beta1.JobTemplateSpec": schema_k8sio_api_batch_v1beta1_JobTemplateSpec(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequest": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequest(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestCondition": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestCondition(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestList": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestSpec": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestSpec(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestStatus": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref), - "k8s.io/api/coordination/v1.Lease": schema_k8sio_api_coordination_v1_Lease(ref), - "k8s.io/api/coordination/v1.LeaseList": schema_k8sio_api_coordination_v1_LeaseList(ref), - "k8s.io/api/coordination/v1.LeaseSpec": schema_k8sio_api_coordination_v1_LeaseSpec(ref), - "k8s.io/api/coordination/v1beta1.Lease": schema_k8sio_api_coordination_v1beta1_Lease(ref), - "k8s.io/api/coordination/v1beta1.LeaseList": schema_k8sio_api_coordination_v1beta1_LeaseList(ref), - "k8s.io/api/coordination/v1beta1.LeaseSpec": schema_k8sio_api_coordination_v1beta1_LeaseSpec(ref), - "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource": schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), - "k8s.io/api/core/v1.Affinity": schema_k8sio_api_core_v1_Affinity(ref), - "k8s.io/api/core/v1.AppArmorProfile": schema_k8sio_api_core_v1_AppArmorProfile(ref), - "k8s.io/api/core/v1.AttachedVolume": schema_k8sio_api_core_v1_AttachedVolume(ref), - "k8s.io/api/core/v1.AvoidPods": schema_k8sio_api_core_v1_AvoidPods(ref), - "k8s.io/api/core/v1.AzureDiskVolumeSource": schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref), - "k8s.io/api/core/v1.AzureFilePersistentVolumeSource": schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref), - "k8s.io/api/core/v1.AzureFileVolumeSource": schema_k8sio_api_core_v1_AzureFileVolumeSource(ref), - "k8s.io/api/core/v1.Binding": schema_k8sio_api_core_v1_Binding(ref), - "k8s.io/api/core/v1.CSIPersistentVolumeSource": schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref), - "k8s.io/api/core/v1.CSIVolumeSource": schema_k8sio_api_core_v1_CSIVolumeSource(ref), - "k8s.io/api/core/v1.Capabilities": schema_k8sio_api_core_v1_Capabilities(ref), - "k8s.io/api/core/v1.CephFSPersistentVolumeSource": schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref), - "k8s.io/api/core/v1.CephFSVolumeSource": schema_k8sio_api_core_v1_CephFSVolumeSource(ref), - "k8s.io/api/core/v1.CinderPersistentVolumeSource": schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref), - "k8s.io/api/core/v1.CinderVolumeSource": schema_k8sio_api_core_v1_CinderVolumeSource(ref), - "k8s.io/api/core/v1.ClientIPConfig": schema_k8sio_api_core_v1_ClientIPConfig(ref), - "k8s.io/api/core/v1.ClusterTrustBundleProjection": schema_k8sio_api_core_v1_ClusterTrustBundleProjection(ref), - "k8s.io/api/core/v1.ComponentCondition": schema_k8sio_api_core_v1_ComponentCondition(ref), - "k8s.io/api/core/v1.ComponentStatus": schema_k8sio_api_core_v1_ComponentStatus(ref), - "k8s.io/api/core/v1.ComponentStatusList": schema_k8sio_api_core_v1_ComponentStatusList(ref), - "k8s.io/api/core/v1.ConfigMap": schema_k8sio_api_core_v1_ConfigMap(ref), - "k8s.io/api/core/v1.ConfigMapEnvSource": schema_k8sio_api_core_v1_ConfigMapEnvSource(ref), - "k8s.io/api/core/v1.ConfigMapKeySelector": schema_k8sio_api_core_v1_ConfigMapKeySelector(ref), - "k8s.io/api/core/v1.ConfigMapList": schema_k8sio_api_core_v1_ConfigMapList(ref), - "k8s.io/api/core/v1.ConfigMapNodeConfigSource": schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref), - "k8s.io/api/core/v1.ConfigMapProjection": schema_k8sio_api_core_v1_ConfigMapProjection(ref), - "k8s.io/api/core/v1.ConfigMapVolumeSource": schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref), - "k8s.io/api/core/v1.Container": schema_k8sio_api_core_v1_Container(ref), - "k8s.io/api/core/v1.ContainerImage": schema_k8sio_api_core_v1_ContainerImage(ref), - "k8s.io/api/core/v1.ContainerPort": schema_k8sio_api_core_v1_ContainerPort(ref), - "k8s.io/api/core/v1.ContainerResizePolicy": schema_k8sio_api_core_v1_ContainerResizePolicy(ref), - "k8s.io/api/core/v1.ContainerState": schema_k8sio_api_core_v1_ContainerState(ref), - "k8s.io/api/core/v1.ContainerStateRunning": schema_k8sio_api_core_v1_ContainerStateRunning(ref), - "k8s.io/api/core/v1.ContainerStateTerminated": schema_k8sio_api_core_v1_ContainerStateTerminated(ref), - "k8s.io/api/core/v1.ContainerStateWaiting": schema_k8sio_api_core_v1_ContainerStateWaiting(ref), - "k8s.io/api/core/v1.ContainerStatus": schema_k8sio_api_core_v1_ContainerStatus(ref), - "k8s.io/api/core/v1.ContainerUser": schema_k8sio_api_core_v1_ContainerUser(ref), - "k8s.io/api/core/v1.DaemonEndpoint": schema_k8sio_api_core_v1_DaemonEndpoint(ref), - "k8s.io/api/core/v1.DownwardAPIProjection": schema_k8sio_api_core_v1_DownwardAPIProjection(ref), - "k8s.io/api/core/v1.DownwardAPIVolumeFile": schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref), - "k8s.io/api/core/v1.DownwardAPIVolumeSource": schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref), - "k8s.io/api/core/v1.EmptyDirVolumeSource": schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref), - "k8s.io/api/core/v1.EndpointAddress": schema_k8sio_api_core_v1_EndpointAddress(ref), - "k8s.io/api/core/v1.EndpointPort": schema_k8sio_api_core_v1_EndpointPort(ref), - "k8s.io/api/core/v1.EndpointSubset": schema_k8sio_api_core_v1_EndpointSubset(ref), - "k8s.io/api/core/v1.Endpoints": schema_k8sio_api_core_v1_Endpoints(ref), - "k8s.io/api/core/v1.EndpointsList": schema_k8sio_api_core_v1_EndpointsList(ref), - "k8s.io/api/core/v1.EnvFromSource": schema_k8sio_api_core_v1_EnvFromSource(ref), - "k8s.io/api/core/v1.EnvVar": schema_k8sio_api_core_v1_EnvVar(ref), - "k8s.io/api/core/v1.EnvVarSource": schema_k8sio_api_core_v1_EnvVarSource(ref), - "k8s.io/api/core/v1.EphemeralContainer": schema_k8sio_api_core_v1_EphemeralContainer(ref), - "k8s.io/api/core/v1.EphemeralContainerCommon": schema_k8sio_api_core_v1_EphemeralContainerCommon(ref), - "k8s.io/api/core/v1.EphemeralVolumeSource": schema_k8sio_api_core_v1_EphemeralVolumeSource(ref), - "k8s.io/api/core/v1.Event": schema_k8sio_api_core_v1_Event(ref), - "k8s.io/api/core/v1.EventList": schema_k8sio_api_core_v1_EventList(ref), - "k8s.io/api/core/v1.EventSeries": schema_k8sio_api_core_v1_EventSeries(ref), - "k8s.io/api/core/v1.EventSource": schema_k8sio_api_core_v1_EventSource(ref), - "k8s.io/api/core/v1.ExecAction": schema_k8sio_api_core_v1_ExecAction(ref), - "k8s.io/api/core/v1.FCVolumeSource": schema_k8sio_api_core_v1_FCVolumeSource(ref), - "k8s.io/api/core/v1.FlexPersistentVolumeSource": schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref), - "k8s.io/api/core/v1.FlexVolumeSource": schema_k8sio_api_core_v1_FlexVolumeSource(ref), - "k8s.io/api/core/v1.FlockerVolumeSource": schema_k8sio_api_core_v1_FlockerVolumeSource(ref), - "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource": schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref), - "k8s.io/api/core/v1.GRPCAction": schema_k8sio_api_core_v1_GRPCAction(ref), - "k8s.io/api/core/v1.GitRepoVolumeSource": schema_k8sio_api_core_v1_GitRepoVolumeSource(ref), - "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource": schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref), - "k8s.io/api/core/v1.GlusterfsVolumeSource": schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref), - "k8s.io/api/core/v1.HTTPGetAction": schema_k8sio_api_core_v1_HTTPGetAction(ref), - "k8s.io/api/core/v1.HTTPHeader": schema_k8sio_api_core_v1_HTTPHeader(ref), - "k8s.io/api/core/v1.HostAlias": schema_k8sio_api_core_v1_HostAlias(ref), - "k8s.io/api/core/v1.HostIP": schema_k8sio_api_core_v1_HostIP(ref), - "k8s.io/api/core/v1.HostPathVolumeSource": schema_k8sio_api_core_v1_HostPathVolumeSource(ref), - "k8s.io/api/core/v1.ISCSIPersistentVolumeSource": schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref), - "k8s.io/api/core/v1.ISCSIVolumeSource": schema_k8sio_api_core_v1_ISCSIVolumeSource(ref), - "k8s.io/api/core/v1.ImageVolumeSource": schema_k8sio_api_core_v1_ImageVolumeSource(ref), - "k8s.io/api/core/v1.KeyToPath": schema_k8sio_api_core_v1_KeyToPath(ref), - "k8s.io/api/core/v1.Lifecycle": schema_k8sio_api_core_v1_Lifecycle(ref), - "k8s.io/api/core/v1.LifecycleHandler": schema_k8sio_api_core_v1_LifecycleHandler(ref), - "k8s.io/api/core/v1.LimitRange": schema_k8sio_api_core_v1_LimitRange(ref), - "k8s.io/api/core/v1.LimitRangeItem": schema_k8sio_api_core_v1_LimitRangeItem(ref), - "k8s.io/api/core/v1.LimitRangeList": schema_k8sio_api_core_v1_LimitRangeList(ref), - "k8s.io/api/core/v1.LimitRangeSpec": schema_k8sio_api_core_v1_LimitRangeSpec(ref), - "k8s.io/api/core/v1.LinuxContainerUser": schema_k8sio_api_core_v1_LinuxContainerUser(ref), - "k8s.io/api/core/v1.List": schema_k8sio_api_core_v1_List(ref), - "k8s.io/api/core/v1.LoadBalancerIngress": schema_k8sio_api_core_v1_LoadBalancerIngress(ref), - "k8s.io/api/core/v1.LoadBalancerStatus": schema_k8sio_api_core_v1_LoadBalancerStatus(ref), - "k8s.io/api/core/v1.LocalObjectReference": schema_k8sio_api_core_v1_LocalObjectReference(ref), - "k8s.io/api/core/v1.LocalVolumeSource": schema_k8sio_api_core_v1_LocalVolumeSource(ref), - "k8s.io/api/core/v1.ModifyVolumeStatus": schema_k8sio_api_core_v1_ModifyVolumeStatus(ref), - "k8s.io/api/core/v1.NFSVolumeSource": schema_k8sio_api_core_v1_NFSVolumeSource(ref), - "k8s.io/api/core/v1.Namespace": schema_k8sio_api_core_v1_Namespace(ref), - "k8s.io/api/core/v1.NamespaceCondition": schema_k8sio_api_core_v1_NamespaceCondition(ref), - "k8s.io/api/core/v1.NamespaceList": schema_k8sio_api_core_v1_NamespaceList(ref), - "k8s.io/api/core/v1.NamespaceSpec": schema_k8sio_api_core_v1_NamespaceSpec(ref), - "k8s.io/api/core/v1.NamespaceStatus": schema_k8sio_api_core_v1_NamespaceStatus(ref), - "k8s.io/api/core/v1.Node": schema_k8sio_api_core_v1_Node(ref), - "k8s.io/api/core/v1.NodeAddress": schema_k8sio_api_core_v1_NodeAddress(ref), - "k8s.io/api/core/v1.NodeAffinity": schema_k8sio_api_core_v1_NodeAffinity(ref), - "k8s.io/api/core/v1.NodeCondition": schema_k8sio_api_core_v1_NodeCondition(ref), - "k8s.io/api/core/v1.NodeConfigSource": schema_k8sio_api_core_v1_NodeConfigSource(ref), - "k8s.io/api/core/v1.NodeConfigStatus": schema_k8sio_api_core_v1_NodeConfigStatus(ref), - "k8s.io/api/core/v1.NodeDaemonEndpoints": schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref), - "k8s.io/api/core/v1.NodeFeatures": schema_k8sio_api_core_v1_NodeFeatures(ref), - "k8s.io/api/core/v1.NodeList": schema_k8sio_api_core_v1_NodeList(ref), - "k8s.io/api/core/v1.NodeProxyOptions": schema_k8sio_api_core_v1_NodeProxyOptions(ref), - "k8s.io/api/core/v1.NodeRuntimeHandler": schema_k8sio_api_core_v1_NodeRuntimeHandler(ref), - "k8s.io/api/core/v1.NodeRuntimeHandlerFeatures": schema_k8sio_api_core_v1_NodeRuntimeHandlerFeatures(ref), - "k8s.io/api/core/v1.NodeSelector": schema_k8sio_api_core_v1_NodeSelector(ref), - "k8s.io/api/core/v1.NodeSelectorRequirement": schema_k8sio_api_core_v1_NodeSelectorRequirement(ref), - "k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref), - "k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref), - "k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref), - "k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref), - "k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref), - "k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref), - "k8s.io/api/core/v1.PersistentVolume": schema_k8sio_api_core_v1_PersistentVolume(ref), - "k8s.io/api/core/v1.PersistentVolumeClaim": schema_k8sio_api_core_v1_PersistentVolumeClaim(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimCondition": schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimList": schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimSpec": schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimStatus": schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimTemplate": schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref), - "k8s.io/api/core/v1.PersistentVolumeList": schema_k8sio_api_core_v1_PersistentVolumeList(ref), - "k8s.io/api/core/v1.PersistentVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeSource(ref), - "k8s.io/api/core/v1.PersistentVolumeSpec": schema_k8sio_api_core_v1_PersistentVolumeSpec(ref), - "k8s.io/api/core/v1.PersistentVolumeStatus": schema_k8sio_api_core_v1_PersistentVolumeStatus(ref), - "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource": schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref), - "k8s.io/api/core/v1.Pod": schema_k8sio_api_core_v1_Pod(ref), - "k8s.io/api/core/v1.PodAffinity": schema_k8sio_api_core_v1_PodAffinity(ref), - "k8s.io/api/core/v1.PodAffinityTerm": schema_k8sio_api_core_v1_PodAffinityTerm(ref), - "k8s.io/api/core/v1.PodAntiAffinity": schema_k8sio_api_core_v1_PodAntiAffinity(ref), - "k8s.io/api/core/v1.PodAttachOptions": schema_k8sio_api_core_v1_PodAttachOptions(ref), - "k8s.io/api/core/v1.PodCondition": schema_k8sio_api_core_v1_PodCondition(ref), - "k8s.io/api/core/v1.PodDNSConfig": schema_k8sio_api_core_v1_PodDNSConfig(ref), - "k8s.io/api/core/v1.PodDNSConfigOption": schema_k8sio_api_core_v1_PodDNSConfigOption(ref), - "k8s.io/api/core/v1.PodExecOptions": schema_k8sio_api_core_v1_PodExecOptions(ref), - "k8s.io/api/core/v1.PodIP": schema_k8sio_api_core_v1_PodIP(ref), - "k8s.io/api/core/v1.PodList": schema_k8sio_api_core_v1_PodList(ref), - "k8s.io/api/core/v1.PodLogOptions": schema_k8sio_api_core_v1_PodLogOptions(ref), - "k8s.io/api/core/v1.PodOS": schema_k8sio_api_core_v1_PodOS(ref), - "k8s.io/api/core/v1.PodPortForwardOptions": schema_k8sio_api_core_v1_PodPortForwardOptions(ref), - "k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref), - "k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref), - "k8s.io/api/core/v1.PodResourceClaim": schema_k8sio_api_core_v1_PodResourceClaim(ref), - "k8s.io/api/core/v1.PodResourceClaimStatus": schema_k8sio_api_core_v1_PodResourceClaimStatus(ref), - "k8s.io/api/core/v1.PodSchedulingGate": schema_k8sio_api_core_v1_PodSchedulingGate(ref), - "k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref), - "k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref), - "k8s.io/api/core/v1.PodSpec": schema_k8sio_api_core_v1_PodSpec(ref), - "k8s.io/api/core/v1.PodStatus": schema_k8sio_api_core_v1_PodStatus(ref), - "k8s.io/api/core/v1.PodStatusResult": schema_k8sio_api_core_v1_PodStatusResult(ref), - "k8s.io/api/core/v1.PodTemplate": schema_k8sio_api_core_v1_PodTemplate(ref), - "k8s.io/api/core/v1.PodTemplateList": schema_k8sio_api_core_v1_PodTemplateList(ref), - "k8s.io/api/core/v1.PodTemplateSpec": schema_k8sio_api_core_v1_PodTemplateSpec(ref), - "k8s.io/api/core/v1.PortStatus": schema_k8sio_api_core_v1_PortStatus(ref), - "k8s.io/api/core/v1.PortworxVolumeSource": schema_k8sio_api_core_v1_PortworxVolumeSource(ref), - "k8s.io/api/core/v1.PreferAvoidPodsEntry": schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref), - "k8s.io/api/core/v1.PreferredSchedulingTerm": schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref), - "k8s.io/api/core/v1.Probe": schema_k8sio_api_core_v1_Probe(ref), - "k8s.io/api/core/v1.ProbeHandler": schema_k8sio_api_core_v1_ProbeHandler(ref), - "k8s.io/api/core/v1.ProjectedVolumeSource": schema_k8sio_api_core_v1_ProjectedVolumeSource(ref), - "k8s.io/api/core/v1.QuobyteVolumeSource": schema_k8sio_api_core_v1_QuobyteVolumeSource(ref), - "k8s.io/api/core/v1.RBDPersistentVolumeSource": schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref), - "k8s.io/api/core/v1.RBDVolumeSource": schema_k8sio_api_core_v1_RBDVolumeSource(ref), - "k8s.io/api/core/v1.RangeAllocation": schema_k8sio_api_core_v1_RangeAllocation(ref), - "k8s.io/api/core/v1.ReplicationController": schema_k8sio_api_core_v1_ReplicationController(ref), - "k8s.io/api/core/v1.ReplicationControllerCondition": schema_k8sio_api_core_v1_ReplicationControllerCondition(ref), - "k8s.io/api/core/v1.ReplicationControllerList": schema_k8sio_api_core_v1_ReplicationControllerList(ref), - "k8s.io/api/core/v1.ReplicationControllerSpec": schema_k8sio_api_core_v1_ReplicationControllerSpec(ref), - "k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref), - "k8s.io/api/core/v1.ResourceClaim": schema_k8sio_api_core_v1_ResourceClaim(ref), - "k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref), - "k8s.io/api/core/v1.ResourceHealth": schema_k8sio_api_core_v1_ResourceHealth(ref), - "k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref), - "k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref), - "k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref), - "k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref), - "k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref), - "k8s.io/api/core/v1.ResourceStatus": schema_k8sio_api_core_v1_ResourceStatus(ref), - "k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref), - "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref), - "k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref), - "k8s.io/api/core/v1.ScopeSelector": schema_k8sio_api_core_v1_ScopeSelector(ref), - "k8s.io/api/core/v1.ScopedResourceSelectorRequirement": schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref), - "k8s.io/api/core/v1.SeccompProfile": schema_k8sio_api_core_v1_SeccompProfile(ref), - "k8s.io/api/core/v1.Secret": schema_k8sio_api_core_v1_Secret(ref), - "k8s.io/api/core/v1.SecretEnvSource": schema_k8sio_api_core_v1_SecretEnvSource(ref), - "k8s.io/api/core/v1.SecretKeySelector": schema_k8sio_api_core_v1_SecretKeySelector(ref), - "k8s.io/api/core/v1.SecretList": schema_k8sio_api_core_v1_SecretList(ref), - "k8s.io/api/core/v1.SecretProjection": schema_k8sio_api_core_v1_SecretProjection(ref), - "k8s.io/api/core/v1.SecretReference": schema_k8sio_api_core_v1_SecretReference(ref), - "k8s.io/api/core/v1.SecretVolumeSource": schema_k8sio_api_core_v1_SecretVolumeSource(ref), - "k8s.io/api/core/v1.SecurityContext": schema_k8sio_api_core_v1_SecurityContext(ref), - "k8s.io/api/core/v1.SerializedReference": schema_k8sio_api_core_v1_SerializedReference(ref), - "k8s.io/api/core/v1.Service": schema_k8sio_api_core_v1_Service(ref), - "k8s.io/api/core/v1.ServiceAccount": schema_k8sio_api_core_v1_ServiceAccount(ref), - "k8s.io/api/core/v1.ServiceAccountList": schema_k8sio_api_core_v1_ServiceAccountList(ref), - "k8s.io/api/core/v1.ServiceAccountTokenProjection": schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref), - "k8s.io/api/core/v1.ServiceList": schema_k8sio_api_core_v1_ServiceList(ref), - "k8s.io/api/core/v1.ServicePort": schema_k8sio_api_core_v1_ServicePort(ref), - "k8s.io/api/core/v1.ServiceProxyOptions": schema_k8sio_api_core_v1_ServiceProxyOptions(ref), - "k8s.io/api/core/v1.ServiceSpec": schema_k8sio_api_core_v1_ServiceSpec(ref), - "k8s.io/api/core/v1.ServiceStatus": schema_k8sio_api_core_v1_ServiceStatus(ref), - "k8s.io/api/core/v1.SessionAffinityConfig": schema_k8sio_api_core_v1_SessionAffinityConfig(ref), - "k8s.io/api/core/v1.SleepAction": schema_k8sio_api_core_v1_SleepAction(ref), - "k8s.io/api/core/v1.StorageOSPersistentVolumeSource": schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref), - "k8s.io/api/core/v1.StorageOSVolumeSource": schema_k8sio_api_core_v1_StorageOSVolumeSource(ref), - "k8s.io/api/core/v1.Sysctl": schema_k8sio_api_core_v1_Sysctl(ref), - "k8s.io/api/core/v1.TCPSocketAction": schema_k8sio_api_core_v1_TCPSocketAction(ref), - "k8s.io/api/core/v1.Taint": schema_k8sio_api_core_v1_Taint(ref), - "k8s.io/api/core/v1.Toleration": schema_k8sio_api_core_v1_Toleration(ref), - "k8s.io/api/core/v1.TopologySelectorLabelRequirement": schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref), - "k8s.io/api/core/v1.TopologySelectorTerm": schema_k8sio_api_core_v1_TopologySelectorTerm(ref), - "k8s.io/api/core/v1.TopologySpreadConstraint": schema_k8sio_api_core_v1_TopologySpreadConstraint(ref), - "k8s.io/api/core/v1.TypedLocalObjectReference": schema_k8sio_api_core_v1_TypedLocalObjectReference(ref), - "k8s.io/api/core/v1.TypedObjectReference": schema_k8sio_api_core_v1_TypedObjectReference(ref), - "k8s.io/api/core/v1.Volume": schema_k8sio_api_core_v1_Volume(ref), - "k8s.io/api/core/v1.VolumeDevice": schema_k8sio_api_core_v1_VolumeDevice(ref), - "k8s.io/api/core/v1.VolumeMount": schema_k8sio_api_core_v1_VolumeMount(ref), - "k8s.io/api/core/v1.VolumeMountStatus": schema_k8sio_api_core_v1_VolumeMountStatus(ref), - "k8s.io/api/core/v1.VolumeNodeAffinity": schema_k8sio_api_core_v1_VolumeNodeAffinity(ref), - "k8s.io/api/core/v1.VolumeProjection": schema_k8sio_api_core_v1_VolumeProjection(ref), - "k8s.io/api/core/v1.VolumeResourceRequirements": schema_k8sio_api_core_v1_VolumeResourceRequirements(ref), - "k8s.io/api/core/v1.VolumeSource": schema_k8sio_api_core_v1_VolumeSource(ref), - "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource": schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref), - "k8s.io/api/core/v1.WeightedPodAffinityTerm": schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref), - "k8s.io/api/core/v1.WindowsSecurityContextOptions": schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref), - "k8s.io/api/events/v1beta1.Event": schema_k8sio_api_events_v1beta1_Event(ref), - "k8s.io/api/events/v1beta1.EventList": schema_k8sio_api_events_v1beta1_EventList(ref), - "k8s.io/api/events/v1beta1.EventSeries": schema_k8sio_api_events_v1beta1_EventSeries(ref), - "k8s.io/api/extensions/v1beta1.DaemonSet": schema_k8sio_api_extensions_v1beta1_DaemonSet(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetCondition": schema_k8sio_api_extensions_v1beta1_DaemonSetCondition(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetList": schema_k8sio_api_extensions_v1beta1_DaemonSetList(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetSpec": schema_k8sio_api_extensions_v1beta1_DaemonSetSpec(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetStatus": schema_k8sio_api_extensions_v1beta1_DaemonSetStatus(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetUpdateStrategy": schema_k8sio_api_extensions_v1beta1_DaemonSetUpdateStrategy(ref), - "k8s.io/api/extensions/v1beta1.Deployment": schema_k8sio_api_extensions_v1beta1_Deployment(ref), - "k8s.io/api/extensions/v1beta1.DeploymentCondition": schema_k8sio_api_extensions_v1beta1_DeploymentCondition(ref), - "k8s.io/api/extensions/v1beta1.DeploymentList": schema_k8sio_api_extensions_v1beta1_DeploymentList(ref), - "k8s.io/api/extensions/v1beta1.DeploymentRollback": schema_k8sio_api_extensions_v1beta1_DeploymentRollback(ref), - "k8s.io/api/extensions/v1beta1.DeploymentSpec": schema_k8sio_api_extensions_v1beta1_DeploymentSpec(ref), - "k8s.io/api/extensions/v1beta1.DeploymentStatus": schema_k8sio_api_extensions_v1beta1_DeploymentStatus(ref), - "k8s.io/api/extensions/v1beta1.DeploymentStrategy": schema_k8sio_api_extensions_v1beta1_DeploymentStrategy(ref), - "k8s.io/api/extensions/v1beta1.HTTPIngressPath": schema_k8sio_api_extensions_v1beta1_HTTPIngressPath(ref), - "k8s.io/api/extensions/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_extensions_v1beta1_HTTPIngressRuleValue(ref), - "k8s.io/api/extensions/v1beta1.IPBlock": schema_k8sio_api_extensions_v1beta1_IPBlock(ref), - "k8s.io/api/extensions/v1beta1.Ingress": schema_k8sio_api_extensions_v1beta1_Ingress(ref), - "k8s.io/api/extensions/v1beta1.IngressBackend": schema_k8sio_api_extensions_v1beta1_IngressBackend(ref), - "k8s.io/api/extensions/v1beta1.IngressList": schema_k8sio_api_extensions_v1beta1_IngressList(ref), - "k8s.io/api/extensions/v1beta1.IngressLoadBalancerIngress": schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerIngress(ref), - "k8s.io/api/extensions/v1beta1.IngressLoadBalancerStatus": schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerStatus(ref), - "k8s.io/api/extensions/v1beta1.IngressPortStatus": schema_k8sio_api_extensions_v1beta1_IngressPortStatus(ref), - "k8s.io/api/extensions/v1beta1.IngressRule": schema_k8sio_api_extensions_v1beta1_IngressRule(ref), - "k8s.io/api/extensions/v1beta1.IngressRuleValue": schema_k8sio_api_extensions_v1beta1_IngressRuleValue(ref), - "k8s.io/api/extensions/v1beta1.IngressSpec": schema_k8sio_api_extensions_v1beta1_IngressSpec(ref), - "k8s.io/api/extensions/v1beta1.IngressStatus": schema_k8sio_api_extensions_v1beta1_IngressStatus(ref), - "k8s.io/api/extensions/v1beta1.IngressTLS": schema_k8sio_api_extensions_v1beta1_IngressTLS(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicy": schema_k8sio_api_extensions_v1beta1_NetworkPolicy(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyEgressRule": schema_k8sio_api_extensions_v1beta1_NetworkPolicyEgressRule(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyIngressRule": schema_k8sio_api_extensions_v1beta1_NetworkPolicyIngressRule(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyList": schema_k8sio_api_extensions_v1beta1_NetworkPolicyList(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyPeer": schema_k8sio_api_extensions_v1beta1_NetworkPolicyPeer(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyPort": schema_k8sio_api_extensions_v1beta1_NetworkPolicyPort(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicySpec": schema_k8sio_api_extensions_v1beta1_NetworkPolicySpec(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSet": schema_k8sio_api_extensions_v1beta1_ReplicaSet(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetCondition": schema_k8sio_api_extensions_v1beta1_ReplicaSetCondition(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetList": schema_k8sio_api_extensions_v1beta1_ReplicaSetList(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetSpec": schema_k8sio_api_extensions_v1beta1_ReplicaSetSpec(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetStatus": schema_k8sio_api_extensions_v1beta1_ReplicaSetStatus(ref), - "k8s.io/api/extensions/v1beta1.RollbackConfig": schema_k8sio_api_extensions_v1beta1_RollbackConfig(ref), - "k8s.io/api/extensions/v1beta1.RollingUpdateDaemonSet": schema_k8sio_api_extensions_v1beta1_RollingUpdateDaemonSet(ref), - "k8s.io/api/extensions/v1beta1.RollingUpdateDeployment": schema_k8sio_api_extensions_v1beta1_RollingUpdateDeployment(ref), - "k8s.io/api/extensions/v1beta1.Scale": schema_k8sio_api_extensions_v1beta1_Scale(ref), - "k8s.io/api/extensions/v1beta1.ScaleSpec": schema_k8sio_api_extensions_v1beta1_ScaleSpec(ref), - "k8s.io/api/extensions/v1beta1.ScaleStatus": schema_k8sio_api_extensions_v1beta1_ScaleStatus(ref), - "k8s.io/api/networking/v1.HTTPIngressPath": schema_k8sio_api_networking_v1_HTTPIngressPath(ref), - "k8s.io/api/networking/v1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref), - "k8s.io/api/networking/v1.IPBlock": schema_k8sio_api_networking_v1_IPBlock(ref), - "k8s.io/api/networking/v1.Ingress": schema_k8sio_api_networking_v1_Ingress(ref), - "k8s.io/api/networking/v1.IngressBackend": schema_k8sio_api_networking_v1_IngressBackend(ref), - "k8s.io/api/networking/v1.IngressClass": schema_k8sio_api_networking_v1_IngressClass(ref), - "k8s.io/api/networking/v1.IngressClassList": schema_k8sio_api_networking_v1_IngressClassList(ref), - "k8s.io/api/networking/v1.IngressClassParametersReference": schema_k8sio_api_networking_v1_IngressClassParametersReference(ref), - "k8s.io/api/networking/v1.IngressClassSpec": schema_k8sio_api_networking_v1_IngressClassSpec(ref), - "k8s.io/api/networking/v1.IngressList": schema_k8sio_api_networking_v1_IngressList(ref), - "k8s.io/api/networking/v1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref), - "k8s.io/api/networking/v1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref), - "k8s.io/api/networking/v1.IngressPortStatus": schema_k8sio_api_networking_v1_IngressPortStatus(ref), - "k8s.io/api/networking/v1.IngressRule": schema_k8sio_api_networking_v1_IngressRule(ref), - "k8s.io/api/networking/v1.IngressRuleValue": schema_k8sio_api_networking_v1_IngressRuleValue(ref), - "k8s.io/api/networking/v1.IngressServiceBackend": schema_k8sio_api_networking_v1_IngressServiceBackend(ref), - "k8s.io/api/networking/v1.IngressSpec": schema_k8sio_api_networking_v1_IngressSpec(ref), - "k8s.io/api/networking/v1.IngressStatus": schema_k8sio_api_networking_v1_IngressStatus(ref), - "k8s.io/api/networking/v1.IngressTLS": schema_k8sio_api_networking_v1_IngressTLS(ref), - "k8s.io/api/networking/v1.NetworkPolicy": schema_k8sio_api_networking_v1_NetworkPolicy(ref), - "k8s.io/api/networking/v1.NetworkPolicyEgressRule": schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref), - "k8s.io/api/networking/v1.NetworkPolicyIngressRule": schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref), - "k8s.io/api/networking/v1.NetworkPolicyList": schema_k8sio_api_networking_v1_NetworkPolicyList(ref), - "k8s.io/api/networking/v1.NetworkPolicyPeer": schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref), - "k8s.io/api/networking/v1.NetworkPolicyPort": schema_k8sio_api_networking_v1_NetworkPolicyPort(ref), - "k8s.io/api/networking/v1.NetworkPolicySpec": schema_k8sio_api_networking_v1_NetworkPolicySpec(ref), - "k8s.io/api/networking/v1.ServiceBackendPort": schema_k8sio_api_networking_v1_ServiceBackendPort(ref), - "k8s.io/api/networking/v1beta1.HTTPIngressPath": schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref), - "k8s.io/api/networking/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1beta1_HTTPIngressRuleValue(ref), - "k8s.io/api/networking/v1beta1.IPAddress": schema_k8sio_api_networking_v1beta1_IPAddress(ref), - "k8s.io/api/networking/v1beta1.IPAddressList": schema_k8sio_api_networking_v1beta1_IPAddressList(ref), - "k8s.io/api/networking/v1beta1.IPAddressSpec": schema_k8sio_api_networking_v1beta1_IPAddressSpec(ref), - "k8s.io/api/networking/v1beta1.Ingress": schema_k8sio_api_networking_v1beta1_Ingress(ref), - "k8s.io/api/networking/v1beta1.IngressBackend": schema_k8sio_api_networking_v1beta1_IngressBackend(ref), - "k8s.io/api/networking/v1beta1.IngressClass": schema_k8sio_api_networking_v1beta1_IngressClass(ref), - "k8s.io/api/networking/v1beta1.IngressClassList": schema_k8sio_api_networking_v1beta1_IngressClassList(ref), - "k8s.io/api/networking/v1beta1.IngressClassParametersReference": schema_k8sio_api_networking_v1beta1_IngressClassParametersReference(ref), - "k8s.io/api/networking/v1beta1.IngressClassSpec": schema_k8sio_api_networking_v1beta1_IngressClassSpec(ref), - "k8s.io/api/networking/v1beta1.IngressList": schema_k8sio_api_networking_v1beta1_IngressList(ref), - "k8s.io/api/networking/v1beta1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1beta1_IngressLoadBalancerIngress(ref), - "k8s.io/api/networking/v1beta1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1beta1_IngressLoadBalancerStatus(ref), - "k8s.io/api/networking/v1beta1.IngressPortStatus": schema_k8sio_api_networking_v1beta1_IngressPortStatus(ref), - "k8s.io/api/networking/v1beta1.IngressRule": schema_k8sio_api_networking_v1beta1_IngressRule(ref), - "k8s.io/api/networking/v1beta1.IngressRuleValue": schema_k8sio_api_networking_v1beta1_IngressRuleValue(ref), - "k8s.io/api/networking/v1beta1.IngressSpec": schema_k8sio_api_networking_v1beta1_IngressSpec(ref), - "k8s.io/api/networking/v1beta1.IngressStatus": schema_k8sio_api_networking_v1beta1_IngressStatus(ref), - "k8s.io/api/networking/v1beta1.IngressTLS": schema_k8sio_api_networking_v1beta1_IngressTLS(ref), - "k8s.io/api/networking/v1beta1.ParentReference": schema_k8sio_api_networking_v1beta1_ParentReference(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDR": schema_k8sio_api_networking_v1beta1_ServiceCIDR(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDRList": schema_k8sio_api_networking_v1beta1_ServiceCIDRList(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDRSpec": schema_k8sio_api_networking_v1beta1_ServiceCIDRSpec(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDRStatus": schema_k8sio_api_networking_v1beta1_ServiceCIDRStatus(ref), - "k8s.io/api/node/v1alpha1.Overhead": schema_k8sio_api_node_v1alpha1_Overhead(ref), - "k8s.io/api/node/v1alpha1.RuntimeClass": schema_k8sio_api_node_v1alpha1_RuntimeClass(ref), - "k8s.io/api/node/v1alpha1.RuntimeClassList": schema_k8sio_api_node_v1alpha1_RuntimeClassList(ref), - "k8s.io/api/node/v1alpha1.RuntimeClassSpec": schema_k8sio_api_node_v1alpha1_RuntimeClassSpec(ref), - "k8s.io/api/node/v1alpha1.Scheduling": schema_k8sio_api_node_v1alpha1_Scheduling(ref), - "k8s.io/api/node/v1beta1.Overhead": schema_k8sio_api_node_v1beta1_Overhead(ref), - "k8s.io/api/node/v1beta1.RuntimeClass": schema_k8sio_api_node_v1beta1_RuntimeClass(ref), - "k8s.io/api/node/v1beta1.RuntimeClassList": schema_k8sio_api_node_v1beta1_RuntimeClassList(ref), - "k8s.io/api/node/v1beta1.Scheduling": schema_k8sio_api_node_v1beta1_Scheduling(ref), - "k8s.io/api/policy/v1beta1.Eviction": schema_k8sio_api_policy_v1beta1_Eviction(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudget": schema_k8sio_api_policy_v1beta1_PodDisruptionBudget(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetList": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetList(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetSpec": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetSpec(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetStatus": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetStatus(ref), - "k8s.io/api/rbac/v1.AggregationRule": schema_k8sio_api_rbac_v1_AggregationRule(ref), - "k8s.io/api/rbac/v1.ClusterRole": schema_k8sio_api_rbac_v1_ClusterRole(ref), - "k8s.io/api/rbac/v1.ClusterRoleBinding": schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref), - "k8s.io/api/rbac/v1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref), - "k8s.io/api/rbac/v1.ClusterRoleList": schema_k8sio_api_rbac_v1_ClusterRoleList(ref), - "k8s.io/api/rbac/v1.PolicyRule": schema_k8sio_api_rbac_v1_PolicyRule(ref), - "k8s.io/api/rbac/v1.Role": schema_k8sio_api_rbac_v1_Role(ref), - "k8s.io/api/rbac/v1.RoleBinding": schema_k8sio_api_rbac_v1_RoleBinding(ref), - "k8s.io/api/rbac/v1.RoleBindingList": schema_k8sio_api_rbac_v1_RoleBindingList(ref), - "k8s.io/api/rbac/v1.RoleList": schema_k8sio_api_rbac_v1_RoleList(ref), - "k8s.io/api/rbac/v1.RoleRef": schema_k8sio_api_rbac_v1_RoleRef(ref), - "k8s.io/api/rbac/v1.Subject": schema_k8sio_api_rbac_v1_Subject(ref), - "k8s.io/api/rbac/v1alpha1.AggregationRule": schema_k8sio_api_rbac_v1alpha1_AggregationRule(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRole": schema_k8sio_api_rbac_v1alpha1_ClusterRole(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRoleBinding": schema_k8sio_api_rbac_v1alpha1_ClusterRoleBinding(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1alpha1_ClusterRoleBindingList(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRoleList": schema_k8sio_api_rbac_v1alpha1_ClusterRoleList(ref), - "k8s.io/api/rbac/v1alpha1.PolicyRule": schema_k8sio_api_rbac_v1alpha1_PolicyRule(ref), - "k8s.io/api/rbac/v1alpha1.Role": schema_k8sio_api_rbac_v1alpha1_Role(ref), - "k8s.io/api/rbac/v1alpha1.RoleBinding": schema_k8sio_api_rbac_v1alpha1_RoleBinding(ref), - "k8s.io/api/rbac/v1alpha1.RoleBindingList": schema_k8sio_api_rbac_v1alpha1_RoleBindingList(ref), - "k8s.io/api/rbac/v1alpha1.RoleList": schema_k8sio_api_rbac_v1alpha1_RoleList(ref), - "k8s.io/api/rbac/v1alpha1.RoleRef": schema_k8sio_api_rbac_v1alpha1_RoleRef(ref), - "k8s.io/api/rbac/v1alpha1.Subject": schema_k8sio_api_rbac_v1alpha1_Subject(ref), - "k8s.io/api/rbac/v1beta1.AggregationRule": schema_k8sio_api_rbac_v1beta1_AggregationRule(ref), - "k8s.io/api/rbac/v1beta1.ClusterRole": schema_k8sio_api_rbac_v1beta1_ClusterRole(ref), - "k8s.io/api/rbac/v1beta1.ClusterRoleBinding": schema_k8sio_api_rbac_v1beta1_ClusterRoleBinding(ref), - "k8s.io/api/rbac/v1beta1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1beta1_ClusterRoleBindingList(ref), - "k8s.io/api/rbac/v1beta1.ClusterRoleList": schema_k8sio_api_rbac_v1beta1_ClusterRoleList(ref), - "k8s.io/api/rbac/v1beta1.PolicyRule": schema_k8sio_api_rbac_v1beta1_PolicyRule(ref), - "k8s.io/api/rbac/v1beta1.Role": schema_k8sio_api_rbac_v1beta1_Role(ref), - "k8s.io/api/rbac/v1beta1.RoleBinding": schema_k8sio_api_rbac_v1beta1_RoleBinding(ref), - "k8s.io/api/rbac/v1beta1.RoleBindingList": schema_k8sio_api_rbac_v1beta1_RoleBindingList(ref), - "k8s.io/api/rbac/v1beta1.RoleList": schema_k8sio_api_rbac_v1beta1_RoleList(ref), - "k8s.io/api/rbac/v1beta1.RoleRef": schema_k8sio_api_rbac_v1beta1_RoleRef(ref), - "k8s.io/api/rbac/v1beta1.Subject": schema_k8sio_api_rbac_v1beta1_Subject(ref), - "k8s.io/api/scheduling/v1.PriorityClass": schema_k8sio_api_scheduling_v1_PriorityClass(ref), - "k8s.io/api/scheduling/v1.PriorityClassList": schema_k8sio_api_scheduling_v1_PriorityClassList(ref), - "k8s.io/api/scheduling/v1alpha1.PriorityClass": schema_k8sio_api_scheduling_v1alpha1_PriorityClass(ref), - "k8s.io/api/scheduling/v1alpha1.PriorityClassList": schema_k8sio_api_scheduling_v1alpha1_PriorityClassList(ref), - "k8s.io/api/scheduling/v1beta1.PriorityClass": schema_k8sio_api_scheduling_v1beta1_PriorityClass(ref), - "k8s.io/api/scheduling/v1beta1.PriorityClassList": schema_k8sio_api_scheduling_v1beta1_PriorityClassList(ref), - "k8s.io/api/storage/v1.CSIDriver": schema_k8sio_api_storage_v1_CSIDriver(ref), - "k8s.io/api/storage/v1.CSIDriverList": schema_k8sio_api_storage_v1_CSIDriverList(ref), - "k8s.io/api/storage/v1.CSIDriverSpec": schema_k8sio_api_storage_v1_CSIDriverSpec(ref), - "k8s.io/api/storage/v1.CSINode": schema_k8sio_api_storage_v1_CSINode(ref), - "k8s.io/api/storage/v1.CSINodeDriver": schema_k8sio_api_storage_v1_CSINodeDriver(ref), - "k8s.io/api/storage/v1.CSINodeList": schema_k8sio_api_storage_v1_CSINodeList(ref), - "k8s.io/api/storage/v1.CSINodeSpec": schema_k8sio_api_storage_v1_CSINodeSpec(ref), - "k8s.io/api/storage/v1.CSIStorageCapacity": schema_k8sio_api_storage_v1_CSIStorageCapacity(ref), - "k8s.io/api/storage/v1.CSIStorageCapacityList": schema_k8sio_api_storage_v1_CSIStorageCapacityList(ref), - "k8s.io/api/storage/v1.StorageClass": schema_k8sio_api_storage_v1_StorageClass(ref), - "k8s.io/api/storage/v1.StorageClassList": schema_k8sio_api_storage_v1_StorageClassList(ref), - "k8s.io/api/storage/v1.TokenRequest": schema_k8sio_api_storage_v1_TokenRequest(ref), - "k8s.io/api/storage/v1.VolumeAttachment": schema_k8sio_api_storage_v1_VolumeAttachment(ref), - "k8s.io/api/storage/v1.VolumeAttachmentList": schema_k8sio_api_storage_v1_VolumeAttachmentList(ref), - "k8s.io/api/storage/v1.VolumeAttachmentSource": schema_k8sio_api_storage_v1_VolumeAttachmentSource(ref), - "k8s.io/api/storage/v1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1_VolumeAttachmentSpec(ref), - "k8s.io/api/storage/v1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref), - "k8s.io/api/storage/v1.VolumeError": schema_k8sio_api_storage_v1_VolumeError(ref), - "k8s.io/api/storage/v1.VolumeNodeResources": schema_k8sio_api_storage_v1_VolumeNodeResources(ref), - "k8s.io/api/storage/v1alpha1.CSIStorageCapacity": schema_k8sio_api_storage_v1alpha1_CSIStorageCapacity(ref), - "k8s.io/api/storage/v1alpha1.CSIStorageCapacityList": schema_k8sio_api_storage_v1alpha1_CSIStorageCapacityList(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachment": schema_k8sio_api_storage_v1alpha1_VolumeAttachment(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentList": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentList(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentSource": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSource(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSpec(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentStatus(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttributesClass": schema_k8sio_api_storage_v1alpha1_VolumeAttributesClass(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttributesClassList": schema_k8sio_api_storage_v1alpha1_VolumeAttributesClassList(ref), - "k8s.io/api/storage/v1alpha1.VolumeError": schema_k8sio_api_storage_v1alpha1_VolumeError(ref), - "k8s.io/api/storage/v1beta1.CSIDriver": schema_k8sio_api_storage_v1beta1_CSIDriver(ref), - "k8s.io/api/storage/v1beta1.CSIDriverList": schema_k8sio_api_storage_v1beta1_CSIDriverList(ref), - "k8s.io/api/storage/v1beta1.CSIDriverSpec": schema_k8sio_api_storage_v1beta1_CSIDriverSpec(ref), - "k8s.io/api/storage/v1beta1.CSINode": schema_k8sio_api_storage_v1beta1_CSINode(ref), - "k8s.io/api/storage/v1beta1.CSINodeDriver": schema_k8sio_api_storage_v1beta1_CSINodeDriver(ref), - "k8s.io/api/storage/v1beta1.CSINodeList": schema_k8sio_api_storage_v1beta1_CSINodeList(ref), - "k8s.io/api/storage/v1beta1.CSINodeSpec": schema_k8sio_api_storage_v1beta1_CSINodeSpec(ref), - "k8s.io/api/storage/v1beta1.CSIStorageCapacity": schema_k8sio_api_storage_v1beta1_CSIStorageCapacity(ref), - "k8s.io/api/storage/v1beta1.CSIStorageCapacityList": schema_k8sio_api_storage_v1beta1_CSIStorageCapacityList(ref), - "k8s.io/api/storage/v1beta1.StorageClass": schema_k8sio_api_storage_v1beta1_StorageClass(ref), - "k8s.io/api/storage/v1beta1.StorageClassList": schema_k8sio_api_storage_v1beta1_StorageClassList(ref), - "k8s.io/api/storage/v1beta1.TokenRequest": schema_k8sio_api_storage_v1beta1_TokenRequest(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachment": schema_k8sio_api_storage_v1beta1_VolumeAttachment(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentList": schema_k8sio_api_storage_v1beta1_VolumeAttachmentList(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentSource": schema_k8sio_api_storage_v1beta1_VolumeAttachmentSource(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1beta1_VolumeAttachmentSpec(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1beta1_VolumeAttachmentStatus(ref), - "k8s.io/api/storage/v1beta1.VolumeAttributesClass": schema_k8sio_api_storage_v1beta1_VolumeAttributesClass(ref), - "k8s.io/api/storage/v1beta1.VolumeAttributesClassList": schema_k8sio_api_storage_v1beta1_VolumeAttributesClassList(ref), - "k8s.io/api/storage/v1beta1.VolumeError": schema_k8sio_api_storage_v1beta1_VolumeError(ref), - "k8s.io/api/storage/v1beta1.VolumeNodeResources": schema_k8sio_api_storage_v1beta1_VolumeNodeResources(ref), - "k8s.io/apimachinery/pkg/api/resource.Quantity": schema_apimachinery_pkg_api_resource_Quantity(ref), - "k8s.io/apimachinery/pkg/api/resource.int64Amount": schema_apimachinery_pkg_api_resource_int64Amount(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldSelectorRequirement": schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), - "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), - "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), - "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), - "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), - "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.Cluster": schema_pkg_apis_clientauthentication_v1beta1_Cluster(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredential": schema_pkg_apis_clientauthentication_v1beta1_ExecCredential(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialSpec": schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialSpec(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialStatus": schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialStatus(ref), + licenseapi.Analytics{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_Analytics(ref), + licenseapi.Announcement{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_Announcement(ref), + licenseapi.BlockRequest{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_BlockRequest(ref), + licenseapi.Button{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_Button(ref), + licenseapi.ChatAuthCreateInput{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_ChatAuthCreateInput(ref), + licenseapi.ChatAuthCreateOutput{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_ChatAuthCreateOutput(ref), + licenseapi.DomainToken{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_DomainToken(ref), + licenseapi.Feature{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref), + licenseapi.FeatureUsage{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_FeatureUsage(ref), + licenseapi.GenericRequestInput{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestInput(ref), + licenseapi.GenericRequestOutput{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestOutput(ref), + licenseapi.InstanceActivateInstanceInput{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_InstanceActivateInstanceInput(ref), + licenseapi.InstanceCreateInput{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_InstanceCreateInput(ref), + licenseapi.InstanceCreateOutput{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_InstanceCreateOutput(ref), + licenseapi.InstanceSendActivationEmailInput{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_InstanceSendActivationEmailInput(ref), + licenseapi.InstanceTokenAuth{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenAuth(ref), + licenseapi.InstanceTokenClaims{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenClaims(ref), + licenseapi.InstanceUsageInput{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_InstanceUsageInput(ref), + licenseapi.Invoice{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_Invoice(ref), + licenseapi.License{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_License(ref), + licenseapi.LicenseAPIRoute{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoute(ref), + licenseapi.LicenseAPIRoutes{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoutes(ref), + licenseapi.Limit{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_Limit(ref), + licenseapi.Module{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_Module(ref), + licenseapi.NodeInfo{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_NodeInfo(ref), + licenseapi.OfflineLicenseKeyClaims{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_OfflineLicenseKeyClaims(ref), + licenseapi.Plan{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref), + licenseapi.PlanExpiration{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_PlanExpiration(ref), + licenseapi.PlanPeriod{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_PlanPeriod(ref), + licenseapi.PlanPrice{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref), + licenseapi.PlatformDatabase{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_PlatformDatabase(ref), + licenseapi.PriceTier{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_PriceTier(ref), + licenseapi.Request{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_Request(ref), + licenseapi.ResourceCount{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_ResourceCount(ref), + licenseapi.TierResource{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_TierResource(ref), + licenseapi.Trial{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_Trial(ref), + licenseapi.UsageData{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_UsageData(ref), + licenseapi.UsageDataDetails{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_UsageDataDetails(ref), + licenseapi.VirtualClusterInfo{}.OpenAPIModelName(): schema_loft_sh_admin_apis_pkg_licenseapi_VirtualClusterInfo(ref), + v1.Bash{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_Bash(ref), + v1.Chart{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_Chart(ref), + v1.ChartInfo{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_ChartInfo(ref), + v1.ChartInfoList{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_ChartInfoList(ref), + v1.ChartInfoSpec{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_ChartInfoSpec(ref), + v1.ChartInfoStatus{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_ChartInfoStatus(ref), + v1.ChartSecretRef{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_ChartSecretRef(ref), + v1.EpochInfo{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_EpochInfo(ref), + v1.Feature{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_Feature(ref), + v1.FeatureList{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_FeatureList(ref), + v1.FeatureSpec{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_FeatureSpec(ref), + v1.FeatureStatus{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_FeatureStatus(ref), + v1.HelmRelease{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_HelmRelease(ref), + v1.HelmReleaseApp{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_HelmReleaseApp(ref), + v1.HelmReleaseConfig{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_HelmReleaseConfig(ref), + v1.HelmReleaseList{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_HelmReleaseList(ref), + v1.HelmReleaseSpec{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_HelmReleaseSpec(ref), + v1.HelmReleaseStatus{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_HelmReleaseStatus(ref), + v1.Info{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_Info(ref), + v1.LastActivityInfo{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_LastActivityInfo(ref), + v1.Maintainer{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_Maintainer(ref), + v1.Metadata{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_Metadata(ref), + v1.ProjectSecretRef{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_ProjectSecretRef(ref), + v1.SleepModeConfig{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_SleepModeConfig(ref), + v1.SleepModeConfigSpec{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_SleepModeConfigSpec(ref), + v1.SleepModeConfigStatus{}.OpenAPIModelName(): schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref), + storagev1.ClusterQuota{}.OpenAPIModelName(): schema_apis_loft_storage_v1_ClusterQuota(ref), + storagev1.ClusterQuotaList{}.OpenAPIModelName(): schema_apis_loft_storage_v1_ClusterQuotaList(ref), + storagev1.ClusterQuotaSpec{}.OpenAPIModelName(): schema_apis_loft_storage_v1_ClusterQuotaSpec(ref), + storagev1.ClusterQuotaStatus{}.OpenAPIModelName(): schema_apis_loft_storage_v1_ClusterQuotaStatus(ref), + storagev1.ClusterQuotaStatusByNamespace{}.OpenAPIModelName(): schema_apis_loft_storage_v1_ClusterQuotaStatusByNamespace(ref), + storagev1.Condition{}.OpenAPIModelName(): schema_apis_loft_storage_v1_Condition(ref), + auditv1.Event{}.OpenAPIModelName(): schema_pkg_apis_audit_v1_Event(ref), + auditv1.EventList{}.OpenAPIModelName(): schema_pkg_apis_audit_v1_EventList(ref), + auditv1.ObjectReference{}.OpenAPIModelName(): schema_pkg_apis_audit_v1_ObjectReference(ref), + managementv1.AgentAnalyticsSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref), + managementv1.AgentAuditConfig{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AgentAuditConfig(ref), + managementv1.AgentAuditEvent{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AgentAuditEvent(ref), + managementv1.AgentAuditEventList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AgentAuditEventList(ref), + managementv1.AgentAuditEventSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), + managementv1.AgentAuditEventStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), + managementv1.AgentCostControlConfig{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AgentCostControlConfig(ref), + managementv1.Announcement{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Announcement(ref), + managementv1.AnnouncementList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AnnouncementList(ref), + managementv1.AnnouncementSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AnnouncementSpec(ref), + managementv1.AnnouncementStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AnnouncementStatus(ref), + managementv1.App{}.OpenAPIModelName(): schema_pkg_apis_management_v1_App(ref), + managementv1.AppCredentials{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AppCredentials(ref), + managementv1.AppCredentialsList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AppCredentialsList(ref), + managementv1.AppList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AppList(ref), + managementv1.AppSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AppSpec(ref), + managementv1.AppStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AppStatus(ref), + managementv1.Apps{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Apps(ref), + managementv1.AssignedVia{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AssignedVia(ref), + managementv1.Audit{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Audit(ref), + managementv1.AuditPolicy{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AuditPolicy(ref), + managementv1.AuditPolicyRule{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AuditPolicyRule(ref), + managementv1.Authentication{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Authentication(ref), + managementv1.AuthenticationGithub{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AuthenticationGithub(ref), + managementv1.AuthenticationGithubOrg{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref), + managementv1.AuthenticationGitlab{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AuthenticationGitlab(ref), + managementv1.AuthenticationGoogle{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AuthenticationGoogle(ref), + managementv1.AuthenticationMicrosoft{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref), + managementv1.AuthenticationOIDC{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AuthenticationOIDC(ref), + managementv1.AuthenticationPassword{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AuthenticationPassword(ref), + managementv1.AuthenticationRancher{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AuthenticationRancher(ref), + managementv1.AuthenticationSAML{}.OpenAPIModelName(): schema_pkg_apis_management_v1_AuthenticationSAML(ref), + managementv1.Backup{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Backup(ref), + managementv1.BackupApply{}.OpenAPIModelName(): schema_pkg_apis_management_v1_BackupApply(ref), + managementv1.BackupApplyList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_BackupApplyList(ref), + managementv1.BackupApplyOptions{}.OpenAPIModelName(): schema_pkg_apis_management_v1_BackupApplyOptions(ref), + managementv1.BackupApplySpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_BackupApplySpec(ref), + managementv1.BackupList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_BackupList(ref), + managementv1.BackupSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_BackupSpec(ref), + managementv1.BackupStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_BackupStatus(ref), + managementv1.Cloud{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Cloud(ref), + managementv1.Cluster{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Cluster(ref), + managementv1.ClusterAccess{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterAccess(ref), + managementv1.ClusterAccessKey{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterAccessKey(ref), + managementv1.ClusterAccessKeyList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), + managementv1.ClusterAccessList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterAccessList(ref), + managementv1.ClusterAccessRole{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterAccessRole(ref), + managementv1.ClusterAccessSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterAccessSpec(ref), + managementv1.ClusterAccessStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterAccessStatus(ref), + managementv1.ClusterAccounts{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterAccounts(ref), + managementv1.ClusterAgentConfig{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterAgentConfig(ref), + managementv1.ClusterAgentConfigCommon{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref), + managementv1.ClusterAgentConfigList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterAgentConfigList(ref), + managementv1.ClusterCharts{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterCharts(ref), + managementv1.ClusterChartsList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterChartsList(ref), + managementv1.ClusterDomain{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterDomain(ref), + managementv1.ClusterDomainList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterDomainList(ref), + managementv1.ClusterList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterList(ref), + managementv1.ClusterMember{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterMember(ref), + managementv1.ClusterMemberAccess{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterMemberAccess(ref), + managementv1.ClusterMemberAccessList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterMemberAccessList(ref), + managementv1.ClusterMembers{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterMembers(ref), + managementv1.ClusterMembersList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterMembersList(ref), + managementv1.ClusterReset{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterReset(ref), + managementv1.ClusterResetList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterResetList(ref), + managementv1.ClusterRoleTemplate{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterRoleTemplate(ref), + managementv1.ClusterRoleTemplateList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref), + managementv1.ClusterRoleTemplateSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref), + managementv1.ClusterRoleTemplateStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref), + managementv1.ClusterSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterSpec(ref), + managementv1.ClusterStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ClusterStatus(ref), + managementv1.Config{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Config(ref), + managementv1.ConfigList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ConfigList(ref), + managementv1.ConfigSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ConfigSpec(ref), + managementv1.ConfigStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ConfigStatus(ref), + managementv1.Connector{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Connector(ref), + managementv1.ConnectorWithName{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ConnectorWithName(ref), + managementv1.ConvertVirtualClusterConfig{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ConvertVirtualClusterConfig(ref), + managementv1.ConvertVirtualClusterConfigList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref), + managementv1.ConvertVirtualClusterConfigSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ConvertVirtualClusterConfigSpec(ref), + managementv1.ConvertVirtualClusterConfigStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref), + managementv1.CostControl{}.OpenAPIModelName(): schema_pkg_apis_management_v1_CostControl(ref), + managementv1.CostControlClusterConfig{}.OpenAPIModelName(): schema_pkg_apis_management_v1_CostControlClusterConfig(ref), + managementv1.CostControlGPUSettings{}.OpenAPIModelName(): schema_pkg_apis_management_v1_CostControlGPUSettings(ref), + managementv1.CostControlGlobalConfig{}.OpenAPIModelName(): schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), + managementv1.CostControlResourcePrice{}.OpenAPIModelName(): schema_pkg_apis_management_v1_CostControlResourcePrice(ref), + managementv1.CostControlSettings{}.OpenAPIModelName(): schema_pkg_apis_management_v1_CostControlSettings(ref), + managementv1.DatabaseConnector{}.OpenAPIModelName(): schema_pkg_apis_management_v1_DatabaseConnector(ref), + managementv1.DatabaseConnectorList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_DatabaseConnectorList(ref), + managementv1.DatabaseConnectorSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref), + managementv1.DatabaseConnectorStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_DatabaseConnectorStatus(ref), + managementv1.DatabaseKine{}.OpenAPIModelName(): schema_pkg_apis_management_v1_DatabaseKine(ref), + managementv1.DirectClusterEndpointToken{}.OpenAPIModelName(): schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref), + managementv1.DirectClusterEndpointTokenList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref), + managementv1.DirectClusterEndpointTokenSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref), + managementv1.DirectClusterEndpointTokenStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref), + managementv1.Event{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Event(ref), + managementv1.EventList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_EventList(ref), + managementv1.EventSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_EventSpec(ref), + managementv1.EventStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_EventStatus(ref), + managementv1.Feature{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Feature(ref), + managementv1.FeatureList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_FeatureList(ref), + managementv1.FeatureSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_FeatureSpec(ref), + managementv1.FeatureStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_FeatureStatus(ref), + managementv1.GroupResources{}.OpenAPIModelName(): schema_pkg_apis_management_v1_GroupResources(ref), + managementv1.ImageBuilder{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ImageBuilder(ref), + managementv1.IngressAuthToken{}.OpenAPIModelName(): schema_pkg_apis_management_v1_IngressAuthToken(ref), + managementv1.IngressAuthTokenList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_IngressAuthTokenList(ref), + managementv1.IngressAuthTokenSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref), + managementv1.IngressAuthTokenStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref), + managementv1.Kiosk{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Kiosk(ref), + managementv1.KioskList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_KioskList(ref), + managementv1.KioskSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_KioskSpec(ref), + managementv1.KioskStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_KioskStatus(ref), + managementv1.License{}.OpenAPIModelName(): schema_pkg_apis_management_v1_License(ref), + managementv1.LicenseList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_LicenseList(ref), + managementv1.LicenseRequest{}.OpenAPIModelName(): schema_pkg_apis_management_v1_LicenseRequest(ref), + managementv1.LicenseRequestList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_LicenseRequestList(ref), + managementv1.LicenseRequestSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_LicenseRequestSpec(ref), + managementv1.LicenseRequestStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_LicenseRequestStatus(ref), + managementv1.LicenseSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_LicenseSpec(ref), + managementv1.LicenseStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_LicenseStatus(ref), + managementv1.LoftUpgrade{}.OpenAPIModelName(): schema_pkg_apis_management_v1_LoftUpgrade(ref), + managementv1.LoftUpgradeList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_LoftUpgradeList(ref), + managementv1.LoftUpgradeSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), + managementv1.LoftUpgradeStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), + managementv1.MaintenanceWindow{}.OpenAPIModelName(): schema_pkg_apis_management_v1_MaintenanceWindow(ref), + managementv1.ManagementRole{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ManagementRole(ref), + managementv1.NamespacedNameArgs{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NamespacedNameArgs(ref), + managementv1.NodeClaim{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeClaim(ref), + managementv1.NodeClaimData{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeClaimData(ref), + managementv1.NodeClaimList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeClaimList(ref), + managementv1.NodeClaimSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeClaimSpec(ref), + managementv1.NodeClaimStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeClaimStatus(ref), + managementv1.NodeEnvironment{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeEnvironment(ref), + managementv1.NodeEnvironmentData{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeEnvironmentData(ref), + managementv1.NodeEnvironmentList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeEnvironmentList(ref), + managementv1.NodeEnvironmentSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeEnvironmentSpec(ref), + managementv1.NodeEnvironmentStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeEnvironmentStatus(ref), + managementv1.NodeProvider{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProvider(ref), + managementv1.NodeProviderBCMGetResourcesResult{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderBCMGetResourcesResult(ref), + managementv1.NodeProviderBCMNodeGroup{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderBCMNodeGroup(ref), + managementv1.NodeProviderBCMNodeWithResources{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderBCMNodeWithResources(ref), + managementv1.NodeProviderBCMTestConnectionResult{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderBCMTestConnectionResult(ref), + managementv1.NodeProviderCalculateCostResult{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderCalculateCostResult(ref), + managementv1.NodeProviderExec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderExec(ref), + managementv1.NodeProviderExecList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderExecList(ref), + managementv1.NodeProviderExecResult{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderExecResult(ref), + managementv1.NodeProviderExecSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderExecSpec(ref), + managementv1.NodeProviderExecStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderExecStatus(ref), + managementv1.NodeProviderList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderList(ref), + managementv1.NodeProviderSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderSpec(ref), + managementv1.NodeProviderStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderStatus(ref), + managementv1.NodeProviderTerraformValidateResult{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeProviderTerraformValidateResult(ref), + managementv1.NodeType{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeType(ref), + managementv1.NodeTypeList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeTypeList(ref), + managementv1.NodeTypeSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeTypeSpec(ref), + managementv1.NodeTypeStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_NodeTypeStatus(ref), + managementv1.OIDC{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OIDC(ref), + managementv1.OIDCClient{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OIDCClient(ref), + managementv1.OIDCClientList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OIDCClientList(ref), + managementv1.OIDCClientSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OIDCClientSpec(ref), + managementv1.OIDCClientStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OIDCClientStatus(ref), + managementv1.OSImage{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OSImage(ref), + managementv1.OSImageList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OSImageList(ref), + managementv1.OSImageSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OSImageSpec(ref), + managementv1.OSImageStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OSImageStatus(ref), + managementv1.ObjectName{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ObjectName(ref), + managementv1.ObjectPermission{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ObjectPermission(ref), + managementv1.Operation{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Operation(ref), + managementv1.OwnedAccessKey{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OwnedAccessKey(ref), + managementv1.OwnedAccessKeyList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OwnedAccessKeyList(ref), + managementv1.OwnedAccessKeySpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref), + managementv1.OwnedAccessKeyStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref), + managementv1.PlatformDB{}.OpenAPIModelName(): schema_pkg_apis_management_v1_PlatformDB(ref), + managementv1.PodExecOptions{}.OpenAPIModelName(): schema_pkg_apis_management_v1_PodExecOptions(ref), + managementv1.PredefinedApp{}.OpenAPIModelName(): schema_pkg_apis_management_v1_PredefinedApp(ref), + managementv1.Project{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Project(ref), + managementv1.ProjectChartInfo{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectChartInfo(ref), + managementv1.ProjectChartInfoList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectChartInfoList(ref), + managementv1.ProjectChartInfoSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref), + managementv1.ProjectChartInfoStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref), + managementv1.ProjectCharts{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectCharts(ref), + managementv1.ProjectChartsList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectChartsList(ref), + managementv1.ProjectClusters{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectClusters(ref), + managementv1.ProjectClustersList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectClustersList(ref), + managementv1.ProjectImportSpace{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectImportSpace(ref), + managementv1.ProjectImportSpaceList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectImportSpaceList(ref), + managementv1.ProjectImportSpaceSource{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref), + managementv1.ProjectList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectList(ref), + managementv1.ProjectMember{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectMember(ref), + managementv1.ProjectMembers{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectMembers(ref), + managementv1.ProjectMembersList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectMembersList(ref), + managementv1.ProjectMembership{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectMembership(ref), + managementv1.ProjectMigrateSpaceInstance{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref), + managementv1.ProjectMigrateSpaceInstanceList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref), + managementv1.ProjectMigrateSpaceInstanceSource{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref), + managementv1.ProjectMigrateVirtualClusterInstance{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref), + managementv1.ProjectMigrateVirtualClusterInstanceList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref), + managementv1.ProjectMigrateVirtualClusterInstanceSource{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref), + managementv1.ProjectNodeTypes{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectNodeTypes(ref), + managementv1.ProjectNodeTypesList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectNodeTypesList(ref), + managementv1.ProjectRole{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectRole(ref), + managementv1.ProjectSecret{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectSecret(ref), + managementv1.ProjectSecretList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectSecretList(ref), + managementv1.ProjectSecretSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectSecretSpec(ref), + managementv1.ProjectSecretStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectSecretStatus(ref), + managementv1.ProjectSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectSpec(ref), + managementv1.ProjectStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectStatus(ref), + managementv1.ProjectTemplates{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectTemplates(ref), + managementv1.ProjectTemplatesList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ProjectTemplatesList(ref), + managementv1.RedirectToken{}.OpenAPIModelName(): schema_pkg_apis_management_v1_RedirectToken(ref), + managementv1.RedirectTokenClaims{}.OpenAPIModelName(): schema_pkg_apis_management_v1_RedirectTokenClaims(ref), + managementv1.RedirectTokenList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_RedirectTokenList(ref), + managementv1.RedirectTokenSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_RedirectTokenSpec(ref), + managementv1.RedirectTokenStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_RedirectTokenStatus(ref), + managementv1.RegisterVirtualCluster{}.OpenAPIModelName(): schema_pkg_apis_management_v1_RegisterVirtualCluster(ref), + managementv1.RegisterVirtualClusterList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref), + managementv1.RegisterVirtualClusterSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref), + managementv1.RegisterVirtualClusterStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref), + managementv1.ResetAccessKey{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ResetAccessKey(ref), + managementv1.ResetAccessKeyList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ResetAccessKeyList(ref), + managementv1.ResetAccessKeySpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ResetAccessKeySpec(ref), + managementv1.ResetAccessKeyStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref), + managementv1.SSHKey{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SSHKey(ref), + managementv1.SSHKeyList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SSHKeyList(ref), + managementv1.SSHKeySpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SSHKeySpec(ref), + managementv1.SSHKeyStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SSHKeyStatus(ref), + managementv1.Self{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Self(ref), + managementv1.SelfList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SelfList(ref), + managementv1.SelfSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SelfSpec(ref), + managementv1.SelfStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SelfStatus(ref), + managementv1.SelfSubjectAccessReview{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref), + managementv1.SelfSubjectAccessReviewList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref), + managementv1.SelfSubjectAccessReviewSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref), + managementv1.SelfSubjectAccessReviewStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref), + managementv1.SharedSecret{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SharedSecret(ref), + managementv1.SharedSecretList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SharedSecretList(ref), + managementv1.SharedSecretSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SharedSecretSpec(ref), + managementv1.SharedSecretStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SharedSecretStatus(ref), + managementv1.SnapshotRequest{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SnapshotRequest(ref), + managementv1.SnapshotRequestError{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SnapshotRequestError(ref), + managementv1.SnapshotRequestMetadata{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SnapshotRequestMetadata(ref), + managementv1.SnapshotRequestStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SnapshotRequestStatus(ref), + managementv1.SnapshotTaken{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SnapshotTaken(ref), + managementv1.SpaceInstance{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SpaceInstance(ref), + managementv1.SpaceInstanceList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SpaceInstanceList(ref), + managementv1.SpaceInstanceSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SpaceInstanceSpec(ref), + managementv1.SpaceInstanceStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SpaceInstanceStatus(ref), + managementv1.SpaceTemplate{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SpaceTemplate(ref), + managementv1.SpaceTemplateList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SpaceTemplateList(ref), + managementv1.SpaceTemplateSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SpaceTemplateSpec(ref), + managementv1.SpaceTemplateStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SpaceTemplateStatus(ref), + managementv1.StandaloneEtcdPeer{}.OpenAPIModelName(): schema_pkg_apis_management_v1_StandaloneEtcdPeer(ref), + managementv1.StandaloneEtcdPeerCoordinator{}.OpenAPIModelName(): schema_pkg_apis_management_v1_StandaloneEtcdPeerCoordinator(ref), + managementv1.StandalonePKI{}.OpenAPIModelName(): schema_pkg_apis_management_v1_StandalonePKI(ref), + managementv1.SubjectAccessReview{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SubjectAccessReview(ref), + managementv1.SubjectAccessReviewList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SubjectAccessReviewList(ref), + managementv1.SubjectAccessReviewSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref), + managementv1.SubjectAccessReviewStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref), + managementv1.Task{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Task(ref), + managementv1.TaskList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TaskList(ref), + managementv1.TaskLog{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TaskLog(ref), + managementv1.TaskLogList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TaskLogList(ref), + managementv1.TaskLogOptions{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TaskLogOptions(ref), + managementv1.TaskSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TaskSpec(ref), + managementv1.TaskStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TaskStatus(ref), + managementv1.Team{}.OpenAPIModelName(): schema_pkg_apis_management_v1_Team(ref), + managementv1.TeamAccessKeys{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TeamAccessKeys(ref), + managementv1.TeamAccessKeysList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TeamAccessKeysList(ref), + managementv1.TeamClusters{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TeamClusters(ref), + managementv1.TeamClustersList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TeamClustersList(ref), + managementv1.TeamList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TeamList(ref), + managementv1.TeamObjectPermissions{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TeamObjectPermissions(ref), + managementv1.TeamObjectPermissionsList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref), + managementv1.TeamPermissions{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TeamPermissions(ref), + managementv1.TeamPermissionsList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TeamPermissionsList(ref), + managementv1.TeamSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TeamSpec(ref), + managementv1.TeamStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TeamStatus(ref), + managementv1.TranslateVClusterResourceName{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref), + managementv1.TranslateVClusterResourceNameList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref), + managementv1.TranslateVClusterResourceNameSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TranslateVClusterResourceNameSpec(ref), + managementv1.TranslateVClusterResourceNameStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref), + managementv1.UsageDownload{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UsageDownload(ref), + managementv1.UsageDownloadList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UsageDownloadList(ref), + managementv1.UsageDownloadSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UsageDownloadSpec(ref), + managementv1.UsageDownloadStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UsageDownloadStatus(ref), + managementv1.User{}.OpenAPIModelName(): schema_pkg_apis_management_v1_User(ref), + managementv1.UserAccessKeys{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserAccessKeys(ref), + managementv1.UserAccessKeysList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserAccessKeysList(ref), + managementv1.UserClusters{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserClusters(ref), + managementv1.UserClustersList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserClustersList(ref), + managementv1.UserInfo{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserInfo(ref), + managementv1.UserList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserList(ref), + managementv1.UserObjectPermissions{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserObjectPermissions(ref), + managementv1.UserObjectPermissionsList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserObjectPermissionsList(ref), + managementv1.UserPermissions{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserPermissions(ref), + managementv1.UserPermissionsList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserPermissionsList(ref), + managementv1.UserPermissionsRole{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserPermissionsRole(ref), + managementv1.UserProfile{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserProfile(ref), + managementv1.UserProfileList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserProfileList(ref), + managementv1.UserProfileSecret{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserProfileSecret(ref), + managementv1.UserQuotasOptions{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserQuotasOptions(ref), + managementv1.UserSpacesOptions{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserSpacesOptions(ref), + managementv1.UserSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserSpec(ref), + managementv1.UserStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserStatus(ref), + managementv1.UserVirtualClustersOptions{}.OpenAPIModelName(): schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), + managementv1.VirtualClusterAccessKey{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), + managementv1.VirtualClusterAccessKeyList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), + managementv1.VirtualClusterDebugShellPodStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterDebugShellPodStatus(ref), + managementv1.VirtualClusterDebugShellPodsStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterDebugShellPodsStatus(ref), + managementv1.VirtualClusterDebugShellSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterDebugShellSpec(ref), + managementv1.VirtualClusterDebugShellStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterDebugShellStatus(ref), + managementv1.VirtualClusterExternalDatabase{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref), + managementv1.VirtualClusterExternalDatabaseList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref), + managementv1.VirtualClusterExternalDatabaseSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref), + managementv1.VirtualClusterExternalDatabaseStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref), + managementv1.VirtualClusterInstance{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstance(ref), + managementv1.VirtualClusterInstanceDebugShell{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceDebugShell(ref), + managementv1.VirtualClusterInstanceDebugShellList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceDebugShellList(ref), + managementv1.VirtualClusterInstanceDebugShellPods{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceDebugShellPods(ref), + managementv1.VirtualClusterInstanceDebugShellPodsList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceDebugShellPodsList(ref), + managementv1.VirtualClusterInstanceKubeConfig{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), + managementv1.VirtualClusterInstanceKubeConfigList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), + managementv1.VirtualClusterInstanceKubeConfigSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref), + managementv1.VirtualClusterInstanceKubeConfigStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref), + managementv1.VirtualClusterInstanceList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref), + managementv1.VirtualClusterInstanceLog{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref), + managementv1.VirtualClusterInstanceLogList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref), + managementv1.VirtualClusterInstanceLogOptions{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), + managementv1.VirtualClusterInstanceShell{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceShell(ref), + managementv1.VirtualClusterInstanceShellList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceShellList(ref), + managementv1.VirtualClusterInstanceSnapshot{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshot(ref), + managementv1.VirtualClusterInstanceSnapshotList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotList(ref), + managementv1.VirtualClusterInstanceSnapshotStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotStatus(ref), + managementv1.VirtualClusterInstanceSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), + managementv1.VirtualClusterInstanceStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), + managementv1.VirtualClusterNodeAccessKey{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterNodeAccessKey(ref), + managementv1.VirtualClusterNodeAccessKeyList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyList(ref), + managementv1.VirtualClusterNodeAccessKeySpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeySpec(ref), + managementv1.VirtualClusterNodeAccessKeyStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyStatus(ref), + managementv1.VirtualClusterResourceUsage{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterResourceUsage(ref), + managementv1.VirtualClusterResourceUsageList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterResourceUsageList(ref), + managementv1.VirtualClusterResourceUsageMap{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterResourceUsageMap(ref), + managementv1.VirtualClusterResourceUsageStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterResourceUsageStatus(ref), + managementv1.VirtualClusterRole{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterRole(ref), + managementv1.VirtualClusterSchema{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterSchema(ref), + managementv1.VirtualClusterSchemaList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), + managementv1.VirtualClusterSchemaSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref), + managementv1.VirtualClusterSchemaStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref), + managementv1.VirtualClusterShellSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterShellSpec(ref), + managementv1.VirtualClusterShellStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterShellStatus(ref), + managementv1.VirtualClusterStandalone{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterStandalone(ref), + managementv1.VirtualClusterStandaloneList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterStandaloneList(ref), + managementv1.VirtualClusterStandaloneSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterStandaloneSpec(ref), + managementv1.VirtualClusterStandaloneStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterStandaloneStatus(ref), + managementv1.VirtualClusterTemplate{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), + managementv1.VirtualClusterTemplateList{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), + managementv1.VirtualClusterTemplateSpec{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), + managementv1.VirtualClusterTemplateStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref), + managementv1.VolumeSnapshotRequestStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VolumeSnapshotRequestStatus(ref), + managementv1.VolumeSnapshotsRequestStatus{}.OpenAPIModelName(): schema_pkg_apis_management_v1_VolumeSnapshotsRequestStatus(ref), + apisstoragev1.Access{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Access(ref), + apisstoragev1.AccessKey{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKey(ref), + apisstoragev1.AccessKeyList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeyList(ref), + apisstoragev1.AccessKeyOIDC{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeyOIDC(ref), + apisstoragev1.AccessKeyOIDCProvider{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(ref), + apisstoragev1.AccessKeyScope{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeyScope(ref), + apisstoragev1.AccessKeyScopeCluster{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeyScopeCluster(ref), + apisstoragev1.AccessKeyScopeProject{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeyScopeProject(ref), + apisstoragev1.AccessKeyScopeRole{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref), + apisstoragev1.AccessKeyScopeRule{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref), + apisstoragev1.AccessKeyScopeSpace{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeyScopeSpace(ref), + apisstoragev1.AccessKeyScopeVirtualCluster{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeyScopeVirtualCluster(ref), + apisstoragev1.AccessKeySpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeySpec(ref), + apisstoragev1.AccessKeyStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeyStatus(ref), + apisstoragev1.AccessKeyVirtualCluster{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AccessKeyVirtualCluster(ref), + apisstoragev1.AllowedCluster{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AllowedCluster(ref), + apisstoragev1.AllowedClusterAccountTemplate{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AllowedClusterAccountTemplate(ref), + apisstoragev1.AllowedRunner{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AllowedRunner(ref), + apisstoragev1.AllowedTemplate{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AllowedTemplate(ref), + apisstoragev1.App{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_App(ref), + apisstoragev1.AppConfig{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AppConfig(ref), + apisstoragev1.AppList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AppList(ref), + apisstoragev1.AppParameter{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AppParameter(ref), + apisstoragev1.AppReference{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AppReference(ref), + apisstoragev1.AppSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AppSpec(ref), + apisstoragev1.AppStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AppStatus(ref), + apisstoragev1.AppTask{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AppTask(ref), + apisstoragev1.AppVersion{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_AppVersion(ref), + apisstoragev1.ArgoIntegrationSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ArgoIntegrationSpec(ref), + apisstoragev1.ArgoProjectPolicyRule{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref), + apisstoragev1.ArgoProjectRole{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ArgoProjectRole(ref), + apisstoragev1.ArgoProjectSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ArgoProjectSpec(ref), + apisstoragev1.ArgoProjectSpecMetadata{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ArgoProjectSpecMetadata(ref), + apisstoragev1.ArgoSSOSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ArgoSSOSpec(ref), + apisstoragev1.BCMNodeTypeSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref), + apisstoragev1.Chart{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Chart(ref), + apisstoragev1.ChartStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ChartStatus(ref), + apisstoragev1.Cluster{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Cluster(ref), + apisstoragev1.ClusterAPINodeTypeSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterAPINodeTypeSpec(ref), + apisstoragev1.ClusterAPIObjects{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterAPIObjects(ref), + apisstoragev1.ClusterAccess{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterAccess(ref), + apisstoragev1.ClusterAccessList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterAccessList(ref), + apisstoragev1.ClusterAccessSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterAccessSpec(ref), + apisstoragev1.ClusterAccessStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterAccessStatus(ref), + apisstoragev1.ClusterList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterList(ref), + apisstoragev1.ClusterRef{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterRef(ref), + apisstoragev1.ClusterRoleRef{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterRoleRef(ref), + apisstoragev1.ClusterRoleTemplate{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref), + apisstoragev1.ClusterRoleTemplateList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref), + apisstoragev1.ClusterRoleTemplateSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref), + apisstoragev1.ClusterRoleTemplateStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(ref), + apisstoragev1.ClusterRoleTemplateTemplate{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref), + apisstoragev1.ClusterSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterSpec(ref), + apisstoragev1.ClusterStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ClusterStatus(ref), + apisstoragev1.DHCPDeployment{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_DHCPDeployment(ref), + apisstoragev1.EntityInfo{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_EntityInfo(ref), + apisstoragev1.GroupResources{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_GroupResources(ref), + apisstoragev1.HelmChart{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_HelmChart(ref), + apisstoragev1.HelmChartRepository{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_HelmChartRepository(ref), + apisstoragev1.HelmConfiguration{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_HelmConfiguration(ref), + apisstoragev1.HelmTask{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_HelmTask(ref), + apisstoragev1.HelmTaskRelease{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_HelmTaskRelease(ref), + apisstoragev1.ImportVirtualClustersSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref), + apisstoragev1.InstanceAccess{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_InstanceAccess(ref), + apisstoragev1.InstanceAccessRule{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_InstanceAccessRule(ref), + apisstoragev1.InstanceDeployedAppStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref), + apisstoragev1.KindSecretRef{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_KindSecretRef(ref), + apisstoragev1.KubeVirtNodeTypeSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_KubeVirtNodeTypeSpec(ref), + apisstoragev1.LocalClusterAccessSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref), + apisstoragev1.LocalClusterAccessTemplate{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref), + apisstoragev1.LocalClusterRoleTemplate{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref), + apisstoragev1.LocalClusterRoleTemplateSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref), + apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ManagedNodeTypeObjectMeta(ref), + apisstoragev1.Member{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Member(ref), + apisstoragev1.Metal3BareMetalHosts{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Metal3BareMetalHosts(ref), + apisstoragev1.Metal3Deployment{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Metal3Deployment(ref), + apisstoragev1.Metal3NodeTypeSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Metal3NodeTypeSpec(ref), + apisstoragev1.Metal3ProviderDeployment{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Metal3ProviderDeployment(ref), + apisstoragev1.Metrics{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Metrics(ref), + apisstoragev1.MultusDeployment{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_MultusDeployment(ref), + apisstoragev1.NamedNodeTypeSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NamedNodeTypeSpec(ref), + apisstoragev1.NamespacePattern{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NamespacePattern(ref), + apisstoragev1.NamespacedRef{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NamespacedRef(ref), + apisstoragev1.NetworkPeer{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NetworkPeer(ref), + apisstoragev1.NetworkPeerList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NetworkPeerList(ref), + apisstoragev1.NetworkPeerSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NetworkPeerSpec(ref), + apisstoragev1.NetworkPeerStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NetworkPeerStatus(ref), + apisstoragev1.NodeClaim{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeClaim(ref), + apisstoragev1.NodeClaimList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeClaimList(ref), + apisstoragev1.NodeClaimSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeClaimSpec(ref), + apisstoragev1.NodeClaimStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeClaimStatus(ref), + apisstoragev1.NodeEnvironment{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeEnvironment(ref), + apisstoragev1.NodeEnvironmentList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeEnvironmentList(ref), + apisstoragev1.NodeEnvironmentSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeEnvironmentSpec(ref), + apisstoragev1.NodeEnvironmentStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeEnvironmentStatus(ref), + apisstoragev1.NodeProvider{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeProvider(ref), + apisstoragev1.NodeProviderBCM{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeProviderBCM(ref), + apisstoragev1.NodeProviderClusterAPI{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeProviderClusterAPI(ref), + apisstoragev1.NodeProviderClusterRef{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeProviderClusterRef(ref), + apisstoragev1.NodeProviderKubeVirt{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref), + apisstoragev1.NodeProviderList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeProviderList(ref), + apisstoragev1.NodeProviderMetal3{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeProviderMetal3(ref), + apisstoragev1.NodeProviderSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeProviderSpec(ref), + apisstoragev1.NodeProviderStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeProviderStatus(ref), + apisstoragev1.NodeProviderTerraform{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeProviderTerraform(ref), + apisstoragev1.NodeType{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeType(ref), + apisstoragev1.NodeTypeCapacity{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeTypeCapacity(ref), + apisstoragev1.NodeTypeList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeTypeList(ref), + apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeTypeOverhead(ref), + apisstoragev1.NodeTypeSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeTypeSpec(ref), + apisstoragev1.NodeTypeStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_NodeTypeStatus(ref), + apisstoragev1.OSImage{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_OSImage(ref), + apisstoragev1.OSImageList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_OSImageList(ref), + apisstoragev1.OSImageSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_OSImageSpec(ref), + apisstoragev1.OSImageStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_OSImageStatus(ref), + apisstoragev1.ObjectsStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ObjectsStatus(ref), + apisstoragev1.OpenCost{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_OpenCost(ref), + apisstoragev1.PodSelector{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_PodSelector(ref), + apisstoragev1.Project{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Project(ref), + apisstoragev1.ProjectList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ProjectList(ref), + apisstoragev1.ProjectNamespaceTemplate{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ProjectNamespaceTemplate(ref), + apisstoragev1.ProjectSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ProjectSpec(ref), + apisstoragev1.ProjectStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_ProjectStatus(ref), + apisstoragev1.QuotaStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_QuotaStatus(ref), + apisstoragev1.QuotaStatusProject{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_QuotaStatusProject(ref), + apisstoragev1.QuotaStatusProjectCluster{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref), + apisstoragev1.QuotaStatusUser{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_QuotaStatusUser(ref), + apisstoragev1.QuotaStatusUserUsed{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref), + apisstoragev1.Quotas{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Quotas(ref), + apisstoragev1.RancherIntegrationSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), + apisstoragev1.RancherProjectRef{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_RancherProjectRef(ref), + apisstoragev1.RequirePreset{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_RequirePreset(ref), + apisstoragev1.RequireTemplate{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_RequireTemplate(ref), + apisstoragev1.SSHKey{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SSHKey(ref), + apisstoragev1.SSHKeyList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SSHKeyList(ref), + apisstoragev1.SSHKeySpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SSHKeySpec(ref), + apisstoragev1.SSHKeyStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SSHKeyStatus(ref), + apisstoragev1.SSOIdentity{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SSOIdentity(ref), + apisstoragev1.SecretRef{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SecretRef(ref), + apisstoragev1.SharedSecret{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SharedSecret(ref), + apisstoragev1.SharedSecretList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SharedSecretList(ref), + apisstoragev1.SharedSecretSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SharedSecretSpec(ref), + apisstoragev1.SharedSecretStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SharedSecretStatus(ref), + apisstoragev1.SpaceInstance{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SpaceInstance(ref), + apisstoragev1.SpaceInstanceList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SpaceInstanceList(ref), + apisstoragev1.SpaceInstanceSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref), + apisstoragev1.SpaceInstanceStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref), + apisstoragev1.SpaceInstanceTemplateDefinition{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref), + apisstoragev1.SpaceTemplate{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SpaceTemplate(ref), + apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref), + apisstoragev1.SpaceTemplateList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SpaceTemplateList(ref), + apisstoragev1.SpaceTemplateSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref), + apisstoragev1.SpaceTemplateStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref), + apisstoragev1.SpaceTemplateVersion{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref), + apisstoragev1.Storage{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Storage(ref), + apisstoragev1.StreamContainer{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_StreamContainer(ref), + apisstoragev1.SyncMembersSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_SyncMembersSpec(ref), + apisstoragev1.Target{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Target(ref), + apisstoragev1.TargetCluster{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TargetCluster(ref), + apisstoragev1.TargetInstance{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TargetInstance(ref), + apisstoragev1.TargetVirtualCluster{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TargetVirtualCluster(ref), + apisstoragev1.Task{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Task(ref), + apisstoragev1.TaskDefinition{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TaskDefinition(ref), + apisstoragev1.TaskList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TaskList(ref), + apisstoragev1.TaskSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TaskSpec(ref), + apisstoragev1.TaskStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TaskStatus(ref), + apisstoragev1.Team{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_Team(ref), + apisstoragev1.TeamList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TeamList(ref), + apisstoragev1.TeamSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TeamSpec(ref), + apisstoragev1.TeamStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TeamStatus(ref), + apisstoragev1.TemplateHelmChart{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TemplateHelmChart(ref), + apisstoragev1.TemplateMetadata{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TemplateMetadata(ref), + apisstoragev1.TemplateRef{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TemplateRef(ref), + apisstoragev1.TerraformNodeEnvironmentTemplate{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TerraformNodeEnvironmentTemplate(ref), + apisstoragev1.TerraformNodeTypeSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TerraformNodeTypeSpec(ref), + apisstoragev1.TerraformTemplate{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TerraformTemplate(ref), + apisstoragev1.TerraformTemplateSourceGit{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_TerraformTemplateSourceGit(ref), + apisstoragev1.User{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_User(ref), + apisstoragev1.UserList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_UserList(ref), + apisstoragev1.UserOrTeam{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_UserOrTeam(ref), + apisstoragev1.UserOrTeamEntity{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_UserOrTeamEntity(ref), + apisstoragev1.UserSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_UserSpec(ref), + apisstoragev1.UserStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_UserStatus(ref), + apisstoragev1.VaultAuthSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VaultAuthSpec(ref), + apisstoragev1.VaultIntegrationSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref), + apisstoragev1.VirtualClusterAccessPoint{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref), + apisstoragev1.VirtualClusterAccessPointIngressSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref), + apisstoragev1.VirtualClusterClusterRef{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref), + apisstoragev1.VirtualClusterCommonSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref), + apisstoragev1.VirtualClusterHelmChart{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref), + apisstoragev1.VirtualClusterHelmRelease{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref), + apisstoragev1.VirtualClusterHelmReleaseStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref), + apisstoragev1.VirtualClusterInstance{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterInstance(ref), + apisstoragev1.VirtualClusterInstanceList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref), + apisstoragev1.VirtualClusterInstanceSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref), + apisstoragev1.VirtualClusterInstanceStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref), + apisstoragev1.VirtualClusterInstanceTemplateDefinition{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref), + apisstoragev1.VirtualClusterProSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref), + apisstoragev1.VirtualClusterSpaceTemplateDefinition{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref), + apisstoragev1.VirtualClusterStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterStatus(ref), + apisstoragev1.VirtualClusterTemplate{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref), + apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref), + apisstoragev1.VirtualClusterTemplateList{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref), + apisstoragev1.VirtualClusterTemplateSpaceTemplateRef{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref), + apisstoragev1.VirtualClusterTemplateSpec{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref), + apisstoragev1.VirtualClusterTemplateStatus{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref), + apisstoragev1.VirtualClusterTemplateVersion{}.OpenAPIModelName(): schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref), + uiv1.CspPolicy{}.OpenAPIModelName(): schema_pkg_apis_ui_v1_CspPolicy(ref), + uiv1.ExternalURLs{}.OpenAPIModelName(): schema_pkg_apis_ui_v1_ExternalURLs(ref), + uiv1.MultiRegion{}.OpenAPIModelName(): schema_pkg_apis_ui_v1_MultiRegion(ref), + uiv1.NavBarButton{}.OpenAPIModelName(): schema_pkg_apis_ui_v1_NavBarButton(ref), + uiv1.UISettings{}.OpenAPIModelName(): schema_pkg_apis_ui_v1_UISettings(ref), + uiv1.UISettingsConfig{}.OpenAPIModelName(): schema_pkg_apis_ui_v1_UISettingsConfig(ref), + uiv1.UISettingsSpec{}.OpenAPIModelName(): schema_pkg_apis_ui_v1_UISettingsSpec(ref), + uiv1.UISettingsStatus{}.OpenAPIModelName(): schema_pkg_apis_ui_v1_UISettingsStatus(ref), + uiv1.VClusterVersion{}.OpenAPIModelName(): schema_pkg_apis_ui_v1_VClusterVersion(ref), + virtualclusterv1.HelmRelease{}.OpenAPIModelName(): schema_pkg_apis_virtualcluster_v1_HelmRelease(ref), + virtualclusterv1.HelmReleaseList{}.OpenAPIModelName(): schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref), + virtualclusterv1.HelmReleaseSpec{}.OpenAPIModelName(): schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref), + virtualclusterv1.HelmReleaseStatus{}.OpenAPIModelName(): schema_pkg_apis_virtualcluster_v1_HelmReleaseStatus(ref), + admissionregistrationv1.AuditAnnotation{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_AuditAnnotation(ref), + admissionregistrationv1.ExpressionWarning{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ExpressionWarning(ref), + admissionregistrationv1.MatchCondition{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_MatchCondition(ref), + admissionregistrationv1.MatchResources{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_MatchResources(ref), + admissionregistrationv1.MutatingWebhook{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref), + admissionregistrationv1.MutatingWebhookConfiguration{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfiguration(ref), + admissionregistrationv1.MutatingWebhookConfigurationList{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfigurationList(ref), + admissionregistrationv1.NamedRuleWithOperations{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref), + admissionregistrationv1.ParamKind{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ParamKind(ref), + admissionregistrationv1.ParamRef{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ParamRef(ref), + admissionregistrationv1.Rule{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_Rule(ref), + admissionregistrationv1.RuleWithOperations{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref), + admissionregistrationv1.ServiceReference{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ServiceReference(ref), + admissionregistrationv1.TypeChecking{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_TypeChecking(ref), + admissionregistrationv1.ValidatingAdmissionPolicy{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicy(ref), + admissionregistrationv1.ValidatingAdmissionPolicyBinding{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding(ref), + admissionregistrationv1.ValidatingAdmissionPolicyBindingList{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingList(ref), + admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingSpec(ref), + admissionregistrationv1.ValidatingAdmissionPolicyList{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyList(ref), + admissionregistrationv1.ValidatingAdmissionPolicySpec{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref), + admissionregistrationv1.ValidatingAdmissionPolicyStatus{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus(ref), + admissionregistrationv1.ValidatingWebhook{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref), + admissionregistrationv1.ValidatingWebhookConfiguration{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfiguration(ref), + admissionregistrationv1.ValidatingWebhookConfigurationList{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationList(ref), + admissionregistrationv1.Validation{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_Validation(ref), + admissionregistrationv1.Variable{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_Variable(ref), + admissionregistrationv1.WebhookClientConfig{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref), + v1beta1.ApplyConfiguration{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ApplyConfiguration(ref), + v1beta1.AuditAnnotation{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref), + v1beta1.ExpressionWarning{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref), + v1beta1.JSONPatch{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_JSONPatch(ref), + v1beta1.MatchCondition{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref), + v1beta1.MatchResources{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref), + v1beta1.MutatingAdmissionPolicy{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicy(ref), + v1beta1.MutatingAdmissionPolicyBinding{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBinding(ref), + v1beta1.MutatingAdmissionPolicyBindingList{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBindingList(ref), + v1beta1.MutatingAdmissionPolicyBindingSpec{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBindingSpec(ref), + v1beta1.MutatingAdmissionPolicyList{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyList(ref), + v1beta1.MutatingAdmissionPolicySpec{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicySpec(ref), + v1beta1.MutatingWebhook{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref), + v1beta1.MutatingWebhookConfiguration{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration(ref), + v1beta1.MutatingWebhookConfigurationList{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList(ref), + v1beta1.Mutation{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_Mutation(ref), + v1beta1.NamedRuleWithOperations{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref), + v1beta1.ParamKind{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ParamKind(ref), + v1beta1.ParamRef{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ParamRef(ref), + v1beta1.ServiceReference{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ServiceReference(ref), + v1beta1.TypeChecking{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_TypeChecking(ref), + v1beta1.ValidatingAdmissionPolicy{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicy(ref), + v1beta1.ValidatingAdmissionPolicyBinding{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBinding(ref), + v1beta1.ValidatingAdmissionPolicyBindingList{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingList(ref), + v1beta1.ValidatingAdmissionPolicyBindingSpec{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingSpec(ref), + v1beta1.ValidatingAdmissionPolicyList{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyList(ref), + v1beta1.ValidatingAdmissionPolicySpec{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpec(ref), + v1beta1.ValidatingAdmissionPolicyStatus{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyStatus(ref), + v1beta1.ValidatingWebhook{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref), + v1beta1.ValidatingWebhookConfiguration{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration(ref), + v1beta1.ValidatingWebhookConfigurationList{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList(ref), + v1beta1.Validation{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_Validation(ref), + v1beta1.Variable{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_Variable(ref), + v1beta1.WebhookClientConfig{}.OpenAPIModelName(): schema_k8sio_api_admissionregistration_v1beta1_WebhookClientConfig(ref), + appsv1.ControllerRevision{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ControllerRevision(ref), + appsv1.ControllerRevisionList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ControllerRevisionList(ref), + appsv1.DaemonSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DaemonSet(ref), + appsv1.DaemonSetCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DaemonSetCondition(ref), + appsv1.DaemonSetList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DaemonSetList(ref), + appsv1.DaemonSetSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DaemonSetSpec(ref), + appsv1.DaemonSetStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DaemonSetStatus(ref), + appsv1.DaemonSetUpdateStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref), + appsv1.Deployment{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_Deployment(ref), + appsv1.DeploymentCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DeploymentCondition(ref), + appsv1.DeploymentList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DeploymentList(ref), + appsv1.DeploymentSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DeploymentSpec(ref), + appsv1.DeploymentStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DeploymentStatus(ref), + appsv1.DeploymentStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DeploymentStrategy(ref), + appsv1.ReplicaSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ReplicaSet(ref), + appsv1.ReplicaSetCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ReplicaSetCondition(ref), + appsv1.ReplicaSetList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ReplicaSetList(ref), + appsv1.ReplicaSetSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ReplicaSetSpec(ref), + appsv1.ReplicaSetStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ReplicaSetStatus(ref), + appsv1.RollingUpdateDaemonSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref), + appsv1.RollingUpdateDeployment{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref), + appsv1.RollingUpdateStatefulSetStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref), + appsv1.StatefulSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSet(ref), + appsv1.StatefulSetCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetCondition(ref), + appsv1.StatefulSetList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetList(ref), + appsv1.StatefulSetOrdinals{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetOrdinals(ref), + appsv1.StatefulSetPersistentVolumeClaimRetentionPolicy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + appsv1.StatefulSetSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetSpec(ref), + appsv1.StatefulSetStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetStatus(ref), + appsv1.StatefulSetUpdateStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref), + appsv1beta1.ControllerRevision{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_ControllerRevision(ref), + appsv1beta1.ControllerRevisionList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref), + appsv1beta1.Deployment{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_Deployment(ref), + appsv1beta1.DeploymentCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_DeploymentCondition(ref), + appsv1beta1.DeploymentList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_DeploymentList(ref), + appsv1beta1.DeploymentRollback{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_DeploymentRollback(ref), + appsv1beta1.DeploymentSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref), + appsv1beta1.DeploymentStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref), + appsv1beta1.DeploymentStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_DeploymentStrategy(ref), + appsv1beta1.RollbackConfig{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_RollbackConfig(ref), + appsv1beta1.RollingUpdateDeployment{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_RollingUpdateDeployment(ref), + appsv1beta1.RollingUpdateStatefulSetStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_RollingUpdateStatefulSetStrategy(ref), + appsv1beta1.Scale{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_Scale(ref), + appsv1beta1.ScaleSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_ScaleSpec(ref), + appsv1beta1.ScaleStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_ScaleStatus(ref), + appsv1beta1.StatefulSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_StatefulSet(ref), + appsv1beta1.StatefulSetCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_StatefulSetCondition(ref), + appsv1beta1.StatefulSetList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_StatefulSetList(ref), + appsv1beta1.StatefulSetOrdinals{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_StatefulSetOrdinals(ref), + appsv1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + appsv1beta1.StatefulSetSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref), + appsv1beta1.StatefulSetStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref), + appsv1beta1.StatefulSetUpdateStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta1_StatefulSetUpdateStrategy(ref), + v1beta2.ControllerRevision{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_ControllerRevision(ref), + v1beta2.ControllerRevisionList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref), + v1beta2.DaemonSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_DaemonSet(ref), + v1beta2.DaemonSetCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_DaemonSetCondition(ref), + v1beta2.DaemonSetList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_DaemonSetList(ref), + v1beta2.DaemonSetSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_DaemonSetSpec(ref), + v1beta2.DaemonSetStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_DaemonSetStatus(ref), + v1beta2.DaemonSetUpdateStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_DaemonSetUpdateStrategy(ref), + v1beta2.Deployment{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_Deployment(ref), + v1beta2.DeploymentCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_DeploymentCondition(ref), + v1beta2.DeploymentList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_DeploymentList(ref), + v1beta2.DeploymentSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref), + v1beta2.DeploymentStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref), + v1beta2.DeploymentStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_DeploymentStrategy(ref), + v1beta2.ReplicaSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_ReplicaSet(ref), + v1beta2.ReplicaSetCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_ReplicaSetCondition(ref), + v1beta2.ReplicaSetList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref), + v1beta2.ReplicaSetSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref), + v1beta2.ReplicaSetStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref), + v1beta2.RollingUpdateDaemonSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref), + v1beta2.RollingUpdateDeployment{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_RollingUpdateDeployment(ref), + v1beta2.RollingUpdateStatefulSetStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_RollingUpdateStatefulSetStrategy(ref), + v1beta2.Scale{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_Scale(ref), + v1beta2.ScaleSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_ScaleSpec(ref), + v1beta2.ScaleStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_ScaleStatus(ref), + v1beta2.StatefulSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_StatefulSet(ref), + v1beta2.StatefulSetCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_StatefulSetCondition(ref), + v1beta2.StatefulSetList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_StatefulSetList(ref), + v1beta2.StatefulSetOrdinals{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_StatefulSetOrdinals(ref), + v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + v1beta2.StatefulSetSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref), + v1beta2.StatefulSetStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref), + v1beta2.StatefulSetUpdateStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1beta2_StatefulSetUpdateStrategy(ref), + authenticationv1.BoundObjectReference{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1_BoundObjectReference(ref), + authenticationv1.SelfSubjectReview{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1_SelfSubjectReview(ref), + authenticationv1.SelfSubjectReviewStatus{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1_SelfSubjectReviewStatus(ref), + authenticationv1.TokenRequest{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1_TokenRequest(ref), + authenticationv1.TokenRequestSpec{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1_TokenRequestSpec(ref), + authenticationv1.TokenRequestStatus{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1_TokenRequestStatus(ref), + authenticationv1.TokenReview{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1_TokenReview(ref), + authenticationv1.TokenReviewSpec{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1_TokenReviewSpec(ref), + authenticationv1.TokenReviewStatus{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1_TokenReviewStatus(ref), + authenticationv1.UserInfo{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1_UserInfo(ref), + authenticationv1beta1.SelfSubjectReview{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1beta1_SelfSubjectReview(ref), + authenticationv1beta1.SelfSubjectReviewStatus{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1beta1_SelfSubjectReviewStatus(ref), + authenticationv1beta1.TokenReview{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1beta1_TokenReview(ref), + authenticationv1beta1.TokenReviewSpec{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1beta1_TokenReviewSpec(ref), + authenticationv1beta1.TokenReviewStatus{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1beta1_TokenReviewStatus(ref), + authenticationv1beta1.UserInfo{}.OpenAPIModelName(): schema_k8sio_api_authentication_v1beta1_UserInfo(ref), + authorizationv1.FieldSelectorAttributes{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_FieldSelectorAttributes(ref), + authorizationv1.LabelSelectorAttributes{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_LabelSelectorAttributes(ref), + authorizationv1.LocalSubjectAccessReview{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_LocalSubjectAccessReview(ref), + authorizationv1.NonResourceAttributes{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_NonResourceAttributes(ref), + authorizationv1.NonResourceRule{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_NonResourceRule(ref), + authorizationv1.ResourceAttributes{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_ResourceAttributes(ref), + authorizationv1.ResourceRule{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_ResourceRule(ref), + authorizationv1.SelfSubjectAccessReview{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_SelfSubjectAccessReview(ref), + authorizationv1.SelfSubjectAccessReviewSpec{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_SelfSubjectAccessReviewSpec(ref), + authorizationv1.SelfSubjectRulesReview{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_SelfSubjectRulesReview(ref), + authorizationv1.SelfSubjectRulesReviewSpec{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_SelfSubjectRulesReviewSpec(ref), + authorizationv1.SubjectAccessReview{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_SubjectAccessReview(ref), + authorizationv1.SubjectAccessReviewSpec{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_SubjectAccessReviewSpec(ref), + authorizationv1.SubjectAccessReviewStatus{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_SubjectAccessReviewStatus(ref), + authorizationv1.SubjectRulesReviewStatus{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref), + authorizationv1beta1.LocalSubjectAccessReview{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_LocalSubjectAccessReview(ref), + authorizationv1beta1.NonResourceAttributes{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_NonResourceAttributes(ref), + authorizationv1beta1.NonResourceRule{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_NonResourceRule(ref), + authorizationv1beta1.ResourceAttributes{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_ResourceAttributes(ref), + authorizationv1beta1.ResourceRule{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_ResourceRule(ref), + authorizationv1beta1.SelfSubjectAccessReview{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReview(ref), + authorizationv1beta1.SelfSubjectAccessReviewSpec{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReviewSpec(ref), + authorizationv1beta1.SelfSubjectRulesReview{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReview(ref), + authorizationv1beta1.SelfSubjectRulesReviewSpec{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReviewSpec(ref), + authorizationv1beta1.SubjectAccessReview{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_SubjectAccessReview(ref), + authorizationv1beta1.SubjectAccessReviewSpec{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewSpec(ref), + authorizationv1beta1.SubjectAccessReviewStatus{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewStatus(ref), + authorizationv1beta1.SubjectRulesReviewStatus{}.OpenAPIModelName(): schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref), + autoscalingv1.ContainerResourceMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref), + autoscalingv1.ContainerResourceMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref), + autoscalingv1.CrossVersionObjectReference{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_CrossVersionObjectReference(ref), + autoscalingv1.ExternalMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref), + autoscalingv1.ExternalMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref), + autoscalingv1.HorizontalPodAutoscaler{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref), + autoscalingv1.HorizontalPodAutoscalerCondition{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref), + autoscalingv1.HorizontalPodAutoscalerList{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref), + autoscalingv1.HorizontalPodAutoscalerSpec{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref), + autoscalingv1.HorizontalPodAutoscalerStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref), + autoscalingv1.MetricSpec{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_MetricSpec(ref), + autoscalingv1.MetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_MetricStatus(ref), + autoscalingv1.ObjectMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref), + autoscalingv1.ObjectMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref), + autoscalingv1.PodsMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref), + autoscalingv1.PodsMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref), + autoscalingv1.ResourceMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref), + autoscalingv1.ResourceMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref), + autoscalingv1.Scale{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_Scale(ref), + autoscalingv1.ScaleSpec{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_ScaleSpec(ref), + autoscalingv1.ScaleStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v1_ScaleStatus(ref), + v2beta1.ContainerResourceMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricSource(ref), + v2beta1.ContainerResourceMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricStatus(ref), + v2beta1.CrossVersionObjectReference{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_CrossVersionObjectReference(ref), + v2beta1.ExternalMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_ExternalMetricSource(ref), + v2beta1.ExternalMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_ExternalMetricStatus(ref), + v2beta1.HorizontalPodAutoscaler{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscaler(ref), + v2beta1.HorizontalPodAutoscalerCondition{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerCondition(ref), + v2beta1.HorizontalPodAutoscalerList{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref), + v2beta1.HorizontalPodAutoscalerSpec{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref), + v2beta1.HorizontalPodAutoscalerStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref), + v2beta1.MetricSpec{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref), + v2beta1.MetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref), + v2beta1.ObjectMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref), + v2beta1.ObjectMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref), + v2beta1.PodsMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_PodsMetricSource(ref), + v2beta1.PodsMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_PodsMetricStatus(ref), + v2beta1.ResourceMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_ResourceMetricSource(ref), + v2beta1.ResourceMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta1_ResourceMetricStatus(ref), + v2beta2.ContainerResourceMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricSource(ref), + v2beta2.ContainerResourceMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricStatus(ref), + v2beta2.CrossVersionObjectReference{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_CrossVersionObjectReference(ref), + v2beta2.ExternalMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_ExternalMetricSource(ref), + v2beta2.ExternalMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_ExternalMetricStatus(ref), + v2beta2.HPAScalingPolicy{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_HPAScalingPolicy(ref), + v2beta2.HPAScalingRules{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_HPAScalingRules(ref), + v2beta2.HorizontalPodAutoscaler{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscaler(ref), + v2beta2.HorizontalPodAutoscalerBehavior{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerBehavior(ref), + v2beta2.HorizontalPodAutoscalerCondition{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerCondition(ref), + v2beta2.HorizontalPodAutoscalerList{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref), + v2beta2.HorizontalPodAutoscalerSpec{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref), + v2beta2.HorizontalPodAutoscalerStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref), + v2beta2.MetricIdentifier{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_MetricIdentifier(ref), + v2beta2.MetricSpec{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref), + v2beta2.MetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref), + v2beta2.MetricTarget{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_MetricTarget(ref), + v2beta2.MetricValueStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_MetricValueStatus(ref), + v2beta2.ObjectMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_ObjectMetricSource(ref), + v2beta2.ObjectMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_ObjectMetricStatus(ref), + v2beta2.PodsMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_PodsMetricSource(ref), + v2beta2.PodsMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_PodsMetricStatus(ref), + v2beta2.ResourceMetricSource{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_ResourceMetricSource(ref), + v2beta2.ResourceMetricStatus{}.OpenAPIModelName(): schema_k8sio_api_autoscaling_v2beta2_ResourceMetricStatus(ref), + batchv1.CronJob{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_CronJob(ref), + batchv1.CronJobList{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_CronJobList(ref), + batchv1.CronJobSpec{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_CronJobSpec(ref), + batchv1.CronJobStatus{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_CronJobStatus(ref), + batchv1.Job{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_Job(ref), + batchv1.JobCondition{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_JobCondition(ref), + batchv1.JobList{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_JobList(ref), + batchv1.JobSpec{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_JobSpec(ref), + batchv1.JobStatus{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_JobStatus(ref), + batchv1.JobTemplateSpec{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_JobTemplateSpec(ref), + batchv1.PodFailurePolicy{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_PodFailurePolicy(ref), + batchv1.PodFailurePolicyOnExitCodesRequirement{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_PodFailurePolicyOnExitCodesRequirement(ref), + batchv1.PodFailurePolicyOnPodConditionsPattern{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref), + batchv1.PodFailurePolicyRule{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref), + batchv1.SuccessPolicy{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_SuccessPolicy(ref), + batchv1.SuccessPolicyRule{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_SuccessPolicyRule(ref), + batchv1.UncountedTerminatedPods{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_UncountedTerminatedPods(ref), + batchv1beta1.CronJob{}.OpenAPIModelName(): schema_k8sio_api_batch_v1beta1_CronJob(ref), + batchv1beta1.CronJobList{}.OpenAPIModelName(): schema_k8sio_api_batch_v1beta1_CronJobList(ref), + batchv1beta1.CronJobSpec{}.OpenAPIModelName(): schema_k8sio_api_batch_v1beta1_CronJobSpec(ref), + batchv1beta1.CronJobStatus{}.OpenAPIModelName(): schema_k8sio_api_batch_v1beta1_CronJobStatus(ref), + batchv1beta1.JobTemplateSpec{}.OpenAPIModelName(): schema_k8sio_api_batch_v1beta1_JobTemplateSpec(ref), + certificatesv1beta1.CertificateSigningRequest{}.OpenAPIModelName(): schema_k8sio_api_certificates_v1beta1_CertificateSigningRequest(ref), + certificatesv1beta1.CertificateSigningRequestCondition{}.OpenAPIModelName(): schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestCondition(ref), + certificatesv1beta1.CertificateSigningRequestList{}.OpenAPIModelName(): schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref), + certificatesv1beta1.CertificateSigningRequestSpec{}.OpenAPIModelName(): schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestSpec(ref), + certificatesv1beta1.CertificateSigningRequestStatus{}.OpenAPIModelName(): schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref), + certificatesv1beta1.ClusterTrustBundle{}.OpenAPIModelName(): schema_k8sio_api_certificates_v1beta1_ClusterTrustBundle(ref), + certificatesv1beta1.ClusterTrustBundleList{}.OpenAPIModelName(): schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleList(ref), + certificatesv1beta1.ClusterTrustBundleSpec{}.OpenAPIModelName(): schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleSpec(ref), + certificatesv1beta1.PodCertificateRequest{}.OpenAPIModelName(): schema_k8sio_api_certificates_v1beta1_PodCertificateRequest(ref), + certificatesv1beta1.PodCertificateRequestList{}.OpenAPIModelName(): schema_k8sio_api_certificates_v1beta1_PodCertificateRequestList(ref), + certificatesv1beta1.PodCertificateRequestSpec{}.OpenAPIModelName(): schema_k8sio_api_certificates_v1beta1_PodCertificateRequestSpec(ref), + certificatesv1beta1.PodCertificateRequestStatus{}.OpenAPIModelName(): schema_k8sio_api_certificates_v1beta1_PodCertificateRequestStatus(ref), + coordinationv1.Lease{}.OpenAPIModelName(): schema_k8sio_api_coordination_v1_Lease(ref), + coordinationv1.LeaseList{}.OpenAPIModelName(): schema_k8sio_api_coordination_v1_LeaseList(ref), + coordinationv1.LeaseSpec{}.OpenAPIModelName(): schema_k8sio_api_coordination_v1_LeaseSpec(ref), + coordinationv1beta1.Lease{}.OpenAPIModelName(): schema_k8sio_api_coordination_v1beta1_Lease(ref), + coordinationv1beta1.LeaseCandidate{}.OpenAPIModelName(): schema_k8sio_api_coordination_v1beta1_LeaseCandidate(ref), + coordinationv1beta1.LeaseCandidateList{}.OpenAPIModelName(): schema_k8sio_api_coordination_v1beta1_LeaseCandidateList(ref), + coordinationv1beta1.LeaseCandidateSpec{}.OpenAPIModelName(): schema_k8sio_api_coordination_v1beta1_LeaseCandidateSpec(ref), + coordinationv1beta1.LeaseList{}.OpenAPIModelName(): schema_k8sio_api_coordination_v1beta1_LeaseList(ref), + coordinationv1beta1.LeaseSpec{}.OpenAPIModelName(): schema_k8sio_api_coordination_v1beta1_LeaseSpec(ref), + corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), + corev1.Affinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Affinity(ref), + corev1.AppArmorProfile{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AppArmorProfile(ref), + corev1.AttachedVolume{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AttachedVolume(ref), + corev1.AvoidPods{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AvoidPods(ref), + corev1.AzureDiskVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref), + corev1.AzureFilePersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref), + corev1.AzureFileVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AzureFileVolumeSource(ref), + corev1.Binding{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Binding(ref), + corev1.CSIPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref), + corev1.CSIVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CSIVolumeSource(ref), + corev1.Capabilities{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Capabilities(ref), + corev1.CephFSPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref), + corev1.CephFSVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CephFSVolumeSource(ref), + corev1.CinderPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref), + corev1.CinderVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CinderVolumeSource(ref), + corev1.ClientIPConfig{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ClientIPConfig(ref), + corev1.ClusterTrustBundleProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ClusterTrustBundleProjection(ref), + corev1.ComponentCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ComponentCondition(ref), + corev1.ComponentStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ComponentStatus(ref), + corev1.ComponentStatusList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ComponentStatusList(ref), + corev1.ConfigMap{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMap(ref), + corev1.ConfigMapEnvSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapEnvSource(ref), + corev1.ConfigMapKeySelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapKeySelector(ref), + corev1.ConfigMapList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapList(ref), + corev1.ConfigMapNodeConfigSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref), + corev1.ConfigMapProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapProjection(ref), + corev1.ConfigMapVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref), + corev1.Container{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Container(ref), + corev1.ContainerExtendedResourceRequest{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerExtendedResourceRequest(ref), + corev1.ContainerImage{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerImage(ref), + corev1.ContainerPort{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerPort(ref), + corev1.ContainerResizePolicy{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerResizePolicy(ref), + corev1.ContainerRestartRule{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerRestartRule(ref), + corev1.ContainerRestartRuleOnExitCodes{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerRestartRuleOnExitCodes(ref), + corev1.ContainerState{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerState(ref), + corev1.ContainerStateRunning{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerStateRunning(ref), + corev1.ContainerStateTerminated{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerStateTerminated(ref), + corev1.ContainerStateWaiting{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerStateWaiting(ref), + corev1.ContainerStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerStatus(ref), + corev1.ContainerUser{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerUser(ref), + corev1.DaemonEndpoint{}.OpenAPIModelName(): schema_k8sio_api_core_v1_DaemonEndpoint(ref), + corev1.DownwardAPIProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_DownwardAPIProjection(ref), + corev1.DownwardAPIVolumeFile{}.OpenAPIModelName(): schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref), + corev1.DownwardAPIVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref), + corev1.EmptyDirVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref), + corev1.EndpointAddress{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EndpointAddress(ref), + corev1.EndpointPort{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EndpointPort(ref), + corev1.EndpointSubset{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EndpointSubset(ref), + corev1.Endpoints{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Endpoints(ref), + corev1.EndpointsList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EndpointsList(ref), + corev1.EnvFromSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EnvFromSource(ref), + corev1.EnvVar{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EnvVar(ref), + corev1.EnvVarSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EnvVarSource(ref), + corev1.EphemeralContainer{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EphemeralContainer(ref), + corev1.EphemeralContainerCommon{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EphemeralContainerCommon(ref), + corev1.EphemeralVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EphemeralVolumeSource(ref), + corev1.Event{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Event(ref), + corev1.EventList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EventList(ref), + corev1.EventSeries{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EventSeries(ref), + corev1.EventSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EventSource(ref), + corev1.ExecAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ExecAction(ref), + corev1.FCVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FCVolumeSource(ref), + corev1.FileKeySelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FileKeySelector(ref), + corev1.FlexPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref), + corev1.FlexVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FlexVolumeSource(ref), + corev1.FlockerVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FlockerVolumeSource(ref), + corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref), + corev1.GRPCAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GRPCAction(ref), + corev1.GitRepoVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GitRepoVolumeSource(ref), + corev1.GlusterfsPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref), + corev1.GlusterfsVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref), + corev1.HTTPGetAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HTTPGetAction(ref), + corev1.HTTPHeader{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HTTPHeader(ref), + corev1.HostAlias{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HostAlias(ref), + corev1.HostIP{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HostIP(ref), + corev1.HostPathVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HostPathVolumeSource(ref), + corev1.ISCSIPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref), + corev1.ISCSIVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ISCSIVolumeSource(ref), + corev1.ImageVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ImageVolumeSource(ref), + corev1.KeyToPath{}.OpenAPIModelName(): schema_k8sio_api_core_v1_KeyToPath(ref), + corev1.Lifecycle{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Lifecycle(ref), + corev1.LifecycleHandler{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LifecycleHandler(ref), + corev1.LimitRange{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LimitRange(ref), + corev1.LimitRangeItem{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LimitRangeItem(ref), + corev1.LimitRangeList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LimitRangeList(ref), + corev1.LimitRangeSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LimitRangeSpec(ref), + corev1.LinuxContainerUser{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LinuxContainerUser(ref), + corev1.List{}.OpenAPIModelName(): schema_k8sio_api_core_v1_List(ref), + corev1.LoadBalancerIngress{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LoadBalancerIngress(ref), + corev1.LoadBalancerStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LoadBalancerStatus(ref), + corev1.LocalObjectReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LocalObjectReference(ref), + corev1.LocalVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LocalVolumeSource(ref), + corev1.ModifyVolumeStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ModifyVolumeStatus(ref), + corev1.NFSVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NFSVolumeSource(ref), + corev1.Namespace{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Namespace(ref), + corev1.NamespaceCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NamespaceCondition(ref), + corev1.NamespaceList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NamespaceList(ref), + corev1.NamespaceSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NamespaceSpec(ref), + corev1.NamespaceStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NamespaceStatus(ref), + corev1.Node{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Node(ref), + corev1.NodeAddress{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeAddress(ref), + corev1.NodeAffinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeAffinity(ref), + corev1.NodeCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeCondition(ref), + corev1.NodeConfigSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeConfigSource(ref), + corev1.NodeConfigStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeConfigStatus(ref), + corev1.NodeDaemonEndpoints{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref), + corev1.NodeFeatures{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeFeatures(ref), + corev1.NodeList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeList(ref), + corev1.NodeProxyOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeProxyOptions(ref), + corev1.NodeRuntimeHandler{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeRuntimeHandler(ref), + corev1.NodeRuntimeHandlerFeatures{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeRuntimeHandlerFeatures(ref), + corev1.NodeSelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSelector(ref), + corev1.NodeSelectorRequirement{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSelectorRequirement(ref), + corev1.NodeSelectorTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSelectorTerm(ref), + corev1.NodeSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSpec(ref), + corev1.NodeStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeStatus(ref), + corev1.NodeSwapStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSwapStatus(ref), + corev1.NodeSystemInfo{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSystemInfo(ref), + corev1.ObjectFieldSelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ObjectFieldSelector(ref), + corev1.ObjectReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ObjectReference(ref), + corev1.PersistentVolume{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolume(ref), + corev1.PersistentVolumeClaim{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaim(ref), + corev1.PersistentVolumeClaimCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref), + corev1.PersistentVolumeClaimList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref), + corev1.PersistentVolumeClaimSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref), + corev1.PersistentVolumeClaimStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref), + corev1.PersistentVolumeClaimTemplate{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref), + corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref), + corev1.PersistentVolumeList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeList(ref), + corev1.PersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeSource(ref), + corev1.PersistentVolumeSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeSpec(ref), + corev1.PersistentVolumeStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeStatus(ref), + corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref), + corev1.Pod{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Pod(ref), + corev1.PodAffinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodAffinity(ref), + corev1.PodAffinityTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodAffinityTerm(ref), + corev1.PodAntiAffinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodAntiAffinity(ref), + corev1.PodAttachOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodAttachOptions(ref), + corev1.PodCertificateProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodCertificateProjection(ref), + corev1.PodCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodCondition(ref), + corev1.PodDNSConfig{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodDNSConfig(ref), + corev1.PodDNSConfigOption{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodDNSConfigOption(ref), + corev1.PodExecOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodExecOptions(ref), + corev1.PodExtendedResourceClaimStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodExtendedResourceClaimStatus(ref), + corev1.PodIP{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodIP(ref), + corev1.PodList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodList(ref), + corev1.PodLogOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodLogOptions(ref), + corev1.PodOS{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodOS(ref), + corev1.PodPortForwardOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodPortForwardOptions(ref), + corev1.PodProxyOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodProxyOptions(ref), + corev1.PodReadinessGate{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodReadinessGate(ref), + corev1.PodResourceClaim{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodResourceClaim(ref), + corev1.PodResourceClaimStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodResourceClaimStatus(ref), + corev1.PodSchedulingGate{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodSchedulingGate(ref), + corev1.PodSecurityContext{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodSecurityContext(ref), + corev1.PodSignature{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodSignature(ref), + corev1.PodSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodSpec(ref), + corev1.PodStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodStatus(ref), + corev1.PodStatusResult{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodStatusResult(ref), + corev1.PodTemplate{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodTemplate(ref), + corev1.PodTemplateList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodTemplateList(ref), + corev1.PodTemplateSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodTemplateSpec(ref), + corev1.PortStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PortStatus(ref), + corev1.PortworxVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PortworxVolumeSource(ref), + corev1.PreferAvoidPodsEntry{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref), + corev1.PreferredSchedulingTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref), + corev1.Probe{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Probe(ref), + corev1.ProbeHandler{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ProbeHandler(ref), + corev1.ProjectedVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ProjectedVolumeSource(ref), + corev1.QuobyteVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_QuobyteVolumeSource(ref), + corev1.RBDPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref), + corev1.RBDVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_RBDVolumeSource(ref), + corev1.RangeAllocation{}.OpenAPIModelName(): schema_k8sio_api_core_v1_RangeAllocation(ref), + corev1.ReplicationController{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationController(ref), + corev1.ReplicationControllerCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationControllerCondition(ref), + corev1.ReplicationControllerList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationControllerList(ref), + corev1.ReplicationControllerSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationControllerSpec(ref), + corev1.ReplicationControllerStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationControllerStatus(ref), + corev1.ResourceClaim{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceClaim(ref), + corev1.ResourceFieldSelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceFieldSelector(ref), + corev1.ResourceHealth{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceHealth(ref), + corev1.ResourceQuota{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceQuota(ref), + corev1.ResourceQuotaList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceQuotaList(ref), + corev1.ResourceQuotaSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceQuotaSpec(ref), + corev1.ResourceQuotaStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceQuotaStatus(ref), + corev1.ResourceRequirements{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceRequirements(ref), + corev1.ResourceStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceStatus(ref), + corev1.SELinuxOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SELinuxOptions(ref), + corev1.ScaleIOPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref), + corev1.ScaleIOVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref), + corev1.ScopeSelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ScopeSelector(ref), + corev1.ScopedResourceSelectorRequirement{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref), + corev1.SeccompProfile{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SeccompProfile(ref), + corev1.Secret{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Secret(ref), + corev1.SecretEnvSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretEnvSource(ref), + corev1.SecretKeySelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretKeySelector(ref), + corev1.SecretList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretList(ref), + corev1.SecretProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretProjection(ref), + corev1.SecretReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretReference(ref), + corev1.SecretVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretVolumeSource(ref), + corev1.SecurityContext{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecurityContext(ref), + corev1.SerializedReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SerializedReference(ref), + corev1.Service{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Service(ref), + corev1.ServiceAccount{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceAccount(ref), + corev1.ServiceAccountList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceAccountList(ref), + corev1.ServiceAccountTokenProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref), + corev1.ServiceList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceList(ref), + corev1.ServicePort{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServicePort(ref), + corev1.ServiceProxyOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceProxyOptions(ref), + corev1.ServiceSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceSpec(ref), + corev1.ServiceStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceStatus(ref), + corev1.SessionAffinityConfig{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SessionAffinityConfig(ref), + corev1.SleepAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SleepAction(ref), + corev1.StorageOSPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref), + corev1.StorageOSVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_StorageOSVolumeSource(ref), + corev1.Sysctl{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Sysctl(ref), + corev1.TCPSocketAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TCPSocketAction(ref), + corev1.Taint{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Taint(ref), + corev1.Toleration{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Toleration(ref), + corev1.TopologySelectorLabelRequirement{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref), + corev1.TopologySelectorTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TopologySelectorTerm(ref), + corev1.TopologySpreadConstraint{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TopologySpreadConstraint(ref), + corev1.TypedLocalObjectReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TypedLocalObjectReference(ref), + corev1.TypedObjectReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TypedObjectReference(ref), + corev1.Volume{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Volume(ref), + corev1.VolumeDevice{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeDevice(ref), + corev1.VolumeMount{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeMount(ref), + corev1.VolumeMountStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeMountStatus(ref), + corev1.VolumeNodeAffinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeNodeAffinity(ref), + corev1.VolumeProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeProjection(ref), + corev1.VolumeResourceRequirements{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeResourceRequirements(ref), + corev1.VolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeSource(ref), + corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref), + corev1.WeightedPodAffinityTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref), + corev1.WindowsSecurityContextOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref), + corev1.WorkloadReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_WorkloadReference(ref), + eventsv1beta1.Event{}.OpenAPIModelName(): schema_k8sio_api_events_v1beta1_Event(ref), + eventsv1beta1.EventList{}.OpenAPIModelName(): schema_k8sio_api_events_v1beta1_EventList(ref), + eventsv1beta1.EventSeries{}.OpenAPIModelName(): schema_k8sio_api_events_v1beta1_EventSeries(ref), + extensionsv1beta1.DaemonSet{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_DaemonSet(ref), + extensionsv1beta1.DaemonSetCondition{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_DaemonSetCondition(ref), + extensionsv1beta1.DaemonSetList{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_DaemonSetList(ref), + extensionsv1beta1.DaemonSetSpec{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_DaemonSetSpec(ref), + extensionsv1beta1.DaemonSetStatus{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_DaemonSetStatus(ref), + extensionsv1beta1.DaemonSetUpdateStrategy{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_DaemonSetUpdateStrategy(ref), + extensionsv1beta1.Deployment{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_Deployment(ref), + extensionsv1beta1.DeploymentCondition{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_DeploymentCondition(ref), + extensionsv1beta1.DeploymentList{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_DeploymentList(ref), + extensionsv1beta1.DeploymentRollback{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_DeploymentRollback(ref), + extensionsv1beta1.DeploymentSpec{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_DeploymentSpec(ref), + extensionsv1beta1.DeploymentStatus{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_DeploymentStatus(ref), + extensionsv1beta1.DeploymentStrategy{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_DeploymentStrategy(ref), + extensionsv1beta1.HTTPIngressPath{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_HTTPIngressPath(ref), + extensionsv1beta1.HTTPIngressRuleValue{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_HTTPIngressRuleValue(ref), + extensionsv1beta1.IPBlock{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_IPBlock(ref), + extensionsv1beta1.Ingress{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_Ingress(ref), + extensionsv1beta1.IngressBackend{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_IngressBackend(ref), + extensionsv1beta1.IngressList{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_IngressList(ref), + extensionsv1beta1.IngressLoadBalancerIngress{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerIngress(ref), + extensionsv1beta1.IngressLoadBalancerStatus{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerStatus(ref), + extensionsv1beta1.IngressPortStatus{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_IngressPortStatus(ref), + extensionsv1beta1.IngressRule{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_IngressRule(ref), + extensionsv1beta1.IngressRuleValue{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_IngressRuleValue(ref), + extensionsv1beta1.IngressSpec{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_IngressSpec(ref), + extensionsv1beta1.IngressStatus{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_IngressStatus(ref), + extensionsv1beta1.IngressTLS{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_IngressTLS(ref), + extensionsv1beta1.NetworkPolicy{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_NetworkPolicy(ref), + extensionsv1beta1.NetworkPolicyEgressRule{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_NetworkPolicyEgressRule(ref), + extensionsv1beta1.NetworkPolicyIngressRule{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_NetworkPolicyIngressRule(ref), + extensionsv1beta1.NetworkPolicyList{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_NetworkPolicyList(ref), + extensionsv1beta1.NetworkPolicyPeer{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_NetworkPolicyPeer(ref), + extensionsv1beta1.NetworkPolicyPort{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_NetworkPolicyPort(ref), + extensionsv1beta1.NetworkPolicySpec{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_NetworkPolicySpec(ref), + extensionsv1beta1.ReplicaSet{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_ReplicaSet(ref), + extensionsv1beta1.ReplicaSetCondition{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_ReplicaSetCondition(ref), + extensionsv1beta1.ReplicaSetList{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_ReplicaSetList(ref), + extensionsv1beta1.ReplicaSetSpec{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_ReplicaSetSpec(ref), + extensionsv1beta1.ReplicaSetStatus{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_ReplicaSetStatus(ref), + extensionsv1beta1.RollbackConfig{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_RollbackConfig(ref), + extensionsv1beta1.RollingUpdateDaemonSet{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_RollingUpdateDaemonSet(ref), + extensionsv1beta1.RollingUpdateDeployment{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_RollingUpdateDeployment(ref), + extensionsv1beta1.Scale{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_Scale(ref), + extensionsv1beta1.ScaleSpec{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_ScaleSpec(ref), + extensionsv1beta1.ScaleStatus{}.OpenAPIModelName(): schema_k8sio_api_extensions_v1beta1_ScaleStatus(ref), + networkingv1.HTTPIngressPath{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_HTTPIngressPath(ref), + networkingv1.HTTPIngressRuleValue{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref), + networkingv1.IPAddress{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IPAddress(ref), + networkingv1.IPAddressList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IPAddressList(ref), + networkingv1.IPAddressSpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IPAddressSpec(ref), + networkingv1.IPBlock{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IPBlock(ref), + networkingv1.Ingress{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_Ingress(ref), + networkingv1.IngressBackend{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressBackend(ref), + networkingv1.IngressClass{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressClass(ref), + networkingv1.IngressClassList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressClassList(ref), + networkingv1.IngressClassParametersReference{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressClassParametersReference(ref), + networkingv1.IngressClassSpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressClassSpec(ref), + networkingv1.IngressList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressList(ref), + networkingv1.IngressLoadBalancerIngress{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref), + networkingv1.IngressLoadBalancerStatus{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref), + networkingv1.IngressPortStatus{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressPortStatus(ref), + networkingv1.IngressRule{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressRule(ref), + networkingv1.IngressRuleValue{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressRuleValue(ref), + networkingv1.IngressServiceBackend{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressServiceBackend(ref), + networkingv1.IngressSpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressSpec(ref), + networkingv1.IngressStatus{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressStatus(ref), + networkingv1.IngressTLS{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressTLS(ref), + networkingv1.NetworkPolicy{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicy(ref), + networkingv1.NetworkPolicyEgressRule{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref), + networkingv1.NetworkPolicyIngressRule{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref), + networkingv1.NetworkPolicyList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicyList(ref), + networkingv1.NetworkPolicyPeer{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref), + networkingv1.NetworkPolicyPort{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicyPort(ref), + networkingv1.NetworkPolicySpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicySpec(ref), + networkingv1.ParentReference{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_ParentReference(ref), + networkingv1.ServiceBackendPort{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_ServiceBackendPort(ref), + networkingv1.ServiceCIDR{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_ServiceCIDR(ref), + networkingv1.ServiceCIDRList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_ServiceCIDRList(ref), + networkingv1.ServiceCIDRSpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_ServiceCIDRSpec(ref), + networkingv1.ServiceCIDRStatus{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_ServiceCIDRStatus(ref), + networkingv1beta1.HTTPIngressPath{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref), + networkingv1beta1.HTTPIngressRuleValue{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_HTTPIngressRuleValue(ref), + networkingv1beta1.IPAddress{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IPAddress(ref), + networkingv1beta1.IPAddressList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IPAddressList(ref), + networkingv1beta1.IPAddressSpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IPAddressSpec(ref), + networkingv1beta1.Ingress{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_Ingress(ref), + networkingv1beta1.IngressBackend{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressBackend(ref), + networkingv1beta1.IngressClass{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressClass(ref), + networkingv1beta1.IngressClassList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressClassList(ref), + networkingv1beta1.IngressClassParametersReference{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressClassParametersReference(ref), + networkingv1beta1.IngressClassSpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressClassSpec(ref), + networkingv1beta1.IngressList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressList(ref), + networkingv1beta1.IngressLoadBalancerIngress{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressLoadBalancerIngress(ref), + networkingv1beta1.IngressLoadBalancerStatus{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressLoadBalancerStatus(ref), + networkingv1beta1.IngressPortStatus{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressPortStatus(ref), + networkingv1beta1.IngressRule{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressRule(ref), + networkingv1beta1.IngressRuleValue{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressRuleValue(ref), + networkingv1beta1.IngressSpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressSpec(ref), + networkingv1beta1.IngressStatus{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressStatus(ref), + networkingv1beta1.IngressTLS{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_IngressTLS(ref), + networkingv1beta1.ParentReference{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_ParentReference(ref), + networkingv1beta1.ServiceCIDR{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_ServiceCIDR(ref), + networkingv1beta1.ServiceCIDRList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_ServiceCIDRList(ref), + networkingv1beta1.ServiceCIDRSpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_ServiceCIDRSpec(ref), + networkingv1beta1.ServiceCIDRStatus{}.OpenAPIModelName(): schema_k8sio_api_networking_v1beta1_ServiceCIDRStatus(ref), + v1alpha1.Overhead{}.OpenAPIModelName(): schema_k8sio_api_node_v1alpha1_Overhead(ref), + v1alpha1.RuntimeClass{}.OpenAPIModelName(): schema_k8sio_api_node_v1alpha1_RuntimeClass(ref), + v1alpha1.RuntimeClassList{}.OpenAPIModelName(): schema_k8sio_api_node_v1alpha1_RuntimeClassList(ref), + v1alpha1.RuntimeClassSpec{}.OpenAPIModelName(): schema_k8sio_api_node_v1alpha1_RuntimeClassSpec(ref), + v1alpha1.Scheduling{}.OpenAPIModelName(): schema_k8sio_api_node_v1alpha1_Scheduling(ref), + nodev1beta1.Overhead{}.OpenAPIModelName(): schema_k8sio_api_node_v1beta1_Overhead(ref), + nodev1beta1.RuntimeClass{}.OpenAPIModelName(): schema_k8sio_api_node_v1beta1_RuntimeClass(ref), + nodev1beta1.RuntimeClassList{}.OpenAPIModelName(): schema_k8sio_api_node_v1beta1_RuntimeClassList(ref), + nodev1beta1.Scheduling{}.OpenAPIModelName(): schema_k8sio_api_node_v1beta1_Scheduling(ref), + policyv1beta1.Eviction{}.OpenAPIModelName(): schema_k8sio_api_policy_v1beta1_Eviction(ref), + policyv1beta1.PodDisruptionBudget{}.OpenAPIModelName(): schema_k8sio_api_policy_v1beta1_PodDisruptionBudget(ref), + policyv1beta1.PodDisruptionBudgetList{}.OpenAPIModelName(): schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetList(ref), + policyv1beta1.PodDisruptionBudgetSpec{}.OpenAPIModelName(): schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetSpec(ref), + policyv1beta1.PodDisruptionBudgetStatus{}.OpenAPIModelName(): schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetStatus(ref), + rbacv1.AggregationRule{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_AggregationRule(ref), + rbacv1.ClusterRole{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_ClusterRole(ref), + rbacv1.ClusterRoleBinding{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref), + rbacv1.ClusterRoleBindingList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref), + rbacv1.ClusterRoleList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_ClusterRoleList(ref), + rbacv1.PolicyRule{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_PolicyRule(ref), + rbacv1.Role{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_Role(ref), + rbacv1.RoleBinding{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_RoleBinding(ref), + rbacv1.RoleBindingList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_RoleBindingList(ref), + rbacv1.RoleList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_RoleList(ref), + rbacv1.RoleRef{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_RoleRef(ref), + rbacv1.Subject{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_Subject(ref), + rbacv1alpha1.AggregationRule{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1alpha1_AggregationRule(ref), + rbacv1alpha1.ClusterRole{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1alpha1_ClusterRole(ref), + rbacv1alpha1.ClusterRoleBinding{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1alpha1_ClusterRoleBinding(ref), + rbacv1alpha1.ClusterRoleBindingList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1alpha1_ClusterRoleBindingList(ref), + rbacv1alpha1.ClusterRoleList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1alpha1_ClusterRoleList(ref), + rbacv1alpha1.PolicyRule{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1alpha1_PolicyRule(ref), + rbacv1alpha1.Role{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1alpha1_Role(ref), + rbacv1alpha1.RoleBinding{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1alpha1_RoleBinding(ref), + rbacv1alpha1.RoleBindingList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1alpha1_RoleBindingList(ref), + rbacv1alpha1.RoleList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1alpha1_RoleList(ref), + rbacv1alpha1.RoleRef{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1alpha1_RoleRef(ref), + rbacv1alpha1.Subject{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1alpha1_Subject(ref), + rbacv1beta1.AggregationRule{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1beta1_AggregationRule(ref), + rbacv1beta1.ClusterRole{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1beta1_ClusterRole(ref), + rbacv1beta1.ClusterRoleBinding{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1beta1_ClusterRoleBinding(ref), + rbacv1beta1.ClusterRoleBindingList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1beta1_ClusterRoleBindingList(ref), + rbacv1beta1.ClusterRoleList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1beta1_ClusterRoleList(ref), + rbacv1beta1.PolicyRule{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1beta1_PolicyRule(ref), + rbacv1beta1.Role{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1beta1_Role(ref), + rbacv1beta1.RoleBinding{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1beta1_RoleBinding(ref), + rbacv1beta1.RoleBindingList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1beta1_RoleBindingList(ref), + rbacv1beta1.RoleList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1beta1_RoleList(ref), + rbacv1beta1.RoleRef{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1beta1_RoleRef(ref), + rbacv1beta1.Subject{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1beta1_Subject(ref), + schedulingv1.PriorityClass{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1_PriorityClass(ref), + schedulingv1.PriorityClassList{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1_PriorityClassList(ref), + schedulingv1alpha1.BasicSchedulingPolicy{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1alpha1_BasicSchedulingPolicy(ref), + schedulingv1alpha1.GangSchedulingPolicy{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1alpha1_GangSchedulingPolicy(ref), + schedulingv1alpha1.PodGroup{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1alpha1_PodGroup(ref), + schedulingv1alpha1.PodGroupPolicy{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1alpha1_PodGroupPolicy(ref), + schedulingv1alpha1.PriorityClass{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1alpha1_PriorityClass(ref), + schedulingv1alpha1.PriorityClassList{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1alpha1_PriorityClassList(ref), + schedulingv1alpha1.TypedLocalObjectReference{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1alpha1_TypedLocalObjectReference(ref), + schedulingv1alpha1.Workload{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1alpha1_Workload(ref), + schedulingv1alpha1.WorkloadList{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1alpha1_WorkloadList(ref), + schedulingv1alpha1.WorkloadSpec{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1alpha1_WorkloadSpec(ref), + schedulingv1beta1.PriorityClass{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1beta1_PriorityClass(ref), + schedulingv1beta1.PriorityClassList{}.OpenAPIModelName(): schema_k8sio_api_scheduling_v1beta1_PriorityClassList(ref), + apistoragev1.CSIDriver{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSIDriver(ref), + apistoragev1.CSIDriverList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSIDriverList(ref), + apistoragev1.CSIDriverSpec{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSIDriverSpec(ref), + apistoragev1.CSINode{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSINode(ref), + apistoragev1.CSINodeDriver{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSINodeDriver(ref), + apistoragev1.CSINodeList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSINodeList(ref), + apistoragev1.CSINodeSpec{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSINodeSpec(ref), + apistoragev1.CSIStorageCapacity{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSIStorageCapacity(ref), + apistoragev1.CSIStorageCapacityList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSIStorageCapacityList(ref), + apistoragev1.StorageClass{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_StorageClass(ref), + apistoragev1.StorageClassList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_StorageClassList(ref), + apistoragev1.TokenRequest{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_TokenRequest(ref), + apistoragev1.VolumeAttachment{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttachment(ref), + apistoragev1.VolumeAttachmentList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttachmentList(ref), + apistoragev1.VolumeAttachmentSource{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttachmentSource(ref), + apistoragev1.VolumeAttachmentSpec{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttachmentSpec(ref), + apistoragev1.VolumeAttachmentStatus{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref), + apistoragev1.VolumeAttributesClass{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttributesClass(ref), + apistoragev1.VolumeAttributesClassList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttributesClassList(ref), + apistoragev1.VolumeError{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeError(ref), + apistoragev1.VolumeNodeResources{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeNodeResources(ref), + storagev1alpha1.CSIStorageCapacity{}.OpenAPIModelName(): schema_k8sio_api_storage_v1alpha1_CSIStorageCapacity(ref), + storagev1alpha1.CSIStorageCapacityList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1alpha1_CSIStorageCapacityList(ref), + storagev1alpha1.VolumeAttachment{}.OpenAPIModelName(): schema_k8sio_api_storage_v1alpha1_VolumeAttachment(ref), + storagev1alpha1.VolumeAttachmentList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1alpha1_VolumeAttachmentList(ref), + storagev1alpha1.VolumeAttachmentSource{}.OpenAPIModelName(): schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSource(ref), + storagev1alpha1.VolumeAttachmentSpec{}.OpenAPIModelName(): schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSpec(ref), + storagev1alpha1.VolumeAttachmentStatus{}.OpenAPIModelName(): schema_k8sio_api_storage_v1alpha1_VolumeAttachmentStatus(ref), + storagev1alpha1.VolumeAttributesClass{}.OpenAPIModelName(): schema_k8sio_api_storage_v1alpha1_VolumeAttributesClass(ref), + storagev1alpha1.VolumeAttributesClassList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1alpha1_VolumeAttributesClassList(ref), + storagev1alpha1.VolumeError{}.OpenAPIModelName(): schema_k8sio_api_storage_v1alpha1_VolumeError(ref), + storagev1beta1.CSIDriver{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_CSIDriver(ref), + storagev1beta1.CSIDriverList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_CSIDriverList(ref), + storagev1beta1.CSIDriverSpec{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_CSIDriverSpec(ref), + storagev1beta1.CSINode{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_CSINode(ref), + storagev1beta1.CSINodeDriver{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_CSINodeDriver(ref), + storagev1beta1.CSINodeList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_CSINodeList(ref), + storagev1beta1.CSINodeSpec{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_CSINodeSpec(ref), + storagev1beta1.CSIStorageCapacity{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_CSIStorageCapacity(ref), + storagev1beta1.CSIStorageCapacityList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_CSIStorageCapacityList(ref), + storagev1beta1.StorageClass{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_StorageClass(ref), + storagev1beta1.StorageClassList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_StorageClassList(ref), + storagev1beta1.TokenRequest{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_TokenRequest(ref), + storagev1beta1.VolumeAttachment{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_VolumeAttachment(ref), + storagev1beta1.VolumeAttachmentList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_VolumeAttachmentList(ref), + storagev1beta1.VolumeAttachmentSource{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_VolumeAttachmentSource(ref), + storagev1beta1.VolumeAttachmentSpec{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_VolumeAttachmentSpec(ref), + storagev1beta1.VolumeAttachmentStatus{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_VolumeAttachmentStatus(ref), + storagev1beta1.VolumeAttributesClass{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_VolumeAttributesClass(ref), + storagev1beta1.VolumeAttributesClassList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_VolumeAttributesClassList(ref), + storagev1beta1.VolumeError{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_VolumeError(ref), + storagev1beta1.VolumeNodeResources{}.OpenAPIModelName(): schema_k8sio_api_storage_v1beta1_VolumeNodeResources(ref), + resource.Quantity{}.OpenAPIModelName(): schema_apimachinery_pkg_api_resource_Quantity(ref), + metav1.APIGroup{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroup(ref), + metav1.APIGroupList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroupList(ref), + metav1.APIResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResource(ref), + metav1.APIResourceList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResourceList(ref), + metav1.APIVersions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIVersions(ref), + metav1.ApplyOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ApplyOptions(ref), + metav1.Condition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Condition(ref), + metav1.CreateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_CreateOptions(ref), + metav1.DeleteOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_DeleteOptions(ref), + metav1.Duration{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Duration(ref), + metav1.FieldSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), + metav1.FieldsV1{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldsV1(ref), + metav1.GetOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GetOptions(ref), + metav1.GroupKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupKind(ref), + metav1.GroupResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupResource(ref), + metav1.GroupVersion{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersion(ref), + metav1.GroupVersionForDiscovery{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), + metav1.GroupVersionKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionKind(ref), + metav1.GroupVersionResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionResource(ref), + metav1.InternalEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_InternalEvent(ref), + metav1.LabelSelector{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelector(ref), + metav1.LabelSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), + metav1.List{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_List(ref), + metav1.ListMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListMeta(ref), + metav1.ListOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListOptions(ref), + metav1.ManagedFieldsEntry{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), + metav1.MicroTime{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_MicroTime(ref), + metav1.ObjectMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ObjectMeta(ref), + metav1.OwnerReference{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_OwnerReference(ref), + metav1.PartialObjectMetadata{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), + metav1.PartialObjectMetadataList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), + metav1.Patch{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Patch(ref), + metav1.PatchOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PatchOptions(ref), + metav1.Preconditions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Preconditions(ref), + metav1.RootPaths{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_RootPaths(ref), + metav1.ServerAddressByClientCIDR{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), + metav1.Status{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Status(ref), + metav1.StatusCause{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusCause(ref), + metav1.StatusDetails{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusDetails(ref), + metav1.Table{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Table(ref), + metav1.TableColumnDefinition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableColumnDefinition(ref), + metav1.TableOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableOptions(ref), + metav1.TableRow{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRow(ref), + metav1.TableRowCondition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRowCondition(ref), + metav1.Time{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Time(ref), + metav1.Timestamp{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Timestamp(ref), + metav1.TypeMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TypeMeta(ref), + metav1.UpdateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_UpdateOptions(ref), + metav1.WatchEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_WatchEvent(ref), + runtime.RawExtension{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), + runtime.TypeMeta{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), + runtime.Unknown{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), + intstr.IntOrString{}.OpenAPIModelName(): schema_apimachinery_pkg_util_intstr_IntOrString(ref), + version.Info{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_version_Info(ref), + clientauthenticationv1beta1.Cluster{}.OpenAPIModelName(): schema_pkg_apis_clientauthentication_v1beta1_Cluster(ref), + clientauthenticationv1beta1.ExecCredential{}.OpenAPIModelName(): schema_pkg_apis_clientauthentication_v1beta1_ExecCredential(ref), + clientauthenticationv1beta1.ExecCredentialSpec{}.OpenAPIModelName(): schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialSpec(ref), + clientauthenticationv1beta1.ExecCredentialStatus{}.OpenAPIModelName(): schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialStatus(ref), + metricsv1beta1.ContainerMetrics{}.OpenAPIModelName(): schema_pkg_apis_metrics_v1beta1_ContainerMetrics(ref), + metricsv1beta1.NodeMetrics{}.OpenAPIModelName(): schema_pkg_apis_metrics_v1beta1_NodeMetrics(ref), + metricsv1beta1.NodeMetricsList{}.OpenAPIModelName(): schema_pkg_apis_metrics_v1beta1_NodeMetricsList(ref), + metricsv1beta1.PodMetrics{}.OpenAPIModelName(): schema_pkg_apis_metrics_v1beta1_PodMetrics(ref), + metricsv1beta1.PodMetricsList{}.OpenAPIModelName(): schema_pkg_apis_metrics_v1beta1_PodMetricsList(ref), } } @@ -1361,7 +1564,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Analytics(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Request"), + Ref: ref(licenseapi.Request{}.OpenAPIModelName()), }, }, }, @@ -1371,7 +1574,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Analytics(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.Request"}, + licenseapi.Request{}.OpenAPIModelName()}, } } @@ -1410,7 +1613,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Announcement(ref common.ReferenceC Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Button"), + Ref: ref(licenseapi.Button{}.OpenAPIModelName()), }, }, }, @@ -1420,7 +1623,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Announcement(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.Button"}, + licenseapi.Button{}.OpenAPIModelName()}, } } @@ -1462,14 +1665,14 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_BlockRequest(ref common.ReferenceC }, "overage": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"), + Ref: ref(licenseapi.ResourceCount{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"}, + licenseapi.ResourceCount{}.OpenAPIModelName()}, } } @@ -1516,6 +1719,99 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Button(ref common.ReferenceCallbac } } +func schema_loft_sh_admin_apis_pkg_licenseapi_ChatAuthCreateInput(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ChatAuthCreateInput is the required input data for generating a hash for a user for in-product chat", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "token": { + SchemaProps: spec.SchemaProps{ + Description: "Token is the jwt token identifying the loft instance.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "certificate": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate is the signing certificate for the token.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "provider": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "email": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"token", "certificate"}, + }, + }, + } +} + +func schema_loft_sh_admin_apis_pkg_licenseapi_ChatAuthCreateOutput(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ChatAuthCreateOutput is the struct holding all information for chat auth generate user hash\" requests.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "hash": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_loft_sh_admin_apis_pkg_licenseapi_DomainToken(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{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"url"}, + }, + }, + } +} + func schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -1537,10 +1833,18 @@ 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: "", + }, + }, + "allowBefore": { + SchemaProps: spec.SchemaProps{ + Description: "AllowBefore is an optional timestamp. If set, licenses issued before this time are allowed to use the feature even if it's not included in the license.", + Type: []string{"string"}, + Format: "", }, }, "status": { @@ -1550,30 +1854,43 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref common.ReferenceCallba Format: "", }, }, - "compatibility": { + "module": { SchemaProps: spec.SchemaProps{ - Description: "Compatibility contains a series of semver compatibility constraints", + Description: "Name of the module that this feature belongs to", Type: []string{"string"}, Format: "", }, }, - "labels": { + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_loft_sh_admin_apis_pkg_licenseapi_FeatureUsage(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "FeatureUsage holds information about whether a feature is used and its status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "used": { 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: "", - }, - }, - }, + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"name"}, + Required: []string{"used", "status"}, }, }, } @@ -1586,6 +1903,22 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestInput(ref common.Ref Description: "GenericRequestInput defines the payload that needs to be sent to a button's action URL", Type: []string{"object"}, Properties: map[string]spec.Schema{ + "token": { + SchemaProps: spec.SchemaProps{ + Description: "Token is the jwt token identifying the loft instance.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "certificate": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate is the signing certificate for the token.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, "payload": { SchemaProps: spec.SchemaProps{ Description: "Payload provides the json encoded payload", @@ -1601,6 +1934,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestInput(ref common.Ref }, }, }, + Required: []string{"token", "certificate"}, }, }, } @@ -1635,7 +1969,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestOutput(ref common.Re Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Button"), + Ref: ref(licenseapi.Button{}.OpenAPIModelName()), }, }, }, @@ -1645,7 +1979,194 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestOutput(ref common.Re }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.Button"}, + licenseapi.Button{}.OpenAPIModelName()}, + } +} + +func schema_loft_sh_admin_apis_pkg_licenseapi_InstanceActivateInstanceInput(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "activationCode": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"activationCode"}, + }, + }, + } +} + +func schema_loft_sh_admin_apis_pkg_licenseapi_InstanceCreateInput(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "InstanceCreateInput is the required input data for \"instance create\" operations, that is, the primary endpoint that Loft instances will hit to register to the license server as well as get information about the instance's current license.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "token": { + SchemaProps: spec.SchemaProps{ + Description: "Token is the jwt token identifying the loft instance.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "certificate": { + SchemaProps: spec.SchemaProps{ + Description: "Certificate is the signing certificate for the token.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "product": { + SchemaProps: spec.SchemaProps{ + Description: "Product is the product that is being used. Can be empty, loft, devpod-pro or vcluster-pro. This should NOT be a ProductName but a string to allow for downward compatibility", + Type: []string{"string"}, + Format: "", + }, + }, + "staticToken": { + SchemaProps: spec.SchemaProps{ + Description: "StaticToken is a token for the instance. This is used for testing purposes or for instances that use a static token.", + Type: []string{"string"}, + Format: "", + }, + }, + "email": { + SchemaProps: spec.SchemaProps{ + Description: "Email is the admin email. Can be empty if no email is specified.", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "kubeVersion": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "kubeSystemNamespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "ResourceUsage contains information about the number of resources used", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(licenseapi.ResourceCount{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "features": { + SchemaProps: spec.SchemaProps{ + Description: "FeatureUse contains information about what features are used", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + "debugInstanceID": { + SchemaProps: spec.SchemaProps{ + Description: "DebugInstanceID is the ID of the instance. This is only used for testing purposes. Should never be sent from production instances. Requires authentication via an access key.", + Type: []string{"string"}, + Format: "", + }, + }, + "platformDatabase": { + SchemaProps: spec.SchemaProps{ + Description: "PlatformDatabase reports details about the platform database to the license service", + Ref: ref(licenseapi.PlatformDatabase{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"token", "certificate", "version", "kubeVersion", "kubeSystemNamespace"}, + }, + }, + Dependencies: []string{ + licenseapi.PlatformDatabase{}.OpenAPIModelName(), licenseapi.ResourceCount{}.OpenAPIModelName()}, + } +} + +func schema_loft_sh_admin_apis_pkg_licenseapi_InstanceCreateOutput(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "InstanceCreateOutput is the struct holding all information returned from \"instance create\" requests.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "license": { + SchemaProps: spec.SchemaProps{ + Description: "License is the license data for the requested Loft instance.", + Ref: ref(licenseapi.License{}.OpenAPIModelName()), + }, + }, + "currentTime": { + SchemaProps: spec.SchemaProps{ + Default: 0, + Type: []string{"integer"}, + Format: "int64", + }, + }, + }, + Required: []string{"currentTime"}, + }, + }, + Dependencies: []string{ + licenseapi.License{}.OpenAPIModelName()}, + } +} + +func schema_loft_sh_admin_apis_pkg_licenseapi_InstanceSendActivationEmailInput(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "email": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"email"}, + }, + }, } } @@ -1707,6 +2228,42 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenClaims(ref common.Ref } } +func schema_loft_sh_admin_apis_pkg_licenseapi_InstanceUsageInput(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kubeSystemNamespace": { + SchemaProps: spec.SchemaProps{ + Description: "KubeSystemNamespaceUID is the UID of the kube system namespace.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Type is the type of usage data to be sent to the license service.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "data": { + SchemaProps: spec.SchemaProps{ + Description: "Data is the data to be sent to the license service.", + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + Required: []string{"kubeSystemNamespace", "type", "data"}, + }, + }, + } +} + func schema_loft_sh_admin_apis_pkg_licenseapi_Invoice(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -1762,10 +2319,26 @@ 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.", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Analytics"), + Ref: ref(licenseapi.Analytics{}.OpenAPIModelName()), }, }, "domainToken": { @@ -1783,7 +2356,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_License(ref common.ReferenceCallba Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Button"), + Ref: ref(licenseapi.Button{}.OpenAPIModelName()), }, }, }, @@ -1796,7 +2369,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_License(ref common.ReferenceCallba Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Announcement"), + Ref: ref(licenseapi.Announcement{}.OpenAPIModelName()), }, }, }, @@ -1809,7 +2382,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_License(ref common.ReferenceCallba Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Module"), + Ref: ref(licenseapi.Module{}.OpenAPIModelName()), }, }, }, @@ -1823,7 +2396,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_License(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.BlockRequest"), + Ref: ref(licenseapi.BlockRequest{}.OpenAPIModelName()), }, }, }, @@ -1839,7 +2412,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_License(ref common.ReferenceCallba "routes": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoutes"), + Ref: ref(licenseapi.LicenseAPIRoutes{}.OpenAPIModelName()), }, }, "plans": { @@ -1850,17 +2423,24 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_License(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Plan"), + Ref: ref(licenseapi.Plan{}.OpenAPIModelName()), }, }, }, }, }, + "usageData": { + SchemaProps: spec.SchemaProps{ + Description: "Usage data contains resource usage information for a platform deployment", + Default: map[string]interface{}{}, + Ref: ref(licenseapi.UsageData{}.OpenAPIModelName()), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.Analytics", "github.com/loft-sh/admin-apis/pkg/licenseapi.Announcement", "github.com/loft-sh/admin-apis/pkg/licenseapi.BlockRequest", "github.com/loft-sh/admin-apis/pkg/licenseapi.Button", "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoutes", "github.com/loft-sh/admin-apis/pkg/licenseapi.Module", "github.com/loft-sh/admin-apis/pkg/licenseapi.Plan"}, + licenseapi.Analytics{}.OpenAPIModelName(), licenseapi.Announcement{}.OpenAPIModelName(), licenseapi.BlockRequest{}.OpenAPIModelName(), licenseapi.Button{}.OpenAPIModelName(), licenseapi.LicenseAPIRoutes{}.OpenAPIModelName(), licenseapi.Module{}.OpenAPIModelName(), licenseapi.Plan{}.OpenAPIModelName(), licenseapi.UsageData{}.OpenAPIModelName()}, } } @@ -1906,56 +2486,56 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoutes(ref common.Refere "chatAuth": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute"), + Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), }, }, "featureDetails": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute"), + Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), }, }, "featureSetup": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute"), + Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), }, }, "featurePreview": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute"), + Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), }, }, "moduleActivation": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute"), + Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), }, }, "modulePreview": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute"), + Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), }, }, "checkout": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute"), + Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), }, }, "portal": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute"), + Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute"}, + licenseapi.LicenseAPIRoute{}.OpenAPIModelName()}, } } @@ -1983,14 +2563,21 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Limit(ref common.ReferenceCallback "quantity": { SchemaProps: spec.SchemaProps{ Description: "Limit specifies the limit for this resource.", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"), + Ref: ref(licenseapi.ResourceCount{}.OpenAPIModelName()), + }, + }, + "module": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the module that this limit belongs to", + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"}, + licenseapi.ResourceCount{}.OpenAPIModelName()}, } } @@ -2027,7 +2614,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Module(ref common.ReferenceCallbac Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Limit"), + Ref: ref(licenseapi.Limit{}.OpenAPIModelName()), }, }, }, @@ -2039,7 +2626,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Module(ref common.ReferenceCallbac Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Feature"), + Ref: ref(licenseapi.Feature{}.OpenAPIModelName()), }, }, }, @@ -2050,7 +2637,50 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Module(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.Feature", "github.com/loft-sh/admin-apis/pkg/licenseapi.Limit"}, + licenseapi.Feature{}.OpenAPIModelName(), licenseapi.Limit{}.OpenAPIModelName()}, + } +} + +func schema_loft_sh_admin_apis_pkg_licenseapi_NodeInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeInfo holds information about a single node", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "machine_id": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "creation_timestamp": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "capacity": { + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"machine_id", "creation_timestamp", "capacity"}, + }, + }, } } @@ -2062,14 +2692,14 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_OfflineLicenseKeyClaims(ref common Properties: map[string]spec.Schema{ "license": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.License"), + Ref: ref(licenseapi.License{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.License"}, + licenseapi.License{}.OpenAPIModelName()}, } } @@ -2104,19 +2734,19 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref common.ReferenceCallback) "period": { SchemaProps: spec.SchemaProps{ Description: "Period provides information about the plan's current period This is nil unless this is the active plan", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPeriod"), + Ref: ref(licenseapi.PlanPeriod{}.OpenAPIModelName()), }, }, "trial": { SchemaProps: spec.SchemaProps{ Description: "Trial provides details about a planned, ongoing or expired trial", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Trial"), + Ref: ref(licenseapi.Trial{}.OpenAPIModelName()), }, }, "invoice": { SchemaProps: spec.SchemaProps{ Description: "UpcomingInvoice provides a preview of the next invoice that will be created for this Plan", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Invoice"), + Ref: ref(licenseapi.Invoice{}.OpenAPIModelName()), }, }, "features": { @@ -2142,7 +2772,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Limit"), + Ref: ref(licenseapi.Limit{}.OpenAPIModelName()), }, }, }, @@ -2156,7 +2786,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPrice"), + Ref: ref(licenseapi.PlanPrice{}.OpenAPIModelName()), }, }, }, @@ -2170,7 +2800,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Plan"), + Ref: ref(licenseapi.Plan{}.OpenAPIModelName()), }, }, }, @@ -2180,7 +2810,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.Invoice", "github.com/loft-sh/admin-apis/pkg/licenseapi.Limit", "github.com/loft-sh/admin-apis/pkg/licenseapi.Plan", "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPeriod", "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPrice", "github.com/loft-sh/admin-apis/pkg/licenseapi.Trial"}, + licenseapi.Invoice{}.OpenAPIModelName(), licenseapi.Limit{}.OpenAPIModelName(), licenseapi.Plan{}.OpenAPIModelName(), licenseapi.PlanPeriod{}.OpenAPIModelName(), licenseapi.PlanPrice{}.OpenAPIModelName(), licenseapi.Trial{}.OpenAPIModelName()}, } } @@ -2276,7 +2906,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref common.ReferenceCall "exp": { SchemaProps: spec.SchemaProps{ Description: "Expiration provides information about when this plan expires", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.PlanExpiration"), + Ref: ref(licenseapi.PlanExpiration{}.OpenAPIModelName()), }, }, "quantity": { @@ -2289,7 +2919,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref common.ReferenceCall "resource": { SchemaProps: spec.SchemaProps{ Description: "TierResource provides details about the main resource the tier quantity relates to This may be nil for plans that don't have their quantity tied to a resource", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.TierResource"), + Ref: ref(licenseapi.TierResource{}.OpenAPIModelName()), }, }, "tierMode": { @@ -2307,7 +2937,7 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.PriceTier"), + Ref: ref(licenseapi.PriceTier{}.OpenAPIModelName()), }, }, }, @@ -2317,7 +2947,42 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanExpiration", "github.com/loft-sh/admin-apis/pkg/licenseapi.PriceTier", "github.com/loft-sh/admin-apis/pkg/licenseapi.TierResource"}, + licenseapi.PlanExpiration{}.OpenAPIModelName(), licenseapi.PriceTier{}.OpenAPIModelName(), licenseapi.TierResource{}.OpenAPIModelName()}, + } +} + +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"}, + }, + }, } } @@ -2439,6 +3104,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", + }, + }, }, }, }, @@ -2527,6 +3199,166 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Trial(ref common.ReferenceCallback } } +func schema_loft_sh_admin_apis_pkg_licenseapi_UsageData(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "UsageData holds information for an instance deployment of vCluster Platform", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "featureUsage": { + SchemaProps: spec.SchemaProps{ + Description: "FeatureUsage contains the usage of features", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(licenseapi.FeatureUsage{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "resourceUsage": { + SchemaProps: spec.SchemaProps{ + Description: "ResourceUsage contains the usage of resources", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(licenseapi.ResourceCount{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "details": { + SchemaProps: spec.SchemaProps{ + Description: "Details contains the details of the usage data", + Default: map[string]interface{}{}, + Ref: ref(licenseapi.UsageDataDetails{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"featureUsage", "resourceUsage", "details"}, + }, + }, + Dependencies: []string{ + licenseapi.FeatureUsage{}.OpenAPIModelName(), licenseapi.ResourceCount{}.OpenAPIModelName(), licenseapi.UsageDataDetails{}.OpenAPIModelName()}, + } +} + +func schema_loft_sh_admin_apis_pkg_licenseapi_UsageDataDetails(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "UsageDataDetails holds detailed information about the nodes and virtual cluster for an instance deployment of vCluster Platform", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "nodes": { + SchemaProps: spec.SchemaProps{ + Description: "Nodes contains the details of the nodes", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(licenseapi.NodeInfo{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "vClusters": { + SchemaProps: spec.SchemaProps{ + Description: "VClusters contains the details of the virtual clusters", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(licenseapi.VirtualClusterInfo{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"nodes", "vClusters"}, + }, + }, + Dependencies: []string{ + licenseapi.NodeInfo{}.OpenAPIModelName(), licenseapi.VirtualClusterInfo{}.OpenAPIModelName()}, + } +} + +func schema_loft_sh_admin_apis_pkg_licenseapi_VirtualClusterInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterInfo holds information about a single virtual cluster", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "uid": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "creation_timestamp": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "is_available": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "node_machine_ids": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"uid", "name", "namespace", "creation_timestamp", "is_available", "node_machine_ids"}, + }, + }, + } +} + func schema_apis_loft_cluster_v1_Bash(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -2557,20 +3389,20 @@ func schema_apis_loft_cluster_v1_Bash(ref common.ReferenceCallback) common.OpenA "podSecurityContext": { SchemaProps: spec.SchemaProps{ Description: "PodSecurityContext for the bash pod.", - Ref: ref("k8s.io/api/core/v1.PodSecurityContext"), + Ref: ref(corev1.PodSecurityContext{}.OpenAPIModelName()), }, }, "securityContext": { SchemaProps: spec.SchemaProps{ Description: "SecurityContext for the bash container.", - Ref: ref("k8s.io/api/core/v1.SecurityContext"), + Ref: ref(corev1.SecurityContext{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.SecurityContext"}, + corev1.PodSecurityContext{}.OpenAPIModelName(), corev1.SecurityContext{}.OpenAPIModelName()}, } } @@ -2612,7 +3444,7 @@ func schema_apis_loft_cluster_v1_Chart(ref common.ReferenceCallback) common.Open "usernameRef": { SchemaProps: spec.SchemaProps{ Description: "The username that is required for this repository", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef"), + Ref: ref(v1.ChartSecretRef{}.OpenAPIModelName()), }, }, "password": { @@ -2625,7 +3457,7 @@ func schema_apis_loft_cluster_v1_Chart(ref common.ReferenceCallback) common.Open "passwordRef": { SchemaProps: spec.SchemaProps{ Description: "The password that is required for this repository", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef"), + Ref: ref(v1.ChartSecretRef{}.OpenAPIModelName()), }, }, "insecureSkipTlsVerify": { @@ -2639,7 +3471,7 @@ func schema_apis_loft_cluster_v1_Chart(ref common.ReferenceCallback) common.Open }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef"}, + v1.ChartSecretRef{}.OpenAPIModelName()}, } } @@ -2666,26 +3498,26 @@ func schema_apis_loft_cluster_v1_ChartInfo(ref common.ReferenceCallback) common. "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoSpec"), + Ref: ref(v1.ChartInfoSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoStatus"), + Ref: ref(v1.ChartInfoStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoSpec", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1.ChartInfoSpec{}.OpenAPIModelName(), v1.ChartInfoStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -2712,7 +3544,7 @@ func schema_apis_loft_cluster_v1_ChartInfoList(ref common.ReferenceCallback) com "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -2722,7 +3554,7 @@ func schema_apis_loft_cluster_v1_ChartInfoList(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo"), + Ref: ref(v1.ChartInfo{}.OpenAPIModelName()), }, }, }, @@ -2733,7 +3565,7 @@ func schema_apis_loft_cluster_v1_ChartInfoList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1.ChartInfo{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -2747,14 +3579,14 @@ func schema_apis_loft_cluster_v1_ChartInfoSpec(ref common.ReferenceCallback) com SchemaProps: spec.SchemaProps{ Description: "Chart holds information about a chart that should get deployed", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"), + Ref: ref(v1.Chart{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"}, + v1.Chart{}.OpenAPIModelName()}, } } @@ -2767,7 +3599,7 @@ func schema_apis_loft_cluster_v1_ChartInfoStatus(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Description: "Metadata provides information about a chart", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"), + Ref: ref(v1.Metadata{}.OpenAPIModelName()), }, }, "readme": { @@ -2788,7 +3620,7 @@ func schema_apis_loft_cluster_v1_ChartInfoStatus(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"}, + v1.Metadata{}.OpenAPIModelName()}, } } @@ -2801,14 +3633,14 @@ func schema_apis_loft_cluster_v1_ChartSecretRef(ref common.ReferenceCallback) co "projectSecretRef": { SchemaProps: spec.SchemaProps{ Description: "ProjectSecretRef holds the reference to a project secret", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ProjectSecretRef"), + Ref: ref(v1.ProjectSecretRef{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ProjectSecretRef"}, + v1.ProjectSecretRef{}.OpenAPIModelName()}, } } @@ -2863,26 +3695,26 @@ func schema_apis_loft_cluster_v1_Feature(ref common.ReferenceCallback) common.Op "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureSpec"), + Ref: ref(v1.FeatureSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureStatus"), + Ref: ref(v1.FeatureStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureSpec", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1.FeatureSpec{}.OpenAPIModelName(), v1.FeatureStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -2909,7 +3741,7 @@ func schema_apis_loft_cluster_v1_FeatureList(ref common.ReferenceCallback) commo "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -2919,7 +3751,7 @@ func schema_apis_loft_cluster_v1_FeatureList(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Feature"), + Ref: ref(v1.Feature{}.OpenAPIModelName()), }, }, }, @@ -2930,7 +3762,7 @@ func schema_apis_loft_cluster_v1_FeatureList(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Feature", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1.Feature{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -2966,39 +3798,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": { @@ -3045,26 +3870,26 @@ func schema_apis_loft_cluster_v1_HelmRelease(ref common.ReferenceCallback) commo "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseSpec"), + Ref: ref(v1.HelmReleaseSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseStatus"), + Ref: ref(v1.HelmReleaseStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseSpec", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1.HelmReleaseSpec{}.OpenAPIModelName(), v1.HelmReleaseStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -3104,7 +3929,7 @@ func schema_apis_loft_cluster_v1_HelmReleaseConfig(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "Chart holds information about a chart that should get deployed", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"), + Ref: ref(v1.Chart{}.OpenAPIModelName()), }, }, "manifests": { @@ -3117,7 +3942,7 @@ func schema_apis_loft_cluster_v1_HelmReleaseConfig(ref common.ReferenceCallback) "bash": { SchemaProps: spec.SchemaProps{ Description: "Bash holds the bash script to execute in a container in the target", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash"), + Ref: ref(v1.Bash{}.OpenAPIModelName()), }, }, "values": { @@ -3154,7 +3979,7 @@ func schema_apis_loft_cluster_v1_HelmReleaseConfig(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"}, + v1.Bash{}.OpenAPIModelName(), v1.Chart{}.OpenAPIModelName()}, } } @@ -3181,7 +4006,7 @@ func schema_apis_loft_cluster_v1_HelmReleaseList(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -3191,7 +4016,7 @@ func schema_apis_loft_cluster_v1_HelmReleaseList(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease"), + Ref: ref(v1.HelmRelease{}.OpenAPIModelName()), }, }, }, @@ -3202,7 +4027,7 @@ func schema_apis_loft_cluster_v1_HelmReleaseList(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1.HelmRelease{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -3216,7 +4041,7 @@ func schema_apis_loft_cluster_v1_HelmReleaseSpec(ref common.ReferenceCallback) c SchemaProps: spec.SchemaProps{ Description: "Chart holds information about a chart that should get deployed", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"), + Ref: ref(v1.Chart{}.OpenAPIModelName()), }, }, "manifests": { @@ -3229,7 +4054,7 @@ func schema_apis_loft_cluster_v1_HelmReleaseSpec(ref common.ReferenceCallback) c "bash": { SchemaProps: spec.SchemaProps{ Description: "Bash holds the bash script to execute in a container in the target", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash"), + Ref: ref(v1.Bash{}.OpenAPIModelName()), }, }, "values": { @@ -3266,7 +4091,7 @@ func schema_apis_loft_cluster_v1_HelmReleaseSpec(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"}, + v1.Bash{}.OpenAPIModelName(), v1.Chart{}.OpenAPIModelName()}, } } @@ -3286,20 +4111,20 @@ func schema_apis_loft_cluster_v1_HelmReleaseStatus(ref common.ReferenceCallback) "info": { SchemaProps: spec.SchemaProps{ Description: "Info provides information about a release", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info"), + Ref: ref(v1.Info{}.OpenAPIModelName()), }, }, "metadata": { SchemaProps: spec.SchemaProps{ Description: "Metadata provides information about a chart", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"), + Ref: ref(v1.Metadata{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"}, + v1.Info{}.OpenAPIModelName(), v1.Metadata{}.OpenAPIModelName()}, } } @@ -3313,19 +4138,19 @@ func schema_apis_loft_cluster_v1_Info(ref common.ReferenceCallback) common.OpenA "first_deployed": { SchemaProps: spec.SchemaProps{ Description: "FirstDeployed is when the release was first deployed.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "last_deployed": { SchemaProps: spec.SchemaProps{ Description: "LastDeployed is when the release was last deployed.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "deleted": { SchemaProps: spec.SchemaProps{ Description: "Deleted tracks when this object was deleted.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "description": { @@ -3353,7 +4178,7 @@ func schema_apis_loft_cluster_v1_Info(ref common.ReferenceCallback) common.OpenA }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -3539,7 +4364,7 @@ func schema_apis_loft_cluster_v1_Metadata(ref common.ReferenceCallback) common.O Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Maintainer"), + Ref: ref(v1.Maintainer{}.OpenAPIModelName()), }, }, }, @@ -3636,7 +4461,7 @@ func schema_apis_loft_cluster_v1_Metadata(ref common.ReferenceCallback) common.O }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Maintainer"}, + v1.Maintainer{}.OpenAPIModelName()}, } } @@ -3697,26 +4522,26 @@ func schema_apis_loft_cluster_v1_SleepModeConfig(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigSpec"), + Ref: ref(v1.SleepModeConfigSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigStatus"), + Ref: ref(v1.SleepModeConfigStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigSpec", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1.SleepModeConfigSpec{}.OpenAPIModelName(), v1.SleepModeConfigStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -3867,7 +4692,7 @@ func schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref common.ReferenceCallb "lastActivityInfo": { SchemaProps: spec.SchemaProps{ Description: "LastActivityInfo holds information about the last activity within this space", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.LastActivityInfo"), + Ref: ref(v1.LastActivityInfo{}.OpenAPIModelName()), }, }, "sleepingSince": { @@ -3880,13 +4705,13 @@ func schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref common.ReferenceCallb "currentEpoch": { SchemaProps: spec.SchemaProps{ Description: "Optional info that indicates how long the space was sleeping in the current epoch", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.EpochInfo"), + Ref: ref(v1.EpochInfo{}.OpenAPIModelName()), }, }, "lastEpoch": { SchemaProps: spec.SchemaProps{ Description: "Optional info that indicates how long the space was sleeping in the current epoch", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.EpochInfo"), + Ref: ref(v1.EpochInfo{}.OpenAPIModelName()), }, }, "sleptLastThirtyDays": { @@ -3928,7 +4753,7 @@ func schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.EpochInfo", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.LastActivityInfo"}, + v1.EpochInfo{}.OpenAPIModelName(), v1.LastActivityInfo{}.OpenAPIModelName()}, } } @@ -3956,26 +4781,26 @@ func schema_apis_loft_storage_v1_ClusterQuota(ref common.ReferenceCallback) comm "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaSpec"), + Ref: ref(storagev1.ClusterQuotaSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatus"), + Ref: ref(storagev1.ClusterQuotaStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaSpec", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + storagev1.ClusterQuotaSpec{}.OpenAPIModelName(), storagev1.ClusterQuotaStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -4003,7 +4828,7 @@ func schema_apis_loft_storage_v1_ClusterQuotaList(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -4013,7 +4838,7 @@ func schema_apis_loft_storage_v1_ClusterQuotaList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota"), + Ref: ref(storagev1.ClusterQuota{}.OpenAPIModelName()), }, }, }, @@ -4024,7 +4849,7 @@ func schema_apis_loft_storage_v1_ClusterQuotaList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + storagev1.ClusterQuota{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -4060,14 +4885,14 @@ func schema_apis_loft_storage_v1_ClusterQuotaSpec(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "quota is the quota definition with all the limits and selectors", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceQuotaSpec"), + Ref: ref(corev1.ResourceQuotaSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ResourceQuotaSpec"}, + corev1.ResourceQuotaSpec{}.OpenAPIModelName()}, } } @@ -4082,7 +4907,7 @@ func schema_apis_loft_storage_v1_ClusterQuotaStatus(ref common.ReferenceCallback SchemaProps: spec.SchemaProps{ Description: "Total defines the actual enforced quota and its current usage across all projects", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceQuotaStatus"), + Ref: ref(corev1.ResourceQuotaStatus{}.OpenAPIModelName()), }, }, "namespaces": { @@ -4093,7 +4918,7 @@ func schema_apis_loft_storage_v1_ClusterQuotaStatus(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatusByNamespace"), + Ref: ref(storagev1.ClusterQuotaStatusByNamespace{}.OpenAPIModelName()), }, }, }, @@ -4103,7 +4928,7 @@ func schema_apis_loft_storage_v1_ClusterQuotaStatus(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatusByNamespace", "k8s.io/api/core/v1.ResourceQuotaStatus"}, + storagev1.ClusterQuotaStatusByNamespace{}.OpenAPIModelName(), corev1.ResourceQuotaStatus{}.OpenAPIModelName()}, } } @@ -4126,7 +4951,7 @@ func schema_apis_loft_storage_v1_ClusterQuotaStatusByNamespace(ref common.Refere SchemaProps: spec.SchemaProps{ Description: "Status indicates how many resources have been consumed by this project", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceQuotaStatus"), + Ref: ref(corev1.ResourceQuotaStatus{}.OpenAPIModelName()), }, }, }, @@ -4134,7 +4959,7 @@ func schema_apis_loft_storage_v1_ClusterQuotaStatusByNamespace(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ResourceQuotaStatus"}, + corev1.ResourceQuotaStatus{}.OpenAPIModelName()}, } } @@ -4171,7 +4996,7 @@ func schema_apis_loft_storage_v1_Condition(ref common.ReferenceCallback) common. "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -4193,7 +5018,7 @@ func schema_apis_loft_storage_v1_Condition(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -4262,13 +5087,13 @@ func schema_pkg_apis_audit_v1_Event(ref common.ReferenceCallback) common.OpenAPI SchemaProps: spec.SchemaProps{ Description: "Authenticated user information.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + Ref: ref(authenticationv1.UserInfo{}.OpenAPIModelName()), }, }, "impersonatedUser": { SchemaProps: spec.SchemaProps{ Description: "Impersonated user information.", - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + Ref: ref(authenticationv1.UserInfo{}.OpenAPIModelName()), }, }, "sourceIPs": { @@ -4296,37 +5121,37 @@ func schema_pkg_apis_audit_v1_Event(ref common.ReferenceCallback) common.OpenAPI "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"), + Ref: ref(auditv1.ObjectReference{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(metav1.Status{}.OpenAPIModelName()), }, }, "requestObject": { SchemaProps: spec.SchemaProps{ Description: "API object from the request, in JSON format. The RequestObject is recorded as-is in the request (possibly re-encoded as JSON), prior to version conversion, defaulting, admission or merging. It is an external versioned object type, and may not be a valid object on its own. Omitted for non-resource requests. Only logged at Request Level and higher.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.Unknown"), + Ref: ref(runtime.Unknown{}.OpenAPIModelName()), }, }, "responseObject": { SchemaProps: spec.SchemaProps{ Description: "API object returned in the response, in JSON. The ResponseObject is recorded after conversion to the external type, and serialized as JSON. Omitted for non-resource requests. Only logged at Response Level.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.Unknown"), + Ref: ref(runtime.Unknown{}.OpenAPIModelName()), }, }, "requestReceivedTimestamp": { SchemaProps: spec.SchemaProps{ Description: "Time the request reached the apiserver.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), }, }, "stageTimestamp": { SchemaProps: spec.SchemaProps{ Description: "Time the request reached current audit stage.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), }, }, "annotations": { @@ -4350,7 +5175,7 @@ func schema_pkg_apis_audit_v1_Event(ref common.ReferenceCallback) common.OpenAPI }, }, 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"}, + auditv1.ObjectReference{}.OpenAPIModelName(), authenticationv1.UserInfo{}.OpenAPIModelName(), metav1.MicroTime{}.OpenAPIModelName(), metav1.Status{}.OpenAPIModelName(), runtime.Unknown{}.OpenAPIModelName()}, } } @@ -4378,7 +5203,7 @@ func schema_pkg_apis_audit_v1_EventList(ref common.ReferenceCallback) common.Ope "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -4388,7 +5213,7 @@ func schema_pkg_apis_audit_v1_EventList(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event"), + Ref: ref(auditv1.Event{}.OpenAPIModelName()), }, }, }, @@ -4399,7 +5224,7 @@ func schema_pkg_apis_audit_v1_EventList(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + auditv1.Event{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -4516,7 +5341,7 @@ func schema_pkg_apis_management_v1_AgentAuditConfig(ref common.ReferenceCallback SchemaProps: spec.SchemaProps{ Description: "The audit policy to use and log requests. By default loft will not log anything", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy"), + Ref: ref(managementv1.AuditPolicy{}.OpenAPIModelName()), }, }, "path": { @@ -4558,7 +5383,7 @@ func schema_pkg_apis_management_v1_AgentAuditConfig(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy"}, + managementv1.AuditPolicy{}.OpenAPIModelName()}, } } @@ -4586,26 +5411,26 @@ func schema_pkg_apis_management_v1_AgentAuditEvent(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventSpec"), + Ref: ref(managementv1.AgentAuditEventSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventStatus"), + Ref: ref(managementv1.AgentAuditEventStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.AgentAuditEventSpec{}.OpenAPIModelName(), managementv1.AgentAuditEventStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -4632,7 +5457,7 @@ func schema_pkg_apis_management_v1_AgentAuditEventList(ref common.ReferenceCallb "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -4642,7 +5467,7 @@ func schema_pkg_apis_management_v1_AgentAuditEventList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEvent"), + Ref: ref(managementv1.AgentAuditEvent{}.OpenAPIModelName()), }, }, }, @@ -4653,7 +5478,7 @@ func schema_pkg_apis_management_v1_AgentAuditEventList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEvent", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.AgentAuditEvent{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -4671,7 +5496,7 @@ func schema_pkg_apis_management_v1_AgentAuditEventSpec(ref common.ReferenceCallb Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event"), + Ref: ref(auditv1.Event{}.OpenAPIModelName()), }, }, }, @@ -4681,7 +5506,7 @@ func schema_pkg_apis_management_v1_AgentAuditEventSpec(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event"}, + auditv1.Event{}.OpenAPIModelName()}, } } @@ -4696,137 +5521,44 @@ func schema_pkg_apis_management_v1_AgentAuditEventStatus(ref common.ReferenceCal } } -func schema_pkg_apis_management_v1_Announcement(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Announcement holds the announcement 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.AnnouncementSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_management_v1_AnnouncementList(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "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": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, + Description: "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: "", }, }, - "metadata": { + "metrics": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + 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(apisstoragev1.Metrics{}.OpenAPIModelName()), }, }, - "items": { + "opencost": { 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.Announcement"), - }, - }, - }, + 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(apisstoragev1.OpenCost{}.OpenAPIModelName()), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Announcement", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.Metrics{}.OpenAPIModelName(), apisstoragev1.OpenCost{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_AnnouncementSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_AnnouncementStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "announcement": { - SchemaProps: spec.SchemaProps{ - Description: "Announcement is the html announcement that should be displayed in the frontend", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.Announcement"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.Announcement"}, - } -} - -func schema_pkg_apis_management_v1_App(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Announcement(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "App holds the information", + Description: "Announcement holds the announcement information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -4846,26 +5578,152 @@ func schema_pkg_apis_management_v1_App(ref common.ReferenceCallback) common.Open "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AppSpec"), + Ref: ref(managementv1.AnnouncementSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AppStatus"), + Ref: ref(managementv1.AnnouncementStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.AnnouncementSpec{}.OpenAPIModelName(), managementv1.AnnouncementStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_AnnouncementList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.Announcement{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.Announcement{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_AnnouncementSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_AnnouncementStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "announcement": { + SchemaProps: spec.SchemaProps{ + Description: "Announcement is the html announcement that should be displayed in the frontend", + Default: map[string]interface{}{}, + Ref: ref(licenseapi.Announcement{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + licenseapi.Announcement{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_App(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "App holds the information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.AppSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.AppStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.AppSpec{}.OpenAPIModelName(), managementv1.AppStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -4892,7 +5750,7 @@ func schema_pkg_apis_management_v1_AppCredentials(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "projectSecretRefs": { @@ -4915,7 +5773,7 @@ func schema_pkg_apis_management_v1_AppCredentials(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -4942,7 +5800,7 @@ func schema_pkg_apis_management_v1_AppCredentialsList(ref common.ReferenceCallba "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -4952,7 +5810,7 @@ func schema_pkg_apis_management_v1_AppCredentialsList(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.AppCredentials"), + Ref: ref(managementv1.AppCredentials{}.OpenAPIModelName()), }, }, }, @@ -4963,7 +5821,7 @@ func schema_pkg_apis_management_v1_AppCredentialsList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentials", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.AppCredentials{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -4990,7 +5848,7 @@ func schema_pkg_apis_management_v1_AppList(ref common.ReferenceCallback) common. "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -5000,7 +5858,7 @@ func schema_pkg_apis_management_v1_AppList(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.App"), + Ref: ref(managementv1.App{}.OpenAPIModelName()), }, }, }, @@ -5011,7 +5869,7 @@ func schema_pkg_apis_management_v1_AppList(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.App", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.App{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -5039,7 +5897,7 @@ func schema_pkg_apis_management_v1_AppSpec(ref common.ReferenceCallback) common. "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "clusters": { @@ -5097,7 +5955,7 @@ func schema_pkg_apis_management_v1_AppSpec(ref common.ReferenceCallback) common. SchemaProps: spec.SchemaProps{ Description: "Config is the helm config to use to deploy the helm release", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), + Ref: ref(v1.HelmReleaseConfig{}.OpenAPIModelName()), }, }, "wait": { @@ -5122,7 +5980,7 @@ func schema_pkg_apis_management_v1_AppSpec(ref common.ReferenceCallback) common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), + Ref: ref(apisstoragev1.AppParameter{}.OpenAPIModelName()), }, }, }, @@ -5131,7 +5989,7 @@ func schema_pkg_apis_management_v1_AppSpec(ref common.ReferenceCallback) common. "streamContainer": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: Use config.bash instead StreamContainer can be used to stream a containers logs instead of the helm output.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"), + Ref: ref(apisstoragev1.StreamContainer{}.OpenAPIModelName()), }, }, "versions": { @@ -5142,7 +6000,7 @@ func schema_pkg_apis_management_v1_AppSpec(ref common.ReferenceCallback) common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion"), + Ref: ref(apisstoragev1.AppVersion{}.OpenAPIModelName()), }, }, }, @@ -5156,7 +6014,7 @@ func schema_pkg_apis_management_v1_AppSpec(ref common.ReferenceCallback) common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -5172,14 +6030,14 @@ func schema_pkg_apis_management_v1_AppSpec(ref common.ReferenceCallback) common. "helm": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: Use config instead helm defines the configuration for a helm deployment", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration"), + Ref: ref(apisstoragev1.HelmConfiguration{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + v1.HelmReleaseConfig{}.OpenAPIModelName(), apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.AppParameter{}.OpenAPIModelName(), apisstoragev1.AppVersion{}.OpenAPIModelName(), apisstoragev1.HelmConfiguration{}.OpenAPIModelName(), apisstoragev1.StreamContainer{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -5216,7 +6074,7 @@ func schema_pkg_apis_management_v1_Apps(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository"), + Ref: ref(apisstoragev1.HelmChartRepository{}.OpenAPIModelName()), }, }, }, @@ -5230,7 +6088,7 @@ func schema_pkg_apis_management_v1_Apps(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.PredefinedApp"), + Ref: ref(managementv1.PredefinedApp{}.OpenAPIModelName()), }, }, }, @@ -5240,7 +6098,54 @@ func schema_pkg_apis_management_v1_Apps(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.PredefinedApp", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository"}, + managementv1.PredefinedApp{}.OpenAPIModelName(), apisstoragev1.HelmChartRepository{}.OpenAPIModelName()}, + } +} + +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: "", + }, + }, + }, + }, + }, } } @@ -5276,7 +6181,7 @@ func schema_pkg_apis_management_v1_Audit(ref common.ReferenceCallback) common.Op SchemaProps: spec.SchemaProps{ Description: "The audit policy to use and log requests. By default loft will not log anything", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy"), + Ref: ref(managementv1.AuditPolicy{}.OpenAPIModelName()), }, }, "dataStoreEndpoint": { @@ -5332,7 +6237,7 @@ func schema_pkg_apis_management_v1_Audit(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy"}, + managementv1.AuditPolicy{}.OpenAPIModelName()}, } } @@ -5351,7 +6256,7 @@ func schema_pkg_apis_management_v1_AuditPolicy(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.AuditPolicyRule"), + Ref: ref(managementv1.AuditPolicyRule{}.OpenAPIModelName()), }, }, }, @@ -5376,7 +6281,7 @@ func schema_pkg_apis_management_v1_AuditPolicy(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicyRule"}, + managementv1.AuditPolicyRule{}.OpenAPIModelName()}, } } @@ -5448,7 +6353,7 @@ func schema_pkg_apis_management_v1_AuditPolicyRule(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.GroupResources"), + Ref: ref(managementv1.GroupResources{}.OpenAPIModelName()), }, }, }, @@ -5534,7 +6439,7 @@ func schema_pkg_apis_management_v1_AuditPolicyRule(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.GroupResources"}, + managementv1.GroupResources{}.OpenAPIModelName()}, } } @@ -5548,49 +6453,49 @@ func schema_pkg_apis_management_v1_Authentication(ref common.ReferenceCallback) "oidc": { SchemaProps: spec.SchemaProps{ Description: "OIDC holds oidc authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC"), + Ref: ref(managementv1.AuthenticationOIDC{}.OpenAPIModelName()), }, }, "github": { SchemaProps: spec.SchemaProps{ Description: "Github holds github authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub"), + Ref: ref(managementv1.AuthenticationGithub{}.OpenAPIModelName()), }, }, "gitlab": { SchemaProps: spec.SchemaProps{ Description: "Gitlab holds gitlab authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab"), + Ref: ref(managementv1.AuthenticationGitlab{}.OpenAPIModelName()), }, }, "google": { SchemaProps: spec.SchemaProps{ Description: "Google holds google authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle"), + Ref: ref(managementv1.AuthenticationGoogle{}.OpenAPIModelName()), }, }, "microsoft": { SchemaProps: spec.SchemaProps{ Description: "Microsoft holds microsoft authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft"), + Ref: ref(managementv1.AuthenticationMicrosoft{}.OpenAPIModelName()), }, }, "saml": { SchemaProps: spec.SchemaProps{ Description: "SAML holds saml authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML"), + Ref: ref(managementv1.AuthenticationSAML{}.OpenAPIModelName()), }, }, "rancher": { SchemaProps: spec.SchemaProps{ Description: "Rancher holds the rancher authentication options", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationRancher"), + Ref: ref(managementv1.AuthenticationRancher{}.OpenAPIModelName()), }, }, "password": { SchemaProps: spec.SchemaProps{ Description: "Password holds password authentication relevant information", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationPassword"), + Ref: ref(managementv1.AuthenticationPassword{}.OpenAPIModelName()), }, }, "connectors": { @@ -5601,7 +6506,7 @@ func schema_pkg_apis_management_v1_Authentication(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.ConnectorWithName"), + Ref: ref(managementv1.ConnectorWithName{}.OpenAPIModelName()), }, }, }, @@ -5670,7 +6575,7 @@ func schema_pkg_apis_management_v1_Authentication(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationPassword", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationRancher", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConnectorWithName"}, + managementv1.AuthenticationGithub{}.OpenAPIModelName(), managementv1.AuthenticationGitlab{}.OpenAPIModelName(), managementv1.AuthenticationGoogle{}.OpenAPIModelName(), managementv1.AuthenticationMicrosoft{}.OpenAPIModelName(), managementv1.AuthenticationOIDC{}.OpenAPIModelName(), managementv1.AuthenticationPassword{}.OpenAPIModelName(), managementv1.AuthenticationRancher{}.OpenAPIModelName(), managementv1.AuthenticationSAML{}.OpenAPIModelName(), managementv1.ConnectorWithName{}.OpenAPIModelName()}, } } @@ -5711,7 +6616,7 @@ func schema_pkg_apis_management_v1_AuthenticationGithub(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.AuthenticationGithubOrg"), + Ref: ref(managementv1.AuthenticationGithubOrg{}.OpenAPIModelName()), }, }, }, @@ -5736,7 +6641,7 @@ func schema_pkg_apis_management_v1_AuthenticationGithub(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithubOrg"}, + managementv1.AuthenticationGithubOrg{}.OpenAPIModelName()}, } } @@ -6087,6 +6992,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 +7072,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: "", + }, + }, }, }, }, @@ -6352,26 +7279,26 @@ func schema_pkg_apis_management_v1_Backup(ref common.ReferenceCallback) common.O "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupSpec"), + Ref: ref(managementv1.BackupSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupStatus"), + Ref: ref(managementv1.BackupStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.BackupSpec{}.OpenAPIModelName(), managementv1.BackupStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -6398,20 +7325,20 @@ func schema_pkg_apis_management_v1_BackupApply(ref common.ReferenceCallback) com "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplySpec"), + Ref: ref(managementv1.BackupApplySpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.BackupApplySpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -6438,7 +7365,7 @@ func schema_pkg_apis_management_v1_BackupApplyList(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -6448,7 +7375,7 @@ func schema_pkg_apis_management_v1_BackupApplyList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApply"), + Ref: ref(managementv1.BackupApply{}.OpenAPIModelName()), }, }, }, @@ -6459,7 +7386,7 @@ func schema_pkg_apis_management_v1_BackupApplyList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApply", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.BackupApply{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -6532,7 +7459,7 @@ func schema_pkg_apis_management_v1_BackupList(ref common.ReferenceCallback) comm "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -6542,7 +7469,7 @@ func schema_pkg_apis_management_v1_BackupList(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Backup"), + Ref: ref(managementv1.Backup{}.OpenAPIModelName()), }, }, }, @@ -6553,7 +7480,7 @@ func schema_pkg_apis_management_v1_BackupList(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Backup", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.Backup{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -6587,6 +7514,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(managementv1.MaintenanceWindow{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.MaintenanceWindow{}.OpenAPIModelName()}, + } +} + func schema_pkg_apis_management_v1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -6611,26 +7566,26 @@ func schema_pkg_apis_management_v1_Cluster(ref common.ReferenceCallback) common. "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterSpec"), + Ref: ref(managementv1.ClusterSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterStatus"), + Ref: ref(managementv1.ClusterStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ClusterSpec{}.OpenAPIModelName(), managementv1.ClusterStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -6658,26 +7613,26 @@ func schema_pkg_apis_management_v1_ClusterAccess(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessSpec"), + Ref: ref(managementv1.ClusterAccessSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessStatus"), + Ref: ref(managementv1.ClusterAccessStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ClusterAccessSpec{}.OpenAPIModelName(), managementv1.ClusterAccessStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -6705,7 +7660,7 @@ func schema_pkg_apis_management_v1_ClusterAccessKey(ref common.ReferenceCallback "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "accessKey": { @@ -6740,7 +7695,7 @@ func schema_pkg_apis_management_v1_ClusterAccessKey(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -6767,7 +7722,7 @@ func schema_pkg_apis_management_v1_ClusterAccessKeyList(ref common.ReferenceCall "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -6777,7 +7732,7 @@ func schema_pkg_apis_management_v1_ClusterAccessKeyList(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.ClusterAccessKey"), + Ref: ref(managementv1.ClusterAccessKey{}.OpenAPIModelName()), }, }, }, @@ -6788,7 +7743,7 @@ func schema_pkg_apis_management_v1_ClusterAccessKeyList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ClusterAccessKey{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -6815,7 +7770,7 @@ func schema_pkg_apis_management_v1_ClusterAccessList(ref common.ReferenceCallbac "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -6825,7 +7780,7 @@ func schema_pkg_apis_management_v1_ClusterAccessList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccess"), + Ref: ref(managementv1.ClusterAccess{}.OpenAPIModelName()), }, }, }, @@ -6836,7 +7791,63 @@ func schema_pkg_apis_management_v1_ClusterAccessList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccess", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ClusterAccess{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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(managementv1.ObjectName{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref(managementv1.AssignedVia{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.AssignedVia{}.OpenAPIModelName(), managementv1.ObjectName{}.OpenAPIModelName()}, } } @@ -6864,7 +7875,7 @@ func schema_pkg_apis_management_v1_ClusterAccessSpec(ref common.ReferenceCallbac "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "clusters": { @@ -6890,7 +7901,7 @@ func schema_pkg_apis_management_v1_ClusterAccessSpec(ref common.ReferenceCallbac 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -6900,14 +7911,14 @@ func schema_pkg_apis_management_v1_ClusterAccessSpec(ref common.ReferenceCallbac SchemaProps: spec.SchemaProps{ Description: "LocalClusterAccessTemplate holds the cluster access template", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate"), + Ref: ref(apisstoragev1.LocalClusterAccessTemplate{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.LocalClusterAccessTemplate{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -6924,7 +7935,7 @@ func schema_pkg_apis_management_v1_ClusterAccessStatus(ref common.ReferenceCallb Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Ref: ref(apisstoragev1.EntityInfo{}.OpenAPIModelName()), }, }, }, @@ -6936,7 +7947,7 @@ func schema_pkg_apis_management_v1_ClusterAccessStatus(ref common.ReferenceCallb Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity"), + Ref: ref(apisstoragev1.UserOrTeamEntity{}.OpenAPIModelName()), }, }, }, @@ -6948,7 +7959,7 @@ func schema_pkg_apis_management_v1_ClusterAccessStatus(ref common.ReferenceCallb Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Ref: ref(apisstoragev1.EntityInfo{}.OpenAPIModelName()), }, }, }, @@ -6958,7 +7969,7 @@ func schema_pkg_apis_management_v1_ClusterAccessStatus(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity"}, + apisstoragev1.EntityInfo{}.OpenAPIModelName(), apisstoragev1.UserOrTeamEntity{}.OpenAPIModelName()}, } } @@ -6987,14 +7998,14 @@ func schema_pkg_apis_management_v1_ClusterAccounts(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "Cluster is the cluster object", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster"), + Ref: ref(apisstoragev1.Cluster{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster"}, + apisstoragev1.Cluster{}.OpenAPIModelName()}, } } @@ -7022,7 +8033,7 @@ func schema_pkg_apis_management_v1_ClusterAgentConfig(ref common.ReferenceCallba "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "cluster": { @@ -7035,7 +8046,7 @@ func schema_pkg_apis_management_v1_ClusterAgentConfig(ref common.ReferenceCallba "audit": { SchemaProps: spec.SchemaProps{ Description: "Audit holds the agent audit config", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig"), + Ref: ref(managementv1.AgentAuditConfig{}.OpenAPIModelName()), }, }, "defaultImageRegistry": { @@ -7077,7 +8088,20 @@ func schema_pkg_apis_management_v1_ClusterAgentConfig(ref common.ReferenceCallba SchemaProps: spec.SchemaProps{ Description: "AnalyticsSpec holds info needed for the agent to send analytics data to the analytics backend.", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec"), + Ref: ref(managementv1.AgentAnalyticsSpec{}.OpenAPIModelName()), + }, + }, + "costControl": { + SchemaProps: spec.SchemaProps{ + Description: "CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure", + Ref: ref(managementv1.AgentCostControlConfig{}.OpenAPIModelName()), + }, + }, + "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: "", }, }, }, @@ -7085,7 +8109,7 @@ func schema_pkg_apis_management_v1_ClusterAgentConfig(ref common.ReferenceCallba }, }, 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"}, + managementv1.AgentAnalyticsSpec{}.OpenAPIModelName(), managementv1.AgentAuditConfig{}.OpenAPIModelName(), managementv1.AgentCostControlConfig{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -7105,7 +8129,7 @@ func schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref common.Reference "audit": { SchemaProps: spec.SchemaProps{ Description: "Audit holds the agent audit config", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig"), + Ref: ref(managementv1.AgentAuditConfig{}.OpenAPIModelName()), }, }, "defaultImageRegistry": { @@ -7147,7 +8171,20 @@ func schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref common.Reference SchemaProps: spec.SchemaProps{ Description: "AnalyticsSpec holds info needed for the agent to send analytics data to the analytics backend.", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec"), + Ref: ref(managementv1.AgentAnalyticsSpec{}.OpenAPIModelName()), + }, + }, + "costControl": { + SchemaProps: spec.SchemaProps{ + Description: "CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure", + Ref: ref(managementv1.AgentCostControlConfig{}.OpenAPIModelName()), + }, + }, + "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: "", }, }, }, @@ -7155,7 +8192,7 @@ func schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref common.Reference }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig"}, + managementv1.AgentAnalyticsSpec{}.OpenAPIModelName(), managementv1.AgentAuditConfig{}.OpenAPIModelName(), managementv1.AgentCostControlConfig{}.OpenAPIModelName()}, } } @@ -7182,7 +8219,7 @@ func schema_pkg_apis_management_v1_ClusterAgentConfigList(ref common.ReferenceCa "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -7192,7 +8229,7 @@ func schema_pkg_apis_management_v1_ClusterAgentConfigList(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfig"), + Ref: ref(managementv1.ClusterAgentConfig{}.OpenAPIModelName()), }, }, }, @@ -7203,7 +8240,7 @@ func schema_pkg_apis_management_v1_ClusterAgentConfigList(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ClusterAgentConfig{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -7230,7 +8267,7 @@ func schema_pkg_apis_management_v1_ClusterCharts(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "charts": { @@ -7241,7 +8278,7 @@ func schema_pkg_apis_management_v1_ClusterCharts(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart"), + Ref: ref(apisstoragev1.HelmChart{}.OpenAPIModelName()), }, }, }, @@ -7259,7 +8296,7 @@ func schema_pkg_apis_management_v1_ClusterCharts(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.HelmChart{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -7286,7 +8323,7 @@ func schema_pkg_apis_management_v1_ClusterChartsList(ref common.ReferenceCallbac "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -7296,7 +8333,7 @@ func schema_pkg_apis_management_v1_ClusterChartsList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterCharts"), + Ref: ref(managementv1.ClusterCharts{}.OpenAPIModelName()), }, }, }, @@ -7307,7 +8344,7 @@ func schema_pkg_apis_management_v1_ClusterChartsList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterCharts", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ClusterCharts{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -7334,7 +8371,7 @@ func schema_pkg_apis_management_v1_ClusterDomain(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "target": { @@ -7353,7 +8390,7 @@ func schema_pkg_apis_management_v1_ClusterDomain(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -7380,7 +8417,7 @@ func schema_pkg_apis_management_v1_ClusterDomainList(ref common.ReferenceCallbac "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -7390,7 +8427,7 @@ func schema_pkg_apis_management_v1_ClusterDomainList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterDomain"), + Ref: ref(managementv1.ClusterDomain{}.OpenAPIModelName()), }, }, }, @@ -7401,7 +8438,7 @@ func schema_pkg_apis_management_v1_ClusterDomainList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterDomain", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ClusterDomain{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -7428,7 +8465,7 @@ func schema_pkg_apis_management_v1_ClusterList(ref common.ReferenceCallback) com "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -7438,7 +8475,7 @@ func schema_pkg_apis_management_v1_ClusterList(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.Cluster"), + Ref: ref(managementv1.Cluster{}.OpenAPIModelName()), }, }, }, @@ -7449,7 +8486,7 @@ func schema_pkg_apis_management_v1_ClusterList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.Cluster{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -7463,14 +8500,14 @@ func schema_pkg_apis_management_v1_ClusterMember(ref common.ReferenceCallback) c SchemaProps: spec.SchemaProps{ Description: "Info about the user or team", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Ref: ref(apisstoragev1.EntityInfo{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + apisstoragev1.EntityInfo{}.OpenAPIModelName()}, } } @@ -7497,7 +8534,7 @@ func schema_pkg_apis_management_v1_ClusterMemberAccess(ref common.ReferenceCallb "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "teams": { @@ -7508,7 +8545,7 @@ func schema_pkg_apis_management_v1_ClusterMemberAccess(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMember"), + Ref: ref(managementv1.ClusterMember{}.OpenAPIModelName()), }, }, }, @@ -7522,7 +8559,7 @@ func schema_pkg_apis_management_v1_ClusterMemberAccess(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMember"), + Ref: ref(managementv1.ClusterMember{}.OpenAPIModelName()), }, }, }, @@ -7532,7 +8569,7 @@ func schema_pkg_apis_management_v1_ClusterMemberAccess(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMember", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ClusterMember{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -7559,7 +8596,7 @@ func schema_pkg_apis_management_v1_ClusterMemberAccessList(ref common.ReferenceC "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -7569,7 +8606,7 @@ func schema_pkg_apis_management_v1_ClusterMemberAccessList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccess"), + Ref: ref(managementv1.ClusterMemberAccess{}.OpenAPIModelName()), }, }, }, @@ -7580,7 +8617,7 @@ func schema_pkg_apis_management_v1_ClusterMemberAccessList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccess", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ClusterMemberAccess{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -7607,7 +8644,7 @@ func schema_pkg_apis_management_v1_ClusterMembers(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "teams": { @@ -7618,7 +8655,7 @@ func schema_pkg_apis_management_v1_ClusterMembers(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.ClusterMember"), + Ref: ref(managementv1.ClusterMember{}.OpenAPIModelName()), }, }, }, @@ -7632,7 +8669,7 @@ func schema_pkg_apis_management_v1_ClusterMembers(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.ClusterMember"), + Ref: ref(managementv1.ClusterMember{}.OpenAPIModelName()), }, }, }, @@ -7642,7 +8679,7 @@ func schema_pkg_apis_management_v1_ClusterMembers(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMember", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ClusterMember{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -7669,7 +8706,7 @@ func schema_pkg_apis_management_v1_ClusterMembersList(ref common.ReferenceCallba "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -7679,7 +8716,7 @@ func schema_pkg_apis_management_v1_ClusterMembersList(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.ClusterMembers"), + Ref: ref(managementv1.ClusterMembers{}.OpenAPIModelName()), }, }, }, @@ -7690,7 +8727,7 @@ func schema_pkg_apis_management_v1_ClusterMembersList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMembers", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ClusterMembers{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -7717,7 +8754,7 @@ func schema_pkg_apis_management_v1_ClusterReset(ref common.ReferenceCallback) co "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "agent": { @@ -7736,7 +8773,7 @@ func schema_pkg_apis_management_v1_ClusterReset(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -7763,7 +8800,7 @@ func schema_pkg_apis_management_v1_ClusterResetList(ref common.ReferenceCallback "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -7773,7 +8810,7 @@ func schema_pkg_apis_management_v1_ClusterResetList(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.ClusterReset"), + Ref: ref(managementv1.ClusterReset{}.OpenAPIModelName()), }, }, }, @@ -7784,7 +8821,7 @@ func schema_pkg_apis_management_v1_ClusterResetList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterReset", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ClusterReset{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -7812,26 +8849,26 @@ func schema_pkg_apis_management_v1_ClusterRoleTemplate(ref common.ReferenceCallb "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateSpec"), + Ref: ref(managementv1.ClusterRoleTemplateSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateStatus"), + Ref: ref(managementv1.ClusterRoleTemplateStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ClusterRoleTemplateSpec{}.OpenAPIModelName(), managementv1.ClusterRoleTemplateStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -7858,7 +8895,7 @@ func schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref common.ReferenceC "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -7868,7 +8905,7 @@ func schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplate"), + Ref: ref(managementv1.ClusterRoleTemplate{}.OpenAPIModelName()), }, }, }, @@ -7879,7 +8916,7 @@ func schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ClusterRoleTemplate{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -7907,7 +8944,7 @@ func schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref common.ReferenceC "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "clusters": { @@ -7940,7 +8977,7 @@ func schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref common.ReferenceC 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -7950,20 +8987,20 @@ func schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref common.ReferenceC 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"), + Ref: ref(apisstoragev1.ClusterRoleTemplateTemplate{}.OpenAPIModelName()), }, }, "localClusterRoleTemplate": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: Use ClusterRoleTemplate instead LocalClusterRoleTemplate holds the cluster role template", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate"), + Ref: ref(apisstoragev1.LocalClusterRoleTemplate{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.ClusterRoleTemplateTemplate{}.OpenAPIModelName(), apisstoragev1.LocalClusterRoleTemplate{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -7980,7 +9017,7 @@ func schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref common.Referenc Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Ref: ref(apisstoragev1.EntityInfo{}.OpenAPIModelName()), }, }, }, @@ -7990,7 +9027,7 @@ func schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref common.Referenc }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + apisstoragev1.EntityInfo{}.OpenAPIModelName()}, } } @@ -8018,14 +9055,14 @@ func schema_pkg_apis_management_v1_ClusterSpec(ref common.ReferenceCallback) com "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "config": { SchemaProps: spec.SchemaProps{ Description: "Holds a reference to a secret that holds the kube config to access this cluster", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + Ref: ref(apisstoragev1.SecretRef{}.OpenAPIModelName()), }, }, "local": { @@ -8064,17 +9101,29 @@ func schema_pkg_apis_management_v1_ClusterSpec(ref common.ReferenceCallback) com 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, }, }, + "metrics": { + SchemaProps: spec.SchemaProps{ + Description: "Metrics holds the cluster's metrics backend configuration", + Ref: ref(apisstoragev1.Metrics{}.OpenAPIModelName()), + }, + }, + "opencost": { + SchemaProps: spec.SchemaProps{ + Description: "OpenCost holds the cluster's OpenCost backend configuration", + Ref: ref(apisstoragev1.OpenCost{}.OpenAPIModelName()), + }, + }, }, }, }, 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"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.Metrics{}.OpenAPIModelName(), apisstoragev1.OpenCost{}.OpenAPIModelName(), apisstoragev1.SecretRef{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -8103,125 +9152,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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, }, }, + "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"}, + storagev1.Condition{}.OpenAPIModelName()}, } } @@ -8249,26 +9205,26 @@ func schema_pkg_apis_management_v1_Config(ref common.ReferenceCallback) common.O "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigSpec"), + Ref: ref(managementv1.ConfigSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigStatus"), + Ref: ref(managementv1.ConfigStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ConfigSpec{}.OpenAPIModelName(), managementv1.ConfigStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -8295,7 +9251,7 @@ func schema_pkg_apis_management_v1_ConfigList(ref common.ReferenceCallback) comm "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -8305,7 +9261,7 @@ func schema_pkg_apis_management_v1_ConfigList(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Config"), + Ref: ref(managementv1.Config{}.OpenAPIModelName()), }, }, }, @@ -8316,7 +9272,7 @@ func schema_pkg_apis_management_v1_ConfigList(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Config", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.Config{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -8351,25 +9307,25 @@ func schema_pkg_apis_management_v1_ConfigStatus(ref common.ReferenceCallback) co SchemaProps: spec.SchemaProps{ Description: "Authentication holds the information for authentication", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication"), + Ref: ref(managementv1.Authentication{}.OpenAPIModelName()), }, }, "oidc": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: Configure the OIDC clients using either the OIDC Client UI or a secret. By default, vCluster Platform as an OIDC Provider is enabled but does not function without OIDC clients.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC"), + Ref: ref(managementv1.OIDC{}.OpenAPIModelName()), }, }, "apps": { SchemaProps: spec.SchemaProps{ Description: "Apps holds configuration around apps", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps"), + Ref: ref(managementv1.Apps{}.OpenAPIModelName()), }, }, "audit": { SchemaProps: spec.SchemaProps{ Description: "Audit holds audit configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit"), + Ref: ref(managementv1.Audit{}.OpenAPIModelName()), }, }, "loftHost": { @@ -8388,7 +9344,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: "", }, @@ -8396,13 +9352,13 @@ func schema_pkg_apis_management_v1_ConfigStatus(ref common.ReferenceCallback) co "uiSettings": { SchemaProps: spec.SchemaProps{ Description: "UISettings holds the settings for modifying the Loft user interface", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig"), + Ref: ref(uiv1.UISettingsConfig{}.OpenAPIModelName()), }, }, "vault": { SchemaProps: spec.SchemaProps{ Description: "VaultIntegration holds the vault integration configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), + Ref: ref(apisstoragev1.VaultIntegrationSpec{}.OpenAPIModelName()), }, }, "disableConfigEndpoint": { @@ -8412,11 +9368,48 @@ 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(managementv1.Cloud{}.OpenAPIModelName()), + }, + }, + "costControl": { + SchemaProps: spec.SchemaProps{ + Description: "CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure", + Ref: ref(managementv1.CostControl{}.OpenAPIModelName()), + }, + }, + "platformDB": { + SchemaProps: spec.SchemaProps{ + Description: "PlatformDB holds the settings related to the postgres database that platform uses to store data", + Ref: ref(managementv1.PlatformDB{}.OpenAPIModelName()), + }, + }, + "imageBuilder": { + SchemaProps: spec.SchemaProps{ + Description: "ImageBuilder holds the settings related to the image builder", + Ref: ref(managementv1.ImageBuilder{}.OpenAPIModelName()), + }, + }, + "database": { + SchemaProps: spec.SchemaProps{ + Description: "Database represents the database connection settings when deploying the platform with an embedded Kubernetes backed by kine", + Ref: ref(managementv1.DatabaseKine{}.OpenAPIModelName()), + }, + }, }, }, }, 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"}, + managementv1.Apps{}.OpenAPIModelName(), managementv1.Audit{}.OpenAPIModelName(), managementv1.Authentication{}.OpenAPIModelName(), managementv1.Cloud{}.OpenAPIModelName(), managementv1.CostControl{}.OpenAPIModelName(), managementv1.DatabaseKine{}.OpenAPIModelName(), managementv1.ImageBuilder{}.OpenAPIModelName(), managementv1.OIDC{}.OpenAPIModelName(), managementv1.PlatformDB{}.OpenAPIModelName(), apisstoragev1.VaultIntegrationSpec{}.OpenAPIModelName(), uiv1.UISettingsConfig{}.OpenAPIModelName()}, } } @@ -8429,44 +9422,44 @@ func schema_pkg_apis_management_v1_Connector(ref common.ReferenceCallback) commo "oidc": { SchemaProps: spec.SchemaProps{ Description: "OIDC holds oidc authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC"), + Ref: ref(managementv1.AuthenticationOIDC{}.OpenAPIModelName()), }, }, "github": { SchemaProps: spec.SchemaProps{ Description: "Github holds github authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub"), + Ref: ref(managementv1.AuthenticationGithub{}.OpenAPIModelName()), }, }, "gitlab": { SchemaProps: spec.SchemaProps{ Description: "Gitlab holds gitlab authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab"), + Ref: ref(managementv1.AuthenticationGitlab{}.OpenAPIModelName()), }, }, "google": { SchemaProps: spec.SchemaProps{ Description: "Google holds google authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle"), + Ref: ref(managementv1.AuthenticationGoogle{}.OpenAPIModelName()), }, }, "microsoft": { SchemaProps: spec.SchemaProps{ Description: "Microsoft holds microsoft authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft"), + Ref: ref(managementv1.AuthenticationMicrosoft{}.OpenAPIModelName()), }, }, "saml": { SchemaProps: spec.SchemaProps{ Description: "SAML holds saml authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML"), + Ref: ref(managementv1.AuthenticationSAML{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML"}, + managementv1.AuthenticationGithub{}.OpenAPIModelName(), managementv1.AuthenticationGitlab{}.OpenAPIModelName(), managementv1.AuthenticationGoogle{}.OpenAPIModelName(), managementv1.AuthenticationMicrosoft{}.OpenAPIModelName(), managementv1.AuthenticationOIDC{}.OpenAPIModelName(), managementv1.AuthenticationSAML{}.OpenAPIModelName()}, } } @@ -8493,44 +9486,44 @@ func schema_pkg_apis_management_v1_ConnectorWithName(ref common.ReferenceCallbac "oidc": { SchemaProps: spec.SchemaProps{ Description: "OIDC holds oidc authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC"), + Ref: ref(managementv1.AuthenticationOIDC{}.OpenAPIModelName()), }, }, "github": { SchemaProps: spec.SchemaProps{ Description: "Github holds github authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub"), + Ref: ref(managementv1.AuthenticationGithub{}.OpenAPIModelName()), }, }, "gitlab": { SchemaProps: spec.SchemaProps{ Description: "Gitlab holds gitlab authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab"), + Ref: ref(managementv1.AuthenticationGitlab{}.OpenAPIModelName()), }, }, "google": { SchemaProps: spec.SchemaProps{ Description: "Google holds google authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle"), + Ref: ref(managementv1.AuthenticationGoogle{}.OpenAPIModelName()), }, }, "microsoft": { SchemaProps: spec.SchemaProps{ Description: "Microsoft holds microsoft authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft"), + Ref: ref(managementv1.AuthenticationMicrosoft{}.OpenAPIModelName()), }, }, "saml": { SchemaProps: spec.SchemaProps{ Description: "SAML holds saml authentication configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML"), + Ref: ref(managementv1.AuthenticationSAML{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML"}, + managementv1.AuthenticationGithub{}.OpenAPIModelName(), managementv1.AuthenticationGitlab{}.OpenAPIModelName(), managementv1.AuthenticationGoogle{}.OpenAPIModelName(), managementv1.AuthenticationMicrosoft{}.OpenAPIModelName(), managementv1.AuthenticationOIDC{}.OpenAPIModelName(), managementv1.AuthenticationSAML{}.OpenAPIModelName()}, } } @@ -8558,26 +9551,26 @@ func schema_pkg_apis_management_v1_ConvertVirtualClusterConfig(ref common.Refere "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec"), + Ref: ref(managementv1.ConvertVirtualClusterConfigSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus"), + Ref: ref(managementv1.ConvertVirtualClusterConfigStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ConvertVirtualClusterConfigSpec{}.OpenAPIModelName(), managementv1.ConvertVirtualClusterConfigStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -8604,7 +9597,7 @@ func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref common.Re "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -8614,7 +9607,7 @@ func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref common.Re Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfig"), + Ref: ref(managementv1.ConvertVirtualClusterConfig{}.OpenAPIModelName()), }, }, }, @@ -8625,7 +9618,7 @@ func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref common.Re }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ConvertVirtualClusterConfig{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -8701,11 +9694,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(managementv1.CostControlGlobalConfig{}.OpenAPIModelName()), + }, + }, + "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(managementv1.CostControlClusterConfig{}.OpenAPIModelName()), + }, + }, + "settings": { + SchemaProps: spec.SchemaProps{ + Description: "Settings specify price-related settings that are taken into account for the ROI dashboard calculations.", + Ref: ref(managementv1.CostControlSettings{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.CostControlClusterConfig{}.OpenAPIModelName(), managementv1.CostControlGlobalConfig{}.OpenAPIModelName(), managementv1.CostControlSettings{}.OpenAPIModelName()}, + } +} + +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(apisstoragev1.Metrics{}.OpenAPIModelName()), + }, + }, + "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(apisstoragev1.OpenCost{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.Metrics{}.OpenAPIModelName(), apisstoragev1.OpenCost{}.OpenAPIModelName()}, + } +} + +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(managementv1.CostControlResourcePrice{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.CostControlResourcePrice{}.OpenAPIModelName()}, + } +} + +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(apisstoragev1.Metrics{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.Metrics{}.OpenAPIModelName()}, + } +} + +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(managementv1.CostControlResourcePrice{}.OpenAPIModelName()), + }, + }, + "averageRAMPricePerNode": { + SchemaProps: spec.SchemaProps{ + Description: "AvgRAMPricePerNode specifies the average RAM price per node.", + Ref: ref(managementv1.CostControlResourcePrice{}.OpenAPIModelName()), + }, + }, + "gpuSettings": { + SchemaProps: spec.SchemaProps{ + Description: "GPUSettings specifies GPU related settings.", + Ref: ref(managementv1.CostControlGPUSettings{}.OpenAPIModelName()), + }, + }, + "controlPlanePricePerCluster": { + SchemaProps: spec.SchemaProps{ + Description: "ControlPlanePricePerCluster specifies the price of one physical cluster.", + Ref: ref(managementv1.CostControlResourcePrice{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.CostControlGPUSettings{}.OpenAPIModelName(), managementv1.CostControlResourcePrice{}.OpenAPIModelName()}, + } +} + +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 +9900,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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.DatabaseConnectorSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.DatabaseConnectorStatus{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + managementv1.DatabaseConnectorSpec{}.OpenAPIModelName(), managementv1.DatabaseConnectorStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -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{ @@ -8757,7 +9949,7 @@ func schema_pkg_apis_management_v1_DevPodDeleteOptionsList(ref common.ReferenceC "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -8767,7 +9959,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(managementv1.DatabaseConnector{}.OpenAPIModelName()), }, }, }, @@ -8778,155 +9970,105 @@ 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"}, + managementv1.DatabaseConnector{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -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{ - "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": { + "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: "The client id of the client", 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.DevPodEnvironmentTemplateSpec"), - }, - }, - "status": { + "displayName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus"), + Type: []string{"string"}, + Format: "", }, }, }, }, }, - 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"}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +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_DatabaseKine(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, + Description: "Enabled defines if the database should be used.", + Type: []string{"boolean"}, Format: "", }, }, - "apiVersion": { + "dataSource": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "DataSource is the kine dataSource to use for the database. This depends on the database format. This is optional for the external database. Examples: * mysql: mysql://username:password@tcp(hostname:3306)/k3s * postgres: postgres://username:password@hostname:5432/k3s", 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.DevPodEnvironmentTemplate"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateSpec holds the specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { + "identityProvider": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "IdentityProvider is the kine identity provider to use when generating temporary authentication tokens for enhanced security. This is optional for the external database. Examples: * aws: RDS IAM Authentication", Type: []string{"string"}, Format: "", }, }, - "git": { + "keyFile": { SchemaProps: spec.SchemaProps{ - Description: "Git holds configuration for git environment spec source", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"), + Description: "KeyFile is the key file to use for the database. This is optional.", + Type: []string{"string"}, + Format: "", }, }, - "owner": { + "certFile": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "CertFile is the cert file to use for the database. This is optional.", + Type: []string{"string"}, + Format: "", }, }, - "access": { + "caFile": { 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: "CaFile is the ca file to use for the database. This is optional.", + Type: []string{"string"}, + Format: "", }, }, - "versions": { + "extraArgs": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", + Description: "ExtraArgs are additional arguments to pass to Kine.", Type: []string{"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: "", }, }, }, @@ -8935,27 +10077,15 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref common.Refe }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateStatus holds the status", + Description: "DirectClusterEndpointToken holds the object information", Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_DevPodSshOptions(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{ @@ -8971,20 +10101,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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.DirectClusterEndpointTokenSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.DirectClusterEndpointTokenStatus{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + managementv1.DirectClusterEndpointTokenSpec{}.OpenAPIModelName(), managementv1.DirectClusterEndpointTokenStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodSshOptionsList(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{ @@ -9007,7 +10150,7 @@ func schema_pkg_apis_management_v1_DevPodSshOptionsList(ref common.ReferenceCall "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -9017,7 +10160,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(managementv1.DirectClusterEndpointToken{}.OpenAPIModelName()), }, }, }, @@ -9028,96 +10171,63 @@ 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"}, + managementv1.DirectClusterEndpointToken{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodStatusOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DirectClusterEndpointTokenSpec holds the object specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "ttl": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "The time to life for this access token in seconds", + Type: []string{"integer"}, + Format: "int64", }, }, - "options": { + "scope": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", - Type: []string{"string"}, - Format: "", + Description: "Scope is the optional scope of the direct cluster endpoint", + Ref: ref(apisstoragev1.AccessKeyScope{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + apisstoragev1.AccessKeyScope{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodStatusOptionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DirectClusterEndpointTokenStatus holds the object status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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": { + "token": { 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.DevPodStatusOptions"), - }, - }, - }, + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStatusOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodStopOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_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{ @@ -9133,20 +10243,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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.EventSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.EventStatus{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + managementv1.EventSpec{}.OpenAPIModelName(), managementv1.EventStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodStopOptionsList(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{ @@ -9169,7 +10292,7 @@ func schema_pkg_apis_management_v1_DevPodStopOptionsList(ref common.ReferenceCal "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -9179,7 +10302,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(managementv1.Event{}.OpenAPIModelName()), }, }, }, @@ -9190,15 +10313,27 @@ 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"}, + managementv1.Event{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodUpOptions(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{ @@ -9214,93 +10349,147 @@ func schema_pkg_apis_management_v1_DevPodUpOptions(ref common.ReferenceCallback) Format: "", }, }, - "webMode": { + "level": { SchemaProps: spec.SchemaProps{ - Description: "WebMode executes the up command directly.", - Type: []string{"boolean"}, + Description: "AuditLevel at which event was generated", + Default: "", + Type: []string{"string"}, Format: "", }, }, - "cliMode": { + "auditID": { SchemaProps: spec.SchemaProps{ - Description: "CLIMode executes the up command directly.", - Type: []string{"boolean"}, + Description: "Unique audit ID, generated for each request.", + Default: "", + Type: []string{"string"}, Format: "", }, }, - "debug": { + "stage": { SchemaProps: spec.SchemaProps{ - Description: "Debug includes debug logs.", - Type: []string{"boolean"}, + Description: "Stage of the request handling when this event instance was generated.", + Default: "", + Type: []string{"string"}, Format: "", }, }, - "options": { + "requestURI": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", + Description: "RequestURI is the request URI as sent by the client to a server.", + Default: "", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_DevPodUpOptionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "verb": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "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: "", }, }, - "apiVersion": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "Authenticated user information.", + Default: map[string]interface{}{}, + Ref: ref(authenticationv1.UserInfo{}.OpenAPIModelName()), + }, + }, + "impersonatedUser": { + SchemaProps: spec.SchemaProps{ + Description: "Impersonated user information.", + Ref: ref(authenticationv1.UserInfo{}.OpenAPIModelName()), + }, + }, + "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": { + 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: "", }, }, - "metadata": { + "objectRef": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Object reference this request is targeted at. Does not apply for List-type requests, or non-resource requests.", + Ref: ref(auditv1.ObjectReference{}.OpenAPIModelName()), }, }, - "items": { + "responseStatus": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "The response status. For successful and non-successful responses, this will only include the Code and StatusSuccess. For panic type error responses, this will be auto-populated with the error Message.", + Ref: ref(metav1.Status{}.OpenAPIModelName()), + }, + }, + "requestObject": { + SchemaProps: spec.SchemaProps{ + Description: "API object from the request, in JSON format. The RequestObject is recorded as-is in the request (possibly re-encoded as JSON), prior to version conversion, defaulting, admission or merging. It is an external versioned object type, and may not be a valid object on its own. Omitted for non-resource requests. Only logged at Request Level and higher.", + Ref: ref(runtime.Unknown{}.OpenAPIModelName()), + }, + }, + "responseObject": { + SchemaProps: spec.SchemaProps{ + Description: "API object returned in the response, in JSON. The ResponseObject is recorded after conversion to the external type, and serialized as JSON. Omitted for non-resource requests. Only logged at Response Level.", + Ref: ref(runtime.Unknown{}.OpenAPIModelName()), + }, + }, + "requestReceivedTimestamp": { + SchemaProps: spec.SchemaProps{ + Description: "Time the request reached the apiserver.", + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), + }, + }, + "stageTimestamp": { + SchemaProps: spec.SchemaProps{ + Description: "Time the request reached current audit stage.", + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), + }, + }, + "annotations": { + SchemaProps: spec.SchemaProps{ + Description: "Annotations is an unstructured key value map stored with an audit event that may be set by plugins invoked in the request serving chain, including authentication, authorization and admission plugins. Note that these annotations are for the audit event, and do not correspond to the metadata.annotations of the submitted object. Keys should uniquely identify the informing component to avoid name collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values should be short. Annotations are included in the Metadata level.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodUpOptions"), + 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.DevPodUpOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + auditv1.ObjectReference{}.OpenAPIModelName(), authenticationv1.UserInfo{}.OpenAPIModelName(), metav1.MicroTime{}.OpenAPIModelName(), metav1.Status{}.OpenAPIModelName(), runtime.Unknown{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Feature(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstance holds the DevPodWorkspaceInstance information", + Description: "Feature holds the feature information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -9320,30 +10509,30 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref common.ReferenceC "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec"), + Ref: ref(managementv1.FeatureSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus"), + Ref: ref(managementv1.FeatureStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.FeatureSpec{}.OpenAPIModelName(), managementv1.FeatureStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(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{ @@ -9366,7 +10555,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref common.Refere "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -9376,7 +10565,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(managementv1.Feature{}.OpenAPIModelName()), }, }, }, @@ -9387,104 +10576,181 @@ 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"}, + managementv1.Feature{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_FeatureSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "FeatureSpec holds the specification", + Type: []string{"object"}, + }, + }, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceSpec holds the specification", + Description: "FeatureStatus holds the status", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Name is the name of the feature (FeatureName) This cannot be FeatureName because it needs to be downward compatible e.g. older 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: "", }, }, - "description": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a DevPod machine instance", - Type: []string{"string"}, + 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: "", }, }, - "owner": { + "allowBefore": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "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: "", }, }, - "templateRef": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the DevPod machine template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Description: "Status shows the status of the feature (see type FeatureStatus)", + Type: []string{"string"}, + Format: "", }, }, - "environmentRef": { + "module": { SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + Description: "Name of the module that this feature belongs to", + Type: []string{"string"}, + Format: "", }, }, - "template": { + "internal": { SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for DevPod machine creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Description: "Internal marks internal features that should not be shown on the license view", + Type: []string{"boolean"}, + Format: "", }, }, - "runnerRef": { + "used": { SchemaProps: spec.SchemaProps{ - Description: "RunnerRef is the reference to the connected runner holding this workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef"), + Description: "Used marks features that are currently used in the product", + Type: []string{"boolean"}, + Format: "", }, }, - "parameters": { + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_GroupResources(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"}, + Properties: map[string]spec.Schema{ + "group": { 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: "Group is the name of the API group that contains the resources. The empty string represents the core API group.", Type: []string{"string"}, Format: "", }, }, - "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: "", + }, + }, + }, + }, + }, + "resourceNames": { + SchemaProps: spec.SchemaProps{ + Description: "ResourceNames is a list of resource instance names that the policy matches. Using this field requires Resources to be specified. An empty list implies that every instance of the resource is matched.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "preventWakeUpOnConnection": { + }, + }, + }, + } +} + +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: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", + 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(corev1.ResourceRequirements{}.OpenAPIModelName()), + }, + }, }, }, }, 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"}, + corev1.ResourceRequirements{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceState(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{ - Type: []string{"object"}, + Description: "IngressAuthToken holds the object information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -9503,25 +10769,30 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceState(ref common.Refer "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "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(managementv1.IngressAuthTokenSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.IngressAuthTokenStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.IngressAuthTokenSpec{}.OpenAPIModelName(), managementv1.IngressAuthTokenStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStateList(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{ @@ -9544,7 +10815,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStateList(ref common.R "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -9554,7 +10825,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(managementv1.IngressAuthToken{}.OpenAPIModelName()), }, }, }, @@ -9565,107 +10836,71 @@ 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"}, + managementv1.IngressAuthToken{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(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: "DevPodWorkspaceInstanceStatus holds the status", + Description: "IngressAuthTokenSpec holds the object specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastWorkspaceStatus": { + "host": { SchemaProps: spec.SchemaProps{ - Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", + Description: "Host is the host where the UI should get redirected", Type: []string{"string"}, Format: "", }, }, - "phase": { + "signature": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the DevPod machine instance is in", + Description: "Signature is the signature of the agent for the host", Type: []string{"string"}, Format: "", }, }, - "reason": { + }, + }, + }, + } +} + +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: "Reason describes the reason in machine-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "message": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_Kiosk(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Kiosk holds the kiosk types", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the DevPod machine might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - "instance": { - SchemaProps: spec.SchemaProps{ - Description: "Instance is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "ignoreReconciliation": { - SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation ignores reconciliation for this object", - Type: []string{"boolean"}, - Format: "", - }, - }, - "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"), - }, - }, - "sleepModeConfig": { - SchemaProps: spec.SchemaProps{ - Description: "SleepModeConfig is the sleep mode config of the workspace. This will only be shown in the front end.", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"}, - } -} - -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplate holds the information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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": { + "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"}, @@ -9675,30 +10910,30 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref common.ReferenceC "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec"), + Ref: ref(managementv1.KioskSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus"), + Ref: ref(managementv1.KioskStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.KioskSpec{}.OpenAPIModelName(), managementv1.KioskStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(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{ @@ -9721,7 +10956,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref common.Refere "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -9731,7 +10966,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(managementv1.Kiosk{}.OpenAPIModelName()), }, }, }, @@ -9742,110 +10977,127 @@ 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"}, + managementv1.Kiosk{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(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: "DevPodWorkspaceTemplateSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "helmRelease": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that is shown in the UI", - Type: []string{"string"}, - Format: "", + Description: "cluster.loft.sh", + Default: map[string]interface{}{}, + Ref: ref(v1.HelmRelease{}.OpenAPIModelName()), }, }, - "description": { + "sleepModeConfig": { SchemaProps: spec.SchemaProps{ - Description: "Description describes the virtual cluster template", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(v1.SleepModeConfig{}.OpenAPIModelName()), }, }, - "owner": { + "chartInfo": { 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(v1.ChartInfo{}.OpenAPIModelName()), }, }, - "parameters": { + "storageClusterQuota": { 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: "storage.loft.sh", + Default: map[string]interface{}{}, + Ref: ref(storagev1.ClusterQuota{}.OpenAPIModelName()), }, }, - "template": { + "UISettings": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the DevPod workspace template", + Description: "ui.loft.sh", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Ref: ref(uiv1.UISettings{}.OpenAPIModelName()), }, }, - "versions": { + "license": { 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"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(managementv1.License{}.OpenAPIModelName()), }, }, - "access": { + "nodeProviderBCMNodeWithResources": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "autoscaling", + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeProviderBCMNodeWithResources{}.OpenAPIModelName()), + }, + }, + "nodeProviderBCMGetResourcesResult": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeProviderBCMGetResourcesResult{}.OpenAPIModelName()), + }, + }, + "nodeProviderBCMTestConnectionResult": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeProviderBCMTestConnectionResult{}.OpenAPIModelName()), + }, + }, + "nodeProviderCalculateCostResult": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeProviderCalculateCostResult{}.OpenAPIModelName()), + }, + }, + "nodeProviderTerraformValidateResult": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeProviderTerraformValidateResult{}.OpenAPIModelName()), + }, + }, + "nodeProviderExecResult": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeProviderExecResult{}.OpenAPIModelName()), + }, + }, + "nodeClaimData": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeClaimData{}.OpenAPIModelName()), + }, + }, + "nodeEnvironmentData": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeEnvironmentData{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + v1.ChartInfo{}.OpenAPIModelName(), v1.HelmRelease{}.OpenAPIModelName(), v1.SleepModeConfig{}.OpenAPIModelName(), storagev1.ClusterQuota{}.OpenAPIModelName(), managementv1.License{}.OpenAPIModelName(), managementv1.NodeClaimData{}.OpenAPIModelName(), managementv1.NodeEnvironmentData{}.OpenAPIModelName(), managementv1.NodeProviderBCMGetResourcesResult{}.OpenAPIModelName(), managementv1.NodeProviderBCMNodeWithResources{}.OpenAPIModelName(), managementv1.NodeProviderBCMTestConnectionResult{}.OpenAPIModelName(), managementv1.NodeProviderCalculateCostResult{}.OpenAPIModelName(), managementv1.NodeProviderExecResult{}.OpenAPIModelName(), managementv1.NodeProviderTerraformValidateResult{}.OpenAPIModelName(), uiv1.UISettings{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_KioskStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, }, }, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointToken(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: "DirectClusterEndpointToken holds the object information", + Description: "License holds the license information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -9865,30 +11117,30 @@ func schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref common.Referen "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec"), + Ref: ref(managementv1.LicenseSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus"), + Ref: ref(managementv1.LicenseStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.LicenseSpec{}.OpenAPIModelName(), managementv1.LicenseStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(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{ @@ -9911,7 +11163,7 @@ func schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref common.Ref "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -9921,7 +11173,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(managementv1.License{}.OpenAPIModelName()), }, }, }, @@ -9932,62 +11184,15 @@ 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"}, - } -} - -func schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DirectClusterEndpointTokenSpec holds the object specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "ttl": { - SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access token in seconds", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "scope": { - SchemaProps: spec.SchemaProps{ - Description: "Scope is the optional scope of the direct cluster endpoint", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"}, - } -} - -func schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DirectClusterEndpointTokenStatus holds the object status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "token": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, + managementv1.License{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_Event(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: "Event holds an event", + Description: "LicenseRequest holds license request information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10007,30 +11212,32 @@ func schema_pkg_apis_management_v1_Event(ref common.ReferenceCallback) common.Op "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec"), + Description: "Spec is the admin request spec (the input for the request).", + Default: map[string]interface{}{}, + Ref: ref(managementv1.LicenseRequestSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus"), + Description: "Status is the admin request output (the output or result of the request).", + Default: map[string]interface{}{}, + Ref: ref(managementv1.LicenseRequestStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.LicenseRequestSpec{}.OpenAPIModelName(), managementv1.LicenseRequestStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_EventList(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{ @@ -10053,7 +11260,7 @@ func schema_pkg_apis_management_v1_EventList(ref common.ReferenceCallback) commo "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -10063,7 +11270,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(managementv1.LicenseRequest{}.OpenAPIModelName()), }, }, }, @@ -10074,183 +11281,111 @@ 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"}, - }, - }, + managementv1.LicenseRequest{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_EventStatus(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: "EventStatus holds the status, which is the parsed raw config", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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: "", - }, - }, - "level": { - SchemaProps: spec.SchemaProps{ - Description: "AuditLevel at which event was generated", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "auditID": { - SchemaProps: spec.SchemaProps{ - Description: "Unique audit ID, generated for each request.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "stage": { - SchemaProps: spec.SchemaProps{ - Description: "Stage of the request handling when this event instance was generated.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "requestURI": { + "url": { SchemaProps: spec.SchemaProps{ - Description: "RequestURI is the request URI as sent by the client to a server.", - Default: "", + Description: "URL is the url for the request.", Type: []string{"string"}, Format: "", }, }, - "verb": { + "input": { 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: "Input is the input payload to send to the url.", 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": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_LicenseRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "output": { SchemaProps: spec.SchemaProps{ - Description: "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: "Output is where the request output is stored.", 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": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_LicenseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_LicenseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "license": { SchemaProps: spec.SchemaProps{ - Description: "Time the request reached current audit stage.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + Description: "License is the license data received from the license server.", + Ref: ref(licenseapi.License{}.OpenAPIModelName()), }, }, - "annotations": { + "resourceUsage": { 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.", + Description: "ResourceUsage shows the current usage of license limit.", 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(licenseapi.ResourceCount{}.OpenAPIModelName()), }, }, }, }, }, + "platformDatabase": { + SchemaProps: spec.SchemaProps{ + Description: "PlatformDatabase shows information about the platform database installation", + Ref: ref(licenseapi.PlatformDatabase{}.OpenAPIModelName()), + }, + }, }, - Required: []string{"level", "auditID", "stage", "requestURI", "verb", "user"}, }, }, 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"}, + licenseapi.License{}.OpenAPIModelName(), licenseapi.PlatformDatabase{}.OpenAPIModelName(), licenseapi.ResourceCount{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_Feature(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LoftUpgrade(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Feature holds the feature information", + Description: "LoftUpgrade holds the upgrade information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10270,30 +11405,30 @@ func schema_pkg_apis_management_v1_Feature(ref common.ReferenceCallback) common. "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec"), + Ref: ref(managementv1.LoftUpgradeSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus"), + Ref: ref(managementv1.LoftUpgradeStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.LoftUpgradeSpec{}.OpenAPIModelName(), managementv1.LoftUpgradeStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_FeatureList(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{ @@ -10316,7 +11451,7 @@ func schema_pkg_apis_management_v1_FeatureList(ref common.ReferenceCallback) com "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -10326,7 +11461,7 @@ func schema_pkg_apis_management_v1_FeatureList(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature"), + Ref: ref(managementv1.LoftUpgrade{}.OpenAPIModelName()), }, }, }, @@ -10337,173 +11472,230 @@ func schema_pkg_apis_management_v1_FeatureList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.LoftUpgrade{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_FeatureSpec(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: "FeatureSpec holds the specification", - Type: []string{"object"}, + 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": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, } } -func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LoftUpgradeStatus(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"}, + }, + }, + } +} + +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{ - "name": { + "dayOfWeek": { 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: "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: "", }, }, - "displayName": { + "timeWindow": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + 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: "", }, }, - "description": { + }, + }, + }, + } +} + +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{ - Type: []string{"string"}, - Format: "", + Description: "Namespace of the referenced object", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Status shows the status of the feature (see type FeatureStatus)", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "compatibility": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Compatibility contains a series of semver compatibility constraints", + Description: "DisplayName is the name of the object to display in the UI", Type: []string{"string"}, Format: "", }, }, - "labels": { + "assignedVia": { 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: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref(managementv1.AssignedVia{}.OpenAPIModelName()), }, }, - "internal": { + }, + }, + }, + Dependencies: []string{ + managementv1.AssignedVia{}.OpenAPIModelName()}, + } +} + +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: "Internal marks internal features that should not be shown on the license view", - Type: []string{"boolean"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "used": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Used marks features that are currently used in the product", - Type: []string{"boolean"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"name"}, + Required: []string{"namespace", "name"}, }, }, } } -func schema_pkg_apis_management_v1_GitEnvironmentTemplate(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: "GitEnvironmentTemplate stores configuration of Git environment template source", + Description: "NodeClaim holds the node claim for vCluster.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "repository": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Repository stores repository URL for Git environment spec source", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "revision": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Revision stores revision to checkout in repository", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "subpath": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "SubPath stores subpath within Repositor where environment spec is", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeClaimSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeClaimStatus{}.OpenAPIModelName()), }, }, }, - Required: []string{"repository"}, }, }, + Dependencies: []string{ + managementv1.NodeClaimSpec{}.OpenAPIModelName(), managementv1.NodeClaimStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_GroupResources(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{ - Description: "GroupResources represents resource kinds in an API group.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "group": { + "userData": { 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: "UserData that should be used to start the node.", Type: []string{"string"}, Format: "", }, }, - "resources": { + "outputs": { 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: "Outputs of the node environment.", + Type: []string{"string"}, + Format: "byte", }, }, - "resourceNames": { + "state": { SchemaProps: spec.SchemaProps{ - Description: "ResourceNames is a list of resource instance names that the policy matches. Using this field requires Resources to be specified. An empty list implies that every instance of the resource is matched.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Terraform state of the node claim.", + Type: []string{"string"}, + Format: "byte", + }, + }, + "operations": { + SchemaProps: spec.SchemaProps{ + Description: "Operations that were applied to the node claim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Ref: ref(managementv1.Operation{}.OpenAPIModelName()), }, }, }, @@ -10512,15 +11704,16 @@ func schema_pkg_apis_management_v1_GroupResources(ref common.ReferenceCallback) }, }, }, + Dependencies: []string{ + managementv1.Operation{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_IngressAuthToken(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: "IngressAuthToken holds the object information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -10539,128 +11732,253 @@ func schema_pkg_apis_management_v1_IngressAuthToken(ref common.ReferenceCallback "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.IngressAuthTokenSpec"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeClaim{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, 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"}, + managementv1.NodeClaim{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_IngressAuthTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeClaimSpec defines spec of node claim.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name of the NodeClaim that is displayed in the UI.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "Owner holds the owner of this object", + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the name of the NodeProvider that this NodeClaim is based on.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "typeRef": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "TypeRef is the full name of the NodeType that this NodeClaim is based on.", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "environmentRef": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "EnvironmentRef is the name of the NodeEnvironment that this NodeClaim is based on.", + Type: []string{"string"}, + Format: "", + }, + }, + "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: "", + }, + }, + }, + }, + }, + "vClusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "VClusterRef references source vCluster.", + 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: "", + }, + }, + "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(corev1.Taint{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "startupTaints": { + SchemaProps: spec.SchemaProps{ + Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.Taint{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "kubeletArgs": { + SchemaProps: spec.SchemaProps{ + Description: "KubeletArgs are additional arguments to pass to the kubelet.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "desiredCapacity": { + SchemaProps: spec.SchemaProps{ + Description: "DesiredCapacity specifies the resources requested by the NodeClaim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "requirements": { + SchemaProps: spec.SchemaProps{ + Description: "Requirements are the requirements for the NodeClaim.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken"), + Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), }, }, }, }, }, }, - Required: []string{"items"}, + Required: []string{"providerRef"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName(), corev1.NodeSelectorRequirement{}.OpenAPIModelName(), corev1.Taint{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_IngressAuthTokenSpec(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: "IngressAuthTokenSpec holds the object specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "host": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Host is the host where the UI should get redirected", + Description: "Phase is the current lifecycle phase of the NodeClaim.", Type: []string{"string"}, Format: "", }, }, - "signature": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Signature is the signature of the agent for the host", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressAuthTokenStatus holds the object status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "token": { + "message": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions describe the current state of the platform NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + storagev1.Condition{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_Kiosk(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: "Kiosk holds the kiosk types", + Description: "NodeEnvironment holds the node environment for vCluster.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10680,240 +11998,253 @@ func schema_pkg_apis_management_v1_Kiosk(ref common.ReferenceCallback) common.Op "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec"), + Ref: ref(managementv1.NodeEnvironmentSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus"), + Ref: ref(managementv1.NodeEnvironmentStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.NodeEnvironmentSpec{}.OpenAPIModelName(), managementv1.NodeEnvironmentStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_KioskList(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{ - "kind": { + "outputs": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "Outputs of the node environment.", Type: []string{"string"}, - Format: "", + Format: "byte", }, }, - "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 environment.", 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 environment.", + 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.Kiosk"), + Ref: ref(managementv1.Operation{}.OpenAPIModelName()), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.Operation{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_KioskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeEnvironmentList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "helmRelease": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "cluster.loft.sh", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "sleepModeConfig": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "chartInfo": { + "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo"), - }, - }, - "storageClusterQuota": { - 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"), - }, - }, - "UISettings": { - SchemaProps: spec.SchemaProps{ - Description: "ui.loft.sh", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "license": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.License"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeEnvironment{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota", "github.com/loft-sh/api/v4/pkg/apis/management/v1.License", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings"}, - } -} - -func schema_pkg_apis_management_v1_KioskStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, + managementv1.NodeEnvironment{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_License(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: "License holds the license information", + Description: "NodeEnvironmentSpec defines spec of node environment.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name of the NodeClaim that is displayed in the UI.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, 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: "Owner holds the owner of this object", + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, - "metadata": { + "access": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + 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(apisstoragev1.Access{}.OpenAPIModelName()), + }, + }, + }, }, }, - "spec": { + "properties": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec"), + 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: "", + }, + }, + }, }, }, - "status": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus"), + Description: "ProviderRef is the name of the NodeProvider that this NodeEnvironment is based on.", + Type: []string{"string"}, + Format: "", + }, + }, + "vClusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "VClusterRef references source vCluster.", + 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: "", }, }, }, }, }, 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"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeEnvironmentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Phase is the current lifecycle phase of the NodeEnvironment.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "message": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Conditions describe the current state of the platform NodeClaim.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.License"), + Ref: ref(storagev1.Condition{}.OpenAPIModelName()), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.License", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + storagev1.Condition{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseRequest(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: "LicenseRequest holds license request information", + 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": { @@ -10933,178 +12264,191 @@ func schema_pkg_apis_management_v1_LicenseRequest(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { 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"), + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeProviderSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ - Description: "Status is the admin request output (the output or result of the request).", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus"), + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeProviderStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.NodeProviderSpec{}.OpenAPIModelName(), managementv1.NodeProviderStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseRequestList(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": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, 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": { + "nodes": { 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(managementv1.NodeProviderBCMNodeWithResources{}.OpenAPIModelName()), + }, + }, + }, }, }, - "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.LicenseRequest"), + Ref: ref(managementv1.NodeProviderBCMNodeGroup{}.OpenAPIModelName()), }, }, }, }, }, }, - Required: []string{"items"}, + Required: []string{"nodes", "nodeGroups"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.NodeProviderBCMNodeGroup{}.OpenAPIModelName(), managementv1.NodeProviderBCMNodeWithResources{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseRequestSpec(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{ - "url": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "URL is the url for the request.", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "input": { + "nodes": { 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"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, + Required: []string{"name", "nodes"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput"}, } } -func schema_pkg_apis_management_v1_LicenseRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "output": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Output is where the request output is stored.", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"), + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"name"}, }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"}, + resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"success", "message"}, }, }, } } -func schema_pkg_apis_management_v1_LicenseStatus(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{ - "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": { + "cost": { 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: 0, + Type: []string{"integer"}, + Format: "int64", }, }, }, + Required: []string{"cost"}, }, }, - 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_NodeProviderExec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "License Token holds the license token information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -11123,30 +12467,31 @@ func schema_pkg_apis_management_v1_LicenseToken(ref common.ReferenceCallback) co "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec"), + Ref: ref(managementv1.NodeProviderExecSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus"), + Ref: ref(managementv1.NodeProviderExecStatus{}.OpenAPIModelName()), }, }, }, + Required: []string{"spec"}, }, }, 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"}, + managementv1.NodeProviderExecSpec{}.OpenAPIModelName(), managementv1.NodeProviderExecStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseTokenList(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{ @@ -11169,7 +12514,7 @@ func schema_pkg_apis_management_v1_LicenseTokenList(ref common.ReferenceCallback "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -11179,7 +12524,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(managementv1.NodeProviderExec{}.OpenAPIModelName()), }, }, }, @@ -11190,101 +12535,326 @@ 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"}, + managementv1.NodeProviderExec{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderExecResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "success": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "payload": { + "message": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"success", "message"}, }, }, } } -func schema_pkg_apis_management_v1_LicenseTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderExecSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "command": { + SchemaProps: spec.SchemaProps{ + Description: "Command is the action to perform.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "args": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, + Required: []string{"command"}, }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"}, + runtime.RawExtension{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LoftUpgrade(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderExecStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "LoftUpgrade holds the upgrade information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "result": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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: "Result is the output of the executed command.", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, - "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"}, + }, + }, + }, + Dependencies: []string{ + runtime.RawExtension{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_NodeProviderList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.NodeProvider{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.NodeProvider{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_NodeProviderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeProviderSpec defines the desired state of NodeProvider. Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "properties": { + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + }, + }, + }, + "bcm": { + SchemaProps: spec.SchemaProps{ + Description: "BCM configures a node provider for BCM Bare Metal Cloud environments.", + Ref: ref(apisstoragev1.NodeProviderBCM{}.OpenAPIModelName()), + }, + }, + "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(apisstoragev1.NodeProviderKubeVirt{}.OpenAPIModelName()), + }, + }, + "terraform": { + SchemaProps: spec.SchemaProps{ + Description: "Terraform configures a node provider using Terraform, enabling nodes to be provisioned using Terraform.", + Ref: ref(apisstoragev1.NodeProviderTerraform{}.OpenAPIModelName()), + }, + }, + "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(apisstoragev1.NodeProviderClusterAPI{}.OpenAPIModelName()), + }, + }, + "metal3": { + SchemaProps: spec.SchemaProps{ + Description: "Metal3 configures a node provider using metal3.io BareMetalHost resources.", + Ref: ref(apisstoragev1.NodeProviderMetal3{}.OpenAPIModelName()), + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.NodeProviderBCM{}.OpenAPIModelName(), apisstoragev1.NodeProviderClusterAPI{}.OpenAPIModelName(), apisstoragev1.NodeProviderKubeVirt{}.OpenAPIModelName(), apisstoragev1.NodeProviderMetal3{}.OpenAPIModelName(), apisstoragev1.NodeProviderTerraform{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_NodeProviderStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeProviderStatus defines the observed state of NodeProvider.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions describe the current state of the platform NodeProvider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "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{ + storagev1.Condition{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_NodeProviderTerraformValidateResult(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "success": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "output": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"success", "output"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_NodeType(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeType holds the information of a node type.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec"), + Ref: ref(managementv1.NodeTypeSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus"), + Ref: ref(managementv1.NodeTypeStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.NodeTypeSpec{}.OpenAPIModelName(), managementv1.NodeTypeStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LoftUpgradeList(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{ @@ -11307,7 +12877,7 @@ func schema_pkg_apis_management_v1_LoftUpgradeList(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -11317,7 +12887,7 @@ func schema_pkg_apis_management_v1_LoftUpgradeList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade"), + Ref: ref(managementv1.NodeType{}.OpenAPIModelName()), }, }, }, @@ -11328,49 +12898,155 @@ func schema_pkg_apis_management_v1_LoftUpgradeList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.NodeType{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LoftUpgradeSpec(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{ - "namespace": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "If specified, updated the release in the given namespace", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "release": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "If specified, uses this as release name", - 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: "", + }, + }, + }, }, }, - "version": { + "resources": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref(apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName()), + }, + }, + "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{ + apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LoftUpgradeStatus(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{ + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Phase is the current lifecycle phase of the NodeType.", + 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: "", + }, + }, + "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(apisstoragev1.NodeTypeCapacity{}.OpenAPIModelName()), + }, + }, + "requirements": { + SchemaProps: spec.SchemaProps{ + Description: "Requirements is the calculated requirements based of the properties for the node type.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the node type might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, }, }, + Dependencies: []string{ + storagev1.Condition{}.OpenAPIModelName(), apisstoragev1.NodeTypeCapacity{}.OpenAPIModelName(), corev1.NodeSelectorRequirement{}.OpenAPIModelName()}, } } @@ -11403,7 +13079,7 @@ func schema_pkg_apis_management_v1_OIDC(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), + Ref: ref(managementv1.OIDCClientSpec{}.OpenAPIModelName()), }, }, }, @@ -11413,7 +13089,7 @@ func schema_pkg_apis_management_v1_OIDC(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"}, + managementv1.OIDCClientSpec{}.OpenAPIModelName()}, } } @@ -11441,26 +13117,26 @@ func schema_pkg_apis_management_v1_OIDCClient(ref common.ReferenceCallback) comm "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), + Ref: ref(managementv1.OIDCClientSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus"), + Ref: ref(managementv1.OIDCClientStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.OIDCClientSpec{}.OpenAPIModelName(), managementv1.OIDCClientStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -11487,7 +13163,7 @@ func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -11497,7 +13173,7 @@ func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient"), + Ref: ref(managementv1.OIDCClient{}.OpenAPIModelName()), }, }, }, @@ -11508,7 +13184,7 @@ func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.OIDCClient{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -11573,11 +13249,11 @@ func schema_pkg_apis_management_v1_OIDCClientStatus(ref common.ReferenceCallback } } -func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OSImage(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "OwnedAccessKey is an access key that is owned by the current user", + Description: "OSImage holds the OS image.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -11597,30 +13273,30 @@ func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec"), + Ref: ref(managementv1.OSImageSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus"), + Ref: ref(managementv1.OSImageStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.OSImageSpec{}.OpenAPIModelName(), managementv1.OSImageStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OSImageList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -11643,7 +13319,7 @@ func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallba "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -11653,7 +13329,7 @@ func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), + Ref: ref(managementv1.OSImage{}.OpenAPIModelName()), }, }, }, @@ -11664,11 +13340,11 @@ func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.OSImage{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OSImageSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -11676,44 +13352,44 @@ func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallba Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", - Type: []string{"string"}, - Format: "", - }, - }, - "user": { - SchemaProps: spec.SchemaProps{ - Description: "The user this access key refers to", + Description: "Description describes an OS image", Type: []string{"string"}, Format: "", }, }, - "team": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "The team this access key refers to", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, - "subject": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Subject is a generic subject that can be used instead of user or team", - Type: []string{"string"}, - Format: "", + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), + }, + }, + }, }, }, - "groups": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Groups specifies extra groups to apply when using this access key", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Properties is the configuration for the OS image", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", @@ -11724,138 +13400,87 @@ func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallba }, }, }, - "key": { + }, + }, + }, + Dependencies: []string{ + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_OSImageStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_ObjectName(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "The actual access key that will be used as a bearer token", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "disabled": { - SchemaProps: spec.SchemaProps{ - Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", - Type: []string{"boolean"}, - Format: "", - }, - }, - "ttl": { - SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access key", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "ttlAfterLastActivity": { - SchemaProps: spec.SchemaProps{ - Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", - Type: []string{"boolean"}, - Format: "", - }, - }, - "scope": { - SchemaProps: spec.SchemaProps{ - Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), - }, - }, - "type": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "The type of an access key, which basically describes if the access key is user managed or managed by loft itself.", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "identity": { - SchemaProps: spec.SchemaProps{ - Description: "If available, contains information about the sso login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity"), - }, - }, - "identityRefresh": { - SchemaProps: spec.SchemaProps{ - Description: "The last time the identity was refreshed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "oidcProvider": { - SchemaProps: spec.SchemaProps{ - Description: "If the token is a refresh token, contains information about it", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), - }, - }, - "parent": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", + Description: "DisplayName is the name of the object to display in the UI", Type: []string{"string"}, Format: "", }, }, - "oidcLogin": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), - }, - }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "lastActivity": { - SchemaProps: spec.SchemaProps{ - Description: "The last time this access key was used to access the api", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, - } -} - -func schema_pkg_apis_management_v1_PredefinedApp(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "PredefinedApp holds information about a predefined app", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "chart": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Chart holds the repo/chart name of the predefined app", - Default: "", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "initialVersion": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "InitialVersion holds the initial version of this app. This version will be selected automatically.", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "initialValues": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "InitialValues holds the initial values for this app. The values will be prefilled automatically. There are certain placeholders that can be used within the values that are replaced by the loft UI automatically.", + Description: "DisplayName is the name of the object to display in the UI", Type: []string{"string"}, Format: "", }, }, - "clusters": { + "verbs": { SchemaProps: spec.SchemaProps{ - Description: "Holds the cluster names where to display this app", + 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{ @@ -11868,85 +13493,66 @@ func schema_pkg_apis_management_v1_PredefinedApp(ref common.ReferenceCallback) c }, }, }, - "title": { - SchemaProps: spec.SchemaProps{ - Description: "Title is the name that should be displayed for the predefined app. If empty the chart name is used.", - Type: []string{"string"}, - Format: "", - }, - }, - "iconUrl": { - SchemaProps: spec.SchemaProps{ - Description: "IconURL specifies an url to the icon that should be displayed for this app. If none is specified the icon from the chart metadata is used.", - Type: []string{"string"}, - Format: "", - }, - }, - "readmeUrl": { - SchemaProps: spec.SchemaProps{ - Description: "ReadmeURL specifies an url to the readme page of this predefined app. If empty an url will be constructed to artifact hub.", - Type: []string{"string"}, - Format: "", - }, - }, }, + Required: []string{"verbs"}, }, }, } } -func schema_pkg_apis_management_v1_Project(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Operation(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Project holds the Project information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "startTimestamp": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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: "StartTimestamp of the operation.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "apiVersion": { + "endTimestamp": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, 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: "EndTimestamp of the operation.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "metadata": { + "phase": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Phase of the operation.", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "logs": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec"), + Description: "Logs of the operation.", + Type: []string{"string"}, + Format: "byte", }, }, - "status": { + "error": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus"), + Description: "Error of the operation.", + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectChartInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "OwnedAccessKey is an access key that is owned by the current user", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -11965,30 +13571,30 @@ func schema_pkg_apis_management_v1_ProjectChartInfo(ref common.ReferenceCallback "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec"), + Ref: ref(managementv1.OwnedAccessKeySpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus"), + Ref: ref(managementv1.OwnedAccessKeyStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.OwnedAccessKeySpec{}.OpenAPIModelName(), managementv1.OwnedAccessKeyStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -12011,7 +13617,7 @@ func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCall "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -12021,7 +13627,7 @@ func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo"), + Ref: ref(managementv1.OwnedAccessKey{}.OpenAPIModelName()), }, }, }, @@ -12032,41 +13638,510 @@ func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.OwnedAccessKey{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "chart": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Chart holds information about a chart that should get deployed", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"), + Description: "The display name shown in the UI", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"}, - } -} - -func schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description describes an app", + Type: []string{"string"}, + Format: "", + }, + }, + "user": { + SchemaProps: spec.SchemaProps{ + Description: "The user this access key refers to", + Type: []string{"string"}, + Format: "", + }, + }, + "team": { + SchemaProps: spec.SchemaProps{ + Description: "The team this access key refers to", + Type: []string{"string"}, + Format: "", + }, + }, + "subject": { + SchemaProps: spec.SchemaProps{ + Description: "Subject is a generic subject that can be used instead of user or team", + Type: []string{"string"}, + Format: "", + }, + }, + "groups": { + SchemaProps: spec.SchemaProps{ + Description: "Groups specifies extra groups to apply when using this access key", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "key": { + SchemaProps: spec.SchemaProps{ + Description: "The actual access key that will be used as a bearer token", + Type: []string{"string"}, + Format: "", + }, + }, + "disabled": { + SchemaProps: spec.SchemaProps{ + Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", + Type: []string{"boolean"}, + Format: "", + }, + }, + "ttl": { + SchemaProps: spec.SchemaProps{ + Description: "The time to life for this access key", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "ttlAfterLastActivity": { + SchemaProps: spec.SchemaProps{ + Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", + Type: []string{"boolean"}, + Format: "", + }, + }, + "scope": { + SchemaProps: spec.SchemaProps{ + Description: "Scope defines the scope of the access key.", + Ref: ref(apisstoragev1.AccessKeyScope{}.OpenAPIModelName()), + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "The type of an access key, which basically describes if the access key is user managed or managed by loft itself.", + Type: []string{"string"}, + Format: "", + }, + }, + "identity": { + SchemaProps: spec.SchemaProps{ + Description: "If available, contains information about the sso login data for this access key", + Ref: ref(apisstoragev1.SSOIdentity{}.OpenAPIModelName()), + }, + }, + "identityRefresh": { + SchemaProps: spec.SchemaProps{ + Description: "The last time the identity was refreshed", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "oidcProvider": { + SchemaProps: spec.SchemaProps{ + Description: "If the token is a refresh token, contains information about it", + Ref: ref(apisstoragev1.AccessKeyOIDCProvider{}.OpenAPIModelName()), + }, + }, + "parent": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", + Type: []string{"string"}, + Format: "", + }, + }, + "oidcLogin": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", + Ref: ref(apisstoragev1.AccessKeyOIDC{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.AccessKeyOIDC{}.OpenAPIModelName(), apisstoragev1.AccessKeyOIDCProvider{}.OpenAPIModelName(), apisstoragev1.AccessKeyScope{}.OpenAPIModelName(), apisstoragev1.SSOIdentity{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "lastActivity": { + SchemaProps: spec.SchemaProps{ + Description: "The last time this access key was used to access the api", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_PlatformDB(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "storageClass": { + 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_PodExecOptions(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: "", + }, + }, + "stdin": { + SchemaProps: spec.SchemaProps{ + Description: "Redirect the standard input stream of the pod for this call. Defaults to false.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "stdout": { + SchemaProps: spec.SchemaProps{ + Description: "Redirect the standard output stream of the pod for this call.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "stderr": { + SchemaProps: spec.SchemaProps{ + Description: "Redirect the standard error stream of the pod for this call.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "tty": { + SchemaProps: spec.SchemaProps{ + Description: "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "container": { + SchemaProps: spec.SchemaProps{ + Description: "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", + Type: []string{"string"}, + Format: "", + }, + }, + "command": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Command is the remote command to execute. argv array. Not executed within a shell.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"command"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_PredefinedApp(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PredefinedApp holds information about a predefined app", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "chart": { + SchemaProps: spec.SchemaProps{ + Description: "Chart holds the repo/chart name of the predefined app", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "initialVersion": { + SchemaProps: spec.SchemaProps{ + Description: "InitialVersion holds the initial version of this app. This version will be selected automatically.", + Type: []string{"string"}, + Format: "", + }, + }, + "initialValues": { + SchemaProps: spec.SchemaProps{ + Description: "InitialValues holds the initial values for this app. The values will be prefilled automatically. There are certain placeholders that can be used within the values that are replaced by the loft UI automatically.", + Type: []string{"string"}, + Format: "", + }, + }, + "clusters": { + SchemaProps: spec.SchemaProps{ + Description: "Holds the cluster names where to display this app", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "title": { + SchemaProps: spec.SchemaProps{ + Description: "Title is the name that should be displayed for the predefined app. If empty the chart name is used.", + Type: []string{"string"}, + Format: "", + }, + }, + "iconUrl": { + SchemaProps: spec.SchemaProps{ + Description: "IconURL specifies an url to the icon that should be displayed for this app. If none is specified the icon from the chart metadata is used.", + Type: []string{"string"}, + Format: "", + }, + }, + "readmeUrl": { + SchemaProps: spec.SchemaProps{ + Description: "ReadmeURL specifies an url to the readme page of this predefined app. If empty an url will be constructed to artifact hub.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_Project(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Project holds the Project information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.ProjectSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.ProjectStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.ProjectSpec{}.OpenAPIModelName(), managementv1.ProjectStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_ProjectChartInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.ProjectChartInfoSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.ProjectChartInfoStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.ProjectChartInfoSpec{}.OpenAPIModelName(), managementv1.ProjectChartInfoStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.ProjectChartInfo{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.ProjectChartInfo{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "chart": { + SchemaProps: spec.SchemaProps{ + Description: "Chart holds information about a chart that should get deployed", + Default: map[string]interface{}{}, + Ref: ref(v1.Chart{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + v1.Chart{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "metadata": { SchemaProps: spec.SchemaProps{ Description: "Metadata provides information about a chart", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"), + Ref: ref(v1.Metadata{}.OpenAPIModelName()), }, }, "readme": { @@ -12087,7 +14162,7 @@ func schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"}, + v1.Metadata{}.OpenAPIModelName()}, } } @@ -12114,7 +14189,7 @@ func schema_pkg_apis_management_v1_ProjectCharts(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "charts": { @@ -12125,7 +14200,7 @@ func schema_pkg_apis_management_v1_ProjectCharts(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart"), + Ref: ref(apisstoragev1.HelmChart{}.OpenAPIModelName()), }, }, }, @@ -12143,7 +14218,7 @@ func schema_pkg_apis_management_v1_ProjectCharts(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.HelmChart{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -12170,7 +14245,7 @@ func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallbac "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -12180,7 +14255,7 @@ func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts"), + Ref: ref(managementv1.ProjectCharts{}.OpenAPIModelName()), }, }, }, @@ -12191,7 +14266,7 @@ func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ProjectCharts{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -12218,7 +14293,7 @@ func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "clusters": { @@ -12229,21 +14304,7 @@ func schema_pkg_apis_management_v1_ProjectClusters(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.Cluster"), - }, - }, - }, - }, - }, - "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"), + Ref: ref(managementv1.Cluster{}.OpenAPIModelName()), }, }, }, @@ -12253,7 +14314,7 @@ func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) }, }, 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"}, + managementv1.Cluster{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -12280,7 +14341,7 @@ func schema_pkg_apis_management_v1_ProjectClustersList(ref common.ReferenceCallb "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -12290,7 +14351,7 @@ func schema_pkg_apis_management_v1_ProjectClustersList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters"), + Ref: ref(managementv1.ProjectClusters{}.OpenAPIModelName()), }, }, }, @@ -12301,7 +14362,7 @@ func schema_pkg_apis_management_v1_ProjectClustersList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ProjectClusters{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -12329,14 +14390,14 @@ func schema_pkg_apis_management_v1_ProjectImportSpace(ref common.ReferenceCallba "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "sourceSpace": { SchemaProps: spec.SchemaProps{ Description: "SourceSpace is the space to import into this project", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource"), + Ref: ref(managementv1.ProjectImportSpaceSource{}.OpenAPIModelName()), }, }, }, @@ -12344,7 +14405,7 @@ func schema_pkg_apis_management_v1_ProjectImportSpace(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ProjectImportSpaceSource{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -12371,7 +14432,7 @@ func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCa "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -12381,7 +14442,7 @@ func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace"), + Ref: ref(managementv1.ProjectImportSpace{}.OpenAPIModelName()), }, }, }, @@ -12392,7 +14453,7 @@ func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ProjectImportSpace{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -12452,7 +14513,7 @@ func schema_pkg_apis_management_v1_ProjectList(ref common.ReferenceCallback) com "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -12462,7 +14523,7 @@ func schema_pkg_apis_management_v1_ProjectList(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Project"), + Ref: ref(managementv1.Project{}.OpenAPIModelName()), }, }, }, @@ -12473,7 +14534,7 @@ func schema_pkg_apis_management_v1_ProjectList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Project", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.Project{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -12487,14 +14548,14 @@ func schema_pkg_apis_management_v1_ProjectMember(ref common.ReferenceCallback) c SchemaProps: spec.SchemaProps{ Description: "Info about the user or team", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Ref: ref(apisstoragev1.EntityInfo{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + apisstoragev1.EntityInfo{}.OpenAPIModelName()}, } } @@ -12521,7 +14582,7 @@ func schema_pkg_apis_management_v1_ProjectMembers(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "teams": { @@ -12532,7 +14593,7 @@ func schema_pkg_apis_management_v1_ProjectMembers(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.ProjectMember"), + Ref: ref(managementv1.ProjectMember{}.OpenAPIModelName()), }, }, }, @@ -12546,7 +14607,7 @@ func schema_pkg_apis_management_v1_ProjectMembers(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.ProjectMember"), + Ref: ref(managementv1.ProjectMember{}.OpenAPIModelName()), }, }, }, @@ -12556,7 +14617,7 @@ func schema_pkg_apis_management_v1_ProjectMembers(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ProjectMember{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -12583,7 +14644,7 @@ func schema_pkg_apis_management_v1_ProjectMembersList(ref common.ReferenceCallba "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -12593,7 +14654,7 @@ func schema_pkg_apis_management_v1_ProjectMembersList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers"), + Ref: ref(managementv1.ProjectMembers{}.OpenAPIModelName()), }, }, }, @@ -12604,7 +14665,56 @@ func schema_pkg_apis_management_v1_ProjectMembersList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ProjectMembers{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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(managementv1.ProjectRole{}.OpenAPIModelName()), + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref(managementv1.AssignedVia{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.AssignedVia{}.OpenAPIModelName(), managementv1.ProjectRole{}.OpenAPIModelName()}, } } @@ -12632,14 +14742,14 @@ func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref common.Refere "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "sourceSpaceInstance": { SchemaProps: spec.SchemaProps{ Description: "SourceSpaceInstance is the spaceinstance to migrate into this project", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource"), + Ref: ref(managementv1.ProjectMigrateSpaceInstanceSource{}.OpenAPIModelName()), }, }, }, @@ -12647,7 +14757,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref common.Refere }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ProjectMigrateSpaceInstanceSource{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -12674,7 +14784,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref common.Re "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -12684,7 +14794,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref common.Re Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance"), + Ref: ref(managementv1.ProjectMigrateSpaceInstance{}.OpenAPIModelName()), }, }, }, @@ -12695,7 +14805,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref common.Re }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ProjectMigrateSpaceInstance{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -12749,14 +14859,14 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref comm "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "sourceVirtualClusterInstance": { SchemaProps: spec.SchemaProps{ Description: "SourceVirtualClusterInstance is the virtual cluster instance to migrate into this project", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource"), + Ref: ref(managementv1.ProjectMigrateVirtualClusterInstanceSource{}.OpenAPIModelName()), }, }, }, @@ -12764,7 +14874,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref comm }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ProjectMigrateVirtualClusterInstanceSource{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -12791,7 +14901,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -12801,7 +14911,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance"), + Ref: ref(managementv1.ProjectMigrateVirtualClusterInstance{}.OpenAPIModelName()), }, }, }, @@ -12812,7 +14922,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ProjectMigrateVirtualClusterInstance{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -12842,7 +14952,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{ @@ -12865,32 +14975,60 @@ func schema_pkg_apis_management_v1_ProjectRunners(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "runners": { + "nodeProviders": { SchemaProps: spec.SchemaProps{ - Description: "Runners holds all the allowed runners", + 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/management/v1.Runner"), + Ref: ref(apisstoragev1.NodeProvider{}.OpenAPIModelName()), }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} + "nodeTypes": { + SchemaProps: spec.SchemaProps{ + 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(apisstoragev1.NodeType{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "osImages": { + SchemaProps: spec.SchemaProps{ + Description: "OSImages holds all the allowed OS images for the project", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.OSImage{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.NodeProvider{}.OpenAPIModelName(), apisstoragev1.NodeType{}.OpenAPIModelName(), apisstoragev1.OSImage{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} -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{ @@ -12913,7 +15051,7 @@ func schema_pkg_apis_management_v1_ProjectRunnersList(ref common.ReferenceCallba "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -12923,7 +15061,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(managementv1.ProjectNodeTypes{}.OpenAPIModelName()), }, }, }, @@ -12934,7 +15072,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"}, + managementv1.ProjectNodeTypes{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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: "", + }, + }, + }, + }, + }, } } @@ -12962,26 +15140,26 @@ func schema_pkg_apis_management_v1_ProjectSecret(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec"), + Ref: ref(managementv1.ProjectSecretSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus"), + Ref: ref(managementv1.ProjectSecretStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ProjectSecretSpec{}.OpenAPIModelName(), managementv1.ProjectSecretStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -13008,7 +15186,7 @@ func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallbac "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -13018,7 +15196,7 @@ func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret"), + Ref: ref(managementv1.ProjectSecret{}.OpenAPIModelName()), }, }, }, @@ -13029,7 +15207,7 @@ func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ProjectSecret{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -13057,7 +15235,7 @@ func schema_pkg_apis_management_v1_ProjectSecretSpec(ref common.ReferenceCallbac "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "data": { @@ -13083,7 +15261,7 @@ func schema_pkg_apis_management_v1_ProjectSecretSpec(ref common.ReferenceCallbac 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -13093,7 +15271,7 @@ func schema_pkg_apis_management_v1_ProjectSecretSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -13112,7 +15290,7 @@ func schema_pkg_apis_management_v1_ProjectSecretStatus(ref common.ReferenceCallb 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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, @@ -13122,7 +15300,7 @@ func schema_pkg_apis_management_v1_ProjectSecretStatus(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + storagev1.Condition{}.OpenAPIModelName()}, } } @@ -13150,14 +15328,14 @@ func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) com "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "quotas": { SchemaProps: spec.SchemaProps{ Description: "Quotas define the quotas inside the project", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas"), + Ref: ref(apisstoragev1.Quotas{}.OpenAPIModelName()), }, }, "allowedClusters": { @@ -13168,7 +15346,7 @@ func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster"), + Ref: ref(apisstoragev1.AllowedCluster{}.OpenAPIModelName()), }, }, }, @@ -13176,13 +15354,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner"), + Ref: ref(apisstoragev1.AllowedRunner{}.OpenAPIModelName()), }, }, }, @@ -13196,7 +15374,7 @@ func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate"), + Ref: ref(apisstoragev1.AllowedTemplate{}.OpenAPIModelName()), }, }, }, @@ -13206,7 +15384,14 @@ func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) com SchemaProps: spec.SchemaProps{ Description: "RequireTemplate configures if a template is required for instance creation.", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate"), + Ref: ref(apisstoragev1.RequireTemplate{}.OpenAPIModelName()), + }, + }, + "requirePreset": { + SchemaProps: spec.SchemaProps{ + Description: "RequirePreset configures if a preset is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.RequirePreset{}.OpenAPIModelName()), }, }, "members": { @@ -13217,7 +15402,7 @@ func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member"), + Ref: ref(apisstoragev1.Member{}.OpenAPIModelName()), }, }, }, @@ -13231,47 +15416,47 @@ func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) com 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, }, }, + "namespaceTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "NamespaceTemplate defines metadata that should be applied to the project's namespace on creation. This is useful for environments where admission controllers (e.g., Kyverno) require specific labels or annotations on namespaces.", + Ref: ref(apisstoragev1.ProjectNamespaceTemplate{}.OpenAPIModelName()), + }, + }, "namespacePattern": { SchemaProps: spec.SchemaProps{ Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern"), + Ref: ref(apisstoragev1.NamespacePattern{}.OpenAPIModelName()), }, }, "argoCD": { SchemaProps: spec.SchemaProps{ Description: "ArgoIntegration holds information about ArgoCD Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec"), + Ref: ref(apisstoragev1.ArgoIntegrationSpec{}.OpenAPIModelName()), }, }, "vault": { SchemaProps: spec.SchemaProps{ Description: "VaultIntegration holds information about Vault Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), + Ref: ref(apisstoragev1.VaultIntegrationSpec{}.OpenAPIModelName()), }, }, "rancher": { SchemaProps: spec.SchemaProps{ Description: "RancherIntegration holds information about Rancher Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), - }, - }, - "devPod": { - SchemaProps: spec.SchemaProps{ - Description: "DevPod holds DevPod specific configuration for project", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec"), + Ref: ref(apisstoragev1.RancherIntegrationSpec{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.AllowedCluster{}.OpenAPIModelName(), apisstoragev1.AllowedRunner{}.OpenAPIModelName(), apisstoragev1.AllowedTemplate{}.OpenAPIModelName(), apisstoragev1.ArgoIntegrationSpec{}.OpenAPIModelName(), apisstoragev1.Member{}.OpenAPIModelName(), apisstoragev1.NamespacePattern{}.OpenAPIModelName(), apisstoragev1.ProjectNamespaceTemplate{}.OpenAPIModelName(), apisstoragev1.Quotas{}.OpenAPIModelName(), apisstoragev1.RancherIntegrationSpec{}.OpenAPIModelName(), apisstoragev1.RequirePreset{}.OpenAPIModelName(), apisstoragev1.RequireTemplate{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName(), apisstoragev1.VaultIntegrationSpec{}.OpenAPIModelName()}, } } @@ -13285,7 +15470,7 @@ func schema_pkg_apis_management_v1_ProjectStatus(ref common.ReferenceCallback) c "quotas": { SchemaProps: spec.SchemaProps{ Description: "Quotas holds the quota status", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"), + Ref: ref(apisstoragev1.QuotaStatus{}.OpenAPIModelName()), }, }, "conditions": { @@ -13296,7 +15481,7 @@ func schema_pkg_apis_management_v1_ProjectStatus(ref common.ReferenceCallback) c 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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, @@ -13306,7 +15491,7 @@ func schema_pkg_apis_management_v1_ProjectStatus(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"}, + storagev1.Condition{}.OpenAPIModelName(), apisstoragev1.QuotaStatus{}.OpenAPIModelName()}, } } @@ -13333,7 +15518,7 @@ func schema_pkg_apis_management_v1_ProjectTemplates(ref common.ReferenceCallback "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "defaultVirtualClusterTemplate": { @@ -13351,7 +15536,7 @@ func schema_pkg_apis_management_v1_ProjectTemplates(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.VirtualClusterTemplate"), + Ref: ref(managementv1.VirtualClusterTemplate{}.OpenAPIModelName()), }, }, }, @@ -13372,59 +15557,17 @@ func schema_pkg_apis_management_v1_ProjectTemplates(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.SpaceTemplate"), + Ref: ref(managementv1.SpaceTemplate{}.OpenAPIModelName()), }, }, }, }, }, - "defaultDevPodWorkspaceTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "DefaultDevPodWorkspaceTemplate", - Type: []string{"string"}, - Format: "", - }, - }, - "devPodWorkspaceTemplates": { - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplates holds all the allowed space templates", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate"), - }, - }, - }, - }, - }, - "devPodEnvironmentTemplates": { - SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplates holds all the allowed environment templates", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate"), - }, - }, - }, - }, - }, - "defaultDevPodEnvironmentTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "DefaultDevPodEnvironmentTemplate", - Type: []string{"string"}, - Format: "", - }, - }, }, }, }, 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"}, + managementv1.SpaceTemplate{}.OpenAPIModelName(), managementv1.VirtualClusterTemplate{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -13451,7 +15594,7 @@ func schema_pkg_apis_management_v1_ProjectTemplatesList(ref common.ReferenceCall "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -13461,7 +15604,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(managementv1.ProjectTemplates{}.OpenAPIModelName()), }, }, }, @@ -13472,7 +15615,7 @@ 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"}, + managementv1.ProjectTemplates{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -13500,26 +15643,26 @@ func schema_pkg_apis_management_v1_RedirectToken(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec"), + Ref: ref(managementv1.RedirectTokenSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus"), + Ref: ref(managementv1.RedirectTokenStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.RedirectTokenSpec{}.OpenAPIModelName(), managementv1.RedirectTokenStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -13566,7 +15709,7 @@ func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallbac "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -13576,7 +15719,7 @@ func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken"), + Ref: ref(managementv1.RedirectToken{}.OpenAPIModelName()), }, }, }, @@ -13587,7 +15730,7 @@ func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.RedirectToken{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -13654,26 +15797,26 @@ func schema_pkg_apis_management_v1_RegisterVirtualCluster(ref common.ReferenceCa "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec"), + Ref: ref(managementv1.RegisterVirtualClusterSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus"), + Ref: ref(managementv1.RegisterVirtualClusterStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.RegisterVirtualClusterSpec{}.OpenAPIModelName(), managementv1.RegisterVirtualClusterStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -13700,7 +15843,7 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.Referen "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -13710,7 +15853,7 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.Referen Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster"), + Ref: ref(managementv1.RegisterVirtualCluster{}.OpenAPIModelName()), }, }, }, @@ -13721,7 +15864,7 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.Referen }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.RegisterVirtualCluster{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -13739,6 +15882,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.", @@ -13781,6 +15931,13 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref common.Referen Format: "", }, }, + "standalone": { + SchemaProps: spec.SchemaProps{ + Description: "Standalone specifies if the vCluster is standalone", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, @@ -13801,6 +15958,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: "", + }, + }, }, }, }, @@ -13831,26 +15995,26 @@ func schema_pkg_apis_management_v1_ResetAccessKey(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec"), + Ref: ref(managementv1.ResetAccessKeySpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus"), + Ref: ref(managementv1.ResetAccessKeyStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ResetAccessKeySpec{}.OpenAPIModelName(), managementv1.ResetAccessKeyStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -13877,7 +16041,7 @@ func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallba "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -13887,7 +16051,7 @@ func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey"), + Ref: ref(managementv1.ResetAccessKey{}.OpenAPIModelName()), }, }, }, @@ -13898,7 +16062,7 @@ func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.ResetAccessKey{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -13989,7 +16153,7 @@ func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallba "scope": { SchemaProps: spec.SchemaProps{ Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + Ref: ref(apisstoragev1.AccessKeyScope{}.OpenAPIModelName()), }, }, "type": { @@ -14002,19 +16166,19 @@ 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(apisstoragev1.SSOIdentity{}.OpenAPIModelName()), }, }, "identityRefresh": { SchemaProps: spec.SchemaProps{ Description: "The last time the identity was refreshed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "oidcProvider": { SchemaProps: spec.SchemaProps{ Description: "If the token is a refresh token, contains information about it", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + Ref: ref(apisstoragev1.AccessKeyOIDCProvider{}.OpenAPIModelName()), }, }, "parent": { @@ -14027,14 +16191,14 @@ func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallba "oidcLogin": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), + Ref: ref(apisstoragev1.AccessKeyOIDC{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + apisstoragev1.AccessKeyOIDC{}.OpenAPIModelName(), apisstoragev1.AccessKeyOIDCProvider{}.OpenAPIModelName(), apisstoragev1.AccessKeyScope{}.OpenAPIModelName(), apisstoragev1.SSOIdentity{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -14047,22 +16211,22 @@ func schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref common.ReferenceCall "lastActivity": { SchemaProps: spec.SchemaProps{ Description: "The last time this access key was used to access the api", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_Runner(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SSHKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Runner holds the Runner information", + Description: "SSHKey holds the OS image.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14082,35 +16246,34 @@ func schema_pkg_apis_management_v1_Runner(ref common.ReferenceCallback) common.O "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerSpec"), + Ref: ref(managementv1.SSHKeySpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerStatus"), + Ref: ref(managementv1.SSHKeyStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.SSHKeySpec{}.OpenAPIModelName(), managementv1.SSHKeyStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_RunnerAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SSHKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RunnerAccessKey holds the access key for the runner", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -14129,77 +16292,101 @@ 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(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "accessKey": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "AccessKey is the access key used by the runner", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.SSHKey{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.SSHKey{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_RunnerAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SSHKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes an SSH key", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "owner": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Owner holds the owner of this object", + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, - "items": { + "access": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerAccessKey"), + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, }, }, + "publicKey": { + SchemaProps: spec.SchemaProps{ + Description: "PublicKey is the public SSH key", + 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"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_RunnerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SSHKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RunnerConfig holds the config the runner retrieves from Loft", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_Self(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Self holds information about the currently logged in user", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14219,25 +16406,30 @@ func schema_pkg_apis_management_v1_RunnerConfig(ref common.ReferenceCallback) co "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "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(managementv1.SelfSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.SelfStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.SelfSpec{}.OpenAPIModelName(), managementv1.SelfStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_RunnerConfigList(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{ @@ -14260,7 +16452,7 @@ func schema_pkg_apis_management_v1_RunnerConfigList(ref common.ReferenceCallback "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -14270,7 +16462,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(managementv1.Self{}.OpenAPIModelName()), }, }, }, @@ -14281,189 +16473,137 @@ 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"}, + managementv1.Self{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_RunnerList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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": { + "accessKey": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "AccessKey is an optional access key to use instead of the provided one", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner"), - }, - }, - }, - }, - }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_RunnerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfStatus(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": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - Type: []string{"string"}, - Format: "", + Description: "The name of the currently logged in user", + Ref: ref(managementv1.UserInfo{}.OpenAPIModelName()), }, }, - "description": { + "team": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", - Type: []string{"string"}, - Format: "", + Description: "The name of the currently logged in team", + Ref: ref(apisstoragev1.EntityInfo{}.OpenAPIModelName()), }, }, - "networkPeerName": { + "accessKey": { SchemaProps: spec.SchemaProps{ - Description: "NetworkPeerName is the network peer name used to connect directly to the runner", + Description: "The name of the currently used access key", Type: []string{"string"}, Format: "", }, }, - "endpoint": { + "accessKeyScope": { SchemaProps: spec.SchemaProps{ - Description: "Endpoint is the hostname used to connect directly to the runner", - Type: []string{"string"}, - Format: "", + Description: "The scope of the currently used access key", + Ref: ref(apisstoragev1.AccessKeyScope{}.OpenAPIModelName()), }, }, - "clusterRef": { + "accessKeyType": { SchemaProps: spec.SchemaProps{ - Description: "If ClusterRef is defined, Loft will schedule the runner on the given cluster.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef"), + Description: "The type of the currently used access key", + Type: []string{"string"}, + Format: "", }, }, - "owner": { + "subject": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "The subject of the currently logged in user", + Type: []string{"string"}, + Format: "", }, }, - "unusable": { + "uid": { SchemaProps: spec.SchemaProps{ - Description: "If unusable is true, no DevPod workspaces can be scheduled on this runner.", - Type: []string{"boolean"}, + Description: "UID is the user uid", + Type: []string{"string"}, Format: "", }, }, - "access": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + 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/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_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": { + "chatAuthToken": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the space instance is in", + Description: "ChatAuthToken is the token used to authenticate with the in-product chat widget in the UI", Type: []string{"string"}, Format: "", }, }, - "reason": { + "instanceID": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", + Description: "InstanceID is the loft instance id", Type: []string{"string"}, Format: "", }, }, - "message": { + "loftHost": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", + Description: "LoftHost is the host of the loft instance", Type: []string{"string"}, Format: "", }, }, - "conditions": { + "projectNamespacePrefix": { 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"), - }, - }, - }, + Description: "ProjectNamespacePrefix is the prefix used to name project namespaces after defaulting has been applied", + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + managementv1.UserInfo{}.OpenAPIModelName(), apisstoragev1.AccessKeyScope{}.OpenAPIModelName(), apisstoragev1.EntityInfo{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_Self(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: "Self holds information about the currently logged in user", + Description: "User holds the user information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14483,236 +16623,26 @@ func schema_pkg_apis_management_v1_Self(ref common.ReferenceCallback) common.Ope "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec"), + Ref: ref(managementv1.SelfSubjectAccessReviewSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus"), + Ref: ref(managementv1.SelfSubjectAccessReviewStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, - } -} - -func schema_pkg_apis_management_v1_SelfList(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.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 an optional access key to use instead of the provided one", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_SelfStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "user": { - SchemaProps: spec.SchemaProps{ - Description: "The name of the currently logged in user", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserInfo"), - }, - }, - "team": { - SchemaProps: spec.SchemaProps{ - Description: "The name of the currently logged in team", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), - }, - }, - "accessKey": { - SchemaProps: spec.SchemaProps{ - Description: "The name of the currently used access key", - Type: []string{"string"}, - Format: "", - }, - }, - "accessKeyScope": { - SchemaProps: spec.SchemaProps{ - Description: "The scope of the currently used access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), - }, - }, - "accessKeyType": { - SchemaProps: spec.SchemaProps{ - Description: "The type of the currently used access key", - Type: []string{"string"}, - Format: "", - }, - }, - "subject": { - SchemaProps: spec.SchemaProps{ - Description: "The subject of the currently logged in user", - Type: []string{"string"}, - Format: "", - }, - }, - "uid": { - SchemaProps: spec.SchemaProps{ - Description: "UID is the user uid", - Type: []string{"string"}, - Format: "", - }, - }, - "groups": { - SchemaProps: spec.SchemaProps{ - Description: "The groups of the currently logged in user", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "chatAuthToken": { - SchemaProps: spec.SchemaProps{ - Description: "ChatAuthToken is the token used to authenticate with the in-product chat widget in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "instanceID": { - SchemaProps: spec.SchemaProps{ - Description: "InstanceID is the loft instance id", - Type: []string{"string"}, - Format: "", - }, - }, - "projectNamespacePrefix": { - SchemaProps: spec.SchemaProps{ - Description: "ProjectNamespacePrefix is the prefix used to name project namespaces after defaulting has been applied", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserInfo", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, - } -} - -func schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "User holds the user information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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.SelfSubjectAccessReviewSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.SelfSubjectAccessReviewSpec{}.OpenAPIModelName(), managementv1.SelfSubjectAccessReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -14739,7 +16669,7 @@ func schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref common.Refere "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -14749,7 +16679,7 @@ func schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(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.SelfSubjectAccessReview"), + Ref: ref(managementv1.SelfSubjectAccessReview{}.OpenAPIModelName()), }, }, }, @@ -14760,7 +16690,7 @@ func schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref common.Refere }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.SelfSubjectAccessReview{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -14773,20 +16703,20 @@ func schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref common.Refere "resourceAttributes": { SchemaProps: spec.SchemaProps{ Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + Ref: ref(authorizationv1.ResourceAttributes{}.OpenAPIModelName()), }, }, "nonResourceAttributes": { SchemaProps: spec.SchemaProps{ Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + Ref: ref(authorizationv1.NonResourceAttributes{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, + authorizationv1.NonResourceAttributes{}.OpenAPIModelName(), authorizationv1.ResourceAttributes{}.OpenAPIModelName()}, } } @@ -14856,26 +16786,26 @@ func schema_pkg_apis_management_v1_SharedSecret(ref common.ReferenceCallback) co "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec"), + Ref: ref(managementv1.SharedSecretSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus"), + Ref: ref(managementv1.SharedSecretStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.SharedSecretSpec{}.OpenAPIModelName(), managementv1.SharedSecretStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -14902,7 +16832,7 @@ func schema_pkg_apis_management_v1_SharedSecretList(ref common.ReferenceCallback "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -14912,7 +16842,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(managementv1.SharedSecret{}.OpenAPIModelName()), }, }, }, @@ -14923,7 +16853,7 @@ 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"}, + managementv1.SharedSecret{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -14951,7 +16881,7 @@ func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "data": { @@ -14977,7 +16907,7 @@ func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -14987,7 +16917,7 @@ 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"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -15006,7 +16936,7 @@ func schema_pkg_apis_management_v1_SharedSecretStatus(ref common.ReferenceCallba 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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, @@ -15016,7 +16946,175 @@ func schema_pkg_apis_management_v1_SharedSecretStatus(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + storagev1.Condition{}.OpenAPIModelName()}, + } +} + +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(managementv1.SnapshotRequestMetadata{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.SnapshotRequestStatus{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"status"}, + }, + }, + Dependencies: []string{ + managementv1.SnapshotRequestMetadata{}.OpenAPIModelName(), managementv1.SnapshotRequestStatus{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_SnapshotRequestError(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SnapshotError describes the error that occurred while taking the snapshot.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +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: "", + Type: []string{"string"}, + Format: "", + }, + }, + "creationTimestamp": { + SchemaProps: spec.SchemaProps{ + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"name", "creationTimestamp"}, + }, + }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_SnapshotRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SnapshotRequestStatus shows the overall status of the snapshot request.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "volumeSnapshots": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VolumeSnapshotsRequestStatus{}.OpenAPIModelName()), + }, + }, + "error": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.SnapshotRequestError{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"volumeSnapshots"}, + }, + }, + Dependencies: []string{ + managementv1.SnapshotRequestError{}.OpenAPIModelName(), managementv1.VolumeSnapshotsRequestStatus{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_SnapshotTaken(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SnapshotTaken is the auto snapshot metadata of a snapshot taken from the vcluster.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "id": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "url": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "timestamp": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "snapshotRequest": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.SnapshotRequest{}.OpenAPIModelName()), + }, + }, + "totalPV": { + SchemaProps: spec.SchemaProps{ + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"totalPV"}, + }, + }, + Dependencies: []string{ + managementv1.SnapshotRequest{}.OpenAPIModelName()}, } } @@ -15044,26 +17142,26 @@ func schema_pkg_apis_management_v1_SpaceInstance(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec"), + Ref: ref(managementv1.SpaceInstanceSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus"), + Ref: ref(managementv1.SpaceInstanceStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.SpaceInstanceSpec{}.OpenAPIModelName(), managementv1.SpaceInstanceStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -15090,7 +17188,7 @@ func schema_pkg_apis_management_v1_SpaceInstanceList(ref common.ReferenceCallbac "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -15100,7 +17198,7 @@ func schema_pkg_apis_management_v1_SpaceInstanceList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance"), + Ref: ref(managementv1.SpaceInstance{}.OpenAPIModelName()), }, }, }, @@ -15111,7 +17209,7 @@ func schema_pkg_apis_management_v1_SpaceInstanceList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.SpaceInstance{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -15139,26 +17237,26 @@ func schema_pkg_apis_management_v1_SpaceInstanceSpec(ref common.ReferenceCallbac "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "templateRef": { SchemaProps: spec.SchemaProps{ Description: "TemplateRef holds the space template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Ref: ref(apisstoragev1.TemplateRef{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(apisstoragev1.ClusterRef{}.OpenAPIModelName()), }, }, "parameters": { @@ -15176,7 +17274,7 @@ func schema_pkg_apis_management_v1_SpaceInstanceSpec(ref common.ReferenceCallbac 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(apisstoragev1.InstanceAccessRule{}.OpenAPIModelName()), }, }, }, @@ -15190,7 +17288,7 @@ func schema_pkg_apis_management_v1_SpaceInstanceSpec(ref common.ReferenceCallbac 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -15200,7 +17298,7 @@ func schema_pkg_apis_management_v1_SpaceInstanceSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.ClusterRef{}.OpenAPIModelName(), apisstoragev1.InstanceAccessRule{}.OpenAPIModelName(), apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName(), apisstoragev1.TemplateRef{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -15240,7 +17338,7 @@ func schema_pkg_apis_management_v1_SpaceInstanceStatus(ref common.ReferenceCallb 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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, @@ -15249,13 +17347,13 @@ func schema_pkg_apis_management_v1_SpaceInstanceStatus(ref common.ReferenceCallb "spaceObjects": { SchemaProps: spec.SchemaProps{ Description: "SpaceObjects are the objects that were applied within the virtual cluster space", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), + Ref: ref(apisstoragev1.ObjectsStatus{}.OpenAPIModelName()), }, }, "space": { SchemaProps: spec.SchemaProps{ Description: "Space is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Ref: ref(apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName()), }, }, "ignoreReconciliation": { @@ -15268,7 +17366,7 @@ func schema_pkg_apis_management_v1_SpaceInstanceStatus(ref common.ReferenceCallb "sleepModeConfig": { SchemaProps: spec.SchemaProps{ Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + Ref: ref(v1.SleepModeConfig{}.OpenAPIModelName()), }, }, "canUse": { @@ -15289,7 +17387,7 @@ func schema_pkg_apis_management_v1_SpaceInstanceStatus(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"}, + v1.SleepModeConfig{}.OpenAPIModelName(), storagev1.Condition{}.OpenAPIModelName(), apisstoragev1.ObjectsStatus{}.OpenAPIModelName(), apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName()}, } } @@ -15317,26 +17415,26 @@ func schema_pkg_apis_management_v1_SpaceTemplate(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec"), + Ref: ref(managementv1.SpaceTemplateSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus"), + Ref: ref(managementv1.SpaceTemplateStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.SpaceTemplateSpec{}.OpenAPIModelName(), managementv1.SpaceTemplateStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -15363,7 +17461,7 @@ func schema_pkg_apis_management_v1_SpaceTemplateList(ref common.ReferenceCallbac "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -15373,7 +17471,7 @@ func schema_pkg_apis_management_v1_SpaceTemplateList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate"), + Ref: ref(managementv1.SpaceTemplate{}.OpenAPIModelName()), }, }, }, @@ -15384,7 +17482,7 @@ func schema_pkg_apis_management_v1_SpaceTemplateList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.SpaceTemplate{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -15412,14 +17510,14 @@ func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallbac "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "Template holds the space template", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Ref: ref(apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName()), }, }, "parameters": { @@ -15430,7 +17528,7 @@ func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallbac 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(apisstoragev1.AppParameter{}.OpenAPIModelName()), }, }, }, @@ -15444,7 +17542,7 @@ func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion"), + Ref: ref(apisstoragev1.SpaceTemplateVersion{}.OpenAPIModelName()), }, }, }, @@ -15458,7 +17556,7 @@ func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallbac 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -15468,7 +17566,7 @@ func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.AppParameter{}.OpenAPIModelName(), apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName(), apisstoragev1.SpaceTemplateVersion{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -15485,7 +17583,7 @@ func schema_pkg_apis_management_v1_SpaceTemplateStatus(ref common.ReferenceCallb Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Ref: ref(apisstoragev1.EntityInfo{}.OpenAPIModelName()), }, }, }, @@ -15495,7 +17593,115 @@ func schema_pkg_apis_management_v1_SpaceTemplateStatus(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + apisstoragev1.EntityInfo{}.OpenAPIModelName()}, + } +} + +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"}, + }, + }, } } @@ -15523,26 +17729,26 @@ func schema_pkg_apis_management_v1_SubjectAccessReview(ref common.ReferenceCallb "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec"), + Ref: ref(managementv1.SubjectAccessReviewSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus"), + Ref: ref(managementv1.SubjectAccessReviewStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.SubjectAccessReviewSpec{}.OpenAPIModelName(), managementv1.SubjectAccessReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -15569,7 +17775,7 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceC "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -15579,7 +17785,7 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview"), + Ref: ref(managementv1.SubjectAccessReview{}.OpenAPIModelName()), }, }, }, @@ -15590,7 +17796,7 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.SubjectAccessReview{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -15603,13 +17809,13 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref common.ReferenceC "resourceAttributes": { SchemaProps: spec.SchemaProps{ Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + Ref: ref(authorizationv1.ResourceAttributes{}.OpenAPIModelName()), }, }, "nonResourceAttributes": { SchemaProps: spec.SchemaProps{ Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + Ref: ref(authorizationv1.NonResourceAttributes{}.OpenAPIModelName()), }, }, "user": { @@ -15673,7 +17879,7 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, + authorizationv1.NonResourceAttributes{}.OpenAPIModelName(), authorizationv1.ResourceAttributes{}.OpenAPIModelName()}, } } @@ -15743,26 +17949,26 @@ func schema_pkg_apis_management_v1_Task(ref common.ReferenceCallback) common.Ope "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec"), + Ref: ref(managementv1.TaskSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus"), + Ref: ref(managementv1.TaskStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.TaskSpec{}.OpenAPIModelName(), managementv1.TaskStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -15789,7 +17995,7 @@ func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -15799,7 +18005,7 @@ func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Task"), + Ref: ref(managementv1.Task{}.OpenAPIModelName()), }, }, }, @@ -15810,7 +18016,7 @@ func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.Task{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -15837,14 +18043,14 @@ func schema_pkg_apis_management_v1_TaskLog(ref common.ReferenceCallback) common. "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -15871,7 +18077,7 @@ func schema_pkg_apis_management_v1_TaskLogList(ref common.ReferenceCallback) com "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -15881,7 +18087,7 @@ func schema_pkg_apis_management_v1_TaskLogList(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.TaskLog"), + Ref: ref(managementv1.TaskLog{}.OpenAPIModelName()), }, }, }, @@ -15892,7 +18098,7 @@ func schema_pkg_apis_management_v1_TaskLogList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.TaskLog{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -15940,7 +18146,7 @@ func schema_pkg_apis_management_v1_TaskLogOptions(ref common.ReferenceCallback) "sinceTime": { SchemaProps: spec.SchemaProps{ Description: "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "timestamps": { @@ -15975,7 +18181,7 @@ func schema_pkg_apis_management_v1_TaskLogOptions(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -16001,7 +18207,7 @@ func schema_pkg_apis_management_v1_TaskSpec(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -16010,34 +18216,34 @@ func schema_pkg_apis_management_v1_TaskSpec(ref common.ReferenceCallback) common "scope": { SchemaProps: spec.SchemaProps{ Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + Ref: ref(apisstoragev1.AccessKeyScope{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "target": { SchemaProps: spec.SchemaProps{ Description: "Target where this task should get executed", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target"), + Ref: ref(apisstoragev1.Target{}.OpenAPIModelName()), }, }, "task": { SchemaProps: spec.SchemaProps{ Description: "Task defines the task to execute", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition"), + Ref: ref(apisstoragev1.TaskDefinition{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.AccessKeyScope{}.OpenAPIModelName(), apisstoragev1.Target{}.OpenAPIModelName(), apisstoragev1.TaskDefinition{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -16063,7 +18269,7 @@ func schema_pkg_apis_management_v1_TaskStatus(ref common.ReferenceCallback) comm 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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, @@ -16087,24 +18293,24 @@ func schema_pkg_apis_management_v1_TaskStatus(ref common.ReferenceCallback) comm "containerState": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: This is not set anymore after migrating to runners ContainerState describes the container state of the task", - Ref: ref("k8s.io/api/core/v1.ContainerStatus"), + Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), }, }, "owner": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity"), + Ref: ref(apisstoragev1.UserOrTeamEntity{}.OpenAPIModelName()), }, }, "cluster": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Ref: ref(apisstoragev1.EntityInfo{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity", "k8s.io/api/core/v1.ContainerStatus"}, + storagev1.Condition{}.OpenAPIModelName(), apisstoragev1.EntityInfo{}.OpenAPIModelName(), apisstoragev1.UserOrTeamEntity{}.OpenAPIModelName(), corev1.ContainerStatus{}.OpenAPIModelName()}, } } @@ -16132,26 +18338,26 @@ func schema_pkg_apis_management_v1_Team(ref common.ReferenceCallback) common.Ope "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec"), + Ref: ref(managementv1.TeamSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus"), + Ref: ref(managementv1.TeamStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.TeamSpec{}.OpenAPIModelName(), managementv1.TeamStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -16178,7 +18384,7 @@ func schema_pkg_apis_management_v1_TeamAccessKeys(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "accessKeys": { @@ -16188,7 +18394,7 @@ func schema_pkg_apis_management_v1_TeamAccessKeys(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.OwnedAccessKey"), + Ref: ref(managementv1.OwnedAccessKey{}.OpenAPIModelName()), }, }, }, @@ -16198,7 +18404,7 @@ func schema_pkg_apis_management_v1_TeamAccessKeys(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.OwnedAccessKey{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -16225,7 +18431,7 @@ func schema_pkg_apis_management_v1_TeamAccessKeysList(ref common.ReferenceCallba "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -16235,7 +18441,7 @@ func schema_pkg_apis_management_v1_TeamAccessKeysList(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.TeamAccessKeys"), + Ref: ref(managementv1.TeamAccessKeys{}.OpenAPIModelName()), }, }, }, @@ -16246,7 +18452,7 @@ func schema_pkg_apis_management_v1_TeamAccessKeysList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.TeamAccessKeys{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -16273,7 +18479,7 @@ func schema_pkg_apis_management_v1_TeamClusters(ref common.ReferenceCallback) co "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "clusters": { @@ -16283,7 +18489,7 @@ func schema_pkg_apis_management_v1_TeamClusters(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts"), + Ref: ref(managementv1.ClusterAccounts{}.OpenAPIModelName()), }, }, }, @@ -16293,7 +18499,7 @@ func schema_pkg_apis_management_v1_TeamClusters(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ClusterAccounts{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -16320,7 +18526,7 @@ func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -16330,7 +18536,7 @@ func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters"), + Ref: ref(managementv1.TeamClusters{}.OpenAPIModelName()), }, }, }, @@ -16341,7 +18547,7 @@ func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.TeamClusters{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -16368,7 +18574,254 @@ func schema_pkg_apis_management_v1_TeamList(ref common.ReferenceCallback) common "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.Team{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.Team{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "objectPermissions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.ObjectPermission{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.ObjectPermission{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.TeamObjectPermissions{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.TeamObjectPermissions{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "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(managementv1.ObjectName{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "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(managementv1.ProjectMembership{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "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(managementv1.ManagementRole{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "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(managementv1.ClusterAccessRole{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "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(managementv1.VirtualClusterRole{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.ClusterAccessRole{}.OpenAPIModelName(), managementv1.ManagementRole{}.OpenAPIModelName(), managementv1.ObjectName{}.OpenAPIModelName(), managementv1.ProjectMembership{}.OpenAPIModelName(), managementv1.VirtualClusterRole{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -16378,7 +18831,7 @@ func schema_pkg_apis_management_v1_TeamList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Team"), + Ref: ref(managementv1.TeamPermissions{}.OpenAPIModelName()), }, }, }, @@ -16389,7 +18842,7 @@ func schema_pkg_apis_management_v1_TeamList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.TeamPermissions{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -16416,7 +18869,7 @@ func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "username": { @@ -16463,7 +18916,7 @@ func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), + Ref: ref(apisstoragev1.KindSecretRef{}.OpenAPIModelName()), }, }, }, @@ -16477,7 +18930,7 @@ func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), + Ref: ref(apisstoragev1.ClusterRoleRef{}.OpenAPIModelName()), }, }, }, @@ -16491,7 +18944,7 @@ func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -16501,7 +18954,7 @@ func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.ClusterRoleRef{}.OpenAPIModelName(), apisstoragev1.KindSecretRef{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -16539,26 +18992,26 @@ func schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref common.Refe "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec"), + Ref: ref(managementv1.TranslateVClusterResourceNameSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus"), + Ref: ref(managementv1.TranslateVClusterResourceNameStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.TranslateVClusterResourceNameSpec{}.OpenAPIModelName(), managementv1.TranslateVClusterResourceNameStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -16585,7 +19038,7 @@ func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref common. "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -16595,7 +19048,7 @@ func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName"), + Ref: ref(managementv1.TranslateVClusterResourceName{}.OpenAPIModelName()), }, }, }, @@ -16606,7 +19059,7 @@ func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref common. }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.TranslateVClusterResourceName{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -16668,6 +19121,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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.UsageDownloadSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.UsageDownloadStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.UsageDownloadSpec{}.OpenAPIModelName(), managementv1.UsageDownloadStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.UsageDownload{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.UsageDownload{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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{ @@ -16692,26 +19260,26 @@ func schema_pkg_apis_management_v1_User(ref common.ReferenceCallback) common.Ope "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec"), + Ref: ref(managementv1.UserSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus"), + Ref: ref(managementv1.UserStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.UserSpec{}.OpenAPIModelName(), managementv1.UserStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -16738,7 +19306,7 @@ func schema_pkg_apis_management_v1_UserAccessKeys(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "accessKeys": { @@ -16748,7 +19316,7 @@ func schema_pkg_apis_management_v1_UserAccessKeys(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.OwnedAccessKey"), + Ref: ref(managementv1.OwnedAccessKey{}.OpenAPIModelName()), }, }, }, @@ -16758,7 +19326,7 @@ func schema_pkg_apis_management_v1_UserAccessKeys(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.OwnedAccessKey{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -16785,7 +19353,7 @@ func schema_pkg_apis_management_v1_UserAccessKeysList(ref common.ReferenceCallba "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -16795,7 +19363,7 @@ func schema_pkg_apis_management_v1_UserAccessKeysList(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.UserAccessKeys"), + Ref: ref(managementv1.UserAccessKeys{}.OpenAPIModelName()), }, }, }, @@ -16806,7 +19374,7 @@ func schema_pkg_apis_management_v1_UserAccessKeysList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.UserAccessKeys{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -16833,7 +19401,7 @@ func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) co "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "clusters": { @@ -16843,7 +19411,7 @@ func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts"), + Ref: ref(managementv1.ClusterAccounts{}.OpenAPIModelName()), }, }, }, @@ -16853,7 +19421,7 @@ func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ClusterAccounts{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -16880,7 +19448,7 @@ func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -16890,7 +19458,7 @@ func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters"), + Ref: ref(managementv1.UserClusters{}.OpenAPIModelName()), }, }, }, @@ -16901,7 +19469,7 @@ func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.UserClusters{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -16960,7 +19528,7 @@ func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Ref: ref(apisstoragev1.EntityInfo{}.OpenAPIModelName()), }, }, }, @@ -16970,7 +19538,7 @@ func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + apisstoragev1.EntityInfo{}.OpenAPIModelName()}, } } @@ -16997,7 +19565,7 @@ func schema_pkg_apis_management_v1_UserList(ref common.ReferenceCallback) common "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -17007,7 +19575,7 @@ func schema_pkg_apis_management_v1_UserList(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.User"), + Ref: ref(managementv1.User{}.OpenAPIModelName()), }, }, }, @@ -17018,11 +19586,11 @@ func schema_pkg_apis_management_v1_UserList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.User", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.User{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -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{ @@ -17045,32 +19613,17 @@ func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "clusterRoles": { - SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles that apply to the user.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole"), - }, - }, - }, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "namespaceRoles": { + "objectPermissions": { SchemaProps: spec.SchemaProps{ - Description: "NamespaceRoles that apply to the user. Can be either regular roles or cluster roles that are namespace scoped.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole"), + Ref: ref(managementv1.ObjectPermission{}.OpenAPIModelName()), }, }, }, @@ -17080,11 +19633,11 @@ func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ObjectPermission{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserObjectPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17107,7 +19660,7 @@ func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallb "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -17117,7 +19670,7 @@ func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions"), + Ref: ref(managementv1.UserObjectPermissions{}.OpenAPIModelName()), }, }, }, @@ -17128,143 +19681,143 @@ func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.UserObjectPermissions{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UserPermissionsRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clusterRole": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the name of the cluster role assigned to this user.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "role": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Role is the name of the role assigned to this user.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Namespace where this rules are valid.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "rules": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "Rules are the roles rules", + Description: "ClusterRoles that apply to the user.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), + Ref: ref(managementv1.UserPermissionsRole{}.OpenAPIModelName()), }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/rbac/v1.PolicyRule"}, - } -} - -func schema_pkg_apis_management_v1_UserProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "The new display name shown in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "username": { + "namespaceRoles": { SchemaProps: spec.SchemaProps{ - Description: "Username is the new username of the user", - Type: []string{"string"}, - Format: "", + Description: "NamespaceRoles that apply to the user. Can be either regular roles or cluster roles that are namespace scoped.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.UserPermissionsRole{}.OpenAPIModelName()), + }, + }, + }, }, }, - "password": { + "teamMemberships": { SchemaProps: spec.SchemaProps{ - Description: "Password is the new password of the user", - Type: []string{"string"}, - Format: "", + 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(managementv1.ObjectName{}.OpenAPIModelName()), + }, + }, + }, }, }, - "currentPassword": { + "projectMemberships": { SchemaProps: spec.SchemaProps{ - Description: "CurrentPassword is the current password of the user", - Type: []string{"string"}, - Format: "", + Description: "ProjectMemberships gives information about the user's project membership", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.ProjectMembership{}.OpenAPIModelName()), + }, + }, + }, }, }, - "email": { + "managementRoles": { SchemaProps: spec.SchemaProps{ - Description: "Email is the new email of the user", - Type: []string{"string"}, - Format: "", + Description: "ManagementRoles gives information about the user's assigned management roles", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.ManagementRole{}.OpenAPIModelName()), + }, + }, + }, }, }, - "icon": { + "clusterAccessRoles": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the new icon of the user", - Type: []string{"string"}, - Format: "", + Description: "ClustersAccessRoles gives information about the user's assigned cluster roles and the clusters they apply to", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.ClusterAccessRole{}.OpenAPIModelName()), + }, + }, + }, }, }, - "custom": { + "virtualClusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "Custom is custom information that should be saved of the user", - Type: []string{"string"}, - Format: "", + Description: "VirtualClusterRoles give information about the user's cluster role within the virtual cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterRole{}.OpenAPIModelName()), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.ClusterAccessRole{}.OpenAPIModelName(), managementv1.ManagementRole{}.OpenAPIModelName(), managementv1.ObjectName{}.OpenAPIModelName(), managementv1.ProjectMembership{}.OpenAPIModelName(), managementv1.UserPermissionsRole{}.OpenAPIModelName(), managementv1.VirtualClusterRole{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17287,7 +19840,7 @@ func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -17297,7 +19850,7 @@ func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile"), + Ref: ref(managementv1.UserPermissions{}.OpenAPIModelName()), }, }, }, @@ -17308,7 +19861,227 @@ func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.UserPermissions{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_UserPermissionsRole(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "clusterRole": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRole is the name of the cluster role assigned to this user.", + Type: []string{"string"}, + Format: "", + }, + }, + "role": { + SchemaProps: spec.SchemaProps{ + Description: "Role is the name of the role assigned to this user.", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace where this rules are valid.", + Type: []string{"string"}, + Format: "", + }, + }, + "rules": { + SchemaProps: spec.SchemaProps{ + Description: "Rules are the roles rules", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(rbacv1.PolicyRule{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + rbacv1.PolicyRule{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_UserProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "The new display name shown in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + Description: "Username is the new username of the user", + Type: []string{"string"}, + Format: "", + }, + }, + "password": { + SchemaProps: spec.SchemaProps{ + Description: "Password is the new password of the user", + Type: []string{"string"}, + Format: "", + }, + }, + "currentPassword": { + SchemaProps: spec.SchemaProps{ + Description: "CurrentPassword is the current password of the user", + Type: []string{"string"}, + Format: "", + }, + }, + "email": { + SchemaProps: spec.SchemaProps{ + Description: "Email is the new email of the user", + Type: []string{"string"}, + Format: "", + }, + }, + "icon": { + SchemaProps: spec.SchemaProps{ + Description: "Icon is the new icon of the user", + Type: []string{"string"}, + Format: "", + }, + }, + "custom": { + SchemaProps: spec.SchemaProps{ + Description: "Custom is custom information that should be saved of the user", + Type: []string{"string"}, + Format: "", + }, + }, + "secrets": { + SchemaProps: spec.SchemaProps{ + Description: "Secrets is a map of secret names to secret data", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(managementv1.UserProfileSecret{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.UserProfileSecret{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.UserProfile{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.UserProfile{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_UserProfileSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + 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: "", + }, + }, + }, + }, + }, } } @@ -17417,7 +20190,7 @@ func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "username": { @@ -17481,13 +20254,13 @@ func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common "passwordRef": { SchemaProps: spec.SchemaProps{ Description: "A reference to the user password", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + Ref: ref(apisstoragev1.SecretRef{}.OpenAPIModelName()), }, }, "codesRef": { SchemaProps: spec.SchemaProps{ Description: "A reference to the users access keys", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + Ref: ref(apisstoragev1.SecretRef{}.OpenAPIModelName()), }, }, "imagePullSecrets": { @@ -17497,7 +20270,7 @@ func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), + Ref: ref(apisstoragev1.KindSecretRef{}.OpenAPIModelName()), }, }, }, @@ -17525,7 +20298,7 @@ func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), + Ref: ref(apisstoragev1.ClusterRoleRef{}.OpenAPIModelName()), }, }, }, @@ -17539,7 +20312,23 @@ func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "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: "", }, }, }, @@ -17549,7 +20338,7 @@ func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.ClusterRoleRef{}.OpenAPIModelName(), apisstoragev1.KindSecretRef{}.OpenAPIModelName(), apisstoragev1.SecretRef{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -17646,7 +20435,7 @@ func schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref common.ReferenceC "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "accessKey": { @@ -17660,7 +20449,7 @@ func schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -17687,7 +20476,7 @@ func schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref common.Refere "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -17697,7 +20486,7 @@ func schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(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.VirtualClusterAccessKey"), + Ref: ref(managementv1.VirtualClusterAccessKey{}.OpenAPIModelName()), }, }, }, @@ -17708,62 +20497,141 @@ func schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref common.Refere }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.VirtualClusterAccessKey{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterDebugShellPodStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstance holds the VirtualClusterInstance information", + Description: "VirtualClusterDebugShellPodStatus contains selectable vcluster pod metadata.", 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", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "phase": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "ready": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterDebugShellPodsStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "pods": { + SchemaProps: spec.SchemaProps{ + Description: "Pods are available virtual cluster pods that can be selected for debug shell.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterDebugShellPodStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterDebugShellPodStatus{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterDebugShellSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterDebugShellSpec defines the target pod for the debug shell.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "podName": { + SchemaProps: spec.SchemaProps{ + Description: "PodName specifies which virtual cluster replica should get ephemeral container. This is needed to virtual cluster deployed with HA (3+ replicas)", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterDebugShellStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterDebugShellStatus returns the resolved pod/container for the shell.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "containerName": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "ContainerName is the name of ephemeral container that was created", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "target": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "TargetName is the target name of ephemeral container", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "podName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec"), + Description: "PodName is the name of the virtual cluster pod", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "podNamespace": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus"), + Description: "PodNamespace is the namespace of the virtual cluster pod", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - 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 { +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(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", + Description: "VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -17783,30 +20651,30 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref common.R "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec"), + Ref: ref(managementv1.VirtualClusterExternalDatabaseSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus"), + Ref: ref(managementv1.VirtualClusterExternalDatabaseStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.VirtualClusterExternalDatabaseSpec{}.OpenAPIModelName(), managementv1.VirtualClusterExternalDatabaseStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(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{ @@ -17829,7 +20697,7 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref comm "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -17839,7 +20707,7 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig"), + Ref: ref(managementv1.VirtualClusterExternalDatabase{}.OpenAPIModelName()), }, }, }, @@ -17850,21 +20718,21 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref comm }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.VirtualClusterExternalDatabase{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "certificateTTL": { + "connector": { SchemaProps: spec.SchemaProps{ - Description: "CertificateTTL holds the ttl (in seconds) to set for the certificate associated with the returned kubeconfig. This field is optional, if no value is provided, the certificate TTL will be set to one day. If set to zero, this will cause loft to pass nil to the certificate signing request, which will result in the certificate being valid for the clusters `cluster-signing-duration` value which is typically one year.", - Type: []string{"integer"}, - Format: "int32", + 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: "", }, }, }, @@ -17873,15 +20741,22 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref comm } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_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{ - "kubeConfig": { + "dataSource": { SchemaProps: spec.SchemaProps{ - Description: "KubeConfig holds the final kubeconfig output", + 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: "", }, @@ -17892,11 +20767,12 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref co } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterInstance holds the VirtualClusterInstance information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -17915,36 +20791,35 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref common.Referen "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "items": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterInstanceSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterInstanceStatus{}.OpenAPIModelName()), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.VirtualClusterInstanceSpec{}.OpenAPIModelName(), managementv1.VirtualClusterInstanceStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceDebugShell(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterDebugShell creates (or returns) an ephemeral debug-shell container in a virtual cluster pod for the requesting user.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -17963,18 +20838,30 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref common.Referenc "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterDebugShellSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterDebugShellStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + managementv1.VirtualClusterDebugShellSpec{}.OpenAPIModelName(), managementv1.VirtualClusterDebugShellStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceDebugShellList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17997,7 +20884,7 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.Refe "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -18007,7 +20894,7 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog"), + Ref: ref(managementv1.VirtualClusterInstanceDebugShell{}.OpenAPIModelName()), }, }, }, @@ -18018,11 +20905,11 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.Refe }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.VirtualClusterInstanceDebugShell{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceDebugShellPods(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18042,167 +20929,192 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref common.R Format: "", }, }, - "container": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The container for which to stream logs. Defaults to only container if there is one container in the pod.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "follow": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Follow the log stream of the pod. Defaults to false.", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterDebugShellPodsStatus{}.OpenAPIModelName()), }, }, - "previous": { + }, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterDebugShellPodsStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceDebugShellPodsList(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: "Return previous terminated container logs. Defaults to false.", - Type: []string{"boolean"}, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, Format: "", }, }, - "sinceSeconds": { - SchemaProps: spec.SchemaProps{ - Description: "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "sinceTime": { - SchemaProps: spec.SchemaProps{ - Description: "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "timestamps": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, Format: "", }, }, - "tailLines": { - SchemaProps: spec.SchemaProps{ - Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "limitBytes": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", - Type: []string{"integer"}, - Format: "int64", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "insecureSkipTLSVerifyBackend": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", - Type: []string{"boolean"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterInstanceDebugShellPods{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + managementv1.VirtualClusterInstanceDebugShellPods{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstanceSpec holds the specification", + Description: "VirtualClusterInstanceKubeConfig holds kube config request and response data for virtual clusters", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a virtual cluster instance", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "templateRef": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the virtual cluster template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterInstanceKubeConfigSpec{}.OpenAPIModelName()), }, }, - "template": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for virtual cluster creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterInstanceKubeConfigStatus{}.OpenAPIModelName()), }, }, - "clusterRef": { + }, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterInstanceKubeConfigSpec{}.OpenAPIModelName(), managementv1.VirtualClusterInstanceKubeConfigStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRef is the reference to the connected cluster holding this virtual cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "parameters": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "extraAccessRules": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "access": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Access to the virtual cluster object itself", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref(managementv1.VirtualClusterInstanceKubeConfig{}.OpenAPIModelName()), }, }, }, }, }, - "networkPeer": { - SchemaProps: spec.SchemaProps{ - Description: "NetworkPeer specifies if the cluster is connected via tailscale.", - Type: []string{"boolean"}, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterInstanceKubeConfig{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "certificateTTL": { + SchemaProps: spec.SchemaProps{ + Description: "CertificateTTL holds the ttl (in seconds) to set for the certificate associated with the returned kubeconfig. This field is optional, if no value is provided, the certificate TTL will be set to one day. If set to zero, this will cause loft to pass nil to the certificate signing request, which will result in the certificate being valid for the clusters `cluster-signing-duration` value which is typically one year.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "server": { + SchemaProps: spec.SchemaProps{ + Description: "Server allows user to override server in the kubeconfig.", + Type: []string{"string"}, Format: "", }, }, - "external": { + "clientCert": { SchemaProps: spec.SchemaProps{ - Description: "External specifies if the virtual cluster is managed by the platform agent or externally.", + Description: "ClientCert, if set to true, will return kube config with generated client certs instead of platform token", Type: []string{"boolean"}, Format: "", }, @@ -18210,115 +21122,236 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(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.InstanceAccessRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstanceStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "kubeConfig": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the virtual cluster instance is in", + Description: "KubeConfig holds the final kubeconfig output", Type: []string{"string"}, Format: "", }, }, - "reason": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "message": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the cluster is in the current phase", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "serviceUID": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ServiceUID is the service uid of the virtual cluster to uniquely identify it.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterInstance{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterInstance{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "deployHash": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "DeployHash is the hash of the last deployed values.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "conditions": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", - Type: []string{"array"}, + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + Ref: ref(managementv1.VirtualClusterInstanceLog{}.OpenAPIModelName()), }, }, }, }, }, - "virtualClusterObjects": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterInstanceLog{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "spaceObjects": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "SpaceObjects are the objects that were applied within the virtual cluster space", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "virtualCluster": { + "container": { SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + Description: "The container for which to stream logs. Defaults to only container if there is one container in the pod.", + Type: []string{"string"}, + Format: "", }, }, - "ignoreReconciliation": { + "follow": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", + Description: "Follow the log stream of the pod. Defaults to false.", Type: []string{"boolean"}, Format: "", }, }, - "sleepModeConfig": { + "previous": { SchemaProps: spec.SchemaProps{ - Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + Description: "Return previous terminated container logs. Defaults to false.", + Type: []string{"boolean"}, + Format: "", }, }, - "canUse": { + "sinceSeconds": { SchemaProps: spec.SchemaProps{ - Description: "CanUse specifies if the requester can use the instance", - Type: []string{"boolean"}, - Format: "", + Description: "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + Type: []string{"integer"}, + Format: "int64", }, }, - "canUpdate": { + "sinceTime": { SchemaProps: spec.SchemaProps{ - Description: "CanUpdate specifies if the requester can update the instance", + Description: "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "timestamps": { + SchemaProps: spec.SchemaProps{ + Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", Type: []string{"boolean"}, Format: "", }, }, - "online": { + "tailLines": { SchemaProps: spec.SchemaProps{ - Description: "Online specifies if there is at least one network peer available for an agentless vCluster.", + Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "limitBytes": { + SchemaProps: spec.SchemaProps{ + Description: "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "insecureSkipTLSVerifyBackend": { + SchemaProps: spec.SchemaProps{ + Description: "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", Type: []string{"boolean"}, Format: "", }, @@ -18327,15 +21360,15 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.Refer }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceShell(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplate holds the information", + Description: "VirtualClusterInstanceShell creates a pod for the requesting user", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -18355,30 +21388,30 @@ func schema_pkg_apis_management_v1_VirtualClusterTemplate(ref common.ReferenceCa "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec"), + Ref: ref(managementv1.VirtualClusterShellSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus"), + Ref: ref(managementv1.VirtualClusterShellStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + managementv1.VirtualClusterShellSpec{}.OpenAPIModelName(), managementv1.VirtualClusterShellStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceShellList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18401,7 +21434,7 @@ func schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref common.Referen "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -18411,7 +21444,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(managementv1.VirtualClusterInstanceShell{}.OpenAPIModelName()), }, }, }, @@ -18422,114 +21455,112 @@ 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"}, + managementv1.VirtualClusterInstanceShell{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshot(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplateSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that is shown in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes the virtual cluster template", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { + "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(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "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(managementv1.VirtualClusterInstanceSnapshotStatus{}.OpenAPIModelName()), }, }, - "parameters": { + }, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterInstanceSnapshotStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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: "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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref(managementv1.VirtualClusterInstanceSnapshot{}.OpenAPIModelName()), }, }, }, }, }, - "spaceTemplateRef": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: SpaceTemplate to use to create the virtual cluster space if it does not exist", - Ref: ref("github.com/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"}, + managementv1.VirtualClusterInstanceSnapshot{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplateStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "apps": { + "snapshotTaken": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Default: map[string]interface{}{}, + Ref: ref(managementv1.SnapshotTaken{}.OpenAPIModelName()), }, }, }, @@ -18539,219 +21570,248 @@ func schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref common.Refer }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + managementv1.SnapshotTaken{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_Access(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Access describes the access to a secret", + Description: "VirtualClusterInstanceSpec holds the specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Name is an optional name that is used for this access rule", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "verbs": { + "description": { 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: "Description describes a virtual cluster instance", + Type: []string{"string"}, + Format: "", }, }, - "subresources": { + "owner": { 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: "Owner holds the owner of this object", + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, - "users": { + "templateRef": { SchemaProps: spec.SchemaProps{ - Description: "Users specifies which users should be able to access this secret with the aforementioned verbs", + Description: "TemplateRef holds the virtual cluster template reference", + Ref: ref(apisstoragev1.TemplateRef{}.OpenAPIModelName()), + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template is the inline template to use for virtual cluster creation. This is mutually exclusive with templateRef.", + Ref: ref(apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName()), + }, + }, + "clusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRef is the reference to the connected cluster holding this virtual cluster", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.VirtualClusterClusterRef{}.OpenAPIModelName()), + }, + }, + "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: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.InstanceAccessRule{}.OpenAPIModelName()), }, }, }, }, }, - "teams": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Teams specifies which teams should be able to access this secret with the aforementioned verbs", + Description: "Access to the virtual cluster object itself", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, }, }, - }, - 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": { + "networkPeer": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, + Description: "NetworkPeer specifies if the cluster is connected via tailscale.", + Type: []string{"boolean"}, Format: "", }, }, - "apiVersion": { + "external": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, + Description: "External specifies if the virtual cluster is managed by the platform agent or externally.", + Type: []string{"boolean"}, 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": { + "standalone": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyStatus"), + Description: "Standalone specifies if the virtual cluster is standalone and not hosted in another Kubernetes cluster.", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, 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"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.InstanceAccessRule{}.OpenAPIModelName(), apisstoragev1.TemplateRef{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName(), apisstoragev1.VirtualClusterClusterRef{}.OpenAPIModelName(), apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_AccessKeyIdentity(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterInstanceStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "userId": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "The subject of the user", + Description: "Phase describes the current phase the virtual cluster instance is in", Type: []string{"string"}, Format: "", }, }, - "username": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "The username", + Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", Type: []string{"string"}, Format: "", }, }, - "preferredUsername": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "The preferred username / display name", + Description: "Message describes the reason in human-readable form why the cluster is in the current phase", Type: []string{"string"}, Format: "", }, }, - "email": { + "serviceUID": { SchemaProps: spec.SchemaProps{ - Description: "The user email", + Description: "ServiceUID is the service uid of the virtual cluster to uniquely identify it.", Type: []string{"string"}, Format: "", }, }, - "emailVerified": { + "kubernetesVersion": { SchemaProps: spec.SchemaProps{ - Description: "If the user email was verified", - Type: []string{"boolean"}, + Description: "KubernetesVersion is the Kubernetes version of the virtual cluster.", + Type: []string{"string"}, Format: "", }, }, - "groups": { + "deployHash": { SchemaProps: spec.SchemaProps{ - Description: "The groups from the identity provider", + Description: "DeployHash is the hash of the last deployed values.", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the virtual cluster might be in", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(storagev1.Condition{}.OpenAPIModelName()), }, }, }, }, }, - "connector": { + "virtualClusterObjects": { SchemaProps: spec.SchemaProps{ - Description: "Connector is the name of the connector this access key was created from", - Type: []string{"string"}, + Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", + Ref: ref(apisstoragev1.ObjectsStatus{}.OpenAPIModelName()), + }, + }, + "spaceObjects": { + SchemaProps: spec.SchemaProps{ + Description: "SpaceObjects are the objects that were applied within the virtual cluster space", + Ref: ref(apisstoragev1.ObjectsStatus{}.OpenAPIModelName()), + }, + }, + "virtualCluster": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualCluster is the template rendered with all the parameters", + Ref: ref(apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName()), + }, + }, + "ignoreReconciliation": { + SchemaProps: spec.SchemaProps{ + Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", + Type: []string{"boolean"}, Format: "", }, }, - "connectorData": { + "sleepModeConfig": { 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", + Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", + Ref: ref(v1.SleepModeConfig{}.OpenAPIModelName()), + }, + }, + "canUse": { + SchemaProps: spec.SchemaProps{ + Description: "CanUse specifies if the requester can use the instance", + Type: []string{"boolean"}, + Format: "", + }, + }, + "canUpdate": { + SchemaProps: spec.SchemaProps{ + Description: "CanUpdate specifies if the requester can update the instance", + Type: []string{"boolean"}, + Format: "", + }, + }, + "online": { + SchemaProps: spec.SchemaProps{ + Description: "Online specifies if there is at least one network peer available for an agentless vCluster.", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, + Dependencies: []string{ + v1.SleepModeConfig{}.OpenAPIModelName(), storagev1.Condition{}.OpenAPIModelName(), apisstoragev1.ObjectsStatus{}.OpenAPIModelName(), apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_AccessKeyList(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: "AccessKeyList contains a list of AccessKey", + Description: "VirtualClusterNodeAccessKey holds the access key for the virtual cluster", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -18771,17 +21831,561 @@ func schema_pkg_apis_storage_v1_AccessKeyList(ref common.ReferenceCallback) comm "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "items": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterNodeAccessKeySpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterNodeAccessKeyStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterNodeAccessKeySpec{}.OpenAPIModelName(), managementv1.VirtualClusterNodeAccessKeyStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterNodeAccessKey{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterNodeAccessKey{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "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{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterResourceUsageStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterResourceUsageStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterResourceUsage{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterResourceUsage{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterResourceUsageMap(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "nodes": { + SchemaProps: spec.SchemaProps{ + 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{ + 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(managementv1.VirtualClusterResourceUsageMap{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterResourceUsageMap{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterRole(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "role": { + SchemaProps: spec.SchemaProps{ + Description: "Role is the cluster role inside the virtual cluster. One of cluster-admin, admin, edit, or view", + Type: []string{"string"}, + Format: "", + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref(managementv1.AssignedVia{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.AssignedVia{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterSchema(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterSchema holds config request and response data for virtual clusters", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterSchemaSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterSchemaStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterSchemaSpec{}.OpenAPIModelName(), managementv1.VirtualClusterSchemaStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterSchema{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterSchema{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterSchemaSpec holds the specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the version of the virtual cluster", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterSchemaStatus holds the status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "schema": { + SchemaProps: spec.SchemaProps{ + Description: "Schema is the schema of the virtual cluster", + Type: []string{"string"}, + Format: "", + }, + }, + "defaultValues": { + SchemaProps: spec.SchemaProps{ + Description: "DefaultValues are the default values of the virtual cluster", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_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{ + "podName": { + SchemaProps: spec.SchemaProps{ + Description: "PodName is the name of the shell pod that was created", + Type: []string{"string"}, + Format: "", + }, + }, + "podNamespace": { + SchemaProps: spec.SchemaProps{ + Description: "PodNamespace is the namespace of the shell pod that was created", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterStandalone(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterStandalone holds kube config request and response data for virtual clusters", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterStandaloneSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterStandaloneStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterStandaloneSpec{}.OpenAPIModelName(), managementv1.VirtualClusterStandaloneStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + 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"), + Ref: ref(managementv1.VirtualClusterStandalone{}.OpenAPIModelName()), }, }, }, @@ -18792,7 +22396,531 @@ func schema_pkg_apis_storage_v1_AccessKeyList(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + managementv1.VirtualClusterStandalone{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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{ + "currentPeer": { + SchemaProps: spec.SchemaProps{ + Description: "CurrentPeer is the current peer that calls this API. The API will make sure this peer is added to the etcd peers list. If this is the first peer, it will be the coordinator.", + Default: map[string]interface{}{}, + Ref: ref(managementv1.StandaloneEtcdPeer{}.OpenAPIModelName()), + }, + }, + "currentPKI": { + SchemaProps: spec.SchemaProps{ + Description: "CurrentPKI contains certs bundle for vCluster", + Default: map[string]interface{}{}, + Ref: ref(managementv1.StandalonePKI{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"currentPeer", "currentPKI"}, + }, + }, + Dependencies: []string{ + managementv1.StandaloneEtcdPeer{}.OpenAPIModelName(), managementv1.StandalonePKI{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterStandaloneStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "etcdPeers": { + SchemaProps: spec.SchemaProps{ + Description: "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(managementv1.StandaloneEtcdPeerCoordinator{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "currentPKI": { + SchemaProps: spec.SchemaProps{ + Description: "PKI returns certs bundle for vCluster", + Default: map[string]interface{}{}, + Ref: ref(managementv1.StandalonePKI{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"etcdPeers", "currentPKI"}, + }, + }, + Dependencies: []string{ + managementv1.StandaloneEtcdPeerCoordinator{}.OpenAPIModelName(), managementv1.StandalonePKI{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterTemplate holds the information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterTemplateSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterTemplateStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterTemplateSpec{}.OpenAPIModelName(), managementv1.VirtualClusterTemplateStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.VirtualClusterTemplate{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + managementv1.VirtualClusterTemplate{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template holds the virtual cluster template", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName()), + }, + }, + "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(apisstoragev1.AppParameter{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "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(apisstoragev1.VirtualClusterTemplateVersion{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "spaceTemplateRef": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: SpaceTemplate to use to create the virtual cluster space if it does not exist", + Ref: ref(apisstoragev1.VirtualClusterTemplateSpaceTemplateRef{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.AppParameter{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName(), apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName(), apisstoragev1.VirtualClusterTemplateSpaceTemplateRef{}.OpenAPIModelName(), apisstoragev1.VirtualClusterTemplateVersion{}.OpenAPIModelName()}, + } +} + +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(apisstoragev1.EntityInfo{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.EntityInfo{}.OpenAPIModelName()}, + } +} + +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(managementv1.SnapshotRequestError{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"error"}, + }, + }, + Dependencies: []string{ + managementv1.SnapshotRequestError{}.OpenAPIModelName()}, + } +} + +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(managementv1.VolumeSnapshotRequestStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "error": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(managementv1.SnapshotRequestError{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"error"}, + }, + }, + Dependencies: []string{ + managementv1.SnapshotRequestError{}.OpenAPIModelName(), managementv1.VolumeSnapshotRequestStatus{}.OpenAPIModelName()}, + } +} + +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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.AccessKeySpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.AccessKeyStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.AccessKeySpec{}.OpenAPIModelName(), apisstoragev1.AccessKeyStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.AccessKey{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + apisstoragev1.AccessKey{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -18826,14 +22954,14 @@ func schema_pkg_apis_storage_v1_AccessKeyOIDC(ref common.ReferenceCallback) comm "lastRefresh": { SchemaProps: spec.SchemaProps{ Description: "The last time the id token was refreshed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -18891,7 +23019,7 @@ func schema_pkg_apis_storage_v1_AccessKeyScope(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRole"), + Ref: ref(apisstoragev1.AccessKeyScopeRole{}.OpenAPIModelName()), }, }, }, @@ -18905,7 +23033,7 @@ func schema_pkg_apis_storage_v1_AccessKeyScope(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeProject"), + Ref: ref(apisstoragev1.AccessKeyScopeProject{}.OpenAPIModelName()), }, }, }, @@ -18919,7 +23047,7 @@ func schema_pkg_apis_storage_v1_AccessKeyScope(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeSpace"), + Ref: ref(apisstoragev1.AccessKeyScopeSpace{}.OpenAPIModelName()), }, }, }, @@ -18933,7 +23061,7 @@ func schema_pkg_apis_storage_v1_AccessKeyScope(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster"), + Ref: ref(apisstoragev1.AccessKeyScopeVirtualCluster{}.OpenAPIModelName()), }, }, }, @@ -18947,7 +23075,7 @@ func schema_pkg_apis_storage_v1_AccessKeyScope(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeCluster"), + Ref: ref(apisstoragev1.AccessKeyScopeCluster{}.OpenAPIModelName()), }, }, }, @@ -18961,7 +23089,7 @@ func schema_pkg_apis_storage_v1_AccessKeyScope(ref common.ReferenceCallback) com 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(apisstoragev1.AccessKeyScopeRule{}.OpenAPIModelName()), }, }, }, @@ -18978,7 +23106,7 @@ func schema_pkg_apis_storage_v1_AccessKeyScope(ref common.ReferenceCallback) com }, }, 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"}, + apisstoragev1.AccessKeyScopeCluster{}.OpenAPIModelName(), apisstoragev1.AccessKeyScopeProject{}.OpenAPIModelName(), apisstoragev1.AccessKeyScopeRole{}.OpenAPIModelName(), apisstoragev1.AccessKeyScopeRule{}.OpenAPIModelName(), apisstoragev1.AccessKeyScopeSpace{}.OpenAPIModelName(), apisstoragev1.AccessKeyScopeVirtualCluster{}.OpenAPIModelName()}, } } @@ -19028,10 +23156,10 @@ func schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref common.ReferenceCallback) 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\"`", + 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"}, + Enum: []interface{}{"agent", "loft-cli", "network-peer", "runner", "vcluster", "workspace"}, }, }, "projects": { @@ -19100,7 +23228,7 @@ func schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources"), + Ref: ref(apisstoragev1.GroupResources{}.OpenAPIModelName()), }, }, }, @@ -19166,7 +23294,7 @@ func schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyVirtualCluster"), + Ref: ref(apisstoragev1.AccessKeyVirtualCluster{}.OpenAPIModelName()), }, }, }, @@ -19176,7 +23304,7 @@ func schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyVirtualCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources"}, + apisstoragev1.AccessKeyVirtualCluster{}.OpenAPIModelName(), apisstoragev1.GroupResources{}.OpenAPIModelName()}, } } @@ -19319,7 +23447,7 @@ func schema_pkg_apis_storage_v1_AccessKeySpec(ref common.ReferenceCallback) comm "scope": { SchemaProps: spec.SchemaProps{ Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + Ref: ref(apisstoragev1.AccessKeyScope{}.OpenAPIModelName()), }, }, "type": { @@ -19332,19 +23460,19 @@ 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(apisstoragev1.SSOIdentity{}.OpenAPIModelName()), }, }, "identityRefresh": { SchemaProps: spec.SchemaProps{ Description: "The last time the identity was refreshed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "oidcProvider": { SchemaProps: spec.SchemaProps{ Description: "If the token is a refresh token, contains information about it", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + Ref: ref(apisstoragev1.AccessKeyOIDCProvider{}.OpenAPIModelName()), }, }, "parent": { @@ -19357,14 +23485,14 @@ func schema_pkg_apis_storage_v1_AccessKeySpec(ref common.ReferenceCallback) comm "oidcLogin": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), + Ref: ref(apisstoragev1.AccessKeyOIDC{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + apisstoragev1.AccessKeyOIDC{}.OpenAPIModelName(), apisstoragev1.AccessKeyOIDCProvider{}.OpenAPIModelName(), apisstoragev1.AccessKeyScope{}.OpenAPIModelName(), apisstoragev1.SSOIdentity{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -19378,14 +23506,14 @@ func schema_pkg_apis_storage_v1_AccessKeyStatus(ref common.ReferenceCallback) co "lastActivity": { SchemaProps: spec.SchemaProps{ Description: "The last time this access key was used to access the api", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -19536,26 +23664,26 @@ func schema_pkg_apis_storage_v1_App(ref common.ReferenceCallback) common.OpenAPI "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppSpec"), + Ref: ref(apisstoragev1.AppSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppStatus"), + Ref: ref(apisstoragev1.AppStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.AppSpec{}.OpenAPIModelName(), apisstoragev1.AppStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -19590,7 +23718,7 @@ func schema_pkg_apis_storage_v1_AppConfig(ref common.ReferenceCallback) common.O SchemaProps: spec.SchemaProps{ Description: "Config is the helm config to use to deploy the helm release", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), + Ref: ref(v1.HelmReleaseConfig{}.OpenAPIModelName()), }, }, "wait": { @@ -19615,7 +23743,7 @@ func schema_pkg_apis_storage_v1_AppConfig(ref common.ReferenceCallback) common.O 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(apisstoragev1.AppParameter{}.OpenAPIModelName()), }, }, }, @@ -19624,14 +23752,14 @@ func schema_pkg_apis_storage_v1_AppConfig(ref common.ReferenceCallback) common.O "streamContainer": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: Use config.bash instead StreamContainer can be used to stream a containers logs instead of the helm output.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"), + Ref: ref(apisstoragev1.StreamContainer{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"}, + v1.HelmReleaseConfig{}.OpenAPIModelName(), apisstoragev1.AppParameter{}.OpenAPIModelName(), apisstoragev1.StreamContainer{}.OpenAPIModelName()}, } } @@ -19659,7 +23787,7 @@ func schema_pkg_apis_storage_v1_AppList(ref common.ReferenceCallback) common.Ope "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -19669,7 +23797,7 @@ func schema_pkg_apis_storage_v1_AppList(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.App"), + Ref: ref(apisstoragev1.App{}.OpenAPIModelName()), }, }, }, @@ -19680,7 +23808,7 @@ func schema_pkg_apis_storage_v1_AppList(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.App", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.App{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -19829,6 +23957,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", @@ -19866,7 +24001,7 @@ func schema_pkg_apis_storage_v1_AppSpec(ref common.ReferenceCallback) common.Ope "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "clusters": { @@ -19924,7 +24059,7 @@ func schema_pkg_apis_storage_v1_AppSpec(ref common.ReferenceCallback) common.Ope SchemaProps: spec.SchemaProps{ Description: "Config is the helm config to use to deploy the helm release", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), + Ref: ref(v1.HelmReleaseConfig{}.OpenAPIModelName()), }, }, "wait": { @@ -19949,7 +24084,7 @@ func schema_pkg_apis_storage_v1_AppSpec(ref common.ReferenceCallback) common.Ope 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(apisstoragev1.AppParameter{}.OpenAPIModelName()), }, }, }, @@ -19958,7 +24093,7 @@ func schema_pkg_apis_storage_v1_AppSpec(ref common.ReferenceCallback) common.Ope "streamContainer": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: Use config.bash instead StreamContainer can be used to stream a containers logs instead of the helm output.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"), + Ref: ref(apisstoragev1.StreamContainer{}.OpenAPIModelName()), }, }, "versions": { @@ -19969,7 +24104,7 @@ func schema_pkg_apis_storage_v1_AppSpec(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion"), + Ref: ref(apisstoragev1.AppVersion{}.OpenAPIModelName()), }, }, }, @@ -19983,7 +24118,7 @@ func schema_pkg_apis_storage_v1_AppSpec(ref common.ReferenceCallback) common.Ope 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -19999,14 +24134,14 @@ func schema_pkg_apis_storage_v1_AppSpec(ref common.ReferenceCallback) common.Ope "helm": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: Use config instead helm defines the configuration for a helm deployment", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration"), + Ref: ref(apisstoragev1.HelmConfiguration{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + v1.HelmReleaseConfig{}.OpenAPIModelName(), apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.AppParameter{}.OpenAPIModelName(), apisstoragev1.AppVersion{}.OpenAPIModelName(), apisstoragev1.HelmConfiguration{}.OpenAPIModelName(), apisstoragev1.StreamContainer{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -20045,14 +24180,14 @@ func schema_pkg_apis_storage_v1_AppTask(ref common.ReferenceCallback) common.Ope SchemaProps: spec.SchemaProps{ Description: "AppReference is the reference to the app to deploy", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"), + Ref: ref(apisstoragev1.AppReference{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"}, + apisstoragev1.AppReference{}.OpenAPIModelName()}, } } @@ -20087,7 +24222,7 @@ func schema_pkg_apis_storage_v1_AppVersion(ref common.ReferenceCallback) common. SchemaProps: spec.SchemaProps{ Description: "Config is the helm config to use to deploy the helm release", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), + Ref: ref(v1.HelmReleaseConfig{}.OpenAPIModelName()), }, }, "wait": { @@ -20112,7 +24247,7 @@ func schema_pkg_apis_storage_v1_AppVersion(ref common.ReferenceCallback) common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), + Ref: ref(apisstoragev1.AppParameter{}.OpenAPIModelName()), }, }, }, @@ -20121,7 +24256,7 @@ func schema_pkg_apis_storage_v1_AppVersion(ref common.ReferenceCallback) common. "streamContainer": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: Use config.bash instead StreamContainer can be used to stream a containers logs instead of the helm output.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"), + Ref: ref(apisstoragev1.StreamContainer{}.OpenAPIModelName()), }, }, "version": { @@ -20135,7 +24270,7 @@ func schema_pkg_apis_storage_v1_AppVersion(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer"}, + v1.HelmReleaseConfig{}.OpenAPIModelName(), apisstoragev1.AppParameter{}.OpenAPIModelName(), apisstoragev1.StreamContainer{}.OpenAPIModelName()}, } } @@ -20176,20 +24311,20 @@ func schema_pkg_apis_storage_v1_ArgoIntegrationSpec(ref common.ReferenceCallback "sso": { SchemaProps: spec.SchemaProps{ Description: "SSO defines single-sign-on related values for the ArgoCD Integration. Enabling SSO will allow users to authenticate to ArgoCD via Loft.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoSSOSpec"), + Ref: ref(apisstoragev1.ArgoSSOSpec{}.OpenAPIModelName()), }, }, "project": { SchemaProps: spec.SchemaProps{ Description: "Project defines project related values for the ArgoCD Integration. Enabling Project integration will cause Loft to generate and manage an ArgoCD appProject that corresponds to the Loft Project.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpec"), + Ref: ref(apisstoragev1.ArgoProjectSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoSSOSpec"}, + apisstoragev1.ArgoProjectSpec{}.OpenAPIModelName(), apisstoragev1.ArgoSSOSpec{}.OpenAPIModelName()}, } } @@ -20254,7 +24389,7 @@ func schema_pkg_apis_storage_v1_ArgoProjectRole(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.ArgoProjectPolicyRule"), + Ref: ref(apisstoragev1.ArgoProjectPolicyRule{}.OpenAPIModelName()), }, }, }, @@ -20279,7 +24414,7 @@ func schema_pkg_apis_storage_v1_ArgoProjectRole(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectPolicyRule"}, + apisstoragev1.ArgoProjectPolicyRule{}.OpenAPIModelName()}, } } @@ -20300,7 +24435,7 @@ func schema_pkg_apis_storage_v1_ArgoProjectSpec(ref common.ReferenceCallback) co SchemaProps: spec.SchemaProps{ Description: "Metadata defines additional metadata to attach to the loft created project in ArgoCD.", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpecMetadata"), + Ref: ref(apisstoragev1.ArgoProjectSpecMetadata{}.OpenAPIModelName()), }, }, "sourceRepos": { @@ -20326,7 +24461,78 @@ func schema_pkg_apis_storage_v1_ArgoProjectSpec(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.ArgoProjectRole"), + Ref: ref(apisstoragev1.ArgoProjectRole{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "clusterResourceWhitelist": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterResourceWhitelist contains a list of whitelisted cluster level resources If not specified or empty, deny all cluster-scope resources.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.GroupKind{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "namespaceResourceWhitelist": { + SchemaProps: spec.SchemaProps{ + Description: "NamespaceResourceWhitelist contains a list of whitelisted namespace level resources If not specified or empty, allow all namespace-scope resources.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.GroupKind{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "clusterResourceBlacklist": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterResourceBlacklist contains a list of blacklisted cluster level resources", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.GroupKind{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "namespaceResourceBlacklist": { + SchemaProps: spec.SchemaProps{ + Description: "NamespaceResourceBlacklist contains a list of blacklisted namespace level resources", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.GroupKind{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "sourceNamespaces": { + SchemaProps: spec.SchemaProps{ + Description: "SourceNamespaces defines the namespaces application resources are allowed to be created in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -20336,7 +24542,7 @@ func schema_pkg_apis_storage_v1_ArgoProjectSpec(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectRole", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpecMetadata"}, + apisstoragev1.ArgoProjectRole{}.OpenAPIModelName(), apisstoragev1.ArgoProjectSpecMetadata{}.OpenAPIModelName(), metav1.GroupKind{}.OpenAPIModelName()}, } } @@ -20432,6 +24638,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(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref(apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName()), + }, + }, + "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(apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName()), + }, + }, + "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{ + apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName(), apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, + } +} + func schema_pkg_apis_storage_v1_Chart(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -20537,26 +24860,170 @@ func schema_pkg_apis_storage_v1_Cluster(ref common.ReferenceCallback) common.Ope "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterSpec"), + Ref: ref(apisstoragev1.ClusterSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterStatus"), + Ref: ref(apisstoragev1.ClusterStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.ClusterSpec{}.OpenAPIModelName(), apisstoragev1.ClusterStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref(apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName()), + }, + }, + "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(apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName()), + }, + }, + "infrastructureMachineTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "InfrastructureMachineTemplate is a template for the infrastructure machine, e.g. AWSMachine", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), + }, + }, + "bootstrapConfigTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "BootstrapConfigTemplate is a template for the bootstrap config. Currently only KubeadmConfig is supported.", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), + }, + }, + "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(runtime.RawExtension{}.OpenAPIModelName()), + }, + }, + "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(runtime.RawExtension{}.OpenAPIModelName()), + }, + }, + "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{ + apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName(), apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, + } +} + +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(runtime.RawExtension{}.OpenAPIModelName()), + }, + }, + "bootstrapConfigTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "BootstrapConfigTemplate is a template for the bootstrap config. Currently only KubeadmConfig is supported.", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + runtime.RawExtension{}.OpenAPIModelName()}, } } @@ -20584,26 +25051,26 @@ func schema_pkg_apis_storage_v1_ClusterAccess(ref common.ReferenceCallback) comm "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec"), + Ref: ref(apisstoragev1.ClusterAccessSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus"), + Ref: ref(apisstoragev1.ClusterAccessStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.ClusterAccessSpec{}.OpenAPIModelName(), apisstoragev1.ClusterAccessStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -20631,7 +25098,7 @@ func schema_pkg_apis_storage_v1_ClusterAccessList(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -20641,7 +25108,7 @@ func schema_pkg_apis_storage_v1_ClusterAccessList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess"), + Ref: ref(apisstoragev1.ClusterAccess{}.OpenAPIModelName()), }, }, }, @@ -20652,7 +25119,7 @@ func schema_pkg_apis_storage_v1_ClusterAccessList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.ClusterAccess{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -20679,7 +25146,7 @@ func schema_pkg_apis_storage_v1_ClusterAccessSpec(ref common.ReferenceCallback) "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "clusters": { @@ -20705,7 +25172,7 @@ func schema_pkg_apis_storage_v1_ClusterAccessSpec(ref common.ReferenceCallback) 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -20715,14 +25182,14 @@ func schema_pkg_apis_storage_v1_ClusterAccessSpec(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "LocalClusterAccessTemplate holds the cluster access template", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate"), + Ref: ref(apisstoragev1.LocalClusterAccessTemplate{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.LocalClusterAccessTemplate{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -20761,7 +25228,7 @@ func schema_pkg_apis_storage_v1_ClusterList(ref common.ReferenceCallback) common "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -20771,7 +25238,7 @@ func schema_pkg_apis_storage_v1_ClusterList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster"), + Ref: ref(apisstoragev1.Cluster{}.OpenAPIModelName()), }, }, }, @@ -20782,7 +25249,7 @@ func schema_pkg_apis_storage_v1_ClusterList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.Cluster{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -20855,26 +25322,26 @@ func schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref common.ReferenceCallback "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec"), + Ref: ref(apisstoragev1.ClusterRoleTemplateSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus"), + Ref: ref(apisstoragev1.ClusterRoleTemplateStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.ClusterRoleTemplateSpec{}.OpenAPIModelName(), apisstoragev1.ClusterRoleTemplateStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -20902,7 +25369,7 @@ func schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref common.ReferenceCall "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -20912,7 +25379,7 @@ func schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate"), + Ref: ref(apisstoragev1.ClusterRoleTemplate{}.OpenAPIModelName()), }, }, }, @@ -20923,7 +25390,7 @@ func schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.ClusterRoleTemplate{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -20950,7 +25417,7 @@ func schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref common.ReferenceCall "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "clusters": { @@ -20983,7 +25450,7 @@ func schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref common.ReferenceCall 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -20993,20 +25460,20 @@ func schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref common.ReferenceCall 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"), + Ref: ref(apisstoragev1.ClusterRoleTemplateTemplate{}.OpenAPIModelName()), }, }, "localClusterRoleTemplate": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: Use ClusterRoleTemplate instead LocalClusterRoleTemplate holds the cluster role template", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate"), + Ref: ref(apisstoragev1.LocalClusterRoleTemplate{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.ClusterRoleTemplateTemplate{}.OpenAPIModelName(), apisstoragev1.LocalClusterRoleTemplate{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -21031,7 +25498,7 @@ func schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref common.Reference SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "rules": { @@ -21042,7 +25509,7 @@ func schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref common.Reference Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), + Ref: ref(rbacv1.PolicyRule{}.OpenAPIModelName()), }, }, }, @@ -21051,14 +25518,14 @@ func schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref common.Reference "aggregationRule": { SchemaProps: spec.SchemaProps{ Description: "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", - Ref: ref("k8s.io/api/rbac/v1.AggregationRule"), + Ref: ref(rbacv1.AggregationRule{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1.AggregationRule", "k8s.io/api/rbac/v1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1.AggregationRule{}.OpenAPIModelName(), rbacv1.PolicyRule{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -21086,14 +25553,14 @@ func schema_pkg_apis_storage_v1_ClusterSpec(ref common.ReferenceCallback) common "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "config": { SchemaProps: spec.SchemaProps{ Description: "Holds a reference to a secret that holds the kube config to access this cluster", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + Ref: ref(apisstoragev1.SecretRef{}.OpenAPIModelName()), }, }, "local": { @@ -21132,17 +25599,29 @@ func schema_pkg_apis_storage_v1_ClusterSpec(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, }, }, + "metrics": { + SchemaProps: spec.SchemaProps{ + Description: "Metrics holds the cluster's metrics backend configuration", + Ref: ref(apisstoragev1.Metrics{}.OpenAPIModelName()), + }, + }, + "opencost": { + SchemaProps: spec.SchemaProps{ + Description: "OpenCost holds the cluster's OpenCost backend configuration", + Ref: ref(apisstoragev1.OpenCost{}.OpenAPIModelName()), + }, + }, }, }, }, 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"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.Metrics{}.OpenAPIModelName(), apisstoragev1.OpenCost{}.OpenAPIModelName(), apisstoragev1.SecretRef{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -21171,78 +25650,102 @@ func schema_pkg_apis_storage_v1_ClusterStatus(ref common.ReferenceCallback) comm Format: "", }, }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the cluster might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + }, + }, + }, + }, + }, }, }, }, + Dependencies: []string{ + storagev1.Condition{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_CredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DHCPDeployment(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "docker": { + "enabled": { 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"), + Description: "Enabled controls whether the DHCP server is deployed into the cluster.", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "git": { + "helmValues": { SchemaProps: spec.SchemaProps{ - Description: "Git specifies controls for how workspaces created by this template forward git credentials", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding"), + Description: "HelmValues is raw YAML that will be passed as values to the DHCP Helm chart.", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"enabled"}, }, }, - 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 { +func schema_pkg_apis_storage_v1_EntityInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "ignoreNotFound": { + "name": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "Name is the kubernetes name of the object", + Type: []string{"string"}, + Format: "", }, }, - "force": { + "displayName": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "The display name shown in the UI", + Type: []string{"string"}, + Format: "", }, }, - "gracePeriod": { + "icon": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Icon is the icon of the user / team", + 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": { + "username": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + 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: "", }, }, }, @@ -21251,44 +25754,24 @@ func schema_pkg_apis_storage_v1_DevPodCommandStatusOptions(ref common.ReferenceC } } -func schema_pkg_apis_storage_v1_DevPodCommandStopOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_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{ - "id": { + "group": { SchemaProps: spec.SchemaProps{ - Description: "up options", + 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: "", }, }, - "source": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "ide": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "ideOptions": { + "resources": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + 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{ @@ -21300,9 +25783,10 @@ func schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref common.ReferenceCallb }, }, }, - "prebuildRepositories": { + "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{ @@ -21314,15 +25798,29 @@ func schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref common.ReferenceCallb }, }, }, - "devContainerPath": { + }, + }, + }, + } +} + +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{ + "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Metadata provides information about a chart", + Default: map[string]interface{}{}, + Ref: ref(v1.Metadata{}.OpenAPIModelName()), }, }, - "workspaceEnv": { + "versions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Versions holds all chart versions", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -21334,635 +25832,650 @@ func schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref common.ReferenceCallb }, }, }, - "recreate": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "proxy": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "disableDaemon": { + "repository": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "Repository is the repository name of this chart", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.HelmChartRepository{}.OpenAPIModelName()), }, }, - "daemonInterval": { + }, + }, + }, + Dependencies: []string{ + v1.Metadata{}.OpenAPIModelName(), apisstoragev1.HelmChartRepository{}.OpenAPIModelName()}, + } +} + +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{ + "name": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Name is the name of the repository", + Type: []string{"string"}, + Format: "", }, }, - "repository": { + "url": { SchemaProps: spec.SchemaProps{ - Description: "build options", + Description: "URL is the repository url", Type: []string{"string"}, Format: "", }, }, - "skipPush": { + "username": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "Username of the repository", + Type: []string{"string"}, + Format: "", }, }, - "platform": { + "password": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Password of the repository", + Type: []string{"string"}, + Format: "", }, }, - "forceBuild": { + "insecure": { SchemaProps: spec.SchemaProps{ - Description: "TESTING", + Description: "Insecure specifies if the chart should be retrieved without TLS verification", Type: []string{"boolean"}, Format: "", }, }, - "forceInternalBuildKit": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, }, }, }, } } -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_HelmConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceEnvironmentSource", + Description: "HelmConfiguration holds the helm configuration", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name of the chart to deploy", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "values": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "The additional helm values to use. Expected block string", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { + "version": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec"), + Description: "Version is the version of the chart to deploy", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateList contains a list of DevPodEnvironmentTemplate objects", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "repoUrl": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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 repo url to use", 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 to use for the selected repository", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "password": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "The password to use for the selected repository", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "insecure": { 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: "Determines if the remote location uses an insecure TLS certificate.", + Type: []string{"boolean"}, + Format: "", }, }, }, - Required: []string{"items"}, + Required: []string{"name"}, }, }, - 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_HelmTask(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: "", - }, - }, - "git": { + "release": { SchemaProps: spec.SchemaProps{ - Description: "Git holds configuration for git environment spec source", + Description: "Release holds the release information", 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"), + Ref: ref(apisstoragev1.HelmTaskRelease{}.OpenAPIModelName()), }, }, - "access": { + "type": { 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: "Type is the task type. Defaults to Upgrade", + Type: []string{"string"}, + Format: "", }, }, - "versions": { + "rollbackRevision": { 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: "RollbackRevision is the revision to rollback to", + 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.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.HelmTaskRelease{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_HelmTaskRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "git": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Git holds the GitEnvironmentTemplate", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"), + Description: "Name is the name of the release", + Type: []string{"string"}, + Format: "", }, }, - "version": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", + Description: "Namespace of the release, if empty will use the target namespace", Type: []string{"string"}, Format: "", }, }, + "config": { + SchemaProps: spec.SchemaProps{ + Description: "Config is the helm config to use to deploy the release", + Default: map[string]interface{}{}, + Ref: ref(v1.HelmReleaseConfig{}.OpenAPIModelName()), + }, + }, + "labels": { + 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: "", + }, + }, + }, + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"}, + v1.HelmReleaseConfig{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodProjectSpec(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{ - "git": { - 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"), - }, - }, - "ssh": { - SchemaProps: spec.SchemaProps{ - Description: "SSH defines additional ssh related settings like private keys, to be specified as base64 encoded strings.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSHProjectSpec"), - }, - }, - "fallbackImage": { + "roleMapping": { SchemaProps: spec.SchemaProps{ - Description: "FallbackImage defines an image all workspace will fall back to if no devcontainer.json could be detected", - Type: []string{"string"}, - Format: "", + 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: "", + }, + }, + }, }, }, }, }, }, - 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 { +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{ - "value": { + "defaultClusterRole": { SchemaProps: spec.SchemaProps{ - Description: "Value of this option.", + Description: "Specifies which cluster role should get applied to users or teams that do not match a rule below.", Type: []string{"string"}, Format: "", }, }, - "valueFrom": { + "rules": { 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: "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(apisstoragev1.InstanceAccessRule{}.OpenAPIModelName()), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom"}, + apisstoragev1.InstanceAccessRule{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(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{ - "projectSecretRef": { + "users": { + SchemaProps: spec.SchemaProps{ + Description: "Users this rule matches. * means all users.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "teams": { SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretRef is the project secret to use for this value.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + Description: "Teams that this rule matches.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "sharedSecretRef": { + "clusterRole": { SchemaProps: spec.SchemaProps{ - Description: "SharedSecretRef is the shared secret to use for this value.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + Description: "ClusterRole is the cluster role that should be assigned to the", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, } } -func schema_pkg_apis_storage_v1_DevPodProviderSource(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "github": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Github source for the provider", + Description: "Name of the app that should get deployed", Type: []string{"string"}, Format: "", }, }, - "file": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "File source for the provider", + Description: "Namespace specifies in which target namespace the app should get deployed in. Only used for virtual cluster apps.", Type: []string{"string"}, Format: "", }, }, - "url": { + "releaseName": { SchemaProps: spec.SchemaProps{ - Description: "URL where the provider was downloaded from", + Description: "ReleaseName of the target app", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstance", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Version of the app that should get deployed", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Phase describes the current phase the app deployment is in", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { + "reason": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec"), + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "message": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus"), + Description: "Message describes the reason in human-readable form", + 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"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(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: "DevPodWorkspaceInstanceList contains a list of DevPodWorkspaceInstance objects", + 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.ListMeta"), + Type: []string{"string"}, + Format: "", }, }, - "items": { + "secretNamespace": { 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.DevPodWorkspaceInstance"), - }, - }, - }, + Type: []string{"string"}, + Format: "", + }, + }, + "key": { + SchemaProps: spec.SchemaProps{ + 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"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(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{ - "displayName": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "description": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a DevPod machine instance", - 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: "", + }, + }, + }, }, }, - "owner": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, }, }, - "templateRef": { + "overhead": { SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the DevPod machine template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref(apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName()), }, }, - "environmentRef": { + "cost": { SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + Description: "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", }, }, - "template": { + "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: "Template is the inline template to use for DevPod machine creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Description: "Name is the name of this node type.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "runnerRef": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "RunnerRef is the reference to the connected runner holding this workspace", + 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.RunnerRef"), + Ref: ref(apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName()), }, }, - "parameters": { + "virtualMachineTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", - Type: []string{"string"}, - Format: "", + Description: "VirtualMachineTemplate is a full KubeVirt VirtualMachine template to use for this NodeType. This is mutually exclusive with MergeVirtualMachineTemplate", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, - "access": { + "mergeVirtualMachineTemplate": { 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: "MergeVirtualMachineTemplate will be merged into base VirtualMachine template for this NodeProvider. This allows overwriting of specific fields from top level template by individual NodeTypes This is mutually exclusive with VirtualMachineTemplate", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, - "preventWakeUpOnConnection": { + "maxCapacity": { SchemaProps: spec.SchemaProps{ - Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", - Type: []string{"boolean"}, - Format: "", + Description: "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.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"}, + apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName(), apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastWorkspaceStatus": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", + Description: "DisplayName is the name that should be shown in the UI", Type: []string{"string"}, Format: "", }, }, - "phase": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the DevPod machine instance is in", + Description: "Description is the description of this object in human-readable text.", Type: []string{"string"}, Format: "", }, }, - "reason": { + "users": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", + Description: "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(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), + }, + }, + }, }, }, - "message": { + "teams": { 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: "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: "", + }, + }, + }, }, }, - "conditions": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the DevPod machine might be in", + 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/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + Ref: ref(apisstoragev1.ClusterRoleRef{}.OpenAPIModelName()), }, }, }, }, }, - "instance": { + "priority": { SchemaProps: spec.SchemaProps{ - Description: "Instance is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Description: "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", }, }, - "ignoreReconciliation": { + }, + }, + }, + Dependencies: []string{ + apisstoragev1.ClusterRoleRef{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, + } +} + +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: "IgnoreReconciliation ignores reconciliation for this object", - Type: []string{"boolean"}, - Format: "", + Description: "Metadata is the metadata of the cluster access object", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "clusterRef": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRef holds the runners cluster if the workspace is scheduled on kubernetes based runner", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef"), + Description: "LocalClusterAccessSpec holds the spec of the cluster access in the cluster", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.LocalClusterAccessSpec{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + apisstoragev1.LocalClusterAccessSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(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{ @@ -21970,623 +26483,661 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref co Properties: map[string]spec.Schema{ "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The virtual cluster instance metadata", + Description: "Metadata is the metadata of the cluster role template object", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + 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.TemplateMetadata"), + Ref: ref(apisstoragev1.LocalClusterRoleTemplateSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + apisstoragev1.LocalClusterRoleTemplateSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the provider. This can also be an url.", - Default: "", + Description: "DisplayName is the name that should be shown in the UI", Type: []string{"string"}, Format: "", }, }, - "options": { + "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(apisstoragev1.ClusterRoleTemplateTemplate{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.ClusterRoleTemplateTemplate{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_ManagedNodeTypeObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "labels": { SchemaProps: spec.SchemaProps{ - Description: "Options are the provider option values", + Description: "Labels holds labels to add to this managed NodeType.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "env": { + "annotations": { SchemaProps: spec.SchemaProps{ - Description: "Env are environment options to set when using the provider.", + Description: "Annotations holds annotations to add to this managed NodeType.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption"), + Default: "", + 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_Member(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplate holds the DevPodWorkspaceTemplate information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Kind is the kind of the member. Currently either User or Team", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "group": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Group of the member. Currently only supports storage.loft.sh", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "name": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Name of the member", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "clusterRole": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec"), + Description: "ClusterRole is the assigned role for the above member", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "status": { + }, + Required: []string{"clusterRole"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_Metal3BareMetalHosts(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "selector": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus"), + Description: "Selector is a label selector to select the BareMetalHosts to use for this NodeType.", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Metal3Deployment(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "provider": { - SchemaProps: spec.SchemaProps{ - Description: "Provider holds the DevPod provider configuration", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider"), - }, - }, - "spaceTemplateRef": { - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateRef is a reference to the space that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "spaceTemplate": { + "enabled": { 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"), + Description: "Enabled controls whether Metal3 and Ironic are deployed into the cluster.", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "virtualClusterTemplateRef": { + "helmValues": { 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"), + Description: "HelmValues is raw YAML that will be passed as values to the Metal3 Helm chart.", + Type: []string{"string"}, + Format: "", }, }, - "virtualClusterTemplate": { + }, + Required: []string{"enabled"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_Metal3NodeTypeSpec(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: "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(resource.Quantity{}.OpenAPIModelName()), }, }, }, }, }, - "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": { - SchemaProps: spec.SchemaProps{ - Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this workspace", - Type: []string{"boolean"}, - Format: "", - }, - }, - "useProjectSSHCredentials": { - SchemaProps: spec.SchemaProps{ - Description: "UseProjectSSHCredentials specifies if the project ssh credentials should be used instead of local ones for this workspace", - Type: []string{"boolean"}, - Format: "", - }, - }, - "gitCloneStrategy": { - SchemaProps: spec.SchemaProps{ - Description: "GitCloneStrategy specifies how git based workspace are being cloned. Can be \"\" (full, default), treeless, blobless or shallow\n\nPossible enum values:\n - `\"\"`\n - `\"blobless\"`\n - `\"shallow\"`\n - `\"treeless\"`", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"", "blobless", "shallow", "treeless"}, - }, - }, - "credentialForwarding": { + "overhead": { 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"), + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref(apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName()), }, }, - "preventWakeUpOnConnection": { + "cost": { SchemaProps: spec.SchemaProps{ - Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", - Type: []string{"boolean"}, - Format: "", + Description: "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", }, }, - }, - 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": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Name is the name of this node type.", + Default: "", Type: []string{"string"}, Format: "", }, }, "metadata": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName()), }, }, - "items": { + "bareMetalHosts": { 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: "BareMetalHosts is a list of BareMetalHosts to use for this NodeType.", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.Metal3BareMetalHosts{}.OpenAPIModelName()), }, }, }, - 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"}, + apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName(), apisstoragev1.Metal3BareMetalHosts{}.OpenAPIModelName(), apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Metal3ProviderDeployment(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", - 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": { + "multus": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the DevPod workspace template", + Description: "Multus configures the Multus CNI deployment.", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Ref: ref(apisstoragev1.MultusDeployment{}.OpenAPIModelName()), }, }, - "versions": { + "dhcp": { 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"), - }, - }, - }, + Description: "DHCP configures the DHCP server deployment.", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.DHCPDeployment{}.OpenAPIModelName()), }, }, - "access": { + "metal3": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "Metal3 configures the Metal3/Ironic deployment.", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.Metal3Deployment{}.OpenAPIModelName()), }, }, }, }, }, 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_storage_v1_DevPodWorkspaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateStatus holds the status", - Type: []string{"object"}, - }, - }, + apisstoragev1.DHCPDeployment{}.OpenAPIModelName(), apisstoragev1.Metal3Deployment{}.OpenAPIModelName(), apisstoragev1.MultusDeployment{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Metrics(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "template": { + "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the DevPod template", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", }, }, - "parameters": { + "resources": { 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: "Resources are compute resource required by the metrics backend", + Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), }, }, - "version": { + "retention": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", + 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(apisstoragev1.Storage{}.OpenAPIModelName()), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"}, + apisstoragev1.Storage{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_MultusDeployment(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "disabled": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", + Description: "Enabled controls whether Multus CNI is deployed into the cluster.", + Default: false, Type: []string{"boolean"}, Format: "", }, }, + "helmValues": { + SchemaProps: spec.SchemaProps{ + Description: "HelmValues is raw YAML that will be passed as values to the Multus Helm chart.", + Type: []string{"string"}, + Format: "", + }, + }, }, + Required: []string{"enabled"}, }, }, } } -func schema_pkg_apis_storage_v1_EntityInfo(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{ - "name": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Name is the kubernetes name of the object", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - 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: "", + }, + }, + }, }, }, - "icon": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the icon of the user / team", - Type: []string{"string"}, - Format: "", + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, }, }, - "username": { + "overhead": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", - Type: []string{"string"}, - Format: "", + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref(apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName()), }, }, - "email": { + "cost": { SchemaProps: spec.SchemaProps{ - Description: "The users email address", + 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: "", }, }, - "subject": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "The user subject", + 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(apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName()), + }, + }, }, + Required: []string{"name"}, }, }, + Dependencies: []string{ + apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName(), apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_EnvironmentRef(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{ - "name": { + "space": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of DevPodEnvironmentTemplate this references", - Default: "", + 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: "", }, }, }, - Required: []string{"name"}, }, }, } } -func schema_pkg_apis_storage_v1_GitCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NamespacedRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "disabled": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", - Type: []string{"boolean"}, + Description: "Name is the name of this resource", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace is the namespace of this resource", + Default: "", + Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"name", "namespace"}, }, }, } } -func schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NetworkPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GitEnvironmentTemplate stores configuration of Git environment template source", + Description: "NetworkPeer hols the information of network peers", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "repository": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Repository stores repository URL for Git environment spec source", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "revision": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Revision stores revision to checkout in repository", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "subpath": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "SubPath stores subpath within Repositor where environment spec is", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "useProjectGitCredentials": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NetworkPeerSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NetworkPeerStatus{}.OpenAPIModelName()), }, }, }, - Required: []string{"repository"}, }, }, + Dependencies: []string{ + apisstoragev1.NetworkPeerSpec{}.OpenAPIModelName(), apisstoragev1.NetworkPeerStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -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: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { SchemaProps: spec.SchemaProps{ - 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"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NetworkPeer{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, + apisstoragev1.NetworkPeer{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -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: "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: "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{ @@ -22599,9 +27150,24 @@ func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) com }, }, }, - "resourceNames": { + "allowedIPs": { 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: "AllowedIPs is a range of IP addresses to route to this node.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "endpoints": { + 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{ @@ -22620,233 +27186,339 @@ 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", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NodeClaimSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NodeClaimStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.NodeClaimSpec{}.OpenAPIModelName(), apisstoragev1.NodeClaimStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_NodeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeClaimList contains a list of NodeClaim", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "password": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Password of the repository", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "insecure": { + "metadata": { 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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NodeClaim{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + apisstoragev1.NodeClaim{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_HelmConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "HelmConfiguration holds the helm configuration", + Description: "NodeClaimSpec defines spec of node claim.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Name of the chart to deploy", - Default: "", + Description: "DisplayName is the name of the NodeClaim that is displayed in the UI.", Type: []string{"string"}, Format: "", }, }, - "values": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "The additional helm values to use. Expected block string", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, - "version": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version of the chart to deploy", + 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(apisstoragev1.Access{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the name of the NodeProvider that this NodeClaim is based on.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "repoUrl": { + "typeRef": { SchemaProps: spec.SchemaProps{ - Description: "The repo url to use", + Description: "TypeRef is the full name of the NodeType that this NodeClaim is based on.", Type: []string{"string"}, Format: "", }, }, - "username": { + "environmentRef": { SchemaProps: spec.SchemaProps{ - Description: "The username to use for the selected repository", + Description: "EnvironmentRef is the name of the NodeEnvironment that this NodeClaim is based on.", Type: []string{"string"}, Format: "", }, }, - "password": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "The password to use for the selected repository", + 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: "", + }, + }, + }, + }, + }, + "vClusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "VClusterRef references source vCluster.", 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"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_HelmTask(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "release": { + "taints": { 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: "Taints will be applied to the NodeClaim's node.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.Taint{}.OpenAPIModelName()), + }, + }, + }, }, }, - "type": { + "startupTaints": { SchemaProps: spec.SchemaProps{ - Description: "Type is the task type. Defaults to Upgrade", - Type: []string{"string"}, - Format: "", + Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.Taint{}.OpenAPIModelName()), + }, + }, + }, }, }, - "rollbackRevision": { + "kubeletArgs": { SchemaProps: spec.SchemaProps{ - Description: "RollbackRevision is the revision to rollback to", - Type: []string{"string"}, - Format: "", + Description: "KubeletArgs are additional arguments to pass to the kubelet.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "desiredCapacity": { + SchemaProps: spec.SchemaProps{ + Description: "DesiredCapacity specifies the resources requested by the NodeClaim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "requirements": { + SchemaProps: spec.SchemaProps{ + Description: "Requirements are the requirements for the NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"providerRef"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName(), corev1.NodeSelectorRequirement{}.OpenAPIModelName(), corev1.Taint{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_HelmTaskRelease(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{ - "name": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the release", + Description: "Phase is the current lifecycle phase of the NodeClaim.", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the release, if empty will use the target namespace", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "config": { + "message": { 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"), + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", }, }, - "labels": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Labels are additional labels for the helm release.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + 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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, @@ -22856,99 +27528,146 @@ func schema_pkg_apis_storage_v1_HelmTaskRelease(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"}, + storagev1.Condition{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(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{ - "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: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NodeEnvironmentSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NodeEnvironmentStatus{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + apisstoragev1.NodeEnvironmentSpec{}.OpenAPIModelName(), apisstoragev1.NodeEnvironmentStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_InstanceAccess(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{ - "defaultClusterRole": { + "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: "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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), + Ref: ref(apisstoragev1.NodeEnvironment{}.OpenAPIModelName()), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"}, + apisstoragev1.NodeEnvironment{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -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": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Users this rule matches. * means all users.", + Description: "DisplayName is the name of the NodeClaim that is displayed in the UI.", + Type: []string{"string"}, + Format: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, }, }, - "teams": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Teams that this rule matches.", - 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: "", @@ -22959,56 +27678,45 @@ func schema_pkg_apis_storage_v1_InstanceAccessRule(ref common.ReferenceCallback) }, }, }, - "clusterRole": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the cluster role that should be assigned to the", + Description: "ProviderRef is the name of the NodeProvider that this NodeEnvironment is based on.", + Type: []string{"string"}, + Format: "", + }, + }, + "vClusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "VClusterRef references source vCluster.", 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: "", + }, + }, }, }, }, + Dependencies: []string{ + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } -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 +27735,568 @@ 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(storagev1.Condition{}.OpenAPIModelName()), + }, + }, + }, + }, + }, }, }, }, + Dependencies: []string{ + storagev1.Condition{}.OpenAPIModelName()}, } } -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(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "secretNamespace": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NodeProviderSpec{}.OpenAPIModelName()), }, }, - "key": { + "status": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NodeProviderStatus{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + apisstoragev1.NodeProviderSpec{}.OpenAPIModelName(), apisstoragev1.NodeProviderStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -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(apisstoragev1.NamespacedRef{}.OpenAPIModelName()), }, }, - "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(apisstoragev1.BCMNodeTypeSpec{}.OpenAPIModelName()), }, }, }, }, }, - "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", - }, - }, }, + Required: []string{"secretRef", "endpoint"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.BCMNodeTypeSpec{}.OpenAPIModelName(), apisstoragev1.NamespacedRef{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(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 access 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(runtime.RawExtension{}.OpenAPIModelName()), }, }, - "spec": { + "bootstrapConfigTemplate": { SchemaProps: spec.SchemaProps{ - Description: "LocalClusterAccessSpec holds the spec of the cluster access in the cluster", + Description: "BootstrapConfigTemplate is a template for the bootstrap config. Currently only KubeadmConfig is supported.", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), + }, + }, + "clusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRef is a reference to connected host cluster in which KubeVirt operator is running", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec"), + Ref: ref(apisstoragev1.NodeProviderClusterRef{}.OpenAPIModelName()), + }, + }, + "nodeTypes": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.ClusterAPINodeTypeSpec{}.OpenAPIModelName()), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.ClusterAPINodeTypeSpec{}.OpenAPIModelName(), apisstoragev1.NodeProviderClusterRef{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(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{ - "metadata": { + "cluster": { 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: "Cluster is the connected cluster the VMs will be created in", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "namespace": { 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: "Namespace is the namespace inside the connected cluster holding VMs", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"cluster"}, }, }, - 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 { +func schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeProviderKubeVirt defines the configuration for a KubeVirt node provider.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "clusterRef": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be shown in the UI", - Type: []string{"string"}, - Format: "", + Description: "ClusterRef is a reference to connected host cluster in which KubeVirt operator is running", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NodeProviderClusterRef{}.OpenAPIModelName()), }, }, - "description": { + "virtualMachineTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Description is the description of this object in human-readable text.", - Type: []string{"string"}, - Format: "", + Description: "VirtualMachineTemplate is a KubeVirt VirtualMachine template to use by NodeTypes managed by this NodeProvider", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, - "clusterRoleTemplate": { + "nodeTypes": { 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"), + 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(apisstoragev1.KubeVirtNodeTypeSpec{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"nodeTypes"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"}, + apisstoragev1.KubeVirtNodeTypeSpec{}.OpenAPIModelName(), apisstoragev1.NodeProviderClusterRef{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_Member(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{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is the kind of the member. Currently either User or Team", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "group": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Group of the member. Currently only supports storage.loft.sh", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "name": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Name of the member", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "clusterRole": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the assigned role for the above member", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NodeProvider{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + apisstoragev1.NodeProvider{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NamespacePattern(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeProviderMetal3(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "space": { + "clusterRef": { SchemaProps: spec.SchemaProps{ - Description: "Space holds the namespace pattern to use for space instances", - Type: []string{"string"}, - Format: "", + Description: "ClusterRef is a reference to connected host cluster in which KubeVirt operator is running", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.NodeProviderClusterRef{}.OpenAPIModelName()), }, }, - "virtualCluster": { + "deploy": { SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster holds the namespace pattern to use for virtual cluster instances", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.Metal3ProviderDeployment{}.OpenAPIModelName()), + }, + }, + "nodeTypes": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.Metal3NodeTypeSpec{}.OpenAPIModelName()), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + apisstoragev1.Metal3NodeTypeSpec{}.OpenAPIModelName(), apisstoragev1.Metal3ProviderDeployment{}.OpenAPIModelName(), apisstoragev1.NodeProviderClusterRef{}.OpenAPIModelName()}, } } -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": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "Properties 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: "", + }, + }, + }, }, }, - "name": { + "bcm": { 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: "BCM configures a node provider for BCM Bare Metal Cloud environments.", + Ref: ref(apisstoragev1.NodeProviderBCM{}.OpenAPIModelName()), }, }, - "generateName": { + "kubeVirt": { 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: "Kubevirt configures a node provider using KubeVirt, enabling virtual machines to be provisioned as nodes within a vCluster.", + Ref: ref(apisstoragev1.NodeProviderKubeVirt{}.OpenAPIModelName()), }, }, - "namespace": { + "terraform": { 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: "Terraform configures a node provider using Terraform, enabling nodes to be provisioned using Terraform.", + Ref: ref(apisstoragev1.NodeProviderTerraform{}.OpenAPIModelName()), }, }, - "selfLink": { + "clusterAPI": { SchemaProps: spec.SchemaProps{ - Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", - 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(apisstoragev1.NodeProviderClusterAPI{}.OpenAPIModelName()), }, }, - "uid": { + "metal3": { 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: "Metal3 configures a node provider using metal3.io BareMetalHost resources.", + Ref: ref(apisstoragev1.NodeProviderMetal3{}.OpenAPIModelName()), }, }, - "resourceVersion": { + "displayName": { 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: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "generation": { + }, + }, + }, + Dependencies: []string{ + apisstoragev1.NodeProviderBCM{}.OpenAPIModelName(), apisstoragev1.NodeProviderClusterAPI{}.OpenAPIModelName(), apisstoragev1.NodeProviderKubeVirt{}.OpenAPIModelName(), apisstoragev1.NodeProviderMetal3{}.OpenAPIModelName(), apisstoragev1.NodeProviderTerraform{}.OpenAPIModelName()}, + } +} + +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: "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - Type: []string{"integer"}, - Format: "int64", + Description: "Conditions describe the current state of the platform NodeProvider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + }, + }, + }, }, }, - "creationTimestamp": { + "reason": { 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"), + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", }, }, - "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{ + storagev1.Condition{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_NodeProviderTerraform(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "nodeTemplate": { 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(apisstoragev1.TerraformTemplate{}.OpenAPIModelName()), }, }, - "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(apisstoragev1.TerraformNodeEnvironmentTemplate{}.OpenAPIModelName()), }, }, - "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(apisstoragev1.TerraformNodeTypeSpec{}.OpenAPIModelName()), }, }, }, }, }, - "finalizers": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "set", - "x-kubernetes-patch-strategy": "merge", - }, - }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.TerraformNodeEnvironmentTemplate{}.OpenAPIModelName(), apisstoragev1.TerraformNodeTypeSpec{}.OpenAPIModelName(), apisstoragev1.TerraformTemplate{}.OpenAPIModelName()}, + } +} + +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(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec"), + Ref: ref(apisstoragev1.NodeTypeSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus"), + Ref: ref(apisstoragev1.NodeTypeStatus{}.OpenAPIModelName()), }, }, }, + 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"}, + apisstoragev1.NodeTypeSpec{}.OpenAPIModelName(), apisstoragev1.NodeTypeStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -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": { @@ -23542,7 +28316,7 @@ func schema_pkg_apis_storage_v1_NetworkPeerList(ref common.ReferenceCallback) co "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -23552,7 +28326,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(apisstoragev1.NodeType{}.OpenAPIModelName()), }, }, }, @@ -23563,118 +28337,355 @@ 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"}, + apisstoragev1.NodeType{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -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{ + Description: "NodeTypeOverhead defines the resource overhead for a node type.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kubeReserved": { + SchemaProps: spec.SchemaProps{ + 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(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + resource.Quantity{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_NodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "discoKey": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "DiscoKey is a key used for DERP discovery", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "machineKey": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "MachineKey is used to identify a network peer", + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref(apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName()), + }, + }, + "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: "", }, }, - "nodeKey": { + }, + }, + }, + Dependencies: []string{ + apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_NodeTypeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeTypeStatus holds the status of a node type", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { SchemaProps: spec.SchemaProps{ - Description: "NodeKey is used to identify a session", + Description: "Phase is the current lifecycle phase of the NodeType.", Type: []string{"string"}, Format: "", }, }, - "addresses": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Addresses is a list of IP addresses of this Node directly.", + 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: "", + }, + }, + "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(apisstoragev1.NodeTypeCapacity{}.OpenAPIModelName()), + }, + }, + "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: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), }, }, }, }, }, - "allowedIPs": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "AllowedIPs is a range of IP addresses to route to this node.", + Description: "Conditions holds several conditions the node type might be in", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(storagev1.Condition{}.OpenAPIModelName()), }, }, }, }, }, - "endpoints": { + }, + }, + }, + Dependencies: []string{ + storagev1.Condition{}.OpenAPIModelName(), apisstoragev1.NodeTypeCapacity{}.OpenAPIModelName(), corev1.NodeSelectorRequirement{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_OSImage(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "OSImage holds the information of machine networks", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { 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"}, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.OSImageSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.OSImageStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.OSImageSpec{}.OpenAPIModelName(), apisstoragev1.OSImageStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_OSImageList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "OSImageList contains a list of OSImages", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.OSImage{}.OpenAPIModelName()), }, }, }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + apisstoragev1.OSImage{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NetworkPeerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_OSImageSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastSeen": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "LastSeen is when the network peer was last online. It is not updated when Online is true.", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "homeDerpRegion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "HomeDerpRegion is the currently preferred DERP region by the network peer", - Type: []string{"integer"}, - Format: "int32", + Description: "Description describes an OS image", + Type: []string{"string"}, + Format: "", }, }, - "online": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Online is whether the node is currently connected to the coordination server.", - Type: []string{"boolean"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "properties": { + SchemaProps: spec.SchemaProps{ + Description: "Properties is the configuration for the OS image", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_OSImageStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, } } @@ -23699,7 +28710,7 @@ func schema_pkg_apis_storage_v1_ObjectsStatus(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ChartStatus"), + Ref: ref(apisstoragev1.ChartStatus{}.OpenAPIModelName()), }, }, }, @@ -23713,7 +28724,7 @@ func schema_pkg_apis_storage_v1_ObjectsStatus(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"), + Ref: ref(apisstoragev1.AppReference{}.OpenAPIModelName()), }, }, }, @@ -23723,7 +28734,34 @@ func schema_pkg_apis_storage_v1_ObjectsStatus(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ChartStatus"}, + apisstoragev1.AppReference{}.OpenAPIModelName(), apisstoragev1.ChartStatus{}.OpenAPIModelName()}, + } +} + +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(corev1.ResourceRequirements{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.ResourceRequirements{}.OpenAPIModelName()}, } } @@ -23737,7 +28775,7 @@ func schema_pkg_apis_storage_v1_PodSelector(ref common.ReferenceCallback) common SchemaProps: spec.SchemaProps{ Description: "A label selector to select the virtual cluster pod to route incoming requests to.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "port": { @@ -23751,7 +28789,7 @@ func schema_pkg_apis_storage_v1_PodSelector(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -23779,26 +28817,26 @@ func schema_pkg_apis_storage_v1_Project(ref common.ReferenceCallback) common.Ope "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec"), + Ref: ref(apisstoragev1.ProjectSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus"), + Ref: ref(apisstoragev1.ProjectStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.ProjectSpec{}.OpenAPIModelName(), apisstoragev1.ProjectStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -23826,7 +28864,7 @@ func schema_pkg_apis_storage_v1_ProjectList(ref common.ReferenceCallback) common "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -23836,7 +28874,7 @@ func schema_pkg_apis_storage_v1_ProjectList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project"), + Ref: ref(apisstoragev1.Project{}.OpenAPIModelName()), }, }, }, @@ -23847,7 +28885,29 @@ func schema_pkg_apis_storage_v1_ProjectList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.Project{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_ProjectNamespaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ProjectNamespaceTemplate defines metadata to apply to the auto-created project namespace.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "The namespace metadata", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.TemplateMetadata{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.TemplateMetadata{}.OpenAPIModelName()}, } } @@ -23874,14 +28934,14 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "quotas": { SchemaProps: spec.SchemaProps{ Description: "Quotas define the quotas inside the project", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas"), + Ref: ref(apisstoragev1.Quotas{}.OpenAPIModelName()), }, }, "allowedClusters": { @@ -23892,7 +28952,7 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster"), + Ref: ref(apisstoragev1.AllowedCluster{}.OpenAPIModelName()), }, }, }, @@ -23900,13 +28960,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner"), + Ref: ref(apisstoragev1.AllowedRunner{}.OpenAPIModelName()), }, }, }, @@ -23920,7 +28980,7 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate"), + Ref: ref(apisstoragev1.AllowedTemplate{}.OpenAPIModelName()), }, }, }, @@ -23930,7 +28990,14 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common SchemaProps: spec.SchemaProps{ Description: "RequireTemplate configures if a template is required for instance creation.", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate"), + Ref: ref(apisstoragev1.RequireTemplate{}.OpenAPIModelName()), + }, + }, + "requirePreset": { + SchemaProps: spec.SchemaProps{ + Description: "RequirePreset configures if a preset is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.RequirePreset{}.OpenAPIModelName()), }, }, "members": { @@ -23941,7 +29008,7 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member"), + Ref: ref(apisstoragev1.Member{}.OpenAPIModelName()), }, }, }, @@ -23955,47 +29022,47 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, }, }, + "namespaceTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "NamespaceTemplate defines metadata that should be applied to the project's namespace on creation. This is useful for environments where admission controllers (e.g., Kyverno) require specific labels or annotations on namespaces.", + Ref: ref(apisstoragev1.ProjectNamespaceTemplate{}.OpenAPIModelName()), + }, + }, "namespacePattern": { SchemaProps: spec.SchemaProps{ Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern"), + Ref: ref(apisstoragev1.NamespacePattern{}.OpenAPIModelName()), }, }, "argoCD": { SchemaProps: spec.SchemaProps{ Description: "ArgoIntegration holds information about ArgoCD Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec"), + Ref: ref(apisstoragev1.ArgoIntegrationSpec{}.OpenAPIModelName()), }, }, "vault": { SchemaProps: spec.SchemaProps{ Description: "VaultIntegration holds information about Vault Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), + Ref: ref(apisstoragev1.VaultIntegrationSpec{}.OpenAPIModelName()), }, }, "rancher": { SchemaProps: spec.SchemaProps{ Description: "RancherIntegration holds information about Rancher Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), - }, - }, - "devPod": { - SchemaProps: spec.SchemaProps{ - Description: "DevPod holds DevPod specific configuration for project", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec"), + Ref: ref(apisstoragev1.RancherIntegrationSpec{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.AllowedCluster{}.OpenAPIModelName(), apisstoragev1.AllowedRunner{}.OpenAPIModelName(), apisstoragev1.AllowedTemplate{}.OpenAPIModelName(), apisstoragev1.ArgoIntegrationSpec{}.OpenAPIModelName(), apisstoragev1.Member{}.OpenAPIModelName(), apisstoragev1.NamespacePattern{}.OpenAPIModelName(), apisstoragev1.ProjectNamespaceTemplate{}.OpenAPIModelName(), apisstoragev1.Quotas{}.OpenAPIModelName(), apisstoragev1.RancherIntegrationSpec{}.OpenAPIModelName(), apisstoragev1.RequirePreset{}.OpenAPIModelName(), apisstoragev1.RequireTemplate{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName(), apisstoragev1.VaultIntegrationSpec{}.OpenAPIModelName()}, } } @@ -24008,7 +29075,7 @@ func schema_pkg_apis_storage_v1_ProjectStatus(ref common.ReferenceCallback) comm "quotas": { SchemaProps: spec.SchemaProps{ Description: "Quotas holds the quota status", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"), + Ref: ref(apisstoragev1.QuotaStatus{}.OpenAPIModelName()), }, }, "conditions": { @@ -24019,7 +29086,7 @@ func schema_pkg_apis_storage_v1_ProjectStatus(ref common.ReferenceCallback) comm 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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, @@ -24029,7 +29096,7 @@ func schema_pkg_apis_storage_v1_ProjectStatus(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"}, + storagev1.Condition{}.OpenAPIModelName(), apisstoragev1.QuotaStatus{}.OpenAPIModelName()}, } } @@ -24042,20 +29109,20 @@ func schema_pkg_apis_storage_v1_QuotaStatus(ref common.ReferenceCallback) common "project": { SchemaProps: spec.SchemaProps{ Description: "Project is the quota status for the whole project", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject"), + Ref: ref(apisstoragev1.QuotaStatusProject{}.OpenAPIModelName()), }, }, "user": { SchemaProps: spec.SchemaProps{ Description: "User is the quota status for each user / team. An example status could look like this: status:\n quotas:\n user:\n limit:\n pods: \"10\"\n spaces: \"5\"\n users:\n admin:\n used:\n spaces: \"3\" # <- calculated in our apiserver\n pods: \"8\" # <- the sum calculated from clusters\n clusters:\n cluster-1: # <- populated by agent from cluster-1\n users:\n admin:\n pods: \"3\"\n cluster-2:\n users:\n admin:\n pods: \"5\"", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser"), + Ref: ref(apisstoragev1.QuotaStatusUser{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser"}, + apisstoragev1.QuotaStatusProject{}.OpenAPIModelName(), apisstoragev1.QuotaStatusUser{}.OpenAPIModelName()}, } } @@ -24106,7 +29173,7 @@ func schema_pkg_apis_storage_v1_QuotaStatusProject(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster"), + Ref: ref(apisstoragev1.QuotaStatusProjectCluster{}.OpenAPIModelName()), }, }, }, @@ -24116,7 +29183,7 @@ func schema_pkg_apis_storage_v1_QuotaStatusProject(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster"}, + apisstoragev1.QuotaStatusProjectCluster{}.OpenAPIModelName()}, } } @@ -24174,7 +29241,7 @@ func schema_pkg_apis_storage_v1_QuotaStatusUser(ref common.ReferenceCallback) co SchemaProps: spec.SchemaProps{ Description: "Used is the used amount per user / team", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"), + Ref: ref(apisstoragev1.QuotaStatusUserUsed{}.OpenAPIModelName()), }, }, "clusters": { @@ -24186,7 +29253,7 @@ func schema_pkg_apis_storage_v1_QuotaStatusUser(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.QuotaStatusUserUsed"), + Ref: ref(apisstoragev1.QuotaStatusUserUsed{}.OpenAPIModelName()), }, }, }, @@ -24196,7 +29263,7 @@ func schema_pkg_apis_storage_v1_QuotaStatusUser(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"}, + apisstoragev1.QuotaStatusUserUsed{}.OpenAPIModelName()}, } } @@ -24321,28 +29388,28 @@ func schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref common.ReferenceCallb SchemaProps: spec.SchemaProps{ Description: "ProjectRef defines references to rancher project, required for syncMembers and syncVirtualClusters.syncMembers", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef"), + Ref: ref(apisstoragev1.RancherProjectRef{}.OpenAPIModelName()), }, }, "importVirtualClusters": { SchemaProps: spec.SchemaProps{ Description: "ImportVirtualClusters defines settings to import virtual clusters to Rancher on creation", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec"), + Ref: ref(apisstoragev1.ImportVirtualClustersSpec{}.OpenAPIModelName()), }, }, "syncMembers": { SchemaProps: spec.SchemaProps{ Description: "SyncMembers defines settings to sync Rancher project members to the loft project", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec"), + Ref: ref(apisstoragev1.SyncMembersSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec"}, + apisstoragev1.ImportVirtualClustersSpec{}.OpenAPIModelName(), apisstoragev1.RancherProjectRef{}.OpenAPIModelName(), apisstoragev1.SyncMembersSpec{}.OpenAPIModelName()}, } } @@ -24372,7 +29439,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 +29447,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,104 +29458,77 @@ func schema_pkg_apis_storage_v1_RequireTemplate(ref common.ReferenceCallback) co } } -func schema_pkg_apis_storage_v1_Runner(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{ - Description: "Runner holds the runner information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, + Description: "If 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: "", }, }, - "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_SSHKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SSHKey holds the information of SSH keys", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cluster": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the connected cluster the space will be created in", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace inside the connected cluster holding the space", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "persistentVolumeClaimTemplate": { + "metadata": { 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"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "podTemplate": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "PodTemplate holds additional options for the runner pod", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPodTemplate"), + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.SSHKeySpec{}.OpenAPIModelName()), }, }, - "serviceTemplate": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "ServiceTemplate holds additional options for the service", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplate"), + Default: map[string]interface{}{}, + Ref: ref(apisstoragev1.SSHKeyStatus{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + apisstoragev1.SSHKeySpec{}.OpenAPIModelName(), apisstoragev1.SSHKeyStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_RunnerList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SSHKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RunnerList contains a list of Runner", + Description: "SSHKeyList contains a list of SSHKeys", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -24508,7 +29548,7 @@ func schema_pkg_apis_storage_v1_RunnerList(ref common.ReferenceCallback) common. "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -24518,7 +29558,7 @@ func schema_pkg_apis_storage_v1_RunnerList(ref common.ReferenceCallback) common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Runner"), + Ref: ref(apisstoragev1.SSHKey{}.OpenAPIModelName()), }, }, }, @@ -24529,265 +29569,53 @@ func schema_pkg_apis_storage_v1_RunnerList(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Runner", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.SSHKey{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_RunnerPersistentVolumeClaimTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SSHKeySpec(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": { - SchemaProps: spec.SchemaProps{ - Description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - Type: []string{"string"}, - Format: "", - }, - }, - "storageSize": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "storageSize is the size of the storage to reserve for the pvc", + Description: "DisplayName is the name that should be displayed in the UI", 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": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Runner pod image to use other than default", + Description: "Description describes an SSH key", Type: []string{"string"}, Format: "", }, }, - "resource": { - SchemaProps: spec.SchemaProps{ - Description: "Resources requirements", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), - }, - }, - "envFrom": { - SchemaProps: spec.SchemaProps{ - Description: "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvFromSource"), - }, - }, - }, - }, - }, - "env": { - SchemaProps: spec.SchemaProps{ - Description: "List of environment variables to set in the container. Cannot be updated.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvVar"), - }, - }, - }, - }, - }, - "nodeSelector": { - SchemaProps: spec.SchemaProps{ - Description: "Set the NodeSelector for the Runner Pod", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "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": { + "owner": { 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"), - }, - }, - }, + Description: "Owner holds the owner of this object", + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, - "hostAliases": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Set host aliases for the Runner Pod", + 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("k8s.io/api/core/v1.HostAlias"), + Ref: ref(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, }, }, - }, - }, - }, - 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": { + "publicKey": { SchemaProps: spec.SchemaProps{ - Description: "Runner is the connected runner the workspace will be created in", + Description: "PublicKey is the public SSH key", Type: []string{"string"}, Format: "", }, @@ -24795,205 +29623,110 @@ func schema_pkg_apis_storage_v1_RunnerRef(ref common.ReferenceCallback) common.O }, }, }, - } -} - -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"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_RunnerServiceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SSHKeyStatus(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 { +func schema_pkg_apis_storage_v1_SSOIdentity(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "userId": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "The subject of the user", Type: []string{"string"}, Format: "", }, }, - "description": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "The username", Type: []string{"string"}, Format: "", }, }, - "networkPeerName": { + "preferredUsername": { SchemaProps: spec.SchemaProps{ - Description: "NetworkPeerName is the network peer name used to connect directly to the runner", + Description: "The preferred username / display name", Type: []string{"string"}, Format: "", }, }, - "endpoint": { + "email": { SchemaProps: spec.SchemaProps{ - Description: "Endpoint is the hostname used to connect directly to the runner", + Description: "The user email", 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": { + "emailVerified": { SchemaProps: spec.SchemaProps{ - Description: "If unusable is true, no DevPod workspaces can be scheduled on this runner.", + Description: "If the user email was verified", Type: []string{"boolean"}, Format: "", }, }, - "access": { + "extraClaims": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "ExtraClaims are claims that are not otherwise contained in this struct but may be provided by the OIDC provider. Only extra claims that are allowed by the auth config are included.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_RunnerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "phase": { - SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the space instance is in", - Type: []string{"string"}, - Format: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", - Type: []string{"string"}, - Format: "", - }, - }, - "conditions": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", + Description: "The groups from the identity provider", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, - } -} - -func schema_pkg_apis_storage_v1_SSHProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "token": { + "connector": { SchemaProps: spec.SchemaProps{ - Description: "Token defines the private ssh key to use for authentication, this is a base64 encoded string.", + Description: "Connector is the name of the connector this access key was created from", Type: []string{"string"}, Format: "", }, }, - "tokenSecretRef": { + "connectorData": { SchemaProps: spec.SchemaProps{ - Description: "TokenSecretRef defines the project secret to use as private ssh key for authentication. Will be used if `Token` is not provided.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + Description: "ConnectorData holds data used by the connector for subsequent requests after initial authentication, such as access tokens for upstream providers.\n\nThis data is never shared with end users, OAuth clients, or through the API.", + Type: []string{"string"}, + Format: "byte", }, }, }, }, }, - Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, } } @@ -25052,26 +29785,26 @@ func schema_pkg_apis_storage_v1_SharedSecret(ref common.ReferenceCallback) commo "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretSpec"), + Ref: ref(apisstoragev1.SharedSecretSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretStatus"), + Ref: ref(apisstoragev1.SharedSecretStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.SharedSecretSpec{}.OpenAPIModelName(), apisstoragev1.SharedSecretStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -25099,7 +29832,7 @@ func schema_pkg_apis_storage_v1_SharedSecretList(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -25109,7 +29842,7 @@ func schema_pkg_apis_storage_v1_SharedSecretList(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecret"), + Ref: ref(apisstoragev1.SharedSecret{}.OpenAPIModelName()), }, }, }, @@ -25120,7 +29853,7 @@ func schema_pkg_apis_storage_v1_SharedSecretList(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.SharedSecret{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -25148,7 +29881,7 @@ func schema_pkg_apis_storage_v1_SharedSecretSpec(ref common.ReferenceCallback) c "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "data": { @@ -25174,7 +29907,7 @@ func schema_pkg_apis_storage_v1_SharedSecretSpec(ref common.ReferenceCallback) c 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -25184,7 +29917,7 @@ func schema_pkg_apis_storage_v1_SharedSecretSpec(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -25203,7 +29936,7 @@ func schema_pkg_apis_storage_v1_SharedSecretStatus(ref common.ReferenceCallback) 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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, @@ -25213,7 +29946,7 @@ func schema_pkg_apis_storage_v1_SharedSecretStatus(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + storagev1.Condition{}.OpenAPIModelName()}, } } @@ -25241,26 +29974,26 @@ func schema_pkg_apis_storage_v1_SpaceInstance(ref common.ReferenceCallback) comm "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceSpec"), + Ref: ref(apisstoragev1.SpaceInstanceSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceStatus"), + Ref: ref(apisstoragev1.SpaceInstanceStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.SpaceInstanceSpec{}.OpenAPIModelName(), apisstoragev1.SpaceInstanceStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -25288,7 +30021,7 @@ func schema_pkg_apis_storage_v1_SpaceInstanceList(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -25298,7 +30031,7 @@ func schema_pkg_apis_storage_v1_SpaceInstanceList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstance"), + Ref: ref(apisstoragev1.SpaceInstance{}.OpenAPIModelName()), }, }, }, @@ -25309,7 +30042,7 @@ func schema_pkg_apis_storage_v1_SpaceInstanceList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.SpaceInstance{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -25336,26 +30069,26 @@ func schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref common.ReferenceCallback) "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "templateRef": { SchemaProps: spec.SchemaProps{ Description: "TemplateRef holds the space template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Ref: ref(apisstoragev1.TemplateRef{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(apisstoragev1.ClusterRef{}.OpenAPIModelName()), }, }, "parameters": { @@ -25373,7 +30106,7 @@ func schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref common.ReferenceCallback) 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(apisstoragev1.InstanceAccessRule{}.OpenAPIModelName()), }, }, }, @@ -25387,7 +30120,7 @@ func schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref common.ReferenceCallback) 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -25397,7 +30130,7 @@ func schema_pkg_apis_storage_v1_SpaceInstanceSpec(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.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"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.ClusterRef{}.OpenAPIModelName(), apisstoragev1.InstanceAccessRule{}.OpenAPIModelName(), apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName(), apisstoragev1.TemplateRef{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -25436,7 +30169,7 @@ func schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref common.ReferenceCallback 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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, @@ -25445,13 +30178,13 @@ func schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref common.ReferenceCallback "spaceObjects": { SchemaProps: spec.SchemaProps{ Description: "SpaceObjects are the objects that were applied within the virtual cluster space", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), + Ref: ref(apisstoragev1.ObjectsStatus{}.OpenAPIModelName()), }, }, "space": { SchemaProps: spec.SchemaProps{ Description: "Space is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Ref: ref(apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName()), }, }, "ignoreReconciliation": { @@ -25465,7 +30198,7 @@ func schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"}, + storagev1.Condition{}.OpenAPIModelName(), apisstoragev1.ObjectsStatus{}.OpenAPIModelName(), apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName()}, } } @@ -25480,14 +30213,14 @@ func schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref common.Refer SchemaProps: spec.SchemaProps{ Description: "The space instance metadata", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + Ref: ref(apisstoragev1.TemplateMetadata{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + apisstoragev1.TemplateMetadata{}.OpenAPIModelName()}, } } @@ -25515,26 +30248,26 @@ func schema_pkg_apis_storage_v1_SpaceTemplate(ref common.ReferenceCallback) comm "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateSpec"), + Ref: ref(apisstoragev1.SpaceTemplateSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateStatus"), + Ref: ref(apisstoragev1.SpaceTemplateStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.SpaceTemplateSpec{}.OpenAPIModelName(), apisstoragev1.SpaceTemplateStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -25548,14 +30281,14 @@ func schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref common.ReferenceCall SchemaProps: spec.SchemaProps{ Description: "The space metadata", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + Ref: ref(apisstoragev1.TemplateMetadata{}.OpenAPIModelName()), }, }, "instanceTemplate": { SchemaProps: spec.SchemaProps{ Description: "InstanceTemplate holds the space instance template", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition"), + Ref: ref(apisstoragev1.SpaceInstanceTemplateDefinition{}.OpenAPIModelName()), }, }, "objects": { @@ -25573,7 +30306,7 @@ func schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart"), + Ref: ref(apisstoragev1.TemplateHelmChart{}.OpenAPIModelName()), }, }, }, @@ -25587,7 +30320,7 @@ func schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"), + Ref: ref(apisstoragev1.AppReference{}.OpenAPIModelName()), }, }, }, @@ -25596,14 +30329,14 @@ func schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref common.ReferenceCall "access": { SchemaProps: spec.SchemaProps{ Description: "The space access", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess"), + Ref: ref(apisstoragev1.InstanceAccess{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + apisstoragev1.AppReference{}.OpenAPIModelName(), apisstoragev1.InstanceAccess{}.OpenAPIModelName(), apisstoragev1.SpaceInstanceTemplateDefinition{}.OpenAPIModelName(), apisstoragev1.TemplateHelmChart{}.OpenAPIModelName(), apisstoragev1.TemplateMetadata{}.OpenAPIModelName()}, } } @@ -25631,7 +30364,7 @@ func schema_pkg_apis_storage_v1_SpaceTemplateList(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -25641,7 +30374,7 @@ func schema_pkg_apis_storage_v1_SpaceTemplateList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplate"), + Ref: ref(apisstoragev1.SpaceTemplate{}.OpenAPIModelName()), }, }, }, @@ -25652,7 +30385,7 @@ func schema_pkg_apis_storage_v1_SpaceTemplateList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.SpaceTemplate{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -25680,14 +30413,14 @@ func schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref common.ReferenceCallback) "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "Template holds the space template", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Ref: ref(apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName()), }, }, "parameters": { @@ -25698,7 +30431,7 @@ func schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref common.ReferenceCallback) 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(apisstoragev1.AppParameter{}.OpenAPIModelName()), }, }, }, @@ -25712,7 +30445,7 @@ func schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion"), + Ref: ref(apisstoragev1.SpaceTemplateVersion{}.OpenAPIModelName()), }, }, }, @@ -25726,7 +30459,7 @@ func schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref common.ReferenceCallback) 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -25736,7 +30469,7 @@ func schema_pkg_apis_storage_v1_SpaceTemplateSpec(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.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.AppParameter{}.OpenAPIModelName(), apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName(), apisstoragev1.SpaceTemplateVersion{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -25761,7 +30494,7 @@ func schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref common.ReferenceCallbac SchemaProps: spec.SchemaProps{ Description: "Template holds the space template", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Ref: ref(apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName()), }, }, "parameters": { @@ -25772,7 +30505,7 @@ func schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref common.ReferenceCallbac 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(apisstoragev1.AppParameter{}.OpenAPIModelName()), }, }, }, @@ -25789,7 +30522,33 @@ func schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"}, + apisstoragev1.AppParameter{}.OpenAPIModelName(), apisstoragev1.SpaceTemplateDefinition{}.OpenAPIModelName()}, + } +} + +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: "", + }, + }, + }, + }, + }, } } @@ -25803,7 +30562,7 @@ func schema_pkg_apis_storage_v1_StreamContainer(ref common.ReferenceCallback) co SchemaProps: spec.SchemaProps{ Description: "Label selector for pods. The newest matching pod will be used to stream logs from", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "container": { @@ -25817,7 +30576,7 @@ func schema_pkg_apis_storage_v1_StreamContainer(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -25865,26 +30624,26 @@ func schema_pkg_apis_storage_v1_Target(ref common.ReferenceCallback) common.Open "spaceInstance": { SchemaProps: spec.SchemaProps{ Description: "SpaceInstance defines a space instance as target", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetInstance"), + Ref: ref(apisstoragev1.TargetInstance{}.OpenAPIModelName()), }, }, "virtualClusterInstance": { SchemaProps: spec.SchemaProps{ Description: "VirtualClusterInstance defines a virtual cluster instance as target", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetInstance"), + Ref: ref(apisstoragev1.TargetInstance{}.OpenAPIModelName()), }, }, "cluster": { SchemaProps: spec.SchemaProps{ Description: "Cluster defines a connected cluster as target", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetCluster"), + Ref: ref(apisstoragev1.TargetCluster{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetInstance"}, + apisstoragev1.TargetCluster{}.OpenAPIModelName(), apisstoragev1.TargetInstance{}.OpenAPIModelName()}, } } @@ -25996,26 +30755,26 @@ func schema_pkg_apis_storage_v1_Task(ref common.ReferenceCallback) common.OpenAP "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskSpec"), + Ref: ref(apisstoragev1.TaskSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskStatus"), + Ref: ref(apisstoragev1.TaskStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.TaskSpec{}.OpenAPIModelName(), apisstoragev1.TaskStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -26028,20 +30787,20 @@ func schema_pkg_apis_storage_v1_TaskDefinition(ref common.ReferenceCallback) com "appTask": { SchemaProps: spec.SchemaProps{ Description: "AppTask is an app task", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppTask"), + Ref: ref(apisstoragev1.AppTask{}.OpenAPIModelName()), }, }, "helm": { SchemaProps: spec.SchemaProps{ Description: "HelmTask executes a helm command", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTask"), + Ref: ref(apisstoragev1.HelmTask{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppTask", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTask"}, + apisstoragev1.AppTask{}.OpenAPIModelName(), apisstoragev1.HelmTask{}.OpenAPIModelName()}, } } @@ -26069,7 +30828,7 @@ func schema_pkg_apis_storage_v1_TaskList(ref common.ReferenceCallback) common.Op "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -26079,7 +30838,7 @@ func schema_pkg_apis_storage_v1_TaskList(ref common.ReferenceCallback) common.Op Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Task"), + Ref: ref(apisstoragev1.Task{}.OpenAPIModelName()), }, }, }, @@ -26090,7 +30849,7 @@ func schema_pkg_apis_storage_v1_TaskList(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Task", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.Task{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -26115,7 +30874,7 @@ func schema_pkg_apis_storage_v1_TaskSpec(ref common.ReferenceCallback) common.Op 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -26124,34 +30883,34 @@ func schema_pkg_apis_storage_v1_TaskSpec(ref common.ReferenceCallback) common.Op "scope": { SchemaProps: spec.SchemaProps{ Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + Ref: ref(apisstoragev1.AccessKeyScope{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "target": { SchemaProps: spec.SchemaProps{ Description: "Target where this task should get executed", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target"), + Ref: ref(apisstoragev1.Target{}.OpenAPIModelName()), }, }, "task": { SchemaProps: spec.SchemaProps{ Description: "Task defines the task to execute", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition"), + Ref: ref(apisstoragev1.TaskDefinition{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.AccessKeyScope{}.OpenAPIModelName(), apisstoragev1.Target{}.OpenAPIModelName(), apisstoragev1.TaskDefinition{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -26176,7 +30935,7 @@ func schema_pkg_apis_storage_v1_TaskStatus(ref common.ReferenceCallback) common. 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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, @@ -26200,14 +30959,14 @@ func schema_pkg_apis_storage_v1_TaskStatus(ref common.ReferenceCallback) common. "containerState": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: This is not set anymore after migrating to runners ContainerState describes the container state of the task", - Ref: ref("k8s.io/api/core/v1.ContainerStatus"), + Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "k8s.io/api/core/v1.ContainerStatus"}, + storagev1.Condition{}.OpenAPIModelName(), corev1.ContainerStatus{}.OpenAPIModelName()}, } } @@ -26235,26 +30994,26 @@ func schema_pkg_apis_storage_v1_Team(ref common.ReferenceCallback) common.OpenAP "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamSpec"), + Ref: ref(apisstoragev1.TeamSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamStatus"), + Ref: ref(apisstoragev1.TeamStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.TeamSpec{}.OpenAPIModelName(), apisstoragev1.TeamStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -26282,7 +31041,7 @@ func schema_pkg_apis_storage_v1_TeamList(ref common.ReferenceCallback) common.Op "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -26292,7 +31051,7 @@ func schema_pkg_apis_storage_v1_TeamList(ref common.ReferenceCallback) common.Op Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Team"), + Ref: ref(apisstoragev1.Team{}.OpenAPIModelName()), }, }, }, @@ -26303,7 +31062,7 @@ func schema_pkg_apis_storage_v1_TeamList(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Team", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.Team{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -26330,7 +31089,7 @@ func schema_pkg_apis_storage_v1_TeamSpec(ref common.ReferenceCallback) common.Op "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "username": { @@ -26377,7 +31136,7 @@ func schema_pkg_apis_storage_v1_TeamSpec(ref common.ReferenceCallback) common.Op Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), + Ref: ref(apisstoragev1.KindSecretRef{}.OpenAPIModelName()), }, }, }, @@ -26391,7 +31150,7 @@ func schema_pkg_apis_storage_v1_TeamSpec(ref common.ReferenceCallback) common.Op 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(apisstoragev1.ClusterRoleRef{}.OpenAPIModelName()), }, }, }, @@ -26405,7 +31164,7 @@ func schema_pkg_apis_storage_v1_TeamSpec(ref common.ReferenceCallback) common.Op 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -26415,7 +31174,7 @@ func schema_pkg_apis_storage_v1_TeamSpec(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.ClusterRoleRef{}.OpenAPIModelName(), apisstoragev1.KindSecretRef{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -26466,7 +31225,7 @@ func schema_pkg_apis_storage_v1_TemplateHelmChart(ref common.ReferenceCallback) "usernameRef": { SchemaProps: spec.SchemaProps{ Description: "The username that is required for this repository", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef"), + Ref: ref(v1.ChartSecretRef{}.OpenAPIModelName()), }, }, "password": { @@ -26479,7 +31238,7 @@ func schema_pkg_apis_storage_v1_TemplateHelmChart(ref common.ReferenceCallback) "passwordRef": { SchemaProps: spec.SchemaProps{ Description: "The password that is required for this repository", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef"), + Ref: ref(v1.ChartSecretRef{}.OpenAPIModelName()), }, }, "insecureSkipTlsVerify": { @@ -26528,7 +31287,7 @@ func schema_pkg_apis_storage_v1_TemplateHelmChart(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef"}, + v1.ChartSecretRef{}.OpenAPIModelName()}, } } @@ -26609,6 +31368,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(apisstoragev1.TerraformTemplateSourceGit{}.OpenAPIModelName()), + }, + }, + "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(apisstoragev1.TerraformTemplate{}.OpenAPIModelName()), + }, + }, + "kubernetes": { + SchemaProps: spec.SchemaProps{ + Description: "Kubernetes is the kubernetes template to use for this node environment.", + Ref: ref(apisstoragev1.TerraformTemplate{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.TerraformTemplate{}.OpenAPIModelName(), apisstoragev1.TerraformTemplateSourceGit{}.OpenAPIModelName()}, + } +} + +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(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref(apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName()), + }, + }, + "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(apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName()), + }, + }, + "nodeTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTemplate is the template to use for this node type.", + Ref: ref(apisstoragev1.TerraformTemplate{}.OpenAPIModelName()), + }, + }, + "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{ + apisstoragev1.ManagedNodeTypeObjectMeta{}.OpenAPIModelName(), apisstoragev1.NodeTypeOverhead{}.OpenAPIModelName(), apisstoragev1.TerraformTemplate{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, + } +} + +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(apisstoragev1.TerraformTemplateSourceGit{}.OpenAPIModelName()), + }, + }, + "timeout": { + SchemaProps: spec.SchemaProps{ + Description: "Timeout is the timeout to use for the terraform operations. Defaults to 60m.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + apisstoragev1.TerraformTemplateSourceGit{}.OpenAPIModelName()}, + } +} + +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(apisstoragev1.SecretRef{}.OpenAPIModelName()), + }, + }, + "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{ + apisstoragev1.SecretRef{}.OpenAPIModelName()}, + } +} + func schema_pkg_apis_storage_v1_User(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -26633,26 +31649,26 @@ func schema_pkg_apis_storage_v1_User(ref common.ReferenceCallback) common.OpenAP "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserSpec"), + Ref: ref(apisstoragev1.UserSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserStatus"), + Ref: ref(apisstoragev1.UserStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.UserSpec{}.OpenAPIModelName(), apisstoragev1.UserStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -26680,7 +31696,7 @@ func schema_pkg_apis_storage_v1_UserList(ref common.ReferenceCallback) common.Op "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -26690,7 +31706,7 @@ func schema_pkg_apis_storage_v1_UserList(ref common.ReferenceCallback) common.Op Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.User"), + Ref: ref(apisstoragev1.User{}.OpenAPIModelName()), }, }, }, @@ -26701,7 +31717,7 @@ func schema_pkg_apis_storage_v1_UserList(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.User", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.User{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -26740,20 +31756,20 @@ func schema_pkg_apis_storage_v1_UserOrTeamEntity(ref common.ReferenceCallback) c "user": { SchemaProps: spec.SchemaProps{ Description: "User describes an user", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Ref: ref(apisstoragev1.EntityInfo{}.OpenAPIModelName()), }, }, "team": { SchemaProps: spec.SchemaProps{ Description: "Team describes a team", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Ref: ref(apisstoragev1.EntityInfo{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + apisstoragev1.EntityInfo{}.OpenAPIModelName()}, } } @@ -26780,7 +31796,7 @@ func schema_pkg_apis_storage_v1_UserSpec(ref common.ReferenceCallback) common.Op "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "username": { @@ -26844,13 +31860,13 @@ func schema_pkg_apis_storage_v1_UserSpec(ref common.ReferenceCallback) common.Op "passwordRef": { SchemaProps: spec.SchemaProps{ Description: "A reference to the user password", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + Ref: ref(apisstoragev1.SecretRef{}.OpenAPIModelName()), }, }, "codesRef": { SchemaProps: spec.SchemaProps{ Description: "A reference to the users access keys", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + Ref: ref(apisstoragev1.SecretRef{}.OpenAPIModelName()), }, }, "imagePullSecrets": { @@ -26860,7 +31876,7 @@ func schema_pkg_apis_storage_v1_UserSpec(ref common.ReferenceCallback) common.Op Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), + Ref: ref(apisstoragev1.KindSecretRef{}.OpenAPIModelName()), }, }, }, @@ -26888,7 +31904,7 @@ func schema_pkg_apis_storage_v1_UserSpec(ref common.ReferenceCallback) common.Op 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(apisstoragev1.ClusterRoleRef{}.OpenAPIModelName()), }, }, }, @@ -26902,7 +31918,23 @@ func schema_pkg_apis_storage_v1_UserSpec(ref common.ReferenceCallback) common.Op 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(apisstoragev1.Access{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "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: "", }, }, }, @@ -26912,7 +31944,7 @@ func schema_pkg_apis_storage_v1_UserSpec(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.ClusterRoleRef{}.OpenAPIModelName(), apisstoragev1.KindSecretRef{}.OpenAPIModelName(), apisstoragev1.SecretRef{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName()}, } } @@ -26960,14 +31992,14 @@ func schema_pkg_apis_storage_v1_VaultAuthSpec(ref common.ReferenceCallback) comm "tokenSecretRef": { SchemaProps: spec.SchemaProps{ Description: "TokenSecretRef defines the Kubernetes secret to use for token authentication. Will be used if `token` is not provided.\n\nSecret data should contain the `token` key.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + Ref: ref(corev1.SecretKeySelector{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, + corev1.SecretKeySelector{}.OpenAPIModelName()}, } } @@ -27008,7 +32040,7 @@ func schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref common.ReferenceCallbac "auth": { SchemaProps: spec.SchemaProps{ Description: "Auth defines the authentication method to use for this project.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultAuthSpec"), + Ref: ref(apisstoragev1.VaultAuthSpec{}.OpenAPIModelName()), }, }, "syncInterval": { @@ -27022,7 +32054,7 @@ func schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultAuthSpec"}, + apisstoragev1.VaultAuthSpec{}.OpenAPIModelName()}, } } @@ -27036,14 +32068,14 @@ func schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref common.ReferenceCa SchemaProps: spec.SchemaProps{ Description: "Ingress defines virtual cluster access via ingress", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec"), + Ref: ref(apisstoragev1.VirtualClusterAccessPointIngressSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec"}, + apisstoragev1.VirtualClusterAccessPointIngressSpec{}.OpenAPIModelName()}, } } @@ -27114,7 +32146,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"), + Ref: ref(apisstoragev1.AppReference{}.OpenAPIModelName()), }, }, }, @@ -27128,7 +32160,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart"), + Ref: ref(apisstoragev1.TemplateHelmChart{}.OpenAPIModelName()), }, }, }, @@ -27144,28 +32176,28 @@ func schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref common.ReferenceCal "access": { SchemaProps: spec.SchemaProps{ Description: "Access defines the access of users and teams to the virtual cluster.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess"), + Ref: ref(apisstoragev1.InstanceAccess{}.OpenAPIModelName()), }, }, "pro": { SchemaProps: spec.SchemaProps{ Description: "Pro defines the pro settings for the virtual cluster", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterProSpec"), + Ref: ref(apisstoragev1.VirtualClusterProSpec{}.OpenAPIModelName()), }, }, "helmRelease": { SchemaProps: spec.SchemaProps{ Description: "HelmRelease is the helm release configuration for the virtual cluster.", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease"), + Ref: ref(apisstoragev1.VirtualClusterHelmRelease{}.OpenAPIModelName()), }, }, "accessPoint": { SchemaProps: spec.SchemaProps{ Description: "AccessPoint defines settings to expose the virtual cluster directly via an ingress rather than through the (default) Loft proxy", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPoint"), + Ref: ref(apisstoragev1.VirtualClusterAccessPoint{}.OpenAPIModelName()), }, }, "forwardToken": { @@ -27179,7 +32211,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref common.ReferenceCal }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPoint", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterProSpec"}, + apisstoragev1.AppReference{}.OpenAPIModelName(), apisstoragev1.InstanceAccess{}.OpenAPIModelName(), apisstoragev1.TemplateHelmChart{}.OpenAPIModelName(), apisstoragev1.VirtualClusterAccessPoint{}.OpenAPIModelName(), apisstoragev1.VirtualClusterHelmRelease{}.OpenAPIModelName(), apisstoragev1.VirtualClusterProSpec{}.OpenAPIModelName()}, } } @@ -27224,6 +32256,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: "", + }, + }, }, }, }, @@ -27240,7 +32279,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref common.ReferenceCa SchemaProps: spec.SchemaProps{ Description: "infos about what chart to deploy", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmChart"), + Ref: ref(apisstoragev1.VirtualClusterHelmChart{}.OpenAPIModelName()), }, }, "values": { @@ -27254,7 +32293,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmChart"}, + apisstoragev1.VirtualClusterHelmChart{}.OpenAPIModelName()}, } } @@ -27272,7 +32311,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref common.Refer }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -27291,14 +32330,14 @@ func schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref common.Refer SchemaProps: spec.SchemaProps{ Description: "the release that was deployed", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease"), + Ref: ref(apisstoragev1.VirtualClusterHelmRelease{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + apisstoragev1.VirtualClusterHelmRelease{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -27326,26 +32365,26 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstance(ref common.ReferenceCallb "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceSpec"), + Ref: ref(apisstoragev1.VirtualClusterInstanceSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceStatus"), + Ref: ref(apisstoragev1.VirtualClusterInstanceStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.VirtualClusterInstanceSpec{}.OpenAPIModelName(), apisstoragev1.VirtualClusterInstanceStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -27373,7 +32412,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref common.ReferenceC "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -27383,7 +32422,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstance"), + Ref: ref(apisstoragev1.VirtualClusterInstance{}.OpenAPIModelName()), }, }, }, @@ -27394,7 +32433,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.VirtualClusterInstance{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -27421,26 +32460,26 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref common.ReferenceC "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "templateRef": { SchemaProps: spec.SchemaProps{ Description: "TemplateRef holds the virtual cluster template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Ref: ref(apisstoragev1.TemplateRef{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "Template is the inline template to use for virtual cluster creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + Ref: ref(apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName()), }, }, "clusterRef": { SchemaProps: spec.SchemaProps{ Description: "ClusterRef is the reference to the connected cluster holding this virtual cluster", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef"), + Ref: ref(apisstoragev1.VirtualClusterClusterRef{}.OpenAPIModelName()), }, }, "parameters": { @@ -27458,7 +32497,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref common.ReferenceC 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(apisstoragev1.InstanceAccessRule{}.OpenAPIModelName()), }, }, }, @@ -27472,7 +32511,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref common.ReferenceC 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -27492,11 +32531,18 @@ 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: "", + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.InstanceAccessRule{}.OpenAPIModelName(), apisstoragev1.TemplateRef{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName(), apisstoragev1.VirtualClusterClusterRef{}.OpenAPIModelName(), apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName()}, } } @@ -27534,6 +32580,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.", @@ -27549,7 +32602,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref common.Referenc 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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, @@ -27558,19 +32611,19 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref common.Referenc "virtualClusterObjects": { SchemaProps: spec.SchemaProps{ Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), + Ref: ref(apisstoragev1.ObjectsStatus{}.OpenAPIModelName()), }, }, "spaceObjects": { SchemaProps: spec.SchemaProps{ Description: "SpaceObjects are the objects that were applied within the virtual cluster space", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), + Ref: ref(apisstoragev1.ObjectsStatus{}.OpenAPIModelName()), }, }, "virtualCluster": { SchemaProps: spec.SchemaProps{ Description: "VirtualCluster is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + Ref: ref(apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName()), }, }, "ignoreReconciliation": { @@ -27584,7 +32637,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref common.Referenc }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + storagev1.Condition{}.OpenAPIModelName(), apisstoragev1.ObjectsStatus{}.OpenAPIModelName(), apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName()}, } } @@ -27599,14 +32652,14 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref com 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"), + Ref: ref(apisstoragev1.TemplateMetadata{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + apisstoragev1.TemplateMetadata{}.OpenAPIModelName()}, } } @@ -27639,7 +32692,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref common SchemaProps: spec.SchemaProps{ Description: "The space metadata", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + Ref: ref(apisstoragev1.TemplateMetadata{}.OpenAPIModelName()), }, }, "objects": { @@ -27657,7 +32710,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart"), + Ref: ref(apisstoragev1.TemplateHelmChart{}.OpenAPIModelName()), }, }, }, @@ -27671,7 +32724,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"), + Ref: ref(apisstoragev1.AppReference{}.OpenAPIModelName()), }, }, }, @@ -27681,7 +32734,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + apisstoragev1.AppReference{}.OpenAPIModelName(), apisstoragev1.TemplateHelmChart{}.OpenAPIModelName(), apisstoragev1.TemplateMetadata{}.OpenAPIModelName()}, } } @@ -27728,7 +32781,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterStatus(ref common.ReferenceCallbac 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(storagev1.Condition{}.OpenAPIModelName()), }, }, }, @@ -27744,7 +32797,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterStatus(ref common.ReferenceCallbac "virtualClusterObjects": { SchemaProps: spec.SchemaProps{ Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), + Ref: ref(apisstoragev1.ObjectsStatus{}.OpenAPIModelName()), }, }, "deployHash": { @@ -27764,14 +32817,14 @@ func schema_pkg_apis_storage_v1_VirtualClusterStatus(ref common.ReferenceCallbac "helmRelease": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED: do not use anymore the status of the helm release that was used to deploy the virtual cluster", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus"), + Ref: ref(apisstoragev1.VirtualClusterHelmReleaseStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus"}, + storagev1.Condition{}.OpenAPIModelName(), apisstoragev1.ObjectsStatus{}.OpenAPIModelName(), apisstoragev1.VirtualClusterHelmReleaseStatus{}.OpenAPIModelName()}, } } @@ -27799,26 +32852,26 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref common.ReferenceCallb "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpec"), + Ref: ref(apisstoragev1.VirtualClusterTemplateSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateStatus"), + Ref: ref(apisstoragev1.VirtualClusterTemplateStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apisstoragev1.VirtualClusterTemplateSpec{}.OpenAPIModelName(), apisstoragev1.VirtualClusterTemplateStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -27832,14 +32885,14 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref common.Refe SchemaProps: spec.SchemaProps{ Description: "The virtual cluster metadata", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + Ref: ref(apisstoragev1.TemplateMetadata{}.OpenAPIModelName()), }, }, "instanceTemplate": { SchemaProps: spec.SchemaProps{ Description: "InstanceTemplate holds the virtual cluster instance template", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition"), + Ref: ref(apisstoragev1.VirtualClusterInstanceTemplateDefinition{}.OpenAPIModelName()), }, }, "apps": { @@ -27850,7 +32903,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference"), + Ref: ref(apisstoragev1.AppReference{}.OpenAPIModelName()), }, }, }, @@ -27864,7 +32917,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart"), + Ref: ref(apisstoragev1.TemplateHelmChart{}.OpenAPIModelName()), }, }, }, @@ -27880,28 +32933,28 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref common.Refe "access": { SchemaProps: spec.SchemaProps{ Description: "Access defines the access of users and teams to the virtual cluster.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess"), + Ref: ref(apisstoragev1.InstanceAccess{}.OpenAPIModelName()), }, }, "pro": { SchemaProps: spec.SchemaProps{ Description: "Pro defines the pro settings for the virtual cluster", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterProSpec"), + Ref: ref(apisstoragev1.VirtualClusterProSpec{}.OpenAPIModelName()), }, }, "helmRelease": { SchemaProps: spec.SchemaProps{ Description: "HelmRelease is the helm release configuration for the virtual cluster.", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease"), + Ref: ref(apisstoragev1.VirtualClusterHelmRelease{}.OpenAPIModelName()), }, }, "accessPoint": { SchemaProps: spec.SchemaProps{ Description: "AccessPoint defines settings to expose the virtual cluster directly via an ingress rather than through the (default) Loft proxy", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPoint"), + Ref: ref(apisstoragev1.VirtualClusterAccessPoint{}.OpenAPIModelName()), }, }, "forwardToken": { @@ -27915,14 +32968,14 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref common.Refe SchemaProps: spec.SchemaProps{ Description: "SpaceTemplate holds the space template", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition"), + Ref: ref(apisstoragev1.VirtualClusterSpaceTemplateDefinition{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPoint", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterProSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition"}, + apisstoragev1.AppReference{}.OpenAPIModelName(), apisstoragev1.InstanceAccess{}.OpenAPIModelName(), apisstoragev1.TemplateHelmChart{}.OpenAPIModelName(), apisstoragev1.TemplateMetadata{}.OpenAPIModelName(), apisstoragev1.VirtualClusterAccessPoint{}.OpenAPIModelName(), apisstoragev1.VirtualClusterHelmRelease{}.OpenAPIModelName(), apisstoragev1.VirtualClusterInstanceTemplateDefinition{}.OpenAPIModelName(), apisstoragev1.VirtualClusterProSpec{}.OpenAPIModelName(), apisstoragev1.VirtualClusterSpaceTemplateDefinition{}.OpenAPIModelName()}, } } @@ -27950,7 +33003,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref common.ReferenceC "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -27960,7 +33013,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplate"), + Ref: ref(apisstoragev1.VirtualClusterTemplate{}.OpenAPIModelName()), }, }, }, @@ -27971,7 +33024,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apisstoragev1.VirtualClusterTemplate{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -28018,14 +33071,14 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref common.ReferenceC "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"), + Ref: ref(apisstoragev1.UserOrTeam{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName()), }, }, "parameters": { @@ -28036,7 +33089,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref common.ReferenceC 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(apisstoragev1.AppParameter{}.OpenAPIModelName()), }, }, }, @@ -28050,7 +33103,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion"), + Ref: ref(apisstoragev1.VirtualClusterTemplateVersion{}.OpenAPIModelName()), }, }, }, @@ -28064,7 +33117,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref common.ReferenceC 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(apisstoragev1.Access{}.OpenAPIModelName()), }, }, }, @@ -28073,14 +33126,14 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref common.ReferenceC "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"), + Ref: ref(apisstoragev1.VirtualClusterTemplateSpaceTemplateRef{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + apisstoragev1.Access{}.OpenAPIModelName(), apisstoragev1.AppParameter{}.OpenAPIModelName(), apisstoragev1.UserOrTeam{}.OpenAPIModelName(), apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName(), apisstoragev1.VirtualClusterTemplateSpaceTemplateRef{}.OpenAPIModelName(), apisstoragev1.VirtualClusterTemplateVersion{}.OpenAPIModelName()}, } } @@ -28105,7 +33158,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref common.Referen SchemaProps: spec.SchemaProps{ Description: "Template holds the space template", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + Ref: ref(apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName()), }, }, "parameters": { @@ -28116,7 +33169,7 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref common.Referen 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(apisstoragev1.AppParameter{}.OpenAPIModelName()), }, }, }, @@ -28133,38 +33186,103 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref common.Referen }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + apisstoragev1.AppParameter{}.OpenAPIModelName(), apisstoragev1.VirtualClusterTemplateDefinition{}.OpenAPIModelName()}, } } -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: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_ui_v1_MultiRegion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "enabled": { + SchemaProps: spec.SchemaProps{ + Description: "Enabled indicates whether multi-region is enabled", + Type: []string{"boolean"}, + Format: "", + }, + }, + "region": { + SchemaProps: spec.SchemaProps{ + Description: "Region is the region where this vCluster Platform instance is running", + Type: []string{"string"}, + Format: "", }, }, }, @@ -28237,26 +33355,26 @@ func schema_pkg_apis_ui_v1_UISettings(ref common.ReferenceCallback) common.OpenA "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsSpec"), + Ref: ref(uiv1.UISettingsSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsStatus"), + Ref: ref(uiv1.UISettingsStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsSpec", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + uiv1.UISettingsSpec{}.OpenAPIModelName(), uiv1.UISettingsStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -28275,7 +33393,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: "", }, @@ -28353,17 +33485,24 @@ func schema_pkg_apis_ui_v1_UISettingsConfig(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton"), + Ref: ref(uiv1.NavBarButton{}.OpenAPIModelName()), }, }, }, }, }, + "externalURLs": { + SchemaProps: spec.SchemaProps{ + Description: "External URLs that can be called from the UI", + Default: map[string]interface{}{}, + Ref: ref(uiv1.ExternalURLs{}.OpenAPIModelName()), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton"}, + uiv1.ExternalURLs{}.OpenAPIModelName(), uiv1.NavBarButton{}.OpenAPIModelName()}, } } @@ -28383,7 +33522,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: "", }, @@ -28461,12 +33614,19 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton"), + Ref: ref(uiv1.NavBarButton{}.OpenAPIModelName()), }, }, }, }, }, + "externalURLs": { + SchemaProps: spec.SchemaProps{ + Description: "External URLs that can be called from the UI", + Default: map[string]interface{}{}, + Ref: ref(uiv1.ExternalURLs{}.OpenAPIModelName()), + }, + }, "productName": { SchemaProps: spec.SchemaProps{ Description: "Name is the name of the product", @@ -28483,7 +33643,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 +33655,46 @@ 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(uiv1.VClusterVersion{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "loftHosted": { + SchemaProps: spec.SchemaProps{ + Description: "LoftHosted indicates whether the vCluster Platform instance is hosted and operated by Loft Labs Inc.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "multiRegion": { + SchemaProps: spec.SchemaProps{ + Description: "MultiRegion holds the multi-region configuration", + Default: map[string]interface{}{}, + Ref: ref(uiv1.MultiRegion{}.OpenAPIModelName()), + }, + }, + "agentNamespace": { + SchemaProps: spec.SchemaProps{ + Description: "AgentNamespace is the namespace where the connected cluster agents are deployed by default", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton"}, + uiv1.ExternalURLs{}.OpenAPIModelName(), uiv1.MultiRegion{}.OpenAPIModelName(), uiv1.NavBarButton{}.OpenAPIModelName(), uiv1.VClusterVersion{}.OpenAPIModelName()}, } } @@ -28509,6 +33704,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(uiv1.CspPolicy{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "cspConfig": { + SchemaProps: spec.SchemaProps{ + Description: "CspConfig holds the raw csp config from the user", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + uiv1.CspPolicy{}.OpenAPIModelName()}, + } +} + +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: "", + }, + }, + }, }, }, } @@ -28537,26 +33784,26 @@ func schema_pkg_apis_virtualcluster_v1_HelmRelease(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseSpec"), + Ref: ref(virtualclusterv1.HelmReleaseSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseStatus"), + Ref: ref(virtualclusterv1.HelmReleaseStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseSpec", "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + virtualclusterv1.HelmReleaseSpec{}.OpenAPIModelName(), virtualclusterv1.HelmReleaseStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -28583,7 +33830,7 @@ func schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref common.ReferenceCallb "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -28593,7 +33840,7 @@ func schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmRelease"), + Ref: ref(virtualclusterv1.HelmRelease{}.OpenAPIModelName()), }, }, }, @@ -28604,7 +33851,7 @@ func schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmRelease", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + virtualclusterv1.HelmRelease{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -28618,7 +33865,7 @@ func schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref common.ReferenceCallb SchemaProps: spec.SchemaProps{ Description: "Chart holds information about a chart that should get deployed", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"), + Ref: ref(v1.Chart{}.OpenAPIModelName()), }, }, "manifests": { @@ -28631,7 +33878,7 @@ func schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref common.ReferenceCallb "bash": { SchemaProps: spec.SchemaProps{ Description: "Bash holds the bash script to execute in a container in the target", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash"), + Ref: ref(v1.Bash{}.OpenAPIModelName()), }, }, "values": { @@ -28668,7 +33915,7 @@ func schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"}, + v1.Bash{}.OpenAPIModelName(), v1.Chart{}.OpenAPIModelName()}, } } @@ -28688,20 +33935,20 @@ func schema_pkg_apis_virtualcluster_v1_HelmReleaseStatus(ref common.ReferenceCal "info": { SchemaProps: spec.SchemaProps{ Description: "Info provides information about a release", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info"), + Ref: ref(v1.Info{}.OpenAPIModelName()), }, }, "metadata": { SchemaProps: spec.SchemaProps{ Description: "Metadata provides information about a chart", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"), + Ref: ref(v1.Metadata{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"}, + v1.Info{}.OpenAPIModelName(), v1.Metadata{}.OpenAPIModelName()}, } } @@ -28805,13 +34052,13 @@ func schema_k8sio_api_admissionregistration_v1_MatchResources(ref common.Referen "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"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "resourceRules": { @@ -28827,7 +34074,7 @@ func schema_k8sio_api_admissionregistration_v1_MatchResources(ref common.Referen Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.NamedRuleWithOperations"), + Ref: ref(admissionregistrationv1.NamedRuleWithOperations{}.OpenAPIModelName()), }, }, }, @@ -28846,7 +34093,7 @@ func schema_k8sio_api_admissionregistration_v1_MatchResources(ref common.Referen Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.NamedRuleWithOperations"), + Ref: ref(admissionregistrationv1.NamedRuleWithOperations{}.OpenAPIModelName()), }, }, }, @@ -28869,7 +34116,7 @@ func schema_k8sio_api_admissionregistration_v1_MatchResources(ref common.Referen }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.NamedRuleWithOperations", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + admissionregistrationv1.NamedRuleWithOperations{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -28892,7 +34139,7 @@ func schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref common.Refere SchemaProps: spec.SchemaProps{ Description: "ClientConfig defines how to communicate with the hook. Required", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.WebhookClientConfig"), + Ref: ref(admissionregistrationv1.WebhookClientConfig{}.OpenAPIModelName()), }, }, "rules": { @@ -28908,7 +34155,7 @@ func schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref common.Refere Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.RuleWithOperations"), + Ref: ref(admissionregistrationv1.RuleWithOperations{}.OpenAPIModelName()), }, }, }, @@ -28933,13 +34180,13 @@ func schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref common.Refere "namespaceSelector": { SchemaProps: spec.SchemaProps{ Description: "NamespaceSelector decides whether to run the webhook 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 webhook.\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 webhook 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"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "objectSelector": { SchemaProps: spec.SchemaProps{ Description: "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, 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"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "sideEffects": { @@ -28979,7 +34226,7 @@ func schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref common.Refere }, "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\".\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.", + 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 mutation 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 mutation call.\n - `\"Never\"` indicates that the mutation must not be called more than once in a single admission evaluation.", Type: []string{"string"}, Format: "", Enum: []interface{}{"IfNeeded", "Never"}, @@ -29003,7 +34250,7 @@ func schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref common.Refere Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.MatchCondition"), + Ref: ref(admissionregistrationv1.MatchCondition{}.OpenAPIModelName()), }, }, }, @@ -29014,7 +34261,7 @@ func schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.MatchCondition", "k8s.io/api/admissionregistration/v1.RuleWithOperations", "k8s.io/api/admissionregistration/v1.WebhookClientConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + admissionregistrationv1.MatchCondition{}.OpenAPIModelName(), admissionregistrationv1.RuleWithOperations{}.OpenAPIModelName(), admissionregistrationv1.WebhookClientConfig{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -29043,7 +34290,7 @@ func schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfiguration(ref 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "webhooks": { @@ -29064,7 +34311,7 @@ func schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfiguration(ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.MutatingWebhook"), + Ref: ref(admissionregistrationv1.MutatingWebhook{}.OpenAPIModelName()), }, }, }, @@ -29074,7 +34321,7 @@ func schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfiguration(ref }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.MutatingWebhook", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + admissionregistrationv1.MutatingWebhook{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -29103,7 +34350,7 @@ func schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfigurationList( 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -29114,7 +34361,7 @@ func schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfigurationList( Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.MutatingWebhookConfiguration"), + Ref: ref(admissionregistrationv1.MutatingWebhookConfiguration{}.OpenAPIModelName()), }, }, }, @@ -29125,7 +34372,7 @@ func schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfigurationList( }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.MutatingWebhookConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + admissionregistrationv1.MutatingWebhookConfiguration{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -29312,7 +34559,7 @@ func schema_k8sio_api_admissionregistration_v1_ParamRef(ref common.ReferenceCall "selector": { SchemaProps: spec.SchemaProps{ Description: "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "parameterNotFoundAction": { @@ -29331,7 +34578,7 @@ func schema_k8sio_api_admissionregistration_v1_ParamRef(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -29582,7 +34829,7 @@ func schema_k8sio_api_admissionregistration_v1_TypeChecking(ref common.Reference Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.ExpressionWarning"), + Ref: ref(admissionregistrationv1.ExpressionWarning{}.OpenAPIModelName()), }, }, }, @@ -29592,7 +34839,7 @@ func schema_k8sio_api_admissionregistration_v1_TypeChecking(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.ExpressionWarning"}, + admissionregistrationv1.ExpressionWarning{}.OpenAPIModelName()}, } } @@ -29621,28 +34868,28 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicy(ref com 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the ValidatingAdmissionPolicy.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicySpec"), + Ref: ref(admissionregistrationv1.ValidatingAdmissionPolicySpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyStatus"), + Ref: ref(admissionregistrationv1.ValidatingAdmissionPolicyStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicySpec", "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + admissionregistrationv1.ValidatingAdmissionPolicySpec{}.OpenAPIModelName(), admissionregistrationv1.ValidatingAdmissionPolicyStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -29671,21 +34918,21 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding( 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingSpec"), + Ref: ref(admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -29714,7 +34961,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingL 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -29725,7 +34972,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingL Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBinding"), + Ref: ref(admissionregistrationv1.ValidatingAdmissionPolicyBinding{}.OpenAPIModelName()), }, }, }, @@ -29736,7 +34983,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingL }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + admissionregistrationv1.ValidatingAdmissionPolicyBinding{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -29757,13 +35004,13 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingS "paramRef": { SchemaProps: spec.SchemaProps{ Description: "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. 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 ValidatingAdmissionPolicy 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/v1.ParamRef"), + Ref: ref(admissionregistrationv1.ParamRef{}.OpenAPIModelName()), }, }, "matchResources": { SchemaProps: spec.SchemaProps{ Description: "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.", - Ref: ref("k8s.io/api/admissionregistration/v1.MatchResources"), + Ref: ref(admissionregistrationv1.MatchResources{}.OpenAPIModelName()), }, }, "validationActions": { @@ -29791,7 +35038,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingS }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.MatchResources", "k8s.io/api/admissionregistration/v1.ParamRef"}, + admissionregistrationv1.MatchResources{}.OpenAPIModelName(), admissionregistrationv1.ParamRef{}.OpenAPIModelName()}, } } @@ -29820,7 +35067,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyList(ref 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -29831,7 +35078,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyList(ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicy"), + Ref: ref(admissionregistrationv1.ValidatingAdmissionPolicy{}.OpenAPIModelName()), }, }, }, @@ -29842,7 +35089,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyList(ref }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + admissionregistrationv1.ValidatingAdmissionPolicy{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -29856,13 +35103,13 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref "paramKind": { SchemaProps: spec.SchemaProps{ 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 ValidatingAdmissionPolicyBinding, the params variable will be null.", - Ref: ref("k8s.io/api/admissionregistration/v1.ParamKind"), + Ref: ref(admissionregistrationv1.ParamKind{}.OpenAPIModelName()), }, }, "matchConstraints": { SchemaProps: spec.SchemaProps{ Description: "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy 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 ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required.", - Ref: ref("k8s.io/api/admissionregistration/v1.MatchResources"), + Ref: ref(admissionregistrationv1.MatchResources{}.OpenAPIModelName()), }, }, "validations": { @@ -29878,7 +35125,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.Validation"), + Ref: ref(admissionregistrationv1.Validation{}.OpenAPIModelName()), }, }, }, @@ -29905,7 +35152,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.AuditAnnotation"), + Ref: ref(admissionregistrationv1.AuditAnnotation{}.OpenAPIModelName()), }, }, }, @@ -29929,7 +35176,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.MatchCondition"), + Ref: ref(admissionregistrationv1.MatchCondition{}.OpenAPIModelName()), }, }, }, @@ -29953,7 +35200,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.Variable"), + Ref: ref(admissionregistrationv1.Variable{}.OpenAPIModelName()), }, }, }, @@ -29963,7 +35210,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.AuditAnnotation", "k8s.io/api/admissionregistration/v1.MatchCondition", "k8s.io/api/admissionregistration/v1.MatchResources", "k8s.io/api/admissionregistration/v1.ParamKind", "k8s.io/api/admissionregistration/v1.Validation", "k8s.io/api/admissionregistration/v1.Variable"}, + admissionregistrationv1.AuditAnnotation{}.OpenAPIModelName(), admissionregistrationv1.MatchCondition{}.OpenAPIModelName(), admissionregistrationv1.MatchResources{}.OpenAPIModelName(), admissionregistrationv1.ParamKind{}.OpenAPIModelName(), admissionregistrationv1.Validation{}.OpenAPIModelName(), admissionregistrationv1.Variable{}.OpenAPIModelName()}, } } @@ -29984,7 +35231,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus(r "typeChecking": { SchemaProps: spec.SchemaProps{ Description: "The results of type checking for each expression. Presence of this field indicates the completion of the type checking.", - Ref: ref("k8s.io/api/admissionregistration/v1.TypeChecking"), + Ref: ref(admissionregistrationv1.TypeChecking{}.OpenAPIModelName()), }, }, "conditions": { @@ -30003,7 +35250,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus(r Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), + Ref: ref(metav1.Condition{}.OpenAPIModelName()), }, }, }, @@ -30013,7 +35260,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus(r }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.TypeChecking", "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, + admissionregistrationv1.TypeChecking{}.OpenAPIModelName(), metav1.Condition{}.OpenAPIModelName()}, } } @@ -30036,7 +35283,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref common.Refe SchemaProps: spec.SchemaProps{ Description: "ClientConfig defines how to communicate with the hook. Required", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.WebhookClientConfig"), + Ref: ref(admissionregistrationv1.WebhookClientConfig{}.OpenAPIModelName()), }, }, "rules": { @@ -30052,7 +35299,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.RuleWithOperations"), + Ref: ref(admissionregistrationv1.RuleWithOperations{}.OpenAPIModelName()), }, }, }, @@ -30077,13 +35324,13 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref common.Refe "namespaceSelector": { SchemaProps: spec.SchemaProps{ Description: "NamespaceSelector decides whether to run the webhook 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 webhook.\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 webhook 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"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "objectSelector": { SchemaProps: spec.SchemaProps{ Description: "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, 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"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "sideEffects": { @@ -30139,7 +35386,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.MatchCondition"), + Ref: ref(admissionregistrationv1.MatchCondition{}.OpenAPIModelName()), }, }, }, @@ -30150,7 +35397,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref common.Refe }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.MatchCondition", "k8s.io/api/admissionregistration/v1.RuleWithOperations", "k8s.io/api/admissionregistration/v1.WebhookClientConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + admissionregistrationv1.MatchCondition{}.OpenAPIModelName(), admissionregistrationv1.RuleWithOperations{}.OpenAPIModelName(), admissionregistrationv1.WebhookClientConfig{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -30179,7 +35426,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfiguration(re 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "webhooks": { @@ -30200,7 +35447,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfiguration(re Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.ValidatingWebhook"), + Ref: ref(admissionregistrationv1.ValidatingWebhook{}.OpenAPIModelName()), }, }, }, @@ -30210,7 +35457,7 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfiguration(re }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.ValidatingWebhook", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + admissionregistrationv1.ValidatingWebhook{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -30239,18 +35486,475 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationLis 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "List of ValidatingWebhookConfiguration.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(admissionregistrationv1.ValidatingWebhookConfiguration{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + admissionregistrationv1.ValidatingWebhookConfiguration{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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(admissionregistrationv1.ServiceReference{}.OpenAPIModelName()), + }, + }, + "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{ + admissionregistrationv1.ServiceReference{}.OpenAPIModelName()}, + } +} + +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(metav1.LabelSelector{}.OpenAPIModelName()), + }, + }, + "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(metav1.LabelSelector{}.OpenAPIModelName()), + }, + }, + "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(v1beta1.NamedRuleWithOperations{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "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(v1beta1.NamedRuleWithOperations{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "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{ + v1beta1.NamedRuleWithOperations{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, + } +} + +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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "Specification of the desired behavior of the MutatingAdmissionPolicy.", + Default: map[string]interface{}{}, + Ref: ref(v1beta1.MutatingAdmissionPolicySpec{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + v1beta1.MutatingAdmissionPolicySpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "Specification of the desired behavior of the MutatingAdmissionPolicyBinding.", + Default: map[string]interface{}{}, + Ref: ref(v1beta1.MutatingAdmissionPolicyBindingSpec{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + v1beta1.MutatingAdmissionPolicyBindingSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { SchemaProps: spec.SchemaProps{ - Description: "List of ValidatingWebhookConfiguration.", + 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(v1beta1.MutatingAdmissionPolicyBinding{}.OpenAPIModelName()), }, }, }, @@ -30261,287 +35965,196 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationLis }, }, 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", - }, - }, - }, + v1beta1.MutatingAdmissionPolicyBinding{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(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: "WebhookClientConfig contains the information to make a TLS connection with the webhook", + Description: "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.", 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(v1beta1.ParamRef{}.OpenAPIModelName()), }, }, - "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(v1beta1.MatchResources{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.ServiceReference"}, + v1beta1.MatchResources{}.OpenAPIModelName(), v1beta1.ParamRef{}.OpenAPIModelName()}, } } -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(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "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(v1beta1.MutatingAdmissionPolicy{}.OpenAPIModelName()), + }, + }, + }, }, }, }, - Required: []string{"fieldRef", "warning"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + v1beta1.MutatingAdmissionPolicy{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -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(v1beta1.ParamKind{}.OpenAPIModelName()), }, }, - "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(v1beta1.MatchResources{}.OpenAPIModelName()), }, }, - }, - 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(v1beta1.Variable{}.OpenAPIModelName()), + }, + }, + }, }, }, - "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(v1beta1.Mutation{}.OpenAPIModelName()), }, }, }, }, }, - "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(v1beta1.MatchCondition{}.OpenAPIModelName()), }, }, }, }, }, - "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 mutation 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 mutation call.\n - `\"Never\"` indicates that the mutation 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"}, + v1beta1.MatchCondition{}.OpenAPIModelName(), v1beta1.MatchResources{}.OpenAPIModelName(), v1beta1.Mutation{}.OpenAPIModelName(), v1beta1.ParamKind{}.OpenAPIModelName(), v1beta1.Variable{}.OpenAPIModelName()}, } } @@ -30564,7 +36177,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref common.R SchemaProps: spec.SchemaProps{ Description: "ClientConfig defines how to communicate with the hook. Required", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig"), + Ref: ref(v1beta1.WebhookClientConfig{}.OpenAPIModelName()), }, }, "rules": { @@ -30580,7 +36193,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref common.R Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.RuleWithOperations"), + Ref: ref(admissionregistrationv1.RuleWithOperations{}.OpenAPIModelName()), }, }, }, @@ -30603,13 +36216,13 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref common.R "namespaceSelector": { SchemaProps: spec.SchemaProps{ Description: "NamespaceSelector decides whether to run the webhook 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 webhook.\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 webhook 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"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "objectSelector": { SchemaProps: spec.SchemaProps{ Description: "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, 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"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "sideEffects": { @@ -30648,9 +36261,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 mutation 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 mutation call.\n - `\"Never\"` indicates that the mutation must not be called more than once in a single admission evaluation.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"IfNeeded", "Never"}, }, }, "matchConditions": { @@ -30671,7 +36285,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref common.R Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.MatchCondition"), + Ref: ref(v1beta1.MatchCondition{}.OpenAPIModelName()), }, }, }, @@ -30682,7 +36296,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref common.R }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.RuleWithOperations", "k8s.io/api/admissionregistration/v1beta1.MatchCondition", "k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + admissionregistrationv1.RuleWithOperations{}.OpenAPIModelName(), v1beta1.MatchCondition{}.OpenAPIModelName(), v1beta1.WebhookClientConfig{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -30711,7 +36325,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "webhooks": { @@ -30732,7 +36346,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.MutatingWebhook"), + Ref: ref(v1beta1.MutatingWebhook{}.OpenAPIModelName()), }, }, }, @@ -30742,7 +36356,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhook", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1beta1.MutatingWebhook{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -30771,7 +36385,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -30782,7 +36396,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfiguration"), + Ref: ref(v1beta1.MutatingWebhookConfiguration{}.OpenAPIModelName()), }, }, }, @@ -30793,7 +36407,44 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1beta1.MutatingWebhookConfiguration{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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(v1beta1.ApplyConfiguration{}.OpenAPIModelName()), + }, + }, + "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(v1beta1.JSONPatch{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"patchType"}, + }, + }, + Dependencies: []string{ + v1beta1.ApplyConfiguration{}.OpenAPIModelName(), v1beta1.JSONPatch{}.OpenAPIModelName()}, } } @@ -30980,7 +36631,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ParamRef(ref common.Referenc "selector": { SchemaProps: spec.SchemaProps{ Description: "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "parameterNotFoundAction": { @@ -30999,7 +36650,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ParamRef(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -31067,7 +36718,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_TypeChecking(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.ExpressionWarning"), + Ref: ref(v1beta1.ExpressionWarning{}.OpenAPIModelName()), }, }, }, @@ -31077,7 +36728,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_TypeChecking(ref common.Refe }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.ExpressionWarning"}, + v1beta1.ExpressionWarning{}.OpenAPIModelName()}, } } @@ -31106,28 +36757,28 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicy(re 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the ValidatingAdmissionPolicy.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicySpec"), + Ref: ref(v1beta1.ValidatingAdmissionPolicySpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyStatus"), + Ref: ref(v1beta1.ValidatingAdmissionPolicyStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicySpec", "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1beta1.ValidatingAdmissionPolicySpec{}.OpenAPIModelName(), v1beta1.ValidatingAdmissionPolicyStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -31156,21 +36807,21 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBin 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingSpec"), + Ref: ref(v1beta1.ValidatingAdmissionPolicyBindingSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1beta1.ValidatingAdmissionPolicyBindingSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -31199,7 +36850,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBin 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -31210,7 +36861,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBin Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBinding"), + Ref: ref(v1beta1.ValidatingAdmissionPolicyBinding{}.OpenAPIModelName()), }, }, }, @@ -31221,7 +36872,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBin }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1beta1.ValidatingAdmissionPolicyBinding{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -31242,13 +36893,13 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBin "paramRef": { SchemaProps: spec.SchemaProps{ Description: "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. 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 ValidatingAdmissionPolicy 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"), + Ref: ref(v1beta1.ParamRef{}.OpenAPIModelName()), }, }, "matchResources": { SchemaProps: spec.SchemaProps{ Description: "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.", - Ref: ref("k8s.io/api/admissionregistration/v1beta1.MatchResources"), + Ref: ref(v1beta1.MatchResources{}.OpenAPIModelName()), }, }, "validationActions": { @@ -31276,7 +36927,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBin }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.MatchResources", "k8s.io/api/admissionregistration/v1beta1.ParamRef"}, + v1beta1.MatchResources{}.OpenAPIModelName(), v1beta1.ParamRef{}.OpenAPIModelName()}, } } @@ -31305,7 +36956,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyLis 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -31316,7 +36967,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyLis Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicy"), + Ref: ref(v1beta1.ValidatingAdmissionPolicy{}.OpenAPIModelName()), }, }, }, @@ -31327,7 +36978,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyLis }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1beta1.ValidatingAdmissionPolicy{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -31341,13 +36992,13 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpe "paramKind": { SchemaProps: spec.SchemaProps{ 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 ValidatingAdmissionPolicyBinding, the params variable will be null.", - Ref: ref("k8s.io/api/admissionregistration/v1beta1.ParamKind"), + Ref: ref(v1beta1.ParamKind{}.OpenAPIModelName()), }, }, "matchConstraints": { SchemaProps: spec.SchemaProps{ Description: "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy 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 ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required.", - Ref: ref("k8s.io/api/admissionregistration/v1beta1.MatchResources"), + Ref: ref(v1beta1.MatchResources{}.OpenAPIModelName()), }, }, "validations": { @@ -31363,7 +37014,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.Validation"), + Ref: ref(v1beta1.Validation{}.OpenAPIModelName()), }, }, }, @@ -31389,7 +37040,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.AuditAnnotation"), + Ref: ref(v1beta1.AuditAnnotation{}.OpenAPIModelName()), }, }, }, @@ -31413,7 +37064,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.MatchCondition"), + Ref: ref(v1beta1.MatchCondition{}.OpenAPIModelName()), }, }, }, @@ -31437,7 +37088,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.Variable"), + Ref: ref(v1beta1.Variable{}.OpenAPIModelName()), }, }, }, @@ -31447,7 +37098,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpe }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.AuditAnnotation", "k8s.io/api/admissionregistration/v1beta1.MatchCondition", "k8s.io/api/admissionregistration/v1beta1.MatchResources", "k8s.io/api/admissionregistration/v1beta1.ParamKind", "k8s.io/api/admissionregistration/v1beta1.Validation", "k8s.io/api/admissionregistration/v1beta1.Variable"}, + v1beta1.AuditAnnotation{}.OpenAPIModelName(), v1beta1.MatchCondition{}.OpenAPIModelName(), v1beta1.MatchResources{}.OpenAPIModelName(), v1beta1.ParamKind{}.OpenAPIModelName(), v1beta1.Validation{}.OpenAPIModelName(), v1beta1.Variable{}.OpenAPIModelName()}, } } @@ -31468,7 +37119,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySta "typeChecking": { SchemaProps: spec.SchemaProps{ Description: "The results of type checking for each expression. Presence of this field indicates the completion of the type checking.", - Ref: ref("k8s.io/api/admissionregistration/v1beta1.TypeChecking"), + Ref: ref(v1beta1.TypeChecking{}.OpenAPIModelName()), }, }, "conditions": { @@ -31487,7 +37138,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySta Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), + Ref: ref(metav1.Condition{}.OpenAPIModelName()), }, }, }, @@ -31497,7 +37148,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySta }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.TypeChecking", "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, + v1beta1.TypeChecking{}.OpenAPIModelName(), metav1.Condition{}.OpenAPIModelName()}, } } @@ -31520,7 +37171,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref common SchemaProps: spec.SchemaProps{ Description: "ClientConfig defines how to communicate with the hook. Required", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig"), + Ref: ref(v1beta1.WebhookClientConfig{}.OpenAPIModelName()), }, }, "rules": { @@ -31536,7 +37187,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.RuleWithOperations"), + Ref: ref(admissionregistrationv1.RuleWithOperations{}.OpenAPIModelName()), }, }, }, @@ -31559,13 +37210,13 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref common "namespaceSelector": { SchemaProps: spec.SchemaProps{ Description: "NamespaceSelector decides whether to run the webhook 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 webhook.\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 webhook 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"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "objectSelector": { SchemaProps: spec.SchemaProps{ Description: "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, 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"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "sideEffects": { @@ -31625,7 +37276,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.MatchCondition"), + Ref: ref(v1beta1.MatchCondition{}.OpenAPIModelName()), }, }, }, @@ -31636,7 +37287,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref common }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.RuleWithOperations", "k8s.io/api/admissionregistration/v1beta1.MatchCondition", "k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + admissionregistrationv1.RuleWithOperations{}.OpenAPIModelName(), v1beta1.MatchCondition{}.OpenAPIModelName(), v1beta1.WebhookClientConfig{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -31665,7 +37316,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurati 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "webhooks": { @@ -31686,7 +37337,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurati Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.ValidatingWebhook"), + Ref: ref(v1beta1.ValidatingWebhook{}.OpenAPIModelName()), }, }, }, @@ -31696,7 +37347,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurati }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhook", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1beta1.ValidatingWebhook{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -31725,7 +37376,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurati 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -31736,7 +37387,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurati Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfiguration"), + Ref: ref(v1beta1.ValidatingWebhookConfiguration{}.OpenAPIModelName()), }, }, }, @@ -31747,7 +37398,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurati }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1beta1.ValidatingWebhookConfiguration{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -31846,7 +37497,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_WebhookClientConfig(ref comm "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/v1beta1.ServiceReference"), + Ref: ref(v1beta1.ServiceReference{}.OpenAPIModelName()), }, }, "caBundle": { @@ -31860,7 +37511,7 @@ func schema_k8sio_api_admissionregistration_v1beta1_WebhookClientConfig(ref comm }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.ServiceReference"}, + v1beta1.ServiceReference{}.OpenAPIModelName()}, } } @@ -31889,13 +37540,13 @@ func schema_k8sio_api_apps_v1_ControllerRevision(ref common.ReferenceCallback) c 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "data": { SchemaProps: spec.SchemaProps{ Description: "Data is the serialized representation of the state.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, "revision": { @@ -31911,7 +37562,7 @@ func schema_k8sio_api_apps_v1_ControllerRevision(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + metav1.ObjectMeta{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } @@ -31940,7 +37591,7 @@ func schema_k8sio_api_apps_v1_ControllerRevisionList(ref common.ReferenceCallbac 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.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -31951,7 +37602,7 @@ func schema_k8sio_api_apps_v1_ControllerRevisionList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.ControllerRevision"), + Ref: ref(appsv1.ControllerRevision{}.OpenAPIModelName()), }, }, }, @@ -31962,7 +37613,7 @@ func schema_k8sio_api_apps_v1_ControllerRevisionList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.ControllerRevision", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + appsv1.ControllerRevision{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -31991,28 +37642,28 @@ func schema_k8sio_api_apps_v1_DaemonSet(ref common.ReferenceCallback) common.Ope 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.DaemonSetSpec"), + Ref: ref(appsv1.DaemonSetSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.DaemonSetStatus"), + Ref: ref(appsv1.DaemonSetStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.DaemonSetSpec", "k8s.io/api/apps/v1.DaemonSetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + appsv1.DaemonSetSpec{}.OpenAPIModelName(), appsv1.DaemonSetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -32042,7 +37693,7 @@ func schema_k8sio_api_apps_v1_DaemonSetCondition(ref common.ReferenceCallback) c "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -32064,7 +37715,7 @@ func schema_k8sio_api_apps_v1_DaemonSetCondition(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -32093,7 +37744,7 @@ func schema_k8sio_api_apps_v1_DaemonSetList(ref common.ReferenceCallback) common 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -32104,7 +37755,7 @@ func schema_k8sio_api_apps_v1_DaemonSetList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.DaemonSet"), + Ref: ref(appsv1.DaemonSet{}.OpenAPIModelName()), }, }, }, @@ -32115,7 +37766,7 @@ func schema_k8sio_api_apps_v1_DaemonSetList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.DaemonSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + appsv1.DaemonSet{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -32129,21 +37780,21 @@ func schema_k8sio_api_apps_v1_DaemonSetSpec(ref common.ReferenceCallback) common "selector": { SchemaProps: spec.SchemaProps{ Description: "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, "updateStrategy": { SchemaProps: spec.SchemaProps{ Description: "An update strategy to replace existing DaemonSet pods with new pods.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.DaemonSetUpdateStrategy"), + Ref: ref(appsv1.DaemonSetUpdateStrategy{}.OpenAPIModelName()), }, }, "minReadySeconds": { @@ -32165,7 +37816,7 @@ func schema_k8sio_api_apps_v1_DaemonSetSpec(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.DaemonSetUpdateStrategy", "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + appsv1.DaemonSetUpdateStrategy{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -32261,7 +37912,7 @@ func schema_k8sio_api_apps_v1_DaemonSetStatus(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.DaemonSetCondition"), + Ref: ref(appsv1.DaemonSetCondition{}.OpenAPIModelName()), }, }, }, @@ -32272,7 +37923,7 @@ func schema_k8sio_api_apps_v1_DaemonSetStatus(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.DaemonSetCondition"}, + appsv1.DaemonSetCondition{}.OpenAPIModelName()}, } } @@ -32294,14 +37945,14 @@ func schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref common.ReferenceCallba "rollingUpdate": { SchemaProps: spec.SchemaProps{ Description: "Rolling update config params. Present only if type = \"RollingUpdate\".", - Ref: ref("k8s.io/api/apps/v1.RollingUpdateDaemonSet"), + Ref: ref(appsv1.RollingUpdateDaemonSet{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.RollingUpdateDaemonSet"}, + appsv1.RollingUpdateDaemonSet{}.OpenAPIModelName()}, } } @@ -32330,28 +37981,28 @@ func schema_k8sio_api_apps_v1_Deployment(ref common.ReferenceCallback) common.Op 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the Deployment.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.DeploymentSpec"), + Ref: ref(appsv1.DeploymentSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Most recently observed status of the Deployment.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.DeploymentStatus"), + Ref: ref(appsv1.DeploymentStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.DeploymentSpec", "k8s.io/api/apps/v1.DeploymentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + appsv1.DeploymentSpec{}.OpenAPIModelName(), appsv1.DeploymentStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -32381,13 +38032,13 @@ func schema_k8sio_api_apps_v1_DeploymentCondition(ref common.ReferenceCallback) "lastUpdateTime": { SchemaProps: spec.SchemaProps{ Description: "The last time this condition was updated.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -32409,7 +38060,7 @@ func schema_k8sio_api_apps_v1_DeploymentCondition(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -32438,7 +38089,7 @@ func schema_k8sio_api_apps_v1_DeploymentList(ref common.ReferenceCallback) commo SchemaProps: spec.SchemaProps{ Description: "Standard list metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -32449,7 +38100,7 @@ func schema_k8sio_api_apps_v1_DeploymentList(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.Deployment"), + Ref: ref(appsv1.Deployment{}.OpenAPIModelName()), }, }, }, @@ -32460,7 +38111,7 @@ func schema_k8sio_api_apps_v1_DeploymentList(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.Deployment", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + appsv1.Deployment{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -32481,14 +38132,14 @@ func schema_k8sio_api_apps_v1_DeploymentSpec(ref common.ReferenceCallback) commo "selector": { SchemaProps: spec.SchemaProps{ Description: "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\".", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, "strategy": { @@ -32500,7 +38151,7 @@ func schema_k8sio_api_apps_v1_DeploymentSpec(ref common.ReferenceCallback) commo SchemaProps: spec.SchemaProps{ Description: "The deployment strategy to use to replace existing pods with new ones.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.DeploymentStrategy"), + Ref: ref(appsv1.DeploymentStrategy{}.OpenAPIModelName()), }, }, "minReadySeconds": { @@ -32536,7 +38187,7 @@ func schema_k8sio_api_apps_v1_DeploymentSpec(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.DeploymentStrategy", "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + appsv1.DeploymentStrategy{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -32556,28 +38207,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 +38240,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 a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).", + Type: []string{"integer"}, + Format: "int32", + }, + }, "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -32607,7 +38265,7 @@ func schema_k8sio_api_apps_v1_DeploymentStatus(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.DeploymentCondition"), + Ref: ref(appsv1.DeploymentCondition{}.OpenAPIModelName()), }, }, }, @@ -32624,7 +38282,7 @@ func schema_k8sio_api_apps_v1_DeploymentStatus(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.DeploymentCondition"}, + appsv1.DeploymentCondition{}.OpenAPIModelName()}, } } @@ -32646,14 +38304,14 @@ func schema_k8sio_api_apps_v1_DeploymentStrategy(ref common.ReferenceCallback) c "rollingUpdate": { SchemaProps: spec.SchemaProps{ Description: "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - Ref: ref("k8s.io/api/apps/v1.RollingUpdateDeployment"), + Ref: ref(appsv1.RollingUpdateDeployment{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.RollingUpdateDeployment"}, + appsv1.RollingUpdateDeployment{}.OpenAPIModelName()}, } } @@ -32682,28 +38340,28 @@ func schema_k8sio_api_apps_v1_ReplicaSet(ref common.ReferenceCallback) common.Op SchemaProps: spec.SchemaProps{ Description: "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.ReplicaSetSpec"), + Ref: ref(appsv1.ReplicaSetSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.ReplicaSetStatus"), + Ref: ref(appsv1.ReplicaSetStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.ReplicaSetSpec", "k8s.io/api/apps/v1.ReplicaSetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + appsv1.ReplicaSetSpec{}.OpenAPIModelName(), appsv1.ReplicaSetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -32733,7 +38391,7 @@ func schema_k8sio_api_apps_v1_ReplicaSetCondition(ref common.ReferenceCallback) "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "The last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -32755,7 +38413,7 @@ func schema_k8sio_api_apps_v1_ReplicaSetCondition(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -32784,18 +38442,18 @@ func schema_k8sio_api_apps_v1_ReplicaSetList(ref common.ReferenceCallback) commo 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.ReplicaSet"), + Ref: ref(appsv1.ReplicaSet{}.OpenAPIModelName()), }, }, }, @@ -32806,7 +38464,7 @@ func schema_k8sio_api_apps_v1_ReplicaSetList(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.ReplicaSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + appsv1.ReplicaSet{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -32819,7 +38477,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", }, @@ -32834,14 +38492,14 @@ func schema_k8sio_api_apps_v1_ReplicaSetSpec(ref common.ReferenceCallback) commo "selector": { SchemaProps: spec.SchemaProps{ Description: "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ - Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/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"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, }, @@ -32849,7 +38507,7 @@ func schema_k8sio_api_apps_v1_ReplicaSetSpec(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -32862,7 +38520,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 +38528,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 a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).", Type: []string{"integer"}, Format: "int32", }, @@ -32914,7 +38579,7 @@ func schema_k8sio_api_apps_v1_ReplicaSetStatus(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.ReplicaSetCondition"), + Ref: ref(appsv1.ReplicaSetCondition{}.OpenAPIModelName()), }, }, }, @@ -32925,7 +38590,7 @@ func schema_k8sio_api_apps_v1_ReplicaSetStatus(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.ReplicaSetCondition"}, + appsv1.ReplicaSetCondition{}.OpenAPIModelName()}, } } @@ -32939,20 +38604,20 @@ func schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref common.ReferenceCallbac "maxUnavailable": { SchemaProps: spec.SchemaProps{ Description: "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "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.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -32966,20 +38631,20 @@ func schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref common.ReferenceCallba "maxUnavailable": { SchemaProps: spec.SchemaProps{ Description: "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "maxSurge": { SchemaProps: spec.SchemaProps{ Description: "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -32999,15 +38664,15 @@ func schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref common.Refere }, "maxUnavailable": { SchemaProps: spec.SchemaProps{ - Description: "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Description: "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is beta-level and is enabled by default. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. This setting might not be effective for the OrderedReady podManagementPolicy. That policy ensures pods are created and become ready one at a time.", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -33036,28 +38701,28 @@ func schema_k8sio_api_apps_v1_StatefulSet(ref common.ReferenceCallback) common.O 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec defines the desired identities of pods in this set.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.StatefulSetSpec"), + Ref: ref(appsv1.StatefulSetSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.StatefulSetStatus"), + Ref: ref(appsv1.StatefulSetStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.StatefulSetSpec", "k8s.io/api/apps/v1.StatefulSetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + appsv1.StatefulSetSpec{}.OpenAPIModelName(), appsv1.StatefulSetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -33087,7 +38752,7 @@ func schema_k8sio_api_apps_v1_StatefulSetCondition(ref common.ReferenceCallback) "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -33109,7 +38774,7 @@ func schema_k8sio_api_apps_v1_StatefulSetCondition(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -33138,7 +38803,7 @@ func schema_k8sio_api_apps_v1_StatefulSetList(ref common.ReferenceCallback) comm SchemaProps: spec.SchemaProps{ Description: "Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -33149,7 +38814,7 @@ func schema_k8sio_api_apps_v1_StatefulSetList(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.StatefulSet"), + Ref: ref(appsv1.StatefulSet{}.OpenAPIModelName()), }, }, }, @@ -33160,7 +38825,7 @@ func schema_k8sio_api_apps_v1_StatefulSetList(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.StatefulSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + appsv1.StatefulSet{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -33229,14 +38894,14 @@ func schema_k8sio_api_apps_v1_StatefulSetSpec(ref common.ReferenceCallback) comm "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\". The only allowed template.spec.restartPolicy value is \"Always\".", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, "volumeClaimTemplates": { @@ -33252,7 +38917,7 @@ func schema_k8sio_api_apps_v1_StatefulSetSpec(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaim"), + Ref: ref(corev1.PersistentVolumeClaim{}.OpenAPIModelName()), }, }, }, @@ -33278,7 +38943,7 @@ func schema_k8sio_api_apps_v1_StatefulSetSpec(ref common.ReferenceCallback) comm SchemaProps: spec.SchemaProps{ Description: "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.StatefulSetUpdateStrategy"), + Ref: ref(appsv1.StatefulSetUpdateStrategy{}.OpenAPIModelName()), }, }, "revisionHistoryLimit": { @@ -33297,22 +38962,22 @@ 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.", - Ref: ref("k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy"), + 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(appsv1.StatefulSetPersistentVolumeClaimRetentionPolicy{}.OpenAPIModelName()), }, }, "ordinals": { SchemaProps: spec.SchemaProps{ Description: "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested.", - Ref: ref("k8s.io/api/apps/v1.StatefulSetOrdinals"), + Ref: ref(appsv1.StatefulSetOrdinals{}.OpenAPIModelName()), }, }, }, - Required: []string{"selector", "template", "serviceName"}, + Required: []string{"selector", "template"}, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.StatefulSetOrdinals", "k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy", "k8s.io/api/apps/v1.StatefulSetUpdateStrategy", "k8s.io/api/core/v1.PersistentVolumeClaim", "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + appsv1.StatefulSetOrdinals{}.OpenAPIModelName(), appsv1.StatefulSetPersistentVolumeClaimRetentionPolicy{}.OpenAPIModelName(), appsv1.StatefulSetUpdateStrategy{}.OpenAPIModelName(), corev1.PersistentVolumeClaim{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -33398,7 +39063,7 @@ func schema_k8sio_api_apps_v1_StatefulSetStatus(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1.StatefulSetCondition"), + Ref: ref(appsv1.StatefulSetCondition{}.OpenAPIModelName()), }, }, }, @@ -33417,7 +39082,7 @@ func schema_k8sio_api_apps_v1_StatefulSetStatus(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.StatefulSetCondition"}, + appsv1.StatefulSetCondition{}.OpenAPIModelName()}, } } @@ -33439,14 +39104,14 @@ func schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref common.ReferenceCall "rollingUpdate": { SchemaProps: spec.SchemaProps{ Description: "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.", - Ref: ref("k8s.io/api/apps/v1.RollingUpdateStatefulSetStrategy"), + Ref: ref(appsv1.RollingUpdateStatefulSetStrategy{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1.RollingUpdateStatefulSetStrategy"}, + appsv1.RollingUpdateStatefulSetStrategy{}.OpenAPIModelName()}, } } @@ -33475,13 +39140,13 @@ func schema_k8sio_api_apps_v1beta1_ControllerRevision(ref common.ReferenceCallba 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "data": { SchemaProps: spec.SchemaProps{ Description: "data is the serialized representation of the state.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, "revision": { @@ -33497,7 +39162,7 @@ func schema_k8sio_api_apps_v1beta1_ControllerRevision(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + metav1.ObjectMeta{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } @@ -33526,7 +39191,7 @@ func schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref common.ReferenceCa 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.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -33537,7 +39202,7 @@ func schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.ControllerRevision"), + Ref: ref(appsv1beta1.ControllerRevision{}.OpenAPIModelName()), }, }, }, @@ -33548,7 +39213,7 @@ func schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.ControllerRevision", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + appsv1beta1.ControllerRevision{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -33577,28 +39242,28 @@ func schema_k8sio_api_apps_v1beta1_Deployment(ref common.ReferenceCallback) comm SchemaProps: spec.SchemaProps{ Description: "Standard object metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the Deployment.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.DeploymentSpec"), + Ref: ref(appsv1beta1.DeploymentSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Most recently observed status of the Deployment.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.DeploymentStatus"), + Ref: ref(appsv1beta1.DeploymentStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.DeploymentSpec", "k8s.io/api/apps/v1beta1.DeploymentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + appsv1beta1.DeploymentSpec{}.OpenAPIModelName(), appsv1beta1.DeploymentStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -33628,13 +39293,13 @@ func schema_k8sio_api_apps_v1beta1_DeploymentCondition(ref common.ReferenceCallb "lastUpdateTime": { SchemaProps: spec.SchemaProps{ Description: "The last time this condition was updated.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -33656,7 +39321,7 @@ func schema_k8sio_api_apps_v1beta1_DeploymentCondition(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -33685,7 +39350,7 @@ func schema_k8sio_api_apps_v1beta1_DeploymentList(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "Standard list metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -33696,7 +39361,7 @@ func schema_k8sio_api_apps_v1beta1_DeploymentList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.Deployment"), + Ref: ref(appsv1beta1.Deployment{}.OpenAPIModelName()), }, }, }, @@ -33707,7 +39372,7 @@ func schema_k8sio_api_apps_v1beta1_DeploymentList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.Deployment", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + appsv1beta1.Deployment{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -33760,7 +39425,7 @@ func schema_k8sio_api_apps_v1beta1_DeploymentRollback(ref common.ReferenceCallba SchemaProps: spec.SchemaProps{ Description: "The config of this deployment rollback.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.RollbackConfig"), + Ref: ref(appsv1beta1.RollbackConfig{}.OpenAPIModelName()), }, }, }, @@ -33768,7 +39433,7 @@ func schema_k8sio_api_apps_v1beta1_DeploymentRollback(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.RollbackConfig"}, + appsv1beta1.RollbackConfig{}.OpenAPIModelName()}, } } @@ -33789,14 +39454,14 @@ func schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref common.ReferenceCallback) "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is the label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\".", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, "strategy": { @@ -33808,7 +39473,7 @@ func schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "The deployment strategy to use to replace existing pods with new ones.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.DeploymentStrategy"), + Ref: ref(appsv1beta1.DeploymentStrategy{}.OpenAPIModelName()), }, }, "minReadySeconds": { @@ -33835,7 +39500,7 @@ func schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref common.ReferenceCallback) "rollbackTo": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED. rollbackTo is the config this deployment is rolling back to. Will be cleared after rollback is done.", - Ref: ref("k8s.io/api/apps/v1beta1.RollbackConfig"), + Ref: ref(appsv1beta1.RollbackConfig{}.OpenAPIModelName()), }, }, "progressDeadlineSeconds": { @@ -33850,7 +39515,7 @@ func schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.DeploymentStrategy", "k8s.io/api/apps/v1beta1.RollbackConfig", "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + appsv1beta1.DeploymentStrategy{}.OpenAPIModelName(), appsv1beta1.RollbackConfig{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -33863,42 +39528,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 a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).", Type: []string{"integer"}, Format: "int32", }, @@ -33915,13 +39587,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.DeploymentCondition"), + Ref: ref(appsv1beta1.DeploymentCondition{}.OpenAPIModelName()), }, }, }, @@ -33938,7 +39610,7 @@ func schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.DeploymentCondition"}, + appsv1beta1.DeploymentCondition{}.OpenAPIModelName()}, } } @@ -33959,14 +39631,14 @@ func schema_k8sio_api_apps_v1beta1_DeploymentStrategy(ref common.ReferenceCallba "rollingUpdate": { SchemaProps: spec.SchemaProps{ Description: "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - Ref: ref("k8s.io/api/apps/v1beta1.RollingUpdateDeployment"), + Ref: ref(appsv1beta1.RollingUpdateDeployment{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.RollingUpdateDeployment"}, + appsv1beta1.RollingUpdateDeployment{}.OpenAPIModelName()}, } } @@ -34000,20 +39672,20 @@ func schema_k8sio_api_apps_v1beta1_RollingUpdateDeployment(ref common.ReferenceC "maxUnavailable": { SchemaProps: spec.SchemaProps{ Description: "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "maxSurge": { SchemaProps: spec.SchemaProps{ Description: "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -34033,15 +39705,15 @@ func schema_k8sio_api_apps_v1beta1_RollingUpdateStatefulSetStrategy(ref common.R }, "maxUnavailable": { SchemaProps: spec.SchemaProps{ - Description: "maxUnavailable is the maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Description: "maxUnavailable is the maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is beta-level and is enabled by default. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. This setting might not be effective for the OrderedReady podManagementPolicy. That policy ensures pods are created and become ready one at a time.", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -34070,28 +39742,28 @@ func schema_k8sio_api_apps_v1beta1_Scale(ref common.ReferenceCallback) common.Op 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec defines the behavior of the scale. 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/apps/v1beta1.ScaleSpec"), + Ref: ref(appsv1beta1.ScaleSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "status defines current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.ScaleStatus"), + Ref: ref(appsv1beta1.ScaleStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.ScaleSpec", "k8s.io/api/apps/v1beta1.ScaleStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + appsv1beta1.ScaleSpec{}.OpenAPIModelName(), appsv1beta1.ScaleStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -34105,6 +39777,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", }, @@ -34184,28 +39857,28 @@ func schema_k8sio_api_apps_v1beta1_StatefulSet(ref common.ReferenceCallback) com "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec defines the desired identities of pods in this set.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.StatefulSetSpec"), + Ref: ref(appsv1beta1.StatefulSetSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.StatefulSetStatus"), + Ref: ref(appsv1beta1.StatefulSetStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.StatefulSetSpec", "k8s.io/api/apps/v1beta1.StatefulSetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + appsv1beta1.StatefulSetSpec{}.OpenAPIModelName(), appsv1beta1.StatefulSetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -34235,7 +39908,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetCondition(ref common.ReferenceCall "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -34257,7 +39930,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetCondition(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -34285,7 +39958,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetList(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -34295,7 +39968,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.StatefulSet"), + Ref: ref(appsv1beta1.StatefulSet{}.OpenAPIModelName()), }, }, }, @@ -34306,7 +39979,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.StatefulSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + appsv1beta1.StatefulSet{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -34375,14 +40048,14 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref common.ReferenceCallback) "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\".", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, "volumeClaimTemplates": { @@ -34398,7 +40071,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaim"), + Ref: ref(corev1.PersistentVolumeClaim{}.OpenAPIModelName()), }, }, }, @@ -34423,7 +40096,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.StatefulSetUpdateStrategy"), + Ref: ref(appsv1beta1.StatefulSetUpdateStrategy{}.OpenAPIModelName()), }, }, "revisionHistoryLimit": { @@ -34442,22 +40115,22 @@ 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.", - Ref: ref("k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy"), + 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(appsv1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy{}.OpenAPIModelName()), }, }, "ordinals": { SchemaProps: spec.SchemaProps{ Description: "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested.", - Ref: ref("k8s.io/api/apps/v1beta1.StatefulSetOrdinals"), + Ref: ref(appsv1beta1.StatefulSetOrdinals{}.OpenAPIModelName()), }, }, }, - Required: []string{"template", "serviceName"}, + Required: []string{"template"}, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.StatefulSetOrdinals", "k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy", "k8s.io/api/apps/v1beta1.StatefulSetUpdateStrategy", "k8s.io/api/core/v1.PersistentVolumeClaim", "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + appsv1beta1.StatefulSetOrdinals{}.OpenAPIModelName(), appsv1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy{}.OpenAPIModelName(), appsv1beta1.StatefulSetUpdateStrategy{}.OpenAPIModelName(), corev1.PersistentVolumeClaim{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -34543,7 +40216,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta1.StatefulSetCondition"), + Ref: ref(appsv1beta1.StatefulSetCondition{}.OpenAPIModelName()), }, }, }, @@ -34562,7 +40235,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.StatefulSetCondition"}, + appsv1beta1.StatefulSetCondition{}.OpenAPIModelName()}, } } @@ -34583,14 +40256,14 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetUpdateStrategy(ref common.Referenc "rollingUpdate": { SchemaProps: spec.SchemaProps{ Description: "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.", - Ref: ref("k8s.io/api/apps/v1beta1.RollingUpdateStatefulSetStrategy"), + Ref: ref(appsv1beta1.RollingUpdateStatefulSetStrategy{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta1.RollingUpdateStatefulSetStrategy"}, + appsv1beta1.RollingUpdateStatefulSetStrategy{}.OpenAPIModelName()}, } } @@ -34619,13 +40292,13 @@ func schema_k8sio_api_apps_v1beta2_ControllerRevision(ref common.ReferenceCallba 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "data": { SchemaProps: spec.SchemaProps{ Description: "Data is the serialized representation of the state.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, "revision": { @@ -34641,7 +40314,7 @@ func schema_k8sio_api_apps_v1beta2_ControllerRevision(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + metav1.ObjectMeta{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } @@ -34670,7 +40343,7 @@ func schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref common.ReferenceCa 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.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -34681,7 +40354,7 @@ func schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.ControllerRevision"), + Ref: ref(v1beta2.ControllerRevision{}.OpenAPIModelName()), }, }, }, @@ -34692,7 +40365,7 @@ func schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.ControllerRevision", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1beta2.ControllerRevision{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -34721,28 +40394,28 @@ func schema_k8sio_api_apps_v1beta2_DaemonSet(ref common.ReferenceCallback) commo 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.DaemonSetSpec"), + Ref: ref(v1beta2.DaemonSetSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.DaemonSetStatus"), + Ref: ref(v1beta2.DaemonSetStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.DaemonSetSpec", "k8s.io/api/apps/v1beta2.DaemonSetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1beta2.DaemonSetSpec{}.OpenAPIModelName(), v1beta2.DaemonSetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -34772,7 +40445,7 @@ func schema_k8sio_api_apps_v1beta2_DaemonSetCondition(ref common.ReferenceCallba "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -34794,7 +40467,7 @@ func schema_k8sio_api_apps_v1beta2_DaemonSetCondition(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -34823,7 +40496,7 @@ func schema_k8sio_api_apps_v1beta2_DaemonSetList(ref common.ReferenceCallback) c 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -34834,7 +40507,7 @@ func schema_k8sio_api_apps_v1beta2_DaemonSetList(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.DaemonSet"), + Ref: ref(v1beta2.DaemonSet{}.OpenAPIModelName()), }, }, }, @@ -34845,7 +40518,7 @@ func schema_k8sio_api_apps_v1beta2_DaemonSetList(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.DaemonSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1beta2.DaemonSet{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -34859,21 +40532,21 @@ func schema_k8sio_api_apps_v1beta2_DaemonSetSpec(ref common.ReferenceCallback) c "selector": { SchemaProps: spec.SchemaProps{ Description: "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, "updateStrategy": { SchemaProps: spec.SchemaProps{ Description: "An update strategy to replace existing DaemonSet pods with new pods.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.DaemonSetUpdateStrategy"), + Ref: ref(v1beta2.DaemonSetUpdateStrategy{}.OpenAPIModelName()), }, }, "minReadySeconds": { @@ -34895,7 +40568,7 @@ func schema_k8sio_api_apps_v1beta2_DaemonSetSpec(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.DaemonSetUpdateStrategy", "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + v1beta2.DaemonSetUpdateStrategy{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -34991,7 +40664,7 @@ func schema_k8sio_api_apps_v1beta2_DaemonSetStatus(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.DaemonSetCondition"), + Ref: ref(v1beta2.DaemonSetCondition{}.OpenAPIModelName()), }, }, }, @@ -35002,7 +40675,7 @@ func schema_k8sio_api_apps_v1beta2_DaemonSetStatus(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.DaemonSetCondition"}, + v1beta2.DaemonSetCondition{}.OpenAPIModelName()}, } } @@ -35023,14 +40696,14 @@ func schema_k8sio_api_apps_v1beta2_DaemonSetUpdateStrategy(ref common.ReferenceC "rollingUpdate": { SchemaProps: spec.SchemaProps{ Description: "Rolling update config params. Present only if type = \"RollingUpdate\".", - Ref: ref("k8s.io/api/apps/v1beta2.RollingUpdateDaemonSet"), + Ref: ref(v1beta2.RollingUpdateDaemonSet{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.RollingUpdateDaemonSet"}, + v1beta2.RollingUpdateDaemonSet{}.OpenAPIModelName()}, } } @@ -35059,28 +40732,28 @@ func schema_k8sio_api_apps_v1beta2_Deployment(ref common.ReferenceCallback) comm SchemaProps: spec.SchemaProps{ Description: "Standard object metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the Deployment.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.DeploymentSpec"), + Ref: ref(v1beta2.DeploymentSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Most recently observed status of the Deployment.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.DeploymentStatus"), + Ref: ref(v1beta2.DeploymentStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.DeploymentSpec", "k8s.io/api/apps/v1beta2.DeploymentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1beta2.DeploymentSpec{}.OpenAPIModelName(), v1beta2.DeploymentStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -35110,13 +40783,13 @@ func schema_k8sio_api_apps_v1beta2_DeploymentCondition(ref common.ReferenceCallb "lastUpdateTime": { SchemaProps: spec.SchemaProps{ Description: "The last time this condition was updated.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -35138,7 +40811,7 @@ func schema_k8sio_api_apps_v1beta2_DeploymentCondition(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -35167,7 +40840,7 @@ func schema_k8sio_api_apps_v1beta2_DeploymentList(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "Standard list metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -35178,7 +40851,7 @@ func schema_k8sio_api_apps_v1beta2_DeploymentList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.Deployment"), + Ref: ref(v1beta2.Deployment{}.OpenAPIModelName()), }, }, }, @@ -35189,7 +40862,7 @@ func schema_k8sio_api_apps_v1beta2_DeploymentList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.Deployment", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1beta2.Deployment{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -35210,14 +40883,14 @@ func schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref common.ReferenceCallback) "selector": { SchemaProps: spec.SchemaProps{ Description: "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\".", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, "strategy": { @@ -35229,7 +40902,7 @@ func schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "The deployment strategy to use to replace existing pods with new ones.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.DeploymentStrategy"), + Ref: ref(v1beta2.DeploymentStrategy{}.OpenAPIModelName()), }, }, "minReadySeconds": { @@ -35265,7 +40938,7 @@ func schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.DeploymentStrategy", "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + v1beta2.DeploymentStrategy{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -35285,28 +40958,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 +40991,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 a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).", + Type: []string{"integer"}, + Format: "int32", + }, + }, "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -35336,7 +41016,7 @@ func schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.DeploymentCondition"), + Ref: ref(v1beta2.DeploymentCondition{}.OpenAPIModelName()), }, }, }, @@ -35353,7 +41033,7 @@ func schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.DeploymentCondition"}, + v1beta2.DeploymentCondition{}.OpenAPIModelName()}, } } @@ -35374,14 +41054,14 @@ func schema_k8sio_api_apps_v1beta2_DeploymentStrategy(ref common.ReferenceCallba "rollingUpdate": { SchemaProps: spec.SchemaProps{ Description: "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - Ref: ref("k8s.io/api/apps/v1beta2.RollingUpdateDeployment"), + Ref: ref(v1beta2.RollingUpdateDeployment{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.RollingUpdateDeployment"}, + v1beta2.RollingUpdateDeployment{}.OpenAPIModelName()}, } } @@ -35410,28 +41090,28 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSet(ref common.ReferenceCallback) comm SchemaProps: spec.SchemaProps{ Description: "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.ReplicaSetSpec"), + Ref: ref(v1beta2.ReplicaSetSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.ReplicaSetStatus"), + Ref: ref(v1beta2.ReplicaSetStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.ReplicaSetSpec", "k8s.io/api/apps/v1beta2.ReplicaSetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1beta2.ReplicaSetSpec{}.OpenAPIModelName(), v1beta2.ReplicaSetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -35461,7 +41141,7 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetCondition(ref common.ReferenceCallb "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "The last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -35483,7 +41163,7 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetCondition(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -35512,18 +41192,18 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref common.ReferenceCallback) 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.ReplicaSet"), + Ref: ref(v1beta2.ReplicaSet{}.OpenAPIModelName()), }, }, }, @@ -35534,7 +41214,7 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.ReplicaSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1beta2.ReplicaSet{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -35547,7 +41227,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", }, @@ -35562,14 +41242,14 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref common.ReferenceCallback) "selector": { SchemaProps: spec.SchemaProps{ Description: "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ - Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/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"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, }, @@ -35577,7 +41257,7 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -35590,7 +41270,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 +41278,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 a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).", Type: []string{"integer"}, Format: "int32", }, @@ -35642,7 +41329,7 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.ReplicaSetCondition"), + Ref: ref(v1beta2.ReplicaSetCondition{}.OpenAPIModelName()), }, }, }, @@ -35653,7 +41340,7 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.ReplicaSetCondition"}, + v1beta2.ReplicaSetCondition{}.OpenAPIModelName()}, } } @@ -35667,20 +41354,20 @@ func schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref common.ReferenceCa "maxUnavailable": { SchemaProps: spec.SchemaProps{ Description: "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "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.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -35694,20 +41381,20 @@ func schema_k8sio_api_apps_v1beta2_RollingUpdateDeployment(ref common.ReferenceC "maxUnavailable": { SchemaProps: spec.SchemaProps{ Description: "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "maxSurge": { SchemaProps: spec.SchemaProps{ Description: "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -35727,15 +41414,15 @@ func schema_k8sio_api_apps_v1beta2_RollingUpdateStatefulSetStrategy(ref common.R }, "maxUnavailable": { SchemaProps: spec.SchemaProps{ - Description: "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Description: "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is beta-level and is enabled by default. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. This setting might not be effective for the OrderedReady podManagementPolicy. That policy ensures pods are created and become ready one at a time.", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -35764,28 +41451,28 @@ func schema_k8sio_api_apps_v1beta2_Scale(ref common.ReferenceCallback) common.Op 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "defines the behavior of the scale. 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/apps/v1beta2.ScaleSpec"), + Ref: ref(v1beta2.ScaleSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.ScaleStatus"), + Ref: ref(v1beta2.ScaleStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.ScaleSpec", "k8s.io/api/apps/v1beta2.ScaleStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1beta2.ScaleSpec{}.OpenAPIModelName(), v1beta2.ScaleStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -35799,6 +41486,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", }, @@ -35883,28 +41571,28 @@ func schema_k8sio_api_apps_v1beta2_StatefulSet(ref common.ReferenceCallback) com "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec defines the desired identities of pods in this set.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.StatefulSetSpec"), + Ref: ref(v1beta2.StatefulSetSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.StatefulSetStatus"), + Ref: ref(v1beta2.StatefulSetStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.StatefulSetSpec", "k8s.io/api/apps/v1beta2.StatefulSetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1beta2.StatefulSetSpec{}.OpenAPIModelName(), v1beta2.StatefulSetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -35934,7 +41622,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetCondition(ref common.ReferenceCall "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -35956,7 +41644,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetCondition(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -35984,7 +41672,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetList(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -35994,7 +41682,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.StatefulSet"), + Ref: ref(v1beta2.StatefulSet{}.OpenAPIModelName()), }, }, }, @@ -36005,7 +41693,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.StatefulSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1beta2.StatefulSet{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -36074,14 +41762,14 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref common.ReferenceCallback) "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\". The only allowed template.spec.restartPolicy value is \"Always\".", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, "volumeClaimTemplates": { @@ -36097,7 +41785,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaim"), + Ref: ref(corev1.PersistentVolumeClaim{}.OpenAPIModelName()), }, }, }, @@ -36122,7 +41810,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.StatefulSetUpdateStrategy"), + Ref: ref(v1beta2.StatefulSetUpdateStrategy{}.OpenAPIModelName()), }, }, "revisionHistoryLimit": { @@ -36141,22 +41829,22 @@ 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.", - Ref: ref("k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy"), + 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(v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy{}.OpenAPIModelName()), }, }, "ordinals": { SchemaProps: spec.SchemaProps{ Description: "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested.", - Ref: ref("k8s.io/api/apps/v1beta2.StatefulSetOrdinals"), + Ref: ref(v1beta2.StatefulSetOrdinals{}.OpenAPIModelName()), }, }, }, - Required: []string{"selector", "template", "serviceName"}, + Required: []string{"selector", "template"}, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.StatefulSetOrdinals", "k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy", "k8s.io/api/apps/v1beta2.StatefulSetUpdateStrategy", "k8s.io/api/core/v1.PersistentVolumeClaim", "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + v1beta2.StatefulSetOrdinals{}.OpenAPIModelName(), v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy{}.OpenAPIModelName(), v1beta2.StatefulSetUpdateStrategy{}.OpenAPIModelName(), corev1.PersistentVolumeClaim{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -36242,7 +41930,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/apps/v1beta2.StatefulSetCondition"), + Ref: ref(v1beta2.StatefulSetCondition{}.OpenAPIModelName()), }, }, }, @@ -36261,7 +41949,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.StatefulSetCondition"}, + v1beta2.StatefulSetCondition{}.OpenAPIModelName()}, } } @@ -36282,14 +41970,14 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetUpdateStrategy(ref common.Referenc "rollingUpdate": { SchemaProps: spec.SchemaProps{ Description: "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.", - Ref: ref("k8s.io/api/apps/v1beta2.RollingUpdateStatefulSetStrategy"), + Ref: ref(v1beta2.RollingUpdateStatefulSetStrategy{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/apps/v1beta2.RollingUpdateStatefulSetStrategy"}, + v1beta2.RollingUpdateStatefulSetStrategy{}.OpenAPIModelName()}, } } @@ -36359,21 +42047,21 @@ func schema_k8sio_api_authentication_v1_SelfSubjectReview(ref common.ReferenceCa 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server with the user attributes.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.SelfSubjectReviewStatus"), + Ref: ref(authenticationv1.SelfSubjectReviewStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/authentication/v1.SelfSubjectReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authenticationv1.SelfSubjectReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -36388,14 +42076,14 @@ func schema_k8sio_api_authentication_v1_SelfSubjectReviewStatus(ref common.Refer SchemaProps: spec.SchemaProps{ Description: "User attributes of the user making this request.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + Ref: ref(authenticationv1.UserInfo{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/authentication/v1.UserInfo"}, + authenticationv1.UserInfo{}.OpenAPIModelName()}, } } @@ -36424,21 +42112,21 @@ func schema_k8sio_api_authentication_v1_TokenRequest(ref common.ReferenceCallbac 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec holds information about the request being evaluated", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.TokenRequestSpec"), + Ref: ref(authenticationv1.TokenRequestSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server and indicates whether the token can be authenticated.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.TokenRequestStatus"), + Ref: ref(authenticationv1.TokenRequestStatus{}.OpenAPIModelName()), }, }, }, @@ -36446,7 +42134,7 @@ func schema_k8sio_api_authentication_v1_TokenRequest(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/authentication/v1.TokenRequestSpec", "k8s.io/api/authentication/v1.TokenRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authenticationv1.TokenRequestSpec{}.OpenAPIModelName(), authenticationv1.TokenRequestStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -36487,7 +42175,7 @@ func schema_k8sio_api_authentication_v1_TokenRequestSpec(ref common.ReferenceCal "boundObjectRef": { SchemaProps: spec.SchemaProps{ Description: "BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation.", - Ref: ref("k8s.io/api/authentication/v1.BoundObjectReference"), + Ref: ref(authenticationv1.BoundObjectReference{}.OpenAPIModelName()), }, }, }, @@ -36495,7 +42183,7 @@ func schema_k8sio_api_authentication_v1_TokenRequestSpec(ref common.ReferenceCal }, }, Dependencies: []string{ - "k8s.io/api/authentication/v1.BoundObjectReference"}, + authenticationv1.BoundObjectReference{}.OpenAPIModelName()}, } } @@ -36517,7 +42205,7 @@ func schema_k8sio_api_authentication_v1_TokenRequestStatus(ref common.ReferenceC "expirationTimestamp": { SchemaProps: spec.SchemaProps{ Description: "ExpirationTimestamp is the time of expiration of the returned token.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, @@ -36525,7 +42213,7 @@ func schema_k8sio_api_authentication_v1_TokenRequestStatus(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -36554,21 +42242,21 @@ func schema_k8sio_api_authentication_v1_TokenReview(ref common.ReferenceCallback 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec holds information about the request being evaluated", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.TokenReviewSpec"), + Ref: ref(authenticationv1.TokenReviewSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server and indicates whether the request can be authenticated.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.TokenReviewStatus"), + Ref: ref(authenticationv1.TokenReviewStatus{}.OpenAPIModelName()), }, }, }, @@ -36576,7 +42264,7 @@ func schema_k8sio_api_authentication_v1_TokenReview(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/authentication/v1.TokenReviewSpec", "k8s.io/api/authentication/v1.TokenReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authenticationv1.TokenReviewSpec{}.OpenAPIModelName(), authenticationv1.TokenReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -36638,7 +42326,7 @@ func schema_k8sio_api_authentication_v1_TokenReviewStatus(ref common.ReferenceCa SchemaProps: spec.SchemaProps{ Description: "User is the UserInfo associated with the provided token.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + Ref: ref(authenticationv1.UserInfo{}.OpenAPIModelName()), }, }, "audiences": { @@ -36672,7 +42360,7 @@ func schema_k8sio_api_authentication_v1_TokenReviewStatus(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/api/authentication/v1.UserInfo"}, + authenticationv1.UserInfo{}.OpenAPIModelName()}, } } @@ -36771,21 +42459,21 @@ func schema_k8sio_api_authentication_v1beta1_SelfSubjectReview(ref common.Refere 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server with the user attributes.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1beta1.SelfSubjectReviewStatus"), + Ref: ref(authenticationv1beta1.SelfSubjectReviewStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/authentication/v1beta1.SelfSubjectReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authenticationv1beta1.SelfSubjectReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -36800,14 +42488,14 @@ func schema_k8sio_api_authentication_v1beta1_SelfSubjectReviewStatus(ref common. SchemaProps: spec.SchemaProps{ Description: "User attributes of the user making this request.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + Ref: ref(authenticationv1.UserInfo{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/authentication/v1.UserInfo"}, + authenticationv1.UserInfo{}.OpenAPIModelName()}, } } @@ -36836,21 +42524,21 @@ func schema_k8sio_api_authentication_v1beta1_TokenReview(ref common.ReferenceCal 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec holds information about the request being evaluated", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1beta1.TokenReviewSpec"), + Ref: ref(authenticationv1beta1.TokenReviewSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server and indicates whether the token can be authenticated.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1beta1.TokenReviewStatus"), + Ref: ref(authenticationv1beta1.TokenReviewStatus{}.OpenAPIModelName()), }, }, }, @@ -36858,7 +42546,7 @@ func schema_k8sio_api_authentication_v1beta1_TokenReview(ref common.ReferenceCal }, }, Dependencies: []string{ - "k8s.io/api/authentication/v1beta1.TokenReviewSpec", "k8s.io/api/authentication/v1beta1.TokenReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authenticationv1beta1.TokenReviewSpec{}.OpenAPIModelName(), authenticationv1beta1.TokenReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -36920,7 +42608,7 @@ func schema_k8sio_api_authentication_v1beta1_TokenReviewStatus(ref common.Refere SchemaProps: spec.SchemaProps{ Description: "User is the UserInfo associated with the provided token.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1beta1.UserInfo"), + Ref: ref(authenticationv1beta1.UserInfo{}.OpenAPIModelName()), }, }, "audiences": { @@ -36954,7 +42642,7 @@ func schema_k8sio_api_authentication_v1beta1_TokenReviewStatus(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/authentication/v1beta1.UserInfo"}, + authenticationv1beta1.UserInfo{}.OpenAPIModelName()}, } } @@ -37055,7 +42743,7 @@ func schema_k8sio_api_authorization_v1_FieldSelectorAttributes(ref common.Refere Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.FieldSelectorRequirement"), + Ref: ref(metav1.FieldSelectorRequirement{}.OpenAPIModelName()), }, }, }, @@ -37065,7 +42753,7 @@ func schema_k8sio_api_authorization_v1_FieldSelectorAttributes(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldSelectorRequirement"}, + metav1.FieldSelectorRequirement{}.OpenAPIModelName()}, } } @@ -37096,7 +42784,7 @@ func schema_k8sio_api_authorization_v1_LabelSelectorAttributes(ref common.Refere Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), + Ref: ref(metav1.LabelSelectorRequirement{}.OpenAPIModelName()), }, }, }, @@ -37106,7 +42794,7 @@ func schema_k8sio_api_authorization_v1_LabelSelectorAttributes(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, + metav1.LabelSelectorRequirement{}.OpenAPIModelName()}, } } @@ -37135,21 +42823,21 @@ func schema_k8sio_api_authorization_v1_LocalSubjectAccessReview(ref common.Refer 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.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1.SubjectAccessReviewSpec"), + Ref: ref(authorizationv1.SubjectAccessReviewSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server and indicates whether the request is allowed or not", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1.SubjectAccessReviewStatus"), + Ref: ref(authorizationv1.SubjectAccessReviewStatus{}.OpenAPIModelName()), }, }, }, @@ -37157,7 +42845,7 @@ func schema_k8sio_api_authorization_v1_LocalSubjectAccessReview(ref common.Refer }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.SubjectAccessReviewSpec", "k8s.io/api/authorization/v1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authorizationv1.SubjectAccessReviewSpec{}.OpenAPIModelName(), authorizationv1.SubjectAccessReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -37300,21 +42988,21 @@ 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).", - Ref: ref("k8s.io/api/authorization/v1.FieldSelectorAttributes"), + Description: "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.", + Ref: ref(authorizationv1.FieldSelectorAttributes{}.OpenAPIModelName()), }, }, "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).", - Ref: ref("k8s.io/api/authorization/v1.LabelSelectorAttributes"), + Description: "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.", + Ref: ref(authorizationv1.LabelSelectorAttributes{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.FieldSelectorAttributes", "k8s.io/api/authorization/v1.LabelSelectorAttributes"}, + authorizationv1.FieldSelectorAttributes{}.OpenAPIModelName(), authorizationv1.LabelSelectorAttributes{}.OpenAPIModelName()}, } } @@ -37437,21 +43125,21 @@ func schema_k8sio_api_authorization_v1_SelfSubjectAccessReview(ref common.Refere 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.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec holds information about the request being evaluated. user and groups must be empty", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1.SelfSubjectAccessReviewSpec"), + Ref: ref(authorizationv1.SelfSubjectAccessReviewSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server and indicates whether the request is allowed or not", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1.SubjectAccessReviewStatus"), + Ref: ref(authorizationv1.SubjectAccessReviewStatus{}.OpenAPIModelName()), }, }, }, @@ -37459,7 +43147,7 @@ func schema_k8sio_api_authorization_v1_SelfSubjectAccessReview(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.SelfSubjectAccessReviewSpec", "k8s.io/api/authorization/v1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authorizationv1.SelfSubjectAccessReviewSpec{}.OpenAPIModelName(), authorizationv1.SubjectAccessReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -37473,20 +43161,20 @@ func schema_k8sio_api_authorization_v1_SelfSubjectAccessReviewSpec(ref common.Re "resourceAttributes": { SchemaProps: spec.SchemaProps{ Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + Ref: ref(authorizationv1.ResourceAttributes{}.OpenAPIModelName()), }, }, "nonResourceAttributes": { SchemaProps: spec.SchemaProps{ Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + Ref: ref(authorizationv1.NonResourceAttributes{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, + authorizationv1.NonResourceAttributes{}.OpenAPIModelName(), authorizationv1.ResourceAttributes{}.OpenAPIModelName()}, } } @@ -37515,21 +43203,21 @@ func schema_k8sio_api_authorization_v1_SelfSubjectRulesReview(ref common.Referen 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.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec holds information about the request being evaluated.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1.SelfSubjectRulesReviewSpec"), + Ref: ref(authorizationv1.SelfSubjectRulesReviewSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server and indicates the set of actions a user can perform.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1.SubjectRulesReviewStatus"), + Ref: ref(authorizationv1.SubjectRulesReviewStatus{}.OpenAPIModelName()), }, }, }, @@ -37537,7 +43225,7 @@ func schema_k8sio_api_authorization_v1_SelfSubjectRulesReview(ref common.Referen }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.SelfSubjectRulesReviewSpec", "k8s.io/api/authorization/v1.SubjectRulesReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authorizationv1.SelfSubjectRulesReviewSpec{}.OpenAPIModelName(), authorizationv1.SubjectRulesReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -37586,21 +43274,21 @@ func schema_k8sio_api_authorization_v1_SubjectAccessReview(ref common.ReferenceC 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.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec holds information about the request being evaluated", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1.SubjectAccessReviewSpec"), + Ref: ref(authorizationv1.SubjectAccessReviewSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server and indicates whether the request is allowed or not", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1.SubjectAccessReviewStatus"), + Ref: ref(authorizationv1.SubjectAccessReviewStatus{}.OpenAPIModelName()), }, }, }, @@ -37608,7 +43296,7 @@ func schema_k8sio_api_authorization_v1_SubjectAccessReview(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.SubjectAccessReviewSpec", "k8s.io/api/authorization/v1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authorizationv1.SubjectAccessReviewSpec{}.OpenAPIModelName(), authorizationv1.SubjectAccessReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -37622,13 +43310,13 @@ func schema_k8sio_api_authorization_v1_SubjectAccessReviewSpec(ref common.Refere "resourceAttributes": { SchemaProps: spec.SchemaProps{ Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + Ref: ref(authorizationv1.ResourceAttributes{}.OpenAPIModelName()), }, }, "nonResourceAttributes": { SchemaProps: spec.SchemaProps{ Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + Ref: ref(authorizationv1.NonResourceAttributes{}.OpenAPIModelName()), }, }, "user": { @@ -37692,7 +43380,7 @@ func schema_k8sio_api_authorization_v1_SubjectAccessReviewSpec(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, + authorizationv1.NonResourceAttributes{}.OpenAPIModelName(), authorizationv1.ResourceAttributes{}.OpenAPIModelName()}, } } @@ -37759,7 +43447,7 @@ func schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref common.Refer Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1.ResourceRule"), + Ref: ref(authorizationv1.ResourceRule{}.OpenAPIModelName()), }, }, }, @@ -37778,7 +43466,7 @@ func schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref common.Refer Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1.NonResourceRule"), + Ref: ref(authorizationv1.NonResourceRule{}.OpenAPIModelName()), }, }, }, @@ -37804,7 +43492,7 @@ func schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref common.Refer }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.NonResourceRule", "k8s.io/api/authorization/v1.ResourceRule"}, + authorizationv1.NonResourceRule{}.OpenAPIModelName(), authorizationv1.ResourceRule{}.OpenAPIModelName()}, } } @@ -37833,21 +43521,21 @@ func schema_k8sio_api_authorization_v1beta1_LocalSubjectAccessReview(ref common. 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.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec"), + Ref: ref(authorizationv1beta1.SubjectAccessReviewSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server and indicates whether the request is allowed or not", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus"), + Ref: ref(authorizationv1beta1.SubjectAccessReviewStatus{}.OpenAPIModelName()), }, }, }, @@ -37855,7 +43543,7 @@ func schema_k8sio_api_authorization_v1beta1_LocalSubjectAccessReview(ref common. }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec", "k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authorizationv1beta1.SubjectAccessReviewSpec{}.OpenAPIModelName(), authorizationv1beta1.SubjectAccessReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -37999,20 +43687,20 @@ func schema_k8sio_api_authorization_v1beta1_ResourceAttributes(ref common.Refere "fieldSelector": { SchemaProps: spec.SchemaProps{ 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"), + Ref: ref(authorizationv1.FieldSelectorAttributes{}.OpenAPIModelName()), }, }, "labelSelector": { SchemaProps: spec.SchemaProps{ 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"), + Ref: ref(authorizationv1.LabelSelectorAttributes{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.FieldSelectorAttributes", "k8s.io/api/authorization/v1.LabelSelectorAttributes"}, + authorizationv1.FieldSelectorAttributes{}.OpenAPIModelName(), authorizationv1.LabelSelectorAttributes{}.OpenAPIModelName()}, } } @@ -38135,21 +43823,21 @@ func schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReview(ref common.R 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.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec holds information about the request being evaluated. user and groups must be empty", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1beta1.SelfSubjectAccessReviewSpec"), + Ref: ref(authorizationv1beta1.SelfSubjectAccessReviewSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server and indicates whether the request is allowed or not", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus"), + Ref: ref(authorizationv1beta1.SubjectAccessReviewStatus{}.OpenAPIModelName()), }, }, }, @@ -38157,7 +43845,7 @@ func schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReview(ref common.R }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReviewSpec", "k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authorizationv1beta1.SelfSubjectAccessReviewSpec{}.OpenAPIModelName(), authorizationv1beta1.SubjectAccessReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -38171,20 +43859,20 @@ func schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReviewSpec(ref comm "resourceAttributes": { SchemaProps: spec.SchemaProps{ Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1beta1.ResourceAttributes"), + Ref: ref(authorizationv1beta1.ResourceAttributes{}.OpenAPIModelName()), }, }, "nonResourceAttributes": { SchemaProps: spec.SchemaProps{ Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1beta1.NonResourceAttributes"), + Ref: ref(authorizationv1beta1.NonResourceAttributes{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1beta1.NonResourceAttributes", "k8s.io/api/authorization/v1beta1.ResourceAttributes"}, + authorizationv1beta1.NonResourceAttributes{}.OpenAPIModelName(), authorizationv1beta1.ResourceAttributes{}.OpenAPIModelName()}, } } @@ -38213,21 +43901,21 @@ func schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReview(ref common.Re 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.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec holds information about the request being evaluated.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1beta1.SelfSubjectRulesReviewSpec"), + Ref: ref(authorizationv1beta1.SelfSubjectRulesReviewSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server and indicates the set of actions a user can perform.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1beta1.SubjectRulesReviewStatus"), + Ref: ref(authorizationv1beta1.SubjectRulesReviewStatus{}.OpenAPIModelName()), }, }, }, @@ -38235,7 +43923,7 @@ func schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReview(ref common.Re }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReviewSpec", "k8s.io/api/authorization/v1beta1.SubjectRulesReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authorizationv1beta1.SelfSubjectRulesReviewSpec{}.OpenAPIModelName(), authorizationv1beta1.SubjectRulesReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -38284,21 +43972,21 @@ func schema_k8sio_api_authorization_v1beta1_SubjectAccessReview(ref common.Refer 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.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec holds information about the request being evaluated", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec"), + Ref: ref(authorizationv1beta1.SubjectAccessReviewSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the server and indicates whether the request is allowed or not", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus"), + Ref: ref(authorizationv1beta1.SubjectAccessReviewStatus{}.OpenAPIModelName()), }, }, }, @@ -38306,7 +43994,7 @@ func schema_k8sio_api_authorization_v1beta1_SubjectAccessReview(ref common.Refer }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec", "k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + authorizationv1beta1.SubjectAccessReviewSpec{}.OpenAPIModelName(), authorizationv1beta1.SubjectAccessReviewStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -38320,13 +44008,13 @@ func schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewSpec(ref common.R "resourceAttributes": { SchemaProps: spec.SchemaProps{ Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1beta1.ResourceAttributes"), + Ref: ref(authorizationv1beta1.ResourceAttributes{}.OpenAPIModelName()), }, }, "nonResourceAttributes": { SchemaProps: spec.SchemaProps{ Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1beta1.NonResourceAttributes"), + Ref: ref(authorizationv1beta1.NonResourceAttributes{}.OpenAPIModelName()), }, }, "user": { @@ -38390,7 +44078,7 @@ func schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewSpec(ref common.R }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1beta1.NonResourceAttributes", "k8s.io/api/authorization/v1beta1.ResourceAttributes"}, + authorizationv1beta1.NonResourceAttributes{}.OpenAPIModelName(), authorizationv1beta1.ResourceAttributes{}.OpenAPIModelName()}, } } @@ -38457,7 +44145,7 @@ func schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1beta1.ResourceRule"), + Ref: ref(authorizationv1beta1.ResourceRule{}.OpenAPIModelName()), }, }, }, @@ -38476,7 +44164,7 @@ func schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authorization/v1beta1.NonResourceRule"), + Ref: ref(authorizationv1beta1.NonResourceRule{}.OpenAPIModelName()), }, }, }, @@ -38502,7 +44190,7 @@ func schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref common. }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1beta1.NonResourceRule", "k8s.io/api/authorization/v1beta1.ResourceRule"}, + authorizationv1beta1.NonResourceRule{}.OpenAPIModelName(), authorizationv1beta1.ResourceRule{}.OpenAPIModelName()}, } } @@ -38531,7 +44219,7 @@ func schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref common.Re "targetAverageValue": { SchemaProps: spec.SchemaProps{ Description: "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "container": { @@ -38547,7 +44235,7 @@ func schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref common.Re }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -38576,7 +44264,7 @@ func schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref common.Re "currentAverageValue": { SchemaProps: spec.SchemaProps{ Description: "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "container": { @@ -38592,7 +44280,7 @@ func schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref common.Re }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -38656,19 +44344,19 @@ func schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref common.ReferenceCa "metricSelector": { SchemaProps: spec.SchemaProps{ Description: "metricSelector is used to identify a specific time series within a given metric.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "targetValue": { SchemaProps: spec.SchemaProps{ Description: "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "targetAverageValue": { SchemaProps: spec.SchemaProps{ Description: "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -38676,7 +44364,7 @@ func schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -38698,19 +44386,19 @@ func schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref common.ReferenceCa "metricSelector": { SchemaProps: spec.SchemaProps{ Description: "metricSelector is used to identify a specific time series within a given metric.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "currentValue": { SchemaProps: spec.SchemaProps{ Description: "currentValue is the current value of the metric (as a quantity)", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "currentAverageValue": { SchemaProps: spec.SchemaProps{ Description: "currentAverageValue is the current value of metric averaged over autoscaled pods.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -38718,7 +44406,7 @@ func schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -38747,28 +44435,28 @@ func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref common.Referenc 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec defines the behaviour of autoscaler. 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/autoscaling/v1.HorizontalPodAutoscalerSpec"), + Ref: ref(autoscalingv1.HorizontalPodAutoscalerSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "status is the current information about the autoscaler.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus"), + Ref: ref(autoscalingv1.HorizontalPodAutoscalerStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec", "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + autoscalingv1.HorizontalPodAutoscalerSpec{}.OpenAPIModelName(), autoscalingv1.HorizontalPodAutoscalerStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -38798,7 +44486,7 @@ func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref common "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "lastTransitionTime is the last time the condition transitioned from one status to another", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -38820,7 +44508,7 @@ func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref common }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -38849,7 +44537,7 @@ func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref common.Refe SchemaProps: spec.SchemaProps{ Description: "Standard list metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -38860,7 +44548,7 @@ func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler"), + Ref: ref(autoscalingv1.HorizontalPodAutoscaler{}.OpenAPIModelName()), }, }, }, @@ -38871,7 +44559,7 @@ func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref common.Refe }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + autoscalingv1.HorizontalPodAutoscaler{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -38886,7 +44574,7 @@ func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref common.Refe SchemaProps: spec.SchemaProps{ Description: "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v1.CrossVersionObjectReference"), + Ref: ref(autoscalingv1.CrossVersionObjectReference{}.OpenAPIModelName()), }, }, "minReplicas": { @@ -38916,7 +44604,7 @@ func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref common.Refe }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v1.CrossVersionObjectReference"}, + autoscalingv1.CrossVersionObjectReference{}.OpenAPIModelName()}, } } @@ -38937,7 +44625,7 @@ func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref common.Re "lastScaleTime": { SchemaProps: spec.SchemaProps{ Description: "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "currentReplicas": { @@ -38968,7 +44656,7 @@ func schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref common.Re }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -38981,7 +44669,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: "", @@ -38991,31 +44679,31 @@ func schema_k8sio_api_autoscaling_v1_MetricSpec(ref common.ReferenceCallback) co "object": { SchemaProps: spec.SchemaProps{ Description: "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - Ref: ref("k8s.io/api/autoscaling/v1.ObjectMetricSource"), + Ref: ref(autoscalingv1.ObjectMetricSource{}.OpenAPIModelName()), }, }, "pods": { SchemaProps: spec.SchemaProps{ Description: "pods refers to 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.", - Ref: ref("k8s.io/api/autoscaling/v1.PodsMetricSource"), + Ref: ref(autoscalingv1.PodsMetricSource{}.OpenAPIModelName()), }, }, "resource": { SchemaProps: spec.SchemaProps{ Description: "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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 using the \"pods\" source.", - Ref: ref("k8s.io/api/autoscaling/v1.ResourceMetricSource"), + Ref: ref(autoscalingv1.ResourceMetricSource{}.OpenAPIModelName()), }, }, "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.", - Ref: ref("k8s.io/api/autoscaling/v1.ContainerResourceMetricSource"), + 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(autoscalingv1.ContainerResourceMetricSource{}.OpenAPIModelName()), }, }, "external": { SchemaProps: spec.SchemaProps{ Description: "external refers to 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).", - Ref: ref("k8s.io/api/autoscaling/v1.ExternalMetricSource"), + Ref: ref(autoscalingv1.ExternalMetricSource{}.OpenAPIModelName()), }, }, }, @@ -39023,7 +44711,7 @@ func schema_k8sio_api_autoscaling_v1_MetricSpec(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v1.ContainerResourceMetricSource", "k8s.io/api/autoscaling/v1.ExternalMetricSource", "k8s.io/api/autoscaling/v1.ObjectMetricSource", "k8s.io/api/autoscaling/v1.PodsMetricSource", "k8s.io/api/autoscaling/v1.ResourceMetricSource"}, + autoscalingv1.ContainerResourceMetricSource{}.OpenAPIModelName(), autoscalingv1.ExternalMetricSource{}.OpenAPIModelName(), autoscalingv1.ObjectMetricSource{}.OpenAPIModelName(), autoscalingv1.PodsMetricSource{}.OpenAPIModelName(), autoscalingv1.ResourceMetricSource{}.OpenAPIModelName()}, } } @@ -39036,7 +44724,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: "", @@ -39046,31 +44734,31 @@ func schema_k8sio_api_autoscaling_v1_MetricStatus(ref common.ReferenceCallback) "object": { SchemaProps: spec.SchemaProps{ Description: "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - Ref: ref("k8s.io/api/autoscaling/v1.ObjectMetricStatus"), + Ref: ref(autoscalingv1.ObjectMetricStatus{}.OpenAPIModelName()), }, }, "pods": { SchemaProps: spec.SchemaProps{ Description: "pods refers to 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.", - Ref: ref("k8s.io/api/autoscaling/v1.PodsMetricStatus"), + Ref: ref(autoscalingv1.PodsMetricStatus{}.OpenAPIModelName()), }, }, "resource": { SchemaProps: spec.SchemaProps{ Description: "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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 using the \"pods\" source.", - Ref: ref("k8s.io/api/autoscaling/v1.ResourceMetricStatus"), + Ref: ref(autoscalingv1.ResourceMetricStatus{}.OpenAPIModelName()), }, }, "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 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 using the \"pods\" source.", - Ref: ref("k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus"), + Ref: ref(autoscalingv1.ContainerResourceMetricStatus{}.OpenAPIModelName()), }, }, "external": { SchemaProps: spec.SchemaProps{ Description: "external refers to 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).", - Ref: ref("k8s.io/api/autoscaling/v1.ExternalMetricStatus"), + Ref: ref(autoscalingv1.ExternalMetricStatus{}.OpenAPIModelName()), }, }, }, @@ -39078,7 +44766,7 @@ func schema_k8sio_api_autoscaling_v1_MetricStatus(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus", "k8s.io/api/autoscaling/v1.ExternalMetricStatus", "k8s.io/api/autoscaling/v1.ObjectMetricStatus", "k8s.io/api/autoscaling/v1.PodsMetricStatus", "k8s.io/api/autoscaling/v1.ResourceMetricStatus"}, + autoscalingv1.ContainerResourceMetricStatus{}.OpenAPIModelName(), autoscalingv1.ExternalMetricStatus{}.OpenAPIModelName(), autoscalingv1.ObjectMetricStatus{}.OpenAPIModelName(), autoscalingv1.PodsMetricStatus{}.OpenAPIModelName(), autoscalingv1.ResourceMetricStatus{}.OpenAPIModelName()}, } } @@ -39093,7 +44781,7 @@ func schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref common.ReferenceCall SchemaProps: spec.SchemaProps{ Description: "target is the described Kubernetes object.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v1.CrossVersionObjectReference"), + Ref: ref(autoscalingv1.CrossVersionObjectReference{}.OpenAPIModelName()), }, }, "metricName": { @@ -39107,19 +44795,19 @@ func schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref common.ReferenceCall "targetValue": { SchemaProps: spec.SchemaProps{ Description: "targetValue is the target value of the metric (as a quantity).", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric. When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "averageValue": { SchemaProps: spec.SchemaProps{ Description: "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -39127,7 +44815,7 @@ func schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v1.CrossVersionObjectReference", "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + autoscalingv1.CrossVersionObjectReference{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -39142,7 +44830,7 @@ func schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref common.ReferenceCall SchemaProps: spec.SchemaProps{ Description: "target is the described Kubernetes object.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v1.CrossVersionObjectReference"), + Ref: ref(autoscalingv1.CrossVersionObjectReference{}.OpenAPIModelName()), }, }, "metricName": { @@ -39156,19 +44844,19 @@ func schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref common.ReferenceCall "currentValue": { SchemaProps: spec.SchemaProps{ Description: "currentValue is the current value of the metric (as a quantity).", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "averageValue": { SchemaProps: spec.SchemaProps{ Description: "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -39176,7 +44864,7 @@ func schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v1.CrossVersionObjectReference", "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + autoscalingv1.CrossVersionObjectReference{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -39198,13 +44886,13 @@ func schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref common.ReferenceCallba "targetAverageValue": { SchemaProps: spec.SchemaProps{ Description: "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, }, @@ -39212,7 +44900,7 @@ func schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -39234,13 +44922,13 @@ func schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref common.ReferenceCallba "currentAverageValue": { SchemaProps: spec.SchemaProps{ Description: "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, }, @@ -39248,7 +44936,7 @@ func schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -39277,7 +44965,7 @@ func schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref common.ReferenceCa "targetAverageValue": { SchemaProps: spec.SchemaProps{ Description: "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -39285,7 +44973,7 @@ func schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -39314,7 +45002,7 @@ func schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref common.ReferenceCa "currentAverageValue": { SchemaProps: spec.SchemaProps{ Description: "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -39322,7 +45010,7 @@ func schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -39351,28 +45039,28 @@ func schema_k8sio_api_autoscaling_v1_Scale(ref common.ReferenceCallback) common. 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec defines the behavior of the scale. 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/autoscaling/v1.ScaleSpec"), + Ref: ref(autoscalingv1.ScaleSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "status is the current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v1.ScaleStatus"), + Ref: ref(autoscalingv1.ScaleStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v1.ScaleSpec", "k8s.io/api/autoscaling/v1.ScaleStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + autoscalingv1.ScaleSpec{}.OpenAPIModelName(), autoscalingv1.ScaleStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -39386,6 +45074,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", }, @@ -39450,7 +45139,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricSource(ref comm "targetAverageValue": { SchemaProps: spec.SchemaProps{ Description: "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "container": { @@ -39466,7 +45155,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricSource(ref comm }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -39495,7 +45184,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricStatus(ref comm "currentAverageValue": { SchemaProps: spec.SchemaProps{ Description: "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "container": { @@ -39511,7 +45200,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricStatus(ref comm }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -39570,19 +45259,19 @@ func schema_k8sio_api_autoscaling_v2beta1_ExternalMetricSource(ref common.Refere "metricSelector": { SchemaProps: spec.SchemaProps{ Description: "metricSelector is used to identify a specific time series within a given metric.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "targetValue": { SchemaProps: spec.SchemaProps{ Description: "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "targetAverageValue": { SchemaProps: spec.SchemaProps{ Description: "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -39590,7 +45279,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ExternalMetricSource(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -39612,19 +45301,19 @@ func schema_k8sio_api_autoscaling_v2beta1_ExternalMetricStatus(ref common.Refere "metricSelector": { SchemaProps: spec.SchemaProps{ Description: "metricSelector is used to identify a specific time series within a given metric.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "currentValue": { SchemaProps: spec.SchemaProps{ Description: "currentValue is the current value of the metric (as a quantity)", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "currentAverageValue": { SchemaProps: spec.SchemaProps{ Description: "currentAverageValue is the current value of metric averaged over autoscaled pods.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -39632,7 +45321,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ExternalMetricStatus(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -39661,28 +45350,28 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscaler(ref common.Ref SchemaProps: spec.SchemaProps{ Description: "metadata is the 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec is the specification for the behaviour of the autoscaler. 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/autoscaling/v2beta1.HorizontalPodAutoscalerSpec"), + Ref: ref(v2beta1.HorizontalPodAutoscalerSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "status is the current information about the autoscaler.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerStatus"), + Ref: ref(v2beta1.HorizontalPodAutoscalerStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerSpec", "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v2beta1.HorizontalPodAutoscalerSpec{}.OpenAPIModelName(), v2beta1.HorizontalPodAutoscalerStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -39712,7 +45401,7 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerCondition(ref c "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "lastTransitionTime is the last time the condition transitioned from one status to another", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -39734,7 +45423,7 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerCondition(ref c }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -39763,7 +45452,7 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref common SchemaProps: spec.SchemaProps{ Description: "metadata is the standard list metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -39774,7 +45463,7 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscaler"), + Ref: ref(v2beta1.HorizontalPodAutoscaler{}.OpenAPIModelName()), }, }, }, @@ -39785,7 +45474,7 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref common }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscaler", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v2beta1.HorizontalPodAutoscaler{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -39800,7 +45489,7 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref common SchemaProps: spec.SchemaProps{ Description: "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference"), + Ref: ref(v2beta1.CrossVersionObjectReference{}.OpenAPIModelName()), }, }, "minReplicas": { @@ -39831,7 +45520,7 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta1.MetricSpec"), + Ref: ref(v2beta1.MetricSpec{}.OpenAPIModelName()), }, }, }, @@ -39842,7 +45531,7 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref common }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference", "k8s.io/api/autoscaling/v2beta1.MetricSpec"}, + v2beta1.CrossVersionObjectReference{}.OpenAPIModelName(), v2beta1.MetricSpec{}.OpenAPIModelName()}, } } @@ -39863,7 +45552,7 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref comm "lastScaleTime": { SchemaProps: spec.SchemaProps{ Description: "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "currentReplicas": { @@ -39895,7 +45584,7 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta1.MetricStatus"), + Ref: ref(v2beta1.MetricStatus{}.OpenAPIModelName()), }, }, }, @@ -39914,7 +45603,7 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerCondition"), + Ref: ref(v2beta1.HorizontalPodAutoscalerCondition{}.OpenAPIModelName()), }, }, }, @@ -39925,7 +45614,7 @@ func schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref comm }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerCondition", "k8s.io/api/autoscaling/v2beta1.MetricStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + v2beta1.HorizontalPodAutoscalerCondition{}.OpenAPIModelName(), v2beta1.MetricStatus{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -39938,7 +45627,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: "", @@ -39947,31 +45636,31 @@ func schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref common.ReferenceCallbac "object": { SchemaProps: spec.SchemaProps{ Description: "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - Ref: ref("k8s.io/api/autoscaling/v2beta1.ObjectMetricSource"), + Ref: ref(v2beta1.ObjectMetricSource{}.OpenAPIModelName()), }, }, "pods": { SchemaProps: spec.SchemaProps{ Description: "pods refers to 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.", - Ref: ref("k8s.io/api/autoscaling/v2beta1.PodsMetricSource"), + Ref: ref(v2beta1.PodsMetricSource{}.OpenAPIModelName()), }, }, "resource": { SchemaProps: spec.SchemaProps{ Description: "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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 using the \"pods\" source.", - Ref: ref("k8s.io/api/autoscaling/v2beta1.ResourceMetricSource"), + Ref: ref(v2beta1.ResourceMetricSource{}.OpenAPIModelName()), }, }, "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.", - Ref: ref("k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource"), + 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(v2beta1.ContainerResourceMetricSource{}.OpenAPIModelName()), }, }, "external": { SchemaProps: spec.SchemaProps{ Description: "external refers to 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).", - Ref: ref("k8s.io/api/autoscaling/v2beta1.ExternalMetricSource"), + Ref: ref(v2beta1.ExternalMetricSource{}.OpenAPIModelName()), }, }, }, @@ -39979,7 +45668,7 @@ func schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource", "k8s.io/api/autoscaling/v2beta1.ExternalMetricSource", "k8s.io/api/autoscaling/v2beta1.ObjectMetricSource", "k8s.io/api/autoscaling/v2beta1.PodsMetricSource", "k8s.io/api/autoscaling/v2beta1.ResourceMetricSource"}, + v2beta1.ContainerResourceMetricSource{}.OpenAPIModelName(), v2beta1.ExternalMetricSource{}.OpenAPIModelName(), v2beta1.ObjectMetricSource{}.OpenAPIModelName(), v2beta1.PodsMetricSource{}.OpenAPIModelName(), v2beta1.ResourceMetricSource{}.OpenAPIModelName()}, } } @@ -39992,7 +45681,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: "", @@ -40001,31 +45690,31 @@ func schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref common.ReferenceCallb "object": { SchemaProps: spec.SchemaProps{ Description: "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - Ref: ref("k8s.io/api/autoscaling/v2beta1.ObjectMetricStatus"), + Ref: ref(v2beta1.ObjectMetricStatus{}.OpenAPIModelName()), }, }, "pods": { SchemaProps: spec.SchemaProps{ Description: "pods refers to 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.", - Ref: ref("k8s.io/api/autoscaling/v2beta1.PodsMetricStatus"), + Ref: ref(v2beta1.PodsMetricStatus{}.OpenAPIModelName()), }, }, "resource": { SchemaProps: spec.SchemaProps{ Description: "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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 using the \"pods\" source.", - Ref: ref("k8s.io/api/autoscaling/v2beta1.ResourceMetricStatus"), + Ref: ref(v2beta1.ResourceMetricStatus{}.OpenAPIModelName()), }, }, "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 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 using the \"pods\" source.", - Ref: ref("k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricStatus"), + Ref: ref(v2beta1.ContainerResourceMetricStatus{}.OpenAPIModelName()), }, }, "external": { SchemaProps: spec.SchemaProps{ Description: "external refers to 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).", - Ref: ref("k8s.io/api/autoscaling/v2beta1.ExternalMetricStatus"), + Ref: ref(v2beta1.ExternalMetricStatus{}.OpenAPIModelName()), }, }, }, @@ -40033,7 +45722,7 @@ func schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricStatus", "k8s.io/api/autoscaling/v2beta1.ExternalMetricStatus", "k8s.io/api/autoscaling/v2beta1.ObjectMetricStatus", "k8s.io/api/autoscaling/v2beta1.PodsMetricStatus", "k8s.io/api/autoscaling/v2beta1.ResourceMetricStatus"}, + v2beta1.ContainerResourceMetricStatus{}.OpenAPIModelName(), v2beta1.ExternalMetricStatus{}.OpenAPIModelName(), v2beta1.ObjectMetricStatus{}.OpenAPIModelName(), v2beta1.PodsMetricStatus{}.OpenAPIModelName(), v2beta1.ResourceMetricStatus{}.OpenAPIModelName()}, } } @@ -40048,7 +45737,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref common.Referenc SchemaProps: spec.SchemaProps{ Description: "target is the described Kubernetes object.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference"), + Ref: ref(v2beta1.CrossVersionObjectReference{}.OpenAPIModelName()), }, }, "metricName": { @@ -40062,19 +45751,19 @@ func schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref common.Referenc "targetValue": { SchemaProps: spec.SchemaProps{ Description: "targetValue is the target value of the metric (as a quantity).", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "averageValue": { SchemaProps: spec.SchemaProps{ Description: "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -40082,7 +45771,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference", "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + v2beta1.CrossVersionObjectReference{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -40097,7 +45786,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref common.Referenc SchemaProps: spec.SchemaProps{ Description: "target is the described Kubernetes object.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference"), + Ref: ref(v2beta1.CrossVersionObjectReference{}.OpenAPIModelName()), }, }, "metricName": { @@ -40111,19 +45800,19 @@ func schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref common.Referenc "currentValue": { SchemaProps: spec.SchemaProps{ Description: "currentValue is the current value of the metric (as a quantity).", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "averageValue": { SchemaProps: spec.SchemaProps{ Description: "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -40131,7 +45820,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference", "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + v2beta1.CrossVersionObjectReference{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -40153,13 +45842,13 @@ func schema_k8sio_api_autoscaling_v2beta1_PodsMetricSource(ref common.ReferenceC "targetAverageValue": { SchemaProps: spec.SchemaProps{ Description: "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, }, @@ -40167,7 +45856,7 @@ func schema_k8sio_api_autoscaling_v2beta1_PodsMetricSource(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -40189,13 +45878,13 @@ func schema_k8sio_api_autoscaling_v2beta1_PodsMetricStatus(ref common.ReferenceC "currentAverageValue": { SchemaProps: spec.SchemaProps{ Description: "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, }, @@ -40203,7 +45892,7 @@ func schema_k8sio_api_autoscaling_v2beta1_PodsMetricStatus(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -40232,7 +45921,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ResourceMetricSource(ref common.Refere "targetAverageValue": { SchemaProps: spec.SchemaProps{ Description: "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -40240,7 +45929,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ResourceMetricSource(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -40269,7 +45958,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ResourceMetricStatus(ref common.Refere "currentAverageValue": { SchemaProps: spec.SchemaProps{ Description: "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -40277,7 +45966,7 @@ func schema_k8sio_api_autoscaling_v2beta1_ResourceMetricStatus(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -40300,7 +45989,7 @@ func schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricSource(ref comm SchemaProps: spec.SchemaProps{ Description: "target specifies the target value for the given metric", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricTarget"), + Ref: ref(v2beta2.MetricTarget{}.OpenAPIModelName()), }, }, "container": { @@ -40316,7 +46005,7 @@ func schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricSource(ref comm }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.MetricTarget"}, + v2beta2.MetricTarget{}.OpenAPIModelName()}, } } @@ -40339,7 +46028,7 @@ func schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricStatus(ref comm SchemaProps: spec.SchemaProps{ Description: "current contains the current value for the given metric", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricValueStatus"), + Ref: ref(v2beta2.MetricValueStatus{}.OpenAPIModelName()), }, }, "container": { @@ -40355,7 +46044,7 @@ func schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricStatus(ref comm }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.MetricValueStatus"}, + v2beta2.MetricValueStatus{}.OpenAPIModelName()}, } } @@ -40407,14 +46096,14 @@ func schema_k8sio_api_autoscaling_v2beta2_ExternalMetricSource(ref common.Refere SchemaProps: spec.SchemaProps{ Description: "metric identifies the target metric by name and selector", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricIdentifier"), + Ref: ref(v2beta2.MetricIdentifier{}.OpenAPIModelName()), }, }, "target": { SchemaProps: spec.SchemaProps{ Description: "target specifies the target value for the given metric", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricTarget"), + Ref: ref(v2beta2.MetricTarget{}.OpenAPIModelName()), }, }, }, @@ -40422,7 +46111,7 @@ func schema_k8sio_api_autoscaling_v2beta2_ExternalMetricSource(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.MetricIdentifier", "k8s.io/api/autoscaling/v2beta2.MetricTarget"}, + v2beta2.MetricIdentifier{}.OpenAPIModelName(), v2beta2.MetricTarget{}.OpenAPIModelName()}, } } @@ -40437,14 +46126,14 @@ func schema_k8sio_api_autoscaling_v2beta2_ExternalMetricStatus(ref common.Refere SchemaProps: spec.SchemaProps{ Description: "metric identifies the target metric by name and selector", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricIdentifier"), + Ref: ref(v2beta2.MetricIdentifier{}.OpenAPIModelName()), }, }, "current": { SchemaProps: spec.SchemaProps{ Description: "current contains the current value for the given metric", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricValueStatus"), + Ref: ref(v2beta2.MetricValueStatus{}.OpenAPIModelName()), }, }, }, @@ -40452,7 +46141,7 @@ func schema_k8sio_api_autoscaling_v2beta2_ExternalMetricStatus(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.MetricIdentifier", "k8s.io/api/autoscaling/v2beta2.MetricValueStatus"}, + v2beta2.MetricIdentifier{}.OpenAPIModelName(), v2beta2.MetricValueStatus{}.OpenAPIModelName()}, } } @@ -40528,7 +46217,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HPAScalingRules(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.HPAScalingPolicy"), + Ref: ref(v2beta2.HPAScalingPolicy{}.OpenAPIModelName()), }, }, }, @@ -40538,7 +46227,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HPAScalingRules(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.HPAScalingPolicy"}, + v2beta2.HPAScalingPolicy{}.OpenAPIModelName()}, } } @@ -40567,28 +46256,28 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscaler(ref common.Ref SchemaProps: spec.SchemaProps{ Description: "metadata is the 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec is the specification for the behaviour of the autoscaler. 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/autoscaling/v2beta2.HorizontalPodAutoscalerSpec"), + Ref: ref(v2beta2.HorizontalPodAutoscalerSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "status is the current information about the autoscaler.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerStatus"), + Ref: ref(v2beta2.HorizontalPodAutoscalerStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerSpec", "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v2beta2.HorizontalPodAutoscalerSpec{}.OpenAPIModelName(), v2beta2.HorizontalPodAutoscalerStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -40602,20 +46291,20 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerBehavior(ref co "scaleUp": { SchemaProps: spec.SchemaProps{ Description: "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used.", - Ref: ref("k8s.io/api/autoscaling/v2beta2.HPAScalingRules"), + Ref: ref(v2beta2.HPAScalingRules{}.OpenAPIModelName()), }, }, "scaleDown": { SchemaProps: spec.SchemaProps{ Description: "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used).", - Ref: ref("k8s.io/api/autoscaling/v2beta2.HPAScalingRules"), + Ref: ref(v2beta2.HPAScalingRules{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.HPAScalingRules"}, + v2beta2.HPAScalingRules{}.OpenAPIModelName()}, } } @@ -40645,7 +46334,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerCondition(ref c "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "lastTransitionTime is the last time the condition transitioned from one status to another", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -40667,7 +46356,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerCondition(ref c }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -40696,7 +46385,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref common SchemaProps: spec.SchemaProps{ Description: "metadata is the standard list metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -40707,7 +46396,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscaler"), + Ref: ref(v2beta2.HorizontalPodAutoscaler{}.OpenAPIModelName()), }, }, }, @@ -40718,7 +46407,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref common }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscaler", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v2beta2.HorizontalPodAutoscaler{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -40733,7 +46422,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref common SchemaProps: spec.SchemaProps{ Description: "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference"), + Ref: ref(v2beta2.CrossVersionObjectReference{}.OpenAPIModelName()), }, }, "minReplicas": { @@ -40764,7 +46453,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricSpec"), + Ref: ref(v2beta2.MetricSpec{}.OpenAPIModelName()), }, }, }, @@ -40773,7 +46462,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref common "behavior": { SchemaProps: spec.SchemaProps{ Description: "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used.", - Ref: ref("k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerBehavior"), + Ref: ref(v2beta2.HorizontalPodAutoscalerBehavior{}.OpenAPIModelName()), }, }, }, @@ -40781,7 +46470,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref common }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference", "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerBehavior", "k8s.io/api/autoscaling/v2beta2.MetricSpec"}, + v2beta2.CrossVersionObjectReference{}.OpenAPIModelName(), v2beta2.HorizontalPodAutoscalerBehavior{}.OpenAPIModelName(), v2beta2.MetricSpec{}.OpenAPIModelName()}, } } @@ -40802,7 +46491,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref comm "lastScaleTime": { SchemaProps: spec.SchemaProps{ Description: "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "currentReplicas": { @@ -40834,7 +46523,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricStatus"), + Ref: ref(v2beta2.MetricStatus{}.OpenAPIModelName()), }, }, }, @@ -40853,7 +46542,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerCondition"), + Ref: ref(v2beta2.HorizontalPodAutoscalerCondition{}.OpenAPIModelName()), }, }, }, @@ -40864,7 +46553,7 @@ func schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref comm }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerCondition", "k8s.io/api/autoscaling/v2beta2.MetricStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + v2beta2.HorizontalPodAutoscalerCondition{}.OpenAPIModelName(), v2beta2.MetricStatus{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -40886,7 +46575,7 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricIdentifier(ref common.ReferenceC "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, }, @@ -40894,7 +46583,7 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricIdentifier(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -40907,7 +46596,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: "", @@ -40916,31 +46605,31 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref common.ReferenceCallbac "object": { SchemaProps: spec.SchemaProps{ Description: "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - Ref: ref("k8s.io/api/autoscaling/v2beta2.ObjectMetricSource"), + Ref: ref(v2beta2.ObjectMetricSource{}.OpenAPIModelName()), }, }, "pods": { SchemaProps: spec.SchemaProps{ Description: "pods refers to 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.", - Ref: ref("k8s.io/api/autoscaling/v2beta2.PodsMetricSource"), + Ref: ref(v2beta2.PodsMetricSource{}.OpenAPIModelName()), }, }, "resource": { SchemaProps: spec.SchemaProps{ Description: "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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 using the \"pods\" source.", - Ref: ref("k8s.io/api/autoscaling/v2beta2.ResourceMetricSource"), + Ref: ref(v2beta2.ResourceMetricSource{}.OpenAPIModelName()), }, }, "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.", - Ref: ref("k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource"), + 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(v2beta2.ContainerResourceMetricSource{}.OpenAPIModelName()), }, }, "external": { SchemaProps: spec.SchemaProps{ Description: "external refers to 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).", - Ref: ref("k8s.io/api/autoscaling/v2beta2.ExternalMetricSource"), + Ref: ref(v2beta2.ExternalMetricSource{}.OpenAPIModelName()), }, }, }, @@ -40948,7 +46637,7 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource", "k8s.io/api/autoscaling/v2beta2.ExternalMetricSource", "k8s.io/api/autoscaling/v2beta2.ObjectMetricSource", "k8s.io/api/autoscaling/v2beta2.PodsMetricSource", "k8s.io/api/autoscaling/v2beta2.ResourceMetricSource"}, + v2beta2.ContainerResourceMetricSource{}.OpenAPIModelName(), v2beta2.ExternalMetricSource{}.OpenAPIModelName(), v2beta2.ObjectMetricSource{}.OpenAPIModelName(), v2beta2.PodsMetricSource{}.OpenAPIModelName(), v2beta2.ResourceMetricSource{}.OpenAPIModelName()}, } } @@ -40961,7 +46650,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: "", @@ -40970,31 +46659,31 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref common.ReferenceCallb "object": { SchemaProps: spec.SchemaProps{ Description: "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - Ref: ref("k8s.io/api/autoscaling/v2beta2.ObjectMetricStatus"), + Ref: ref(v2beta2.ObjectMetricStatus{}.OpenAPIModelName()), }, }, "pods": { SchemaProps: spec.SchemaProps{ Description: "pods refers to 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.", - Ref: ref("k8s.io/api/autoscaling/v2beta2.PodsMetricStatus"), + Ref: ref(v2beta2.PodsMetricStatus{}.OpenAPIModelName()), }, }, "resource": { SchemaProps: spec.SchemaProps{ Description: "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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 using the \"pods\" source.", - Ref: ref("k8s.io/api/autoscaling/v2beta2.ResourceMetricStatus"), + Ref: ref(v2beta2.ResourceMetricStatus{}.OpenAPIModelName()), }, }, "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 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 using the \"pods\" source.", - Ref: ref("k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricStatus"), + Ref: ref(v2beta2.ContainerResourceMetricStatus{}.OpenAPIModelName()), }, }, "external": { SchemaProps: spec.SchemaProps{ Description: "external refers to 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).", - Ref: ref("k8s.io/api/autoscaling/v2beta2.ExternalMetricStatus"), + Ref: ref(v2beta2.ExternalMetricStatus{}.OpenAPIModelName()), }, }, }, @@ -41002,7 +46691,7 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricStatus", "k8s.io/api/autoscaling/v2beta2.ExternalMetricStatus", "k8s.io/api/autoscaling/v2beta2.ObjectMetricStatus", "k8s.io/api/autoscaling/v2beta2.PodsMetricStatus", "k8s.io/api/autoscaling/v2beta2.ResourceMetricStatus"}, + v2beta2.ContainerResourceMetricStatus{}.OpenAPIModelName(), v2beta2.ExternalMetricStatus{}.OpenAPIModelName(), v2beta2.ObjectMetricStatus{}.OpenAPIModelName(), v2beta2.PodsMetricStatus{}.OpenAPIModelName(), v2beta2.ResourceMetricStatus{}.OpenAPIModelName()}, } } @@ -41024,13 +46713,13 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricTarget(ref common.ReferenceCallb "value": { SchemaProps: spec.SchemaProps{ Description: "value is the target value of the metric (as a quantity).", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "averageValue": { SchemaProps: spec.SchemaProps{ Description: "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "averageUtilization": { @@ -41045,7 +46734,7 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricTarget(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -41059,13 +46748,13 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricValueStatus(ref common.Reference "value": { SchemaProps: spec.SchemaProps{ Description: "value is the current value of the metric (as a quantity).", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "averageValue": { SchemaProps: spec.SchemaProps{ Description: "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "averageUtilization": { @@ -41079,7 +46768,7 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricValueStatus(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -41093,21 +46782,21 @@ func schema_k8sio_api_autoscaling_v2beta2_ObjectMetricSource(ref common.Referenc "describedObject": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference"), + Ref: ref(v2beta2.CrossVersionObjectReference{}.OpenAPIModelName()), }, }, "target": { SchemaProps: spec.SchemaProps{ Description: "target specifies the target value for the given metric", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricTarget"), + Ref: ref(v2beta2.MetricTarget{}.OpenAPIModelName()), }, }, "metric": { SchemaProps: spec.SchemaProps{ Description: "metric identifies the target metric by name and selector", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricIdentifier"), + Ref: ref(v2beta2.MetricIdentifier{}.OpenAPIModelName()), }, }, }, @@ -41115,7 +46804,7 @@ func schema_k8sio_api_autoscaling_v2beta2_ObjectMetricSource(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference", "k8s.io/api/autoscaling/v2beta2.MetricIdentifier", "k8s.io/api/autoscaling/v2beta2.MetricTarget"}, + v2beta2.CrossVersionObjectReference{}.OpenAPIModelName(), v2beta2.MetricIdentifier{}.OpenAPIModelName(), v2beta2.MetricTarget{}.OpenAPIModelName()}, } } @@ -41130,20 +46819,20 @@ func schema_k8sio_api_autoscaling_v2beta2_ObjectMetricStatus(ref common.Referenc SchemaProps: spec.SchemaProps{ Description: "metric identifies the target metric by name and selector", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricIdentifier"), + Ref: ref(v2beta2.MetricIdentifier{}.OpenAPIModelName()), }, }, "current": { SchemaProps: spec.SchemaProps{ Description: "current contains the current value for the given metric", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricValueStatus"), + Ref: ref(v2beta2.MetricValueStatus{}.OpenAPIModelName()), }, }, "describedObject": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference"), + Ref: ref(v2beta2.CrossVersionObjectReference{}.OpenAPIModelName()), }, }, }, @@ -41151,7 +46840,7 @@ func schema_k8sio_api_autoscaling_v2beta2_ObjectMetricStatus(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference", "k8s.io/api/autoscaling/v2beta2.MetricIdentifier", "k8s.io/api/autoscaling/v2beta2.MetricValueStatus"}, + v2beta2.CrossVersionObjectReference{}.OpenAPIModelName(), v2beta2.MetricIdentifier{}.OpenAPIModelName(), v2beta2.MetricValueStatus{}.OpenAPIModelName()}, } } @@ -41166,14 +46855,14 @@ func schema_k8sio_api_autoscaling_v2beta2_PodsMetricSource(ref common.ReferenceC SchemaProps: spec.SchemaProps{ Description: "metric identifies the target metric by name and selector", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricIdentifier"), + Ref: ref(v2beta2.MetricIdentifier{}.OpenAPIModelName()), }, }, "target": { SchemaProps: spec.SchemaProps{ Description: "target specifies the target value for the given metric", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricTarget"), + Ref: ref(v2beta2.MetricTarget{}.OpenAPIModelName()), }, }, }, @@ -41181,7 +46870,7 @@ func schema_k8sio_api_autoscaling_v2beta2_PodsMetricSource(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.MetricIdentifier", "k8s.io/api/autoscaling/v2beta2.MetricTarget"}, + v2beta2.MetricIdentifier{}.OpenAPIModelName(), v2beta2.MetricTarget{}.OpenAPIModelName()}, } } @@ -41196,14 +46885,14 @@ func schema_k8sio_api_autoscaling_v2beta2_PodsMetricStatus(ref common.ReferenceC SchemaProps: spec.SchemaProps{ Description: "metric identifies the target metric by name and selector", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricIdentifier"), + Ref: ref(v2beta2.MetricIdentifier{}.OpenAPIModelName()), }, }, "current": { SchemaProps: spec.SchemaProps{ Description: "current contains the current value for the given metric", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricValueStatus"), + Ref: ref(v2beta2.MetricValueStatus{}.OpenAPIModelName()), }, }, }, @@ -41211,7 +46900,7 @@ func schema_k8sio_api_autoscaling_v2beta2_PodsMetricStatus(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.MetricIdentifier", "k8s.io/api/autoscaling/v2beta2.MetricValueStatus"}, + v2beta2.MetricIdentifier{}.OpenAPIModelName(), v2beta2.MetricValueStatus{}.OpenAPIModelName()}, } } @@ -41234,7 +46923,7 @@ func schema_k8sio_api_autoscaling_v2beta2_ResourceMetricSource(ref common.Refere SchemaProps: spec.SchemaProps{ Description: "target specifies the target value for the given metric", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricTarget"), + Ref: ref(v2beta2.MetricTarget{}.OpenAPIModelName()), }, }, }, @@ -41242,7 +46931,7 @@ func schema_k8sio_api_autoscaling_v2beta2_ResourceMetricSource(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.MetricTarget"}, + v2beta2.MetricTarget{}.OpenAPIModelName()}, } } @@ -41265,7 +46954,7 @@ func schema_k8sio_api_autoscaling_v2beta2_ResourceMetricStatus(ref common.Refere SchemaProps: spec.SchemaProps{ Description: "current contains the current value for the given metric", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/autoscaling/v2beta2.MetricValueStatus"), + Ref: ref(v2beta2.MetricValueStatus{}.OpenAPIModelName()), }, }, }, @@ -41273,7 +46962,7 @@ func schema_k8sio_api_autoscaling_v2beta2_ResourceMetricStatus(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/autoscaling/v2beta2.MetricValueStatus"}, + v2beta2.MetricValueStatus{}.OpenAPIModelName()}, } } @@ -41302,28 +46991,28 @@ func schema_k8sio_api_batch_v1_CronJob(ref common.ReferenceCallback) common.Open 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.CronJobSpec"), + Ref: ref(batchv1.CronJobSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.CronJobStatus"), + Ref: ref(batchv1.CronJobStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/batch/v1.CronJobSpec", "k8s.io/api/batch/v1.CronJobStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + batchv1.CronJobSpec{}.OpenAPIModelName(), batchv1.CronJobStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -41352,7 +47041,7 @@ func schema_k8sio_api_batch_v1_CronJobList(ref common.ReferenceCallback) common. 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -41363,7 +47052,7 @@ func schema_k8sio_api_batch_v1_CronJobList(ref common.ReferenceCallback) common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.CronJob"), + Ref: ref(batchv1.CronJob{}.OpenAPIModelName()), }, }, }, @@ -41374,7 +47063,7 @@ func schema_k8sio_api_batch_v1_CronJobList(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "k8s.io/api/batch/v1.CronJob", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + batchv1.CronJob{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -41426,7 +47115,7 @@ func schema_k8sio_api_batch_v1_CronJobSpec(ref common.ReferenceCallback) common. SchemaProps: spec.SchemaProps{ Description: "Specifies the job that will be created when executing a CronJob.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.JobTemplateSpec"), + Ref: ref(batchv1.JobTemplateSpec{}.OpenAPIModelName()), }, }, "successfulJobsHistoryLimit": { @@ -41448,7 +47137,7 @@ func schema_k8sio_api_batch_v1_CronJobSpec(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "k8s.io/api/batch/v1.JobTemplateSpec"}, + batchv1.JobTemplateSpec{}.OpenAPIModelName()}, } } @@ -41472,7 +47161,7 @@ func schema_k8sio_api_batch_v1_CronJobStatus(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ObjectReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, }, @@ -41481,20 +47170,20 @@ func schema_k8sio_api_batch_v1_CronJobStatus(ref common.ReferenceCallback) commo "lastScheduleTime": { SchemaProps: spec.SchemaProps{ Description: "Information when was the last time the job was successfully scheduled.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "lastSuccessfulTime": { SchemaProps: spec.SchemaProps{ Description: "Information when was the last time the job successfully completed.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + corev1.ObjectReference{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -41523,28 +47212,28 @@ func schema_k8sio_api_batch_v1_Job(ref common.ReferenceCallback) common.OpenAPID 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.JobSpec"), + Ref: ref(batchv1.JobSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.JobStatus"), + Ref: ref(batchv1.JobStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/batch/v1.JobSpec", "k8s.io/api/batch/v1.JobStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + batchv1.JobSpec{}.OpenAPIModelName(), batchv1.JobStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -41574,13 +47263,13 @@ func schema_k8sio_api_batch_v1_JobCondition(ref common.ReferenceCallback) common "lastProbeTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition was checked.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transit from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -41602,7 +47291,7 @@ func schema_k8sio_api_batch_v1_JobCondition(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -41631,7 +47320,7 @@ func schema_k8sio_api_batch_v1_JobList(ref common.ReferenceCallback) common.Open 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -41642,7 +47331,7 @@ func schema_k8sio_api_batch_v1_JobList(ref common.ReferenceCallback) common.Open Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.Job"), + Ref: ref(batchv1.Job{}.OpenAPIModelName()), }, }, }, @@ -41653,7 +47342,7 @@ func schema_k8sio_api_batch_v1_JobList(ref common.ReferenceCallback) common.Open }, }, Dependencies: []string{ - "k8s.io/api/batch/v1.Job", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + batchv1.Job{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -41688,32 +47377,32 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open "podFailurePolicy": { SchemaProps: spec.SchemaProps{ Description: "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.", - Ref: ref("k8s.io/api/batch/v1.PodFailurePolicy"), + Ref: ref(batchv1.PodFailurePolicy{}.OpenAPIModelName()), }, }, "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).", - Ref: ref("k8s.io/api/batch/v1.SuccessPolicy"), + Description: "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.", + Ref: ref(batchv1.SuccessPolicy{}.OpenAPIModelName()), }, }, "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", }, @@ -41721,7 +47410,7 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open "selector": { SchemaProps: spec.SchemaProps{ Description: "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "manualSelector": { @@ -41735,7 +47424,7 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open SchemaProps: spec.SchemaProps{ Description: "Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are \"Never\" or \"OnFailure\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, "ttlSecondsAfterFinished": { @@ -41762,7 +47451,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 +47459,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.", Type: []string{"string"}, Format: "", }, @@ -41780,7 +47469,7 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open }, }, Dependencies: []string{ - "k8s.io/api/batch/v1.PodFailurePolicy", "k8s.io/api/batch/v1.SuccessPolicy", "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + batchv1.PodFailurePolicy{}.OpenAPIModelName(), batchv1.SuccessPolicy{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -41806,7 +47495,7 @@ func schema_k8sio_api_batch_v1_JobStatus(ref common.ReferenceCallback) common.Op Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.JobCondition"), + Ref: ref(batchv1.JobCondition{}.OpenAPIModelName()), }, }, }, @@ -41815,13 +47504,13 @@ func schema_k8sio_api_batch_v1_JobStatus(ref common.ReferenceCallback) common.Op "startTime": { SchemaProps: spec.SchemaProps{ Description: "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.\n\nOnce set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "completionTime": { SchemaProps: spec.SchemaProps{ Description: "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "active": { @@ -41861,7 +47550,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: "", }, @@ -41869,7 +47558,7 @@ func schema_k8sio_api_batch_v1_JobStatus(ref common.ReferenceCallback) common.Op "uncountedTerminatedPods": { SchemaProps: spec.SchemaProps{ Description: "uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs.", - Ref: ref("k8s.io/api/batch/v1.UncountedTerminatedPods"), + Ref: ref(batchv1.UncountedTerminatedPods{}.OpenAPIModelName()), }, }, "ready": { @@ -41883,7 +47572,7 @@ func schema_k8sio_api_batch_v1_JobStatus(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - "k8s.io/api/batch/v1.JobCondition", "k8s.io/api/batch/v1.UncountedTerminatedPods", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + batchv1.JobCondition{}.OpenAPIModelName(), batchv1.UncountedTerminatedPods{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -41898,21 +47587,21 @@ func schema_k8sio_api_batch_v1_JobTemplateSpec(ref common.ReferenceCallback) com SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.JobSpec"), + Ref: ref(batchv1.JobSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/batch/v1.JobSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + batchv1.JobSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -41936,7 +47625,7 @@ func schema_k8sio_api_batch_v1_PodFailurePolicy(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.PodFailurePolicyRule"), + Ref: ref(batchv1.PodFailurePolicyRule{}.OpenAPIModelName()), }, }, }, @@ -41947,7 +47636,7 @@ func schema_k8sio_api_batch_v1_PodFailurePolicy(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/batch/v1.PodFailurePolicyRule"}, + batchv1.PodFailurePolicyRule{}.OpenAPIModelName()}, } } @@ -42025,7 +47714,7 @@ func schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref common }, }, }, - Required: []string{"type", "status"}, + Required: []string{"type"}, }, }, } @@ -42040,7 +47729,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: "", @@ -42050,7 +47739,7 @@ func schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref common.ReferenceCallback "onExitCodes": { SchemaProps: spec.SchemaProps{ Description: "Represents the requirement on the container exit codes.", - Ref: ref("k8s.io/api/batch/v1.PodFailurePolicyOnExitCodesRequirement"), + Ref: ref(batchv1.PodFailurePolicyOnExitCodesRequirement{}.OpenAPIModelName()), }, }, "onPodConditions": { @@ -42066,7 +47755,7 @@ func schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.PodFailurePolicyOnPodConditionsPattern"), + Ref: ref(batchv1.PodFailurePolicyOnPodConditionsPattern{}.OpenAPIModelName()), }, }, }, @@ -42077,7 +47766,7 @@ func schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/batch/v1.PodFailurePolicyOnExitCodesRequirement", "k8s.io/api/batch/v1.PodFailurePolicyOnPodConditionsPattern"}, + batchv1.PodFailurePolicyOnExitCodesRequirement{}.OpenAPIModelName(), batchv1.PodFailurePolicyOnPodConditionsPattern{}.OpenAPIModelName()}, } } @@ -42095,13 +47784,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.SuccessPolicyRule"), + Ref: ref(batchv1.SuccessPolicyRule{}.OpenAPIModelName()), }, }, }, @@ -42112,7 +47801,7 @@ func schema_k8sio_api_batch_v1_SuccessPolicy(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/batch/v1.SuccessPolicyRule"}, + batchv1.SuccessPolicyRule{}.OpenAPIModelName()}, } } @@ -42221,28 +47910,28 @@ func schema_k8sio_api_batch_v1beta1_CronJob(ref common.ReferenceCallback) common 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1beta1.CronJobSpec"), + Ref: ref(batchv1beta1.CronJobSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1beta1.CronJobStatus"), + Ref: ref(batchv1beta1.CronJobStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/batch/v1beta1.CronJobSpec", "k8s.io/api/batch/v1beta1.CronJobStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + batchv1beta1.CronJobSpec{}.OpenAPIModelName(), batchv1beta1.CronJobStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -42271,7 +47960,7 @@ func schema_k8sio_api_batch_v1beta1_CronJobList(ref common.ReferenceCallback) co 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -42282,7 +47971,7 @@ func schema_k8sio_api_batch_v1beta1_CronJobList(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1beta1.CronJob"), + Ref: ref(batchv1beta1.CronJob{}.OpenAPIModelName()), }, }, }, @@ -42293,7 +47982,7 @@ func schema_k8sio_api_batch_v1beta1_CronJobList(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/batch/v1beta1.CronJob", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + batchv1beta1.CronJob{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -42344,7 +48033,7 @@ func schema_k8sio_api_batch_v1beta1_CronJobSpec(ref common.ReferenceCallback) co SchemaProps: spec.SchemaProps{ Description: "Specifies the job that will be created when executing a CronJob.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1beta1.JobTemplateSpec"), + Ref: ref(batchv1beta1.JobTemplateSpec{}.OpenAPIModelName()), }, }, "successfulJobsHistoryLimit": { @@ -42366,7 +48055,7 @@ func schema_k8sio_api_batch_v1beta1_CronJobSpec(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/batch/v1beta1.JobTemplateSpec"}, + batchv1beta1.JobTemplateSpec{}.OpenAPIModelName()}, } } @@ -42390,7 +48079,7 @@ func schema_k8sio_api_batch_v1beta1_CronJobStatus(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ObjectReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, }, @@ -42399,20 +48088,20 @@ func schema_k8sio_api_batch_v1beta1_CronJobStatus(ref common.ReferenceCallback) "lastScheduleTime": { SchemaProps: spec.SchemaProps{ Description: "Information when was the last time the job was successfully scheduled.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "lastSuccessfulTime": { SchemaProps: spec.SchemaProps{ Description: "Information when was the last time the job successfully completed.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + corev1.ObjectReference{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -42427,21 +48116,21 @@ func schema_k8sio_api_batch_v1beta1_JobTemplateSpec(ref common.ReferenceCallback SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/batch/v1.JobSpec"), + Ref: ref(batchv1.JobSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/batch/v1.JobSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + batchv1.JobSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -42469,21 +48158,21 @@ func schema_k8sio_api_certificates_v1beta1_CertificateSigningRequest(ref common. "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/certificates/v1beta1.CertificateSigningRequestSpec"), + Ref: ref(certificatesv1beta1.CertificateSigningRequestSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Derived information about the request.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/certificates/v1beta1.CertificateSigningRequestStatus"), + Ref: ref(certificatesv1beta1.CertificateSigningRequestStatus{}.OpenAPIModelName()), }, }, }, @@ -42491,7 +48180,7 @@ func schema_k8sio_api_certificates_v1beta1_CertificateSigningRequest(ref common. }, }, Dependencies: []string{ - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestSpec", "k8s.io/api/certificates/v1beta1.CertificateSigningRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + certificatesv1beta1.CertificateSigningRequestSpec{}.OpenAPIModelName(), certificatesv1beta1.CertificateSigningRequestStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -42534,13 +48223,13 @@ func schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestCondition(re "lastUpdateTime": { SchemaProps: spec.SchemaProps{ Description: "timestamp for the last update to this condition", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, @@ -42548,7 +48237,7 @@ func schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestCondition(re }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -42575,7 +48264,7 @@ func schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref com "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -42585,7 +48274,7 @@ func schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/certificates/v1beta1.CertificateSigningRequest"), + Ref: ref(certificatesv1beta1.CertificateSigningRequest{}.OpenAPIModelName()), }, }, }, @@ -42596,7 +48285,7 @@ func schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref com }, }, Dependencies: []string{ - "k8s.io/api/certificates/v1beta1.CertificateSigningRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + certificatesv1beta1.CertificateSigningRequest{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -42608,11 +48297,6 @@ func schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestSpec(ref com Type: []string{"object"}, Properties: map[string]spec.Schema{ "request": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, SchemaProps: spec.SchemaProps{ Description: "Base64-encoded PKCS#10 CSR data", Type: []string{"string"}, @@ -42739,29 +48423,422 @@ func schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/certificates/v1beta1.CertificateSigningRequestCondition"), + Ref: ref(certificatesv1beta1.CertificateSigningRequestCondition{}.OpenAPIModelName()), }, }, }, }, }, "certificate": { + SchemaProps: spec.SchemaProps{ + Description: "If request was approved, the controller will place the issued certificate here.", + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + }, + }, + Dependencies: []string{ + certificatesv1beta1.CertificateSigningRequestCondition{}.OpenAPIModelName()}, + } +} + +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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec contains the signer (if any) and trust anchors.", + Default: map[string]interface{}{}, + Ref: ref(certificatesv1beta1.ClusterTrustBundleSpec{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + certificatesv1beta1.ClusterTrustBundleSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "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(certificatesv1beta1.ClusterTrustBundle{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + certificatesv1beta1.ClusterTrustBundle{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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_certificates_v1beta1_PodCertificateRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodCertificateRequest encodes a pod requesting a certificate from a given signer.\n\nKubelets use this API to implement podCertificate projected volumes", + 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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec contains the details about the certificate being requested.", + Default: map[string]interface{}{}, + Ref: ref(certificatesv1beta1.PodCertificateRequestSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "status contains the issued certificate, and a standard set of conditions.", + Default: map[string]interface{}{}, + Ref: ref(certificatesv1beta1.PodCertificateRequestStatus{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + certificatesv1beta1.PodCertificateRequestSpec{}.OpenAPIModelName(), certificatesv1beta1.PodCertificateRequestStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_certificates_v1beta1_PodCertificateRequestList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodCertificateRequestList is a collection of PodCertificateRequest 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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is a collection of PodCertificateRequest objects", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(certificatesv1beta1.PodCertificateRequest{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + certificatesv1beta1.PodCertificateRequest{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_certificates_v1beta1_PodCertificateRequestSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "signerName": { + SchemaProps: spec.SchemaProps{ + Description: "signerName indicates the requested signer.\n\nAll signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "podName": { + SchemaProps: spec.SchemaProps{ + Description: "podName is the name of the pod into which the certificate will be mounted.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "podUID": { + SchemaProps: spec.SchemaProps{ + Description: "podUID is the UID of the pod into which the certificate will be mounted.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceAccountName": { + SchemaProps: spec.SchemaProps{ + Description: "serviceAccountName is the name of the service account the pod is running as.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceAccountUID": { + SchemaProps: spec.SchemaProps{ + Description: "serviceAccountUID is the UID of the service account the pod is running as.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "nodeName": { + SchemaProps: spec.SchemaProps{ + Description: "nodeName is the name of the node the pod is assigned to.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "nodeUID": { + SchemaProps: spec.SchemaProps{ + Description: "nodeUID is the UID of the node the pod is assigned to.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "maxExpirationSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "maxExpirationSeconds is the maximum lifetime permitted for the certificate.\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.", + Default: 86400, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "pkixPublicKey": { + SchemaProps: spec.SchemaProps{ + Description: "pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to.\n\nThe key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future.\n\nSigner implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field.", + Type: []string{"string"}, + Format: "byte", + }, + }, + "proofOfPossession": { + SchemaProps: spec.SchemaProps{ + Description: "proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey.\n\nIt is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`.\n\nkube-apiserver validates the proof of possession during creation of the PodCertificateRequest.\n\nIf the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options).\n\nIf the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1)\n\nIf the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign).", + Type: []string{"string"}, + Format: "byte", + }, + }, + "unverifiedUserAnnotations": { + SchemaProps: spec.SchemaProps{ + Description: "unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way.\n\nEntries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field.\n\nSigners should document the keys and values they support. Signers should deny requests that contain keys they do not recognize.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"signerName", "podName", "podUID", "serviceAccountName", "serviceAccountUID", "nodeName", "nodeUID", "pkixPublicKey", "proofOfPossession"}, + }, + }, + } +} + +func schema_k8sio_api_certificates_v1beta1_PodCertificateRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", + "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: "If request was approved, the controller will place the issued certificate here.", + Description: "conditions applied to the request.\n\nThe types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\".\n\nIf the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.Condition{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "certificateChain": { + SchemaProps: spec.SchemaProps{ + Description: "certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificateChain must consist of one or more PEM-formatted certificates.\n 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as\n described in section 4 of RFC5280.\n\nIf more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers.", Type: []string{"string"}, - Format: "byte", + Format: "", + }, + }, + "notBefore": { + SchemaProps: spec.SchemaProps{ + Description: "notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "beginRefreshAt": { + SchemaProps: spec.SchemaProps{ + Description: "beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable.\n\nThis field is only a hint. Kubelet may start refreshing before or after this time if necessary.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "notAfter": { + SchemaProps: spec.SchemaProps{ + Description: "notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestCondition"}, + metav1.Condition{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -42790,21 +48867,21 @@ func schema_k8sio_api_coordination_v1_Lease(ref common.ReferenceCallback) common 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "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/v1.LeaseSpec"), + Ref: ref(coordinationv1.LeaseSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/coordination/v1.LeaseSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + coordinationv1.LeaseSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -42833,7 +48910,7 @@ func schema_k8sio_api_coordination_v1_LeaseList(ref common.ReferenceCallback) co 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -42844,7 +48921,7 @@ 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(coordinationv1.Lease{}.OpenAPIModelName()), }, }, }, @@ -42855,7 +48932,7 @@ 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"}, + coordinationv1.Lease{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -42883,13 +48960,13 @@ func schema_k8sio_api_coordination_v1_LeaseSpec(ref common.ReferenceCallback) co "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"), + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), }, }, "leaseTransitions": { @@ -42917,7 +48994,7 @@ func schema_k8sio_api_coordination_v1_LeaseSpec(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, + metav1.MicroTime{}.OpenAPIModelName()}, } } @@ -42946,21 +49023,173 @@ func schema_k8sio_api_coordination_v1beta1_Lease(ref common.ReferenceCallback) c 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "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(coordinationv1beta1.LeaseSpec{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + coordinationv1beta1.LeaseSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(coordinationv1beta1.LeaseCandidateSpec{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + coordinationv1beta1.LeaseCandidateSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "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(coordinationv1beta1.LeaseCandidate{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + coordinationv1beta1.LeaseCandidate{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_coordination_v1beta1_LeaseCandidateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "LeaseCandidateSpec is a specification of a Lease.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "leaseName": { + SchemaProps: spec.SchemaProps{ + Description: "LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "pingTime": { + SchemaProps: spec.SchemaProps{ + Description: "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.", + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), + }, + }, + "renewTime": { + SchemaProps: spec.SchemaProps{ + Description: "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.", + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), + }, + }, + "binaryVersion": { + SchemaProps: spec.SchemaProps{ + Description: "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "emulationVersion": { + SchemaProps: spec.SchemaProps{ + Description: "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + Type: []string{"string"}, + Format: "", + }, + }, + "strategy": { + SchemaProps: spec.SchemaProps{ + Description: "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"leaseName", "binaryVersion", "strategy"}, }, }, Dependencies: []string{ - "k8s.io/api/coordination/v1beta1.LeaseSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.MicroTime{}.OpenAPIModelName()}, } } @@ -42989,7 +49218,7 @@ func schema_k8sio_api_coordination_v1beta1_LeaseList(ref common.ReferenceCallbac 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -43000,7 +49229,7 @@ func schema_k8sio_api_coordination_v1beta1_LeaseList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/coordination/v1beta1.Lease"), + Ref: ref(coordinationv1beta1.Lease{}.OpenAPIModelName()), }, }, }, @@ -43011,7 +49240,7 @@ func schema_k8sio_api_coordination_v1beta1_LeaseList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/coordination/v1beta1.Lease", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + coordinationv1beta1.Lease{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -43039,13 +49268,13 @@ func schema_k8sio_api_coordination_v1beta1_LeaseSpec(ref common.ReferenceCallbac "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"), + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), }, }, "leaseTransitions": { @@ -43073,7 +49302,7 @@ func schema_k8sio_api_coordination_v1beta1_LeaseSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, + metav1.MicroTime{}.OpenAPIModelName()}, } } @@ -43130,26 +49359,26 @@ func schema_k8sio_api_core_v1_Affinity(ref common.ReferenceCallback) common.Open "nodeAffinity": { SchemaProps: spec.SchemaProps{ Description: "Describes node affinity scheduling rules for the pod.", - Ref: ref("k8s.io/api/core/v1.NodeAffinity"), + Ref: ref(corev1.NodeAffinity{}.OpenAPIModelName()), }, }, "podAffinity": { SchemaProps: spec.SchemaProps{ Description: "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", - Ref: ref("k8s.io/api/core/v1.PodAffinity"), + Ref: ref(corev1.PodAffinity{}.OpenAPIModelName()), }, }, "podAntiAffinity": { SchemaProps: spec.SchemaProps{ Description: "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", - Ref: ref("k8s.io/api/core/v1.PodAntiAffinity"), + Ref: ref(corev1.PodAntiAffinity{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.NodeAffinity", "k8s.io/api/core/v1.PodAffinity", "k8s.io/api/core/v1.PodAntiAffinity"}, + corev1.NodeAffinity{}.OpenAPIModelName(), corev1.PodAffinity{}.OpenAPIModelName(), corev1.PodAntiAffinity{}.OpenAPIModelName()}, } } @@ -43245,7 +49474,7 @@ func schema_k8sio_api_core_v1_AvoidPods(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PreferAvoidPodsEntry"), + Ref: ref(corev1.PreferAvoidPodsEntry{}.OpenAPIModelName()), }, }, }, @@ -43255,7 +49484,7 @@ func schema_k8sio_api_core_v1_AvoidPods(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PreferAvoidPodsEntry"}, + corev1.PreferAvoidPodsEntry{}.OpenAPIModelName()}, } } @@ -43285,7 +49514,7 @@ func schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref common.ReferenceCallback "cachingMode": { SchemaProps: spec.SchemaProps{ Description: "cachingMode is the Host Caching mode: None, Read Only, Read Write.\n\nPossible enum values:\n - `\"None\"`\n - `\"ReadOnly\"`\n - `\"ReadWrite\"`", - Default: v1.AzureDataDiskCachingReadWrite, + Default: corev1.AzureDataDiskCachingReadWrite, Type: []string{"string"}, Format: "", Enum: []interface{}{"None", "ReadOnly", "ReadWrite"}, @@ -43310,7 +49539,7 @@ func schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref common.ReferenceCallback "kind": { SchemaProps: spec.SchemaProps{ Description: "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared\n\nPossible enum values:\n - `\"Dedicated\"`\n - `\"Managed\"`\n - `\"Shared\"`", - Default: v1.AzureSharedBlobDisk, + Default: corev1.AzureSharedBlobDisk, Type: []string{"string"}, Format: "", Enum: []interface{}{"Dedicated", "Managed", "Shared"}, @@ -43408,7 +49637,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": { @@ -43429,14 +49658,14 @@ func schema_k8sio_api_core_v1_Binding(ref common.ReferenceCallback) common.OpenA 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "target": { SchemaProps: spec.SchemaProps{ Description: "The target object that you want to bind to the standard object.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ObjectReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, }, @@ -43444,7 +49673,7 @@ func schema_k8sio_api_core_v1_Binding(ref common.ReferenceCallback) common.OpenA }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.ObjectReference{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -43452,7 +49681,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": { @@ -43504,31 +49733,31 @@ func schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref common.ReferenceCall "controllerPublishSecretRef": { SchemaProps: spec.SchemaProps{ Description: "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", - Ref: ref("k8s.io/api/core/v1.SecretReference"), + Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), }, }, "nodeStageSecretRef": { SchemaProps: spec.SchemaProps{ Description: "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", - Ref: ref("k8s.io/api/core/v1.SecretReference"), + Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), }, }, "nodePublishSecretRef": { SchemaProps: spec.SchemaProps{ Description: "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", - Ref: ref("k8s.io/api/core/v1.SecretReference"), + Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), }, }, "controllerExpandSecretRef": { SchemaProps: spec.SchemaProps{ Description: "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", - Ref: ref("k8s.io/api/core/v1.SecretReference"), + Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), }, }, "nodeExpandSecretRef": { SchemaProps: spec.SchemaProps{ Description: "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed.", - Ref: ref("k8s.io/api/core/v1.SecretReference"), + Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), }, }, }, @@ -43536,7 +49765,7 @@ func schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/core/v1.SecretReference"}, + corev1.SecretReference{}.OpenAPIModelName()}, } } @@ -43588,7 +49817,7 @@ func schema_k8sio_api_core_v1_CSIVolumeSource(ref common.ReferenceCallback) comm "nodePublishSecretRef": { SchemaProps: spec.SchemaProps{ Description: "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.", - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), }, }, }, @@ -43596,7 +49825,7 @@ func schema_k8sio_api_core_v1_CSIVolumeSource(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference"}, + corev1.LocalObjectReference{}.OpenAPIModelName()}, } } @@ -43704,7 +49933,7 @@ func schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref common.ReferenceC "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - Ref: ref("k8s.io/api/core/v1.SecretReference"), + Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), }, }, "readOnly": { @@ -43719,7 +49948,7 @@ func schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/core/v1.SecretReference"}, + corev1.SecretReference{}.OpenAPIModelName()}, } } @@ -43774,7 +50003,7 @@ func schema_k8sio_api_core_v1_CephFSVolumeSource(ref common.ReferenceCallback) c "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), }, }, "readOnly": { @@ -43789,7 +50018,7 @@ func schema_k8sio_api_core_v1_CephFSVolumeSource(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference"}, + corev1.LocalObjectReference{}.OpenAPIModelName()}, } } @@ -43825,7 +50054,7 @@ func schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref common.ReferenceC "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.", - Ref: ref("k8s.io/api/core/v1.SecretReference"), + Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), }, }, }, @@ -43833,7 +50062,7 @@ func schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/core/v1.SecretReference"}, + corev1.SecretReference{}.OpenAPIModelName()}, } } @@ -43869,7 +50098,7 @@ func schema_k8sio_api_core_v1_CinderVolumeSource(ref common.ReferenceCallback) c "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack.", - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), }, }, }, @@ -43877,7 +50106,7 @@ func schema_k8sio_api_core_v1_CinderVolumeSource(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference"}, + corev1.LocalObjectReference{}.OpenAPIModelName()}, } } @@ -43925,7 +50154,7 @@ func schema_k8sio_api_core_v1_ClusterTrustBundleProjection(ref common.ReferenceC "labelSelector": { SchemaProps: spec.SchemaProps{ Description: "Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as \"match nothing\". If set but empty, interpreted as \"match everything\".", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "optional": { @@ -43948,7 +50177,7 @@ func schema_k8sio_api_core_v1_ClusterTrustBundleProjection(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -44021,7 +50250,7 @@ func schema_k8sio_api_core_v1_ComponentStatus(ref common.ReferenceCallback) comm 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "conditions": { @@ -44042,7 +50271,7 @@ func schema_k8sio_api_core_v1_ComponentStatus(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ComponentCondition"), + Ref: ref(corev1.ComponentCondition{}.OpenAPIModelName()), }, }, }, @@ -44052,7 +50281,7 @@ func schema_k8sio_api_core_v1_ComponentStatus(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ComponentCondition", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.ComponentCondition{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -44081,7 +50310,7 @@ func schema_k8sio_api_core_v1_ComponentStatusList(ref common.ReferenceCallback) 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -44092,7 +50321,7 @@ func schema_k8sio_api_core_v1_ComponentStatusList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ComponentStatus"), + Ref: ref(corev1.ComponentStatus{}.OpenAPIModelName()), }, }, }, @@ -44103,7 +50332,7 @@ func schema_k8sio_api_core_v1_ComponentStatusList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ComponentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.ComponentStatus{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -44132,7 +50361,7 @@ func schema_k8sio_api_core_v1_ConfigMap(ref common.ReferenceCallback) common.Ope 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "immutable": { @@ -44177,7 +50406,7 @@ func schema_k8sio_api_core_v1_ConfigMap(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -44276,7 +50505,7 @@ func schema_k8sio_api_core_v1_ConfigMapList(ref common.ReferenceCallback) common 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.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -44287,7 +50516,7 @@ func schema_k8sio_api_core_v1_ConfigMapList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ConfigMap"), + Ref: ref(corev1.ConfigMap{}.OpenAPIModelName()), }, }, }, @@ -44298,7 +50527,7 @@ func schema_k8sio_api_core_v1_ConfigMapList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ConfigMap", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.ConfigMap{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -44382,7 +50611,7 @@ func schema_k8sio_api_core_v1_ConfigMapProjection(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.KeyToPath"), + Ref: ref(corev1.KeyToPath{}.OpenAPIModelName()), }, }, }, @@ -44399,7 +50628,7 @@ func schema_k8sio_api_core_v1_ConfigMapProjection(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/core/v1.KeyToPath"}, + corev1.KeyToPath{}.OpenAPIModelName()}, } } @@ -44431,7 +50660,7 @@ func schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.KeyToPath"), + Ref: ref(corev1.KeyToPath{}.OpenAPIModelName()), }, }, }, @@ -44455,7 +50684,7 @@ func schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/core/v1.KeyToPath"}, + corev1.KeyToPath{}.OpenAPIModelName()}, } } @@ -44547,7 +50776,7 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerPort"), + Ref: ref(corev1.ContainerPort{}.OpenAPIModelName()), }, }, }, @@ -44560,13 +50789,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvFromSource"), + Ref: ref(corev1.EnvFromSource{}.OpenAPIModelName()), }, }, }, @@ -44590,7 +50819,7 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvVar"), + Ref: ref(corev1.EnvVar{}.OpenAPIModelName()), }, }, }, @@ -44600,7 +50829,7 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope SchemaProps: spec.SchemaProps{ Description: "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), }, }, "resizePolicy": { @@ -44610,13 +50839,13 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope }, }, SchemaProps: spec.SchemaProps{ - Description: "Resources resize policy for the container.", + Description: "Resources resize policy for the container. This field cannot be set 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.ContainerResizePolicy"), + Ref: ref(corev1.ContainerResizePolicy{}.OpenAPIModelName()), }, }, }, @@ -44624,11 +50853,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(corev1.ContainerRestartRule{}.OpenAPIModelName()), + }, + }, + }, + }, + }, "volumeMounts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -44647,7 +50895,7 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeMount"), + Ref: ref(corev1.VolumeMount{}.OpenAPIModelName()), }, }, }, @@ -44671,7 +50919,7 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeDevice"), + Ref: ref(corev1.VolumeDevice{}.OpenAPIModelName()), }, }, }, @@ -44680,25 +50928,25 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope "livenessProbe": { SchemaProps: spec.SchemaProps{ Description: "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - Ref: ref("k8s.io/api/core/v1.Probe"), + Ref: ref(corev1.Probe{}.OpenAPIModelName()), }, }, "readinessProbe": { SchemaProps: spec.SchemaProps{ Description: "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - Ref: ref("k8s.io/api/core/v1.Probe"), + Ref: ref(corev1.Probe{}.OpenAPIModelName()), }, }, "startupProbe": { SchemaProps: spec.SchemaProps{ Description: "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - Ref: ref("k8s.io/api/core/v1.Probe"), + Ref: ref(corev1.Probe{}.OpenAPIModelName()), }, }, "lifecycle": { SchemaProps: spec.SchemaProps{ Description: "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", - Ref: ref("k8s.io/api/core/v1.Lifecycle"), + Ref: ref(corev1.Lifecycle{}.OpenAPIModelName()), }, }, "terminationMessagePath": { @@ -44727,7 +50975,7 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope "securityContext": { SchemaProps: spec.SchemaProps{ Description: "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", - Ref: ref("k8s.io/api/core/v1.SecurityContext"), + Ref: ref(corev1.SecurityContext{}.OpenAPIModelName()), }, }, "stdin": { @@ -44756,7 +51004,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"}, + corev1.ContainerPort{}.OpenAPIModelName(), corev1.ContainerResizePolicy{}.OpenAPIModelName(), corev1.ContainerRestartRule{}.OpenAPIModelName(), corev1.EnvFromSource{}.OpenAPIModelName(), corev1.EnvVar{}.OpenAPIModelName(), corev1.Lifecycle{}.OpenAPIModelName(), corev1.Probe{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), corev1.SecurityContext{}.OpenAPIModelName(), corev1.VolumeDevice{}.OpenAPIModelName(), corev1.VolumeMount{}.OpenAPIModelName()}, + } +} + +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 +51168,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(corev1.ContainerRestartRuleOnExitCodes{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"action"}, + }, + }, + Dependencies: []string{ + corev1.ContainerRestartRuleOnExitCodes{}.OpenAPIModelName()}, + } +} + +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{ @@ -44892,26 +51248,26 @@ func schema_k8sio_api_core_v1_ContainerState(ref common.ReferenceCallback) commo "waiting": { SchemaProps: spec.SchemaProps{ Description: "Details about a waiting container", - Ref: ref("k8s.io/api/core/v1.ContainerStateWaiting"), + Ref: ref(corev1.ContainerStateWaiting{}.OpenAPIModelName()), }, }, "running": { SchemaProps: spec.SchemaProps{ Description: "Details about a running container", - Ref: ref("k8s.io/api/core/v1.ContainerStateRunning"), + Ref: ref(corev1.ContainerStateRunning{}.OpenAPIModelName()), }, }, "terminated": { SchemaProps: spec.SchemaProps{ Description: "Details about a terminated container", - Ref: ref("k8s.io/api/core/v1.ContainerStateTerminated"), + Ref: ref(corev1.ContainerStateTerminated{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ContainerStateRunning", "k8s.io/api/core/v1.ContainerStateTerminated", "k8s.io/api/core/v1.ContainerStateWaiting"}, + corev1.ContainerStateRunning{}.OpenAPIModelName(), corev1.ContainerStateTerminated{}.OpenAPIModelName(), corev1.ContainerStateWaiting{}.OpenAPIModelName()}, } } @@ -44925,14 +51281,14 @@ func schema_k8sio_api_core_v1_ContainerStateRunning(ref common.ReferenceCallback "startedAt": { SchemaProps: spec.SchemaProps{ Description: "Time at which the container was last (re-)started", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -44975,13 +51331,13 @@ func schema_k8sio_api_core_v1_ContainerStateTerminated(ref common.ReferenceCallb "startedAt": { SchemaProps: spec.SchemaProps{ Description: "Time at which previous execution of the container started", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "finishedAt": { SchemaProps: spec.SchemaProps{ Description: "Time at which the container last terminated", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "containerID": { @@ -44996,7 +51352,7 @@ func schema_k8sio_api_core_v1_ContainerStateTerminated(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -45046,14 +51402,14 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm SchemaProps: spec.SchemaProps{ Description: "State holds details about the container's current condition.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerState"), + Ref: ref(corev1.ContainerState{}.OpenAPIModelName()), }, }, "lastState": { SchemaProps: spec.SchemaProps{ Description: "LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerState"), + Ref: ref(corev1.ContainerState{}.OpenAPIModelName()), }, }, "ready": { @@ -45110,7 +51466,7 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -45119,7 +51475,7 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm "resources": { SchemaProps: spec.SchemaProps{ Description: "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized.", - Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), }, }, "volumeMounts": { @@ -45140,7 +51496,7 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeMountStatus"), + Ref: ref(corev1.VolumeMountStatus{}.OpenAPIModelName()), }, }, }, @@ -45149,7 +51505,7 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm "user": { SchemaProps: spec.SchemaProps{ Description: "User represents user identity information initially attached to the first process of the container", - Ref: ref("k8s.io/api/core/v1.ContainerUser"), + Ref: ref(corev1.ContainerUser{}.OpenAPIModelName()), }, }, "allocatedResourcesStatus": { @@ -45170,18 +51526,26 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceStatus"), + Ref: ref(corev1.ResourceStatus{}.OpenAPIModelName()), }, }, }, }, }, + "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"}, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ContainerState", "k8s.io/api/core/v1.ContainerUser", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.ResourceStatus", "k8s.io/api/core/v1.VolumeMountStatus", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.ContainerState{}.OpenAPIModelName(), corev1.ContainerUser{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), corev1.ResourceStatus{}.OpenAPIModelName(), corev1.VolumeMountStatus{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } @@ -45195,14 +51559,14 @@ func schema_k8sio_api_core_v1_ContainerUser(ref common.ReferenceCallback) common "linux": { SchemaProps: spec.SchemaProps{ Description: "Linux holds user identity information initially attached to the first process of the containers in Linux. Note that the actual running identity can be changed if the process has enough privilege to do so.", - Ref: ref("k8s.io/api/core/v1.LinuxContainerUser"), + Ref: ref(corev1.LinuxContainerUser{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LinuxContainerUser"}, + corev1.LinuxContainerUser{}.OpenAPIModelName()}, } } @@ -45248,7 +51612,7 @@ func schema_k8sio_api_core_v1_DownwardAPIProjection(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeFile"), + Ref: ref(corev1.DownwardAPIVolumeFile{}.OpenAPIModelName()), }, }, }, @@ -45258,7 +51622,7 @@ func schema_k8sio_api_core_v1_DownwardAPIProjection(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/core/v1.DownwardAPIVolumeFile"}, + corev1.DownwardAPIVolumeFile{}.OpenAPIModelName()}, } } @@ -45280,13 +51644,13 @@ func schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref common.ReferenceCallback "fieldRef": { SchemaProps: spec.SchemaProps{ Description: "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.", - Ref: ref("k8s.io/api/core/v1.ObjectFieldSelector"), + Ref: ref(corev1.ObjectFieldSelector{}.OpenAPIModelName()), }, }, "resourceFieldRef": { SchemaProps: spec.SchemaProps{ Description: "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - Ref: ref("k8s.io/api/core/v1.ResourceFieldSelector"), + Ref: ref(corev1.ResourceFieldSelector{}.OpenAPIModelName()), }, }, "mode": { @@ -45301,7 +51665,7 @@ func schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector"}, + corev1.ObjectFieldSelector{}.OpenAPIModelName(), corev1.ResourceFieldSelector{}.OpenAPIModelName()}, } } @@ -45325,7 +51689,7 @@ func schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeFile"), + Ref: ref(corev1.DownwardAPIVolumeFile{}.OpenAPIModelName()), }, }, }, @@ -45342,7 +51706,7 @@ func schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/api/core/v1.DownwardAPIVolumeFile"}, + corev1.DownwardAPIVolumeFile{}.OpenAPIModelName()}, } } @@ -45363,14 +51727,14 @@ func schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref common.ReferenceCallback) "sizeLimit": { SchemaProps: spec.SchemaProps{ Description: "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -45378,7 +51742,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": { @@ -45406,7 +51770,7 @@ func schema_k8sio_api_core_v1_EndpointAddress(ref common.ReferenceCallback) comm "targetRef": { SchemaProps: spec.SchemaProps{ Description: "Reference to object providing the endpoint.", - Ref: ref("k8s.io/api/core/v1.ObjectReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, }, @@ -45419,7 +51783,7 @@ func schema_k8sio_api_core_v1_EndpointAddress(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ObjectReference"}, + corev1.ObjectReference{}.OpenAPIModelName()}, } } @@ -45427,7 +51791,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 +51840,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": { @@ -45492,7 +51856,7 @@ func schema_k8sio_api_core_v1_EndpointSubset(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EndpointAddress"), + Ref: ref(corev1.EndpointAddress{}.OpenAPIModelName()), }, }, }, @@ -45511,7 +51875,7 @@ func schema_k8sio_api_core_v1_EndpointSubset(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EndpointAddress"), + Ref: ref(corev1.EndpointAddress{}.OpenAPIModelName()), }, }, }, @@ -45530,7 +51894,7 @@ func schema_k8sio_api_core_v1_EndpointSubset(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EndpointPort"), + Ref: ref(corev1.EndpointPort{}.OpenAPIModelName()), }, }, }, @@ -45540,7 +51904,7 @@ func schema_k8sio_api_core_v1_EndpointSubset(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/core/v1.EndpointAddress", "k8s.io/api/core/v1.EndpointPort"}, + corev1.EndpointAddress{}.OpenAPIModelName(), corev1.EndpointPort{}.OpenAPIModelName()}, } } @@ -45548,7 +51912,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": { @@ -45569,7 +51933,7 @@ func schema_k8sio_api_core_v1_Endpoints(ref common.ReferenceCallback) common.Ope 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "subsets": { @@ -45585,7 +51949,7 @@ func schema_k8sio_api_core_v1_Endpoints(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EndpointSubset"), + Ref: ref(corev1.EndpointSubset{}.OpenAPIModelName()), }, }, }, @@ -45595,7 +51959,7 @@ func schema_k8sio_api_core_v1_Endpoints(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "k8s.io/api/core/v1.EndpointSubset", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.EndpointSubset{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -45603,7 +51967,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": { @@ -45624,7 +51988,7 @@ func schema_k8sio_api_core_v1_EndpointsList(ref common.ReferenceCallback) common 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -45635,7 +51999,7 @@ func schema_k8sio_api_core_v1_EndpointsList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Endpoints"), + Ref: ref(corev1.Endpoints{}.OpenAPIModelName()), }, }, }, @@ -45646,7 +52010,7 @@ func schema_k8sio_api_core_v1_EndpointsList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Endpoints", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.Endpoints{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -45654,12 +52018,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: "", }, @@ -45667,20 +52031,20 @@ func schema_k8sio_api_core_v1_EnvFromSource(ref common.ReferenceCallback) common "configMapRef": { SchemaProps: spec.SchemaProps{ Description: "The ConfigMap to select from", - Ref: ref("k8s.io/api/core/v1.ConfigMapEnvSource"), + Ref: ref(corev1.ConfigMapEnvSource{}.OpenAPIModelName()), }, }, "secretRef": { SchemaProps: spec.SchemaProps{ Description: "The Secret to select from", - Ref: ref("k8s.io/api/core/v1.SecretEnvSource"), + Ref: ref(corev1.SecretEnvSource{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ConfigMapEnvSource", "k8s.io/api/core/v1.SecretEnvSource"}, + corev1.ConfigMapEnvSource{}.OpenAPIModelName(), corev1.SecretEnvSource{}.OpenAPIModelName()}, } } @@ -45693,7 +52057,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: "", @@ -45709,7 +52073,7 @@ func schema_k8sio_api_core_v1_EnvVar(ref common.ReferenceCallback) common.OpenAP "valueFrom": { SchemaProps: spec.SchemaProps{ Description: "Source for the environment variable's value. Cannot be used if value is not empty.", - Ref: ref("k8s.io/api/core/v1.EnvVarSource"), + Ref: ref(corev1.EnvVarSource{}.OpenAPIModelName()), }, }, }, @@ -45717,7 +52081,7 @@ func schema_k8sio_api_core_v1_EnvVar(ref common.ReferenceCallback) common.OpenAP }, }, Dependencies: []string{ - "k8s.io/api/core/v1.EnvVarSource"}, + corev1.EnvVarSource{}.OpenAPIModelName()}, } } @@ -45731,32 +52095,38 @@ func schema_k8sio_api_core_v1_EnvVarSource(ref common.ReferenceCallback) common. "fieldRef": { SchemaProps: spec.SchemaProps{ Description: "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.", - Ref: ref("k8s.io/api/core/v1.ObjectFieldSelector"), + Ref: ref(corev1.ObjectFieldSelector{}.OpenAPIModelName()), }, }, "resourceFieldRef": { SchemaProps: spec.SchemaProps{ Description: "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", - Ref: ref("k8s.io/api/core/v1.ResourceFieldSelector"), + Ref: ref(corev1.ResourceFieldSelector{}.OpenAPIModelName()), }, }, "configMapKeyRef": { SchemaProps: spec.SchemaProps{ Description: "Selects a key of a ConfigMap.", - Ref: ref("k8s.io/api/core/v1.ConfigMapKeySelector"), + Ref: ref(corev1.ConfigMapKeySelector{}.OpenAPIModelName()), }, }, "secretKeyRef": { SchemaProps: spec.SchemaProps{ Description: "Selects a key of a secret in the pod's namespace", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + Ref: ref(corev1.SecretKeySelector{}.OpenAPIModelName()), + }, + }, + "fileKeyRef": { + SchemaProps: spec.SchemaProps{ + Description: "FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled.", + Ref: ref(corev1.FileKeySelector{}.OpenAPIModelName()), }, }, }, }, }, 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"}, + corev1.ConfigMapKeySelector{}.OpenAPIModelName(), corev1.FileKeySelector{}.OpenAPIModelName(), corev1.ObjectFieldSelector{}.OpenAPIModelName(), corev1.ResourceFieldSelector{}.OpenAPIModelName(), corev1.SecretKeySelector{}.OpenAPIModelName()}, } } @@ -45848,7 +52218,7 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerPort"), + Ref: ref(corev1.ContainerPort{}.OpenAPIModelName()), }, }, }, @@ -45861,13 +52231,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvFromSource"), + Ref: ref(corev1.EnvFromSource{}.OpenAPIModelName()), }, }, }, @@ -45891,7 +52261,7 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvVar"), + Ref: ref(corev1.EnvVar{}.OpenAPIModelName()), }, }, }, @@ -45901,7 +52271,7 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c SchemaProps: spec.SchemaProps{ Description: "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), }, }, "resizePolicy": { @@ -45917,7 +52287,7 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"), + Ref: ref(corev1.ContainerResizePolicy{}.OpenAPIModelName()), }, }, }, @@ -45925,11 +52295,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(corev1.ContainerRestartRule{}.OpenAPIModelName()), + }, + }, + }, + }, + }, "volumeMounts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -45948,7 +52337,7 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeMount"), + Ref: ref(corev1.VolumeMount{}.OpenAPIModelName()), }, }, }, @@ -45972,7 +52361,7 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeDevice"), + Ref: ref(corev1.VolumeDevice{}.OpenAPIModelName()), }, }, }, @@ -45981,25 +52370,25 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c "livenessProbe": { SchemaProps: spec.SchemaProps{ Description: "Probes are not allowed for ephemeral containers.", - Ref: ref("k8s.io/api/core/v1.Probe"), + Ref: ref(corev1.Probe{}.OpenAPIModelName()), }, }, "readinessProbe": { SchemaProps: spec.SchemaProps{ Description: "Probes are not allowed for ephemeral containers.", - Ref: ref("k8s.io/api/core/v1.Probe"), + Ref: ref(corev1.Probe{}.OpenAPIModelName()), }, }, "startupProbe": { SchemaProps: spec.SchemaProps{ Description: "Probes are not allowed for ephemeral containers.", - Ref: ref("k8s.io/api/core/v1.Probe"), + Ref: ref(corev1.Probe{}.OpenAPIModelName()), }, }, "lifecycle": { SchemaProps: spec.SchemaProps{ Description: "Lifecycle is not allowed for ephemeral containers.", - Ref: ref("k8s.io/api/core/v1.Lifecycle"), + Ref: ref(corev1.Lifecycle{}.OpenAPIModelName()), }, }, "terminationMessagePath": { @@ -46028,7 +52417,7 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c "securityContext": { SchemaProps: spec.SchemaProps{ Description: "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.", - Ref: ref("k8s.io/api/core/v1.SecurityContext"), + Ref: ref(corev1.SecurityContext{}.OpenAPIModelName()), }, }, "stdin": { @@ -46064,7 +52453,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"}, + corev1.ContainerPort{}.OpenAPIModelName(), corev1.ContainerResizePolicy{}.OpenAPIModelName(), corev1.ContainerRestartRule{}.OpenAPIModelName(), corev1.EnvFromSource{}.OpenAPIModelName(), corev1.EnvVar{}.OpenAPIModelName(), corev1.Lifecycle{}.OpenAPIModelName(), corev1.Probe{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), corev1.SecurityContext{}.OpenAPIModelName(), corev1.VolumeDevice{}.OpenAPIModelName(), corev1.VolumeMount{}.OpenAPIModelName()}, } } @@ -46156,7 +52545,7 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerPort"), + Ref: ref(corev1.ContainerPort{}.OpenAPIModelName()), }, }, }, @@ -46169,13 +52558,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvFromSource"), + Ref: ref(corev1.EnvFromSource{}.OpenAPIModelName()), }, }, }, @@ -46199,7 +52588,7 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvVar"), + Ref: ref(corev1.EnvVar{}.OpenAPIModelName()), }, }, }, @@ -46209,7 +52598,7 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb SchemaProps: spec.SchemaProps{ Description: "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), }, }, "resizePolicy": { @@ -46225,7 +52614,7 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"), + Ref: ref(corev1.ContainerResizePolicy{}.OpenAPIModelName()), }, }, }, @@ -46233,11 +52622,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(corev1.ContainerRestartRule{}.OpenAPIModelName()), + }, + }, + }, + }, + }, "volumeMounts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -46256,7 +52664,7 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeMount"), + Ref: ref(corev1.VolumeMount{}.OpenAPIModelName()), }, }, }, @@ -46280,7 +52688,7 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeDevice"), + Ref: ref(corev1.VolumeDevice{}.OpenAPIModelName()), }, }, }, @@ -46289,25 +52697,25 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb "livenessProbe": { SchemaProps: spec.SchemaProps{ Description: "Probes are not allowed for ephemeral containers.", - Ref: ref("k8s.io/api/core/v1.Probe"), + Ref: ref(corev1.Probe{}.OpenAPIModelName()), }, }, "readinessProbe": { SchemaProps: spec.SchemaProps{ Description: "Probes are not allowed for ephemeral containers.", - Ref: ref("k8s.io/api/core/v1.Probe"), + Ref: ref(corev1.Probe{}.OpenAPIModelName()), }, }, "startupProbe": { SchemaProps: spec.SchemaProps{ Description: "Probes are not allowed for ephemeral containers.", - Ref: ref("k8s.io/api/core/v1.Probe"), + Ref: ref(corev1.Probe{}.OpenAPIModelName()), }, }, "lifecycle": { SchemaProps: spec.SchemaProps{ Description: "Lifecycle is not allowed for ephemeral containers.", - Ref: ref("k8s.io/api/core/v1.Lifecycle"), + Ref: ref(corev1.Lifecycle{}.OpenAPIModelName()), }, }, "terminationMessagePath": { @@ -46336,7 +52744,7 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb "securityContext": { SchemaProps: spec.SchemaProps{ Description: "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.", - Ref: ref("k8s.io/api/core/v1.SecurityContext"), + Ref: ref(corev1.SecurityContext{}.OpenAPIModelName()), }, }, "stdin": { @@ -46365,7 +52773,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"}, + corev1.ContainerPort{}.OpenAPIModelName(), corev1.ContainerResizePolicy{}.OpenAPIModelName(), corev1.ContainerRestartRule{}.OpenAPIModelName(), corev1.EnvFromSource{}.OpenAPIModelName(), corev1.EnvVar{}.OpenAPIModelName(), corev1.Lifecycle{}.OpenAPIModelName(), corev1.Probe{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), corev1.SecurityContext{}.OpenAPIModelName(), corev1.VolumeDevice{}.OpenAPIModelName(), corev1.VolumeMount{}.OpenAPIModelName()}, } } @@ -46379,14 +52787,14 @@ func schema_k8sio_api_core_v1_EphemeralVolumeSource(ref common.ReferenceCallback "volumeClaimTemplate": { SchemaProps: spec.SchemaProps{ Description: "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil.", - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimTemplate"), + Ref: ref(corev1.PersistentVolumeClaimTemplate{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PersistentVolumeClaimTemplate"}, + corev1.PersistentVolumeClaimTemplate{}.OpenAPIModelName()}, } } @@ -46415,14 +52823,14 @@ func schema_k8sio_api_core_v1_Event(ref common.ReferenceCallback) common.OpenAPI 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "involvedObject": { SchemaProps: spec.SchemaProps{ Description: "The object that this event is about.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ObjectReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, "reason": { @@ -46443,19 +52851,19 @@ func schema_k8sio_api_core_v1_Event(ref common.ReferenceCallback) common.OpenAPI SchemaProps: spec.SchemaProps{ Description: "The component reporting this event. Should be a short machine understandable string.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EventSource"), + Ref: ref(corev1.EventSource{}.OpenAPIModelName()), }, }, "firstTimestamp": { SchemaProps: spec.SchemaProps{ Description: "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "lastTimestamp": { SchemaProps: spec.SchemaProps{ Description: "The time at which the most recent occurrence of this event was recorded.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "count": { @@ -46475,13 +52883,13 @@ func schema_k8sio_api_core_v1_Event(ref common.ReferenceCallback) common.OpenAPI "eventTime": { SchemaProps: spec.SchemaProps{ Description: "Time when this Event was first observed.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), }, }, "series": { SchemaProps: spec.SchemaProps{ Description: "Data about the Event series this event represents or nil if it's a singleton Event.", - Ref: ref("k8s.io/api/core/v1.EventSeries"), + Ref: ref(corev1.EventSeries{}.OpenAPIModelName()), }, }, "action": { @@ -46494,7 +52902,7 @@ func schema_k8sio_api_core_v1_Event(ref common.ReferenceCallback) common.OpenAPI "related": { SchemaProps: spec.SchemaProps{ Description: "Optional secondary object for more complex actions.", - Ref: ref("k8s.io/api/core/v1.ObjectReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, "reportingComponent": { @@ -46518,7 +52926,7 @@ func schema_k8sio_api_core_v1_Event(ref common.ReferenceCallback) common.OpenAPI }, }, Dependencies: []string{ - "k8s.io/api/core/v1.EventSeries", "k8s.io/api/core/v1.EventSource", "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + corev1.EventSeries{}.OpenAPIModelName(), corev1.EventSource{}.OpenAPIModelName(), corev1.ObjectReference{}.OpenAPIModelName(), metav1.MicroTime{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -46547,7 +52955,7 @@ func schema_k8sio_api_core_v1_EventList(ref common.ReferenceCallback) common.Ope 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -46558,7 +52966,7 @@ func schema_k8sio_api_core_v1_EventList(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Event"), + Ref: ref(corev1.Event{}.OpenAPIModelName()), }, }, }, @@ -46569,7 +52977,7 @@ func schema_k8sio_api_core_v1_EventList(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Event", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.Event{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -46590,14 +52998,14 @@ func schema_k8sio_api_core_v1_EventSeries(ref common.ReferenceCallback) common.O "lastObservedTime": { SchemaProps: spec.SchemaProps{ Description: "Time of the last occurrence observed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, + metav1.MicroTime{}.OpenAPIModelName()}, } } @@ -46735,6 +53143,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{ @@ -46760,7 +53219,7 @@ func schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref common.ReferenceCal "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.", - Ref: ref("k8s.io/api/core/v1.SecretReference"), + Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), }, }, "readOnly": { @@ -46791,7 +53250,7 @@ func schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref common.ReferenceCal }, }, Dependencies: []string{ - "k8s.io/api/core/v1.SecretReference"}, + corev1.SecretReference{}.OpenAPIModelName()}, } } @@ -46820,7 +53279,7 @@ func schema_k8sio_api_core_v1_FlexVolumeSource(ref common.ReferenceCallback) com "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.", - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), }, }, "readOnly": { @@ -46851,7 +53310,7 @@ func schema_k8sio_api_core_v1_FlexVolumeSource(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference"}, + corev1.LocalObjectReference{}.OpenAPIModelName()}, } } @@ -46929,7 +53388,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 +53503,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: "", @@ -47088,7 +53548,7 @@ func schema_k8sio_api_core_v1_HTTPGetAction(ref common.ReferenceCallback) common "port": { SchemaProps: spec.SchemaProps{ Description: "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "host": { @@ -47119,7 +53579,7 @@ func schema_k8sio_api_core_v1_HTTPGetAction(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.HTTPHeader"), + Ref: ref(corev1.HTTPHeader{}.OpenAPIModelName()), }, }, }, @@ -47130,7 +53590,7 @@ func schema_k8sio_api_core_v1_HTTPGetAction(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/api/core/v1.HTTPHeader", "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + corev1.HTTPHeader{}.OpenAPIModelName(), intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -47348,7 +53808,7 @@ func schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref common.ReferenceCa "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef is the CHAP Secret for iSCSI target and initiator authentication", - Ref: ref("k8s.io/api/core/v1.SecretReference"), + Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), }, }, "initiatorName": { @@ -47363,7 +53823,7 @@ func schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/api/core/v1.SecretReference"}, + corev1.SecretReference{}.OpenAPIModelName()}, } } @@ -47457,7 +53917,7 @@ func schema_k8sio_api_core_v1_ISCSIVolumeSource(ref common.ReferenceCallback) co "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef is the CHAP Secret for iSCSI target and initiator authentication", - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), }, }, "initiatorName": { @@ -47472,7 +53932,7 @@ func schema_k8sio_api_core_v1_ISCSIVolumeSource(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference"}, + corev1.LocalObjectReference{}.OpenAPIModelName()}, } } @@ -47551,20 +54011,28 @@ func schema_k8sio_api_core_v1_Lifecycle(ref common.ReferenceCallback) common.Ope "postStart": { SchemaProps: spec.SchemaProps{ Description: "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - Ref: ref("k8s.io/api/core/v1.LifecycleHandler"), + Ref: ref(corev1.LifecycleHandler{}.OpenAPIModelName()), }, }, "preStop": { SchemaProps: spec.SchemaProps{ Description: "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - Ref: ref("k8s.io/api/core/v1.LifecycleHandler"), + Ref: ref(corev1.LifecycleHandler{}.OpenAPIModelName()), + }, + }, + "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"}, }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LifecycleHandler"}, + corev1.LifecycleHandler{}.OpenAPIModelName()}, } } @@ -47577,33 +54045,33 @@ 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.", - Ref: ref("k8s.io/api/core/v1.ExecAction"), + Description: "Exec specifies a command to execute in the container.", + Ref: ref(corev1.ExecAction{}.OpenAPIModelName()), }, }, "httpGet": { SchemaProps: spec.SchemaProps{ - Description: "HTTPGet specifies the http request to perform.", - Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), + Description: "HTTPGet specifies an HTTP GET request to perform.", + Ref: ref(corev1.HTTPGetAction{}.OpenAPIModelName()), }, }, "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.", - Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), + 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(corev1.TCPSocketAction{}.OpenAPIModelName()), }, }, "sleep": { SchemaProps: spec.SchemaProps{ - Description: "Sleep represents the duration that the container should sleep before being terminated.", - Ref: ref("k8s.io/api/core/v1.SleepAction"), + Description: "Sleep represents a duration that the container should sleep.", + Ref: ref(corev1.SleepAction{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.SleepAction", "k8s.io/api/core/v1.TCPSocketAction"}, + corev1.ExecAction{}.OpenAPIModelName(), corev1.HTTPGetAction{}.OpenAPIModelName(), corev1.SleepAction{}.OpenAPIModelName(), corev1.TCPSocketAction{}.OpenAPIModelName()}, } } @@ -47632,21 +54100,21 @@ func schema_k8sio_api_core_v1_LimitRange(ref common.ReferenceCallback) common.Op 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec defines the limits enforced. 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/core/v1.LimitRangeSpec"), + Ref: ref(corev1.LimitRangeSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LimitRangeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.LimitRangeSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -47673,7 +54141,7 @@ func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) commo Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -47687,7 +54155,7 @@ func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) commo Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -47701,7 +54169,7 @@ func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) commo Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -47715,7 +54183,7 @@ func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) commo Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -47729,7 +54197,7 @@ func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) commo Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -47740,7 +54208,7 @@ func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -47769,7 +54237,7 @@ func schema_k8sio_api_core_v1_LimitRangeList(ref common.ReferenceCallback) commo 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -47780,7 +54248,7 @@ func schema_k8sio_api_core_v1_LimitRangeList(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.LimitRange"), + Ref: ref(corev1.LimitRange{}.OpenAPIModelName()), }, }, }, @@ -47791,7 +54259,7 @@ func schema_k8sio_api_core_v1_LimitRangeList(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LimitRange", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.LimitRange{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -47815,7 +54283,7 @@ func schema_k8sio_api_core_v1_LimitRangeSpec(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.LimitRangeItem"), + Ref: ref(corev1.LimitRangeItem{}.OpenAPIModelName()), }, }, }, @@ -47826,7 +54294,7 @@ func schema_k8sio_api_core_v1_LimitRangeSpec(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LimitRangeItem"}, + corev1.LimitRangeItem{}.OpenAPIModelName()}, } } @@ -47905,7 +54373,7 @@ func schema_k8sio_api_core_v1_List(ref common.ReferenceCallback) common.OpenAPID 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -47915,7 +54383,7 @@ func schema_k8sio_api_core_v1_List(ref common.ReferenceCallback) common.OpenAPID Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, @@ -47926,7 +54394,7 @@ func schema_k8sio_api_core_v1_List(ref common.ReferenceCallback) common.OpenAPID }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + metav1.ListMeta{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } @@ -47971,7 +54439,7 @@ func schema_k8sio_api_core_v1_LoadBalancerIngress(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PortStatus"), + Ref: ref(corev1.PortStatus{}.OpenAPIModelName()), }, }, }, @@ -47981,7 +54449,7 @@ func schema_k8sio_api_core_v1_LoadBalancerIngress(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PortStatus"}, + corev1.PortStatus{}.OpenAPIModelName()}, } } @@ -48005,7 +54473,7 @@ func schema_k8sio_api_core_v1_LoadBalancerStatus(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.LoadBalancerIngress"), + Ref: ref(corev1.LoadBalancerIngress{}.OpenAPIModelName()), }, }, }, @@ -48015,7 +54483,7 @@ func schema_k8sio_api_core_v1_LoadBalancerStatus(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LoadBalancerIngress"}, + corev1.LoadBalancerIngress{}.OpenAPIModelName()}, } } @@ -48049,7 +54517,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": { @@ -48166,28 +54634,28 @@ func schema_k8sio_api_core_v1_Namespace(ref common.ReferenceCallback) common.Ope 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec defines the behavior of the Namespace. 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/core/v1.NamespaceSpec"), + Ref: ref(corev1.NamespaceSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status describes the current status of a Namespace. 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/core/v1.NamespaceStatus"), + Ref: ref(corev1.NamespaceStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.NamespaceSpec", "k8s.io/api/core/v1.NamespaceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.NamespaceSpec{}.OpenAPIModelName(), corev1.NamespaceStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -48216,19 +54684,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(metav1.Time{}.OpenAPIModelName()), }, }, "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: "", }, }, }, @@ -48236,7 +54707,7 @@ func schema_k8sio_api_core_v1_NamespaceCondition(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -48265,7 +54736,7 @@ func schema_k8sio_api_core_v1_NamespaceList(ref common.ReferenceCallback) common 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -48276,7 +54747,7 @@ func schema_k8sio_api_core_v1_NamespaceList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Namespace"), + Ref: ref(corev1.Namespace{}.OpenAPIModelName()), }, }, }, @@ -48287,7 +54758,7 @@ func schema_k8sio_api_core_v1_NamespaceList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Namespace", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.Namespace{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -48357,7 +54828,7 @@ func schema_k8sio_api_core_v1_NamespaceStatus(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NamespaceCondition"), + Ref: ref(corev1.NamespaceCondition{}.OpenAPIModelName()), }, }, }, @@ -48367,7 +54838,7 @@ func schema_k8sio_api_core_v1_NamespaceStatus(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/core/v1.NamespaceCondition"}, + corev1.NamespaceCondition{}.OpenAPIModelName()}, } } @@ -48396,28 +54867,28 @@ func schema_k8sio_api_core_v1_Node(ref common.ReferenceCallback) common.OpenAPID 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NodeSpec"), + Ref: ref(corev1.NodeSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NodeStatus"), + Ref: ref(corev1.NodeStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.NodeSpec", "k8s.io/api/core/v1.NodeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.NodeSpec{}.OpenAPIModelName(), corev1.NodeStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -48461,7 +54932,7 @@ func schema_k8sio_api_core_v1_NodeAffinity(ref common.ReferenceCallback) common. "requiredDuringSchedulingIgnoredDuringExecution": { SchemaProps: spec.SchemaProps{ Description: "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.", - Ref: ref("k8s.io/api/core/v1.NodeSelector"), + Ref: ref(corev1.NodeSelector{}.OpenAPIModelName()), }, }, "preferredDuringSchedulingIgnoredDuringExecution": { @@ -48477,7 +54948,7 @@ func schema_k8sio_api_core_v1_NodeAffinity(ref common.ReferenceCallback) common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PreferredSchedulingTerm"), + Ref: ref(corev1.PreferredSchedulingTerm{}.OpenAPIModelName()), }, }, }, @@ -48487,7 +54958,7 @@ func schema_k8sio_api_core_v1_NodeAffinity(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.NodeSelector", "k8s.io/api/core/v1.PreferredSchedulingTerm"}, + corev1.NodeSelector{}.OpenAPIModelName(), corev1.PreferredSchedulingTerm{}.OpenAPIModelName()}, } } @@ -48517,13 +54988,13 @@ func schema_k8sio_api_core_v1_NodeCondition(ref common.ReferenceCallback) common "lastHeartbeatTime": { SchemaProps: spec.SchemaProps{ Description: "Last time we got an update on a given condition.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transit from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -48545,7 +55016,7 @@ func schema_k8sio_api_core_v1_NodeCondition(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -48559,14 +55030,14 @@ func schema_k8sio_api_core_v1_NodeConfigSource(ref common.ReferenceCallback) com "configMap": { SchemaProps: spec.SchemaProps{ Description: "ConfigMap is a reference to a Node's ConfigMap", - Ref: ref("k8s.io/api/core/v1.ConfigMapNodeConfigSource"), + Ref: ref(corev1.ConfigMapNodeConfigSource{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ConfigMapNodeConfigSource"}, + corev1.ConfigMapNodeConfigSource{}.OpenAPIModelName()}, } } @@ -48580,19 +55051,19 @@ func schema_k8sio_api_core_v1_NodeConfigStatus(ref common.ReferenceCallback) com "assigned": { SchemaProps: spec.SchemaProps{ Description: "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned.", - Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), + Ref: ref(corev1.NodeConfigSource{}.OpenAPIModelName()), }, }, "active": { SchemaProps: spec.SchemaProps{ Description: "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error.", - Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), + Ref: ref(corev1.NodeConfigSource{}.OpenAPIModelName()), }, }, "lastKnownGood": { SchemaProps: spec.SchemaProps{ Description: "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future.", - Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), + Ref: ref(corev1.NodeConfigSource{}.OpenAPIModelName()), }, }, "error": { @@ -48606,7 +55077,7 @@ func schema_k8sio_api_core_v1_NodeConfigStatus(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "k8s.io/api/core/v1.NodeConfigSource"}, + corev1.NodeConfigSource{}.OpenAPIModelName()}, } } @@ -48621,14 +55092,14 @@ func schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "Endpoint on which Kubelet is listening.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.DaemonEndpoint"), + Ref: ref(corev1.DaemonEndpoint{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.DaemonEndpoint"}, + corev1.DaemonEndpoint{}.OpenAPIModelName()}, } } @@ -48677,7 +55148,7 @@ func schema_k8sio_api_core_v1_NodeList(ref common.ReferenceCallback) common.Open 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -48688,7 +55159,7 @@ func schema_k8sio_api_core_v1_NodeList(ref common.ReferenceCallback) common.Open Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Node"), + Ref: ref(corev1.Node{}.OpenAPIModelName()), }, }, }, @@ -48699,7 +55170,7 @@ func schema_k8sio_api_core_v1_NodeList(ref common.ReferenceCallback) common.Open }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Node", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.Node{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -48755,14 +55226,14 @@ func schema_k8sio_api_core_v1_NodeRuntimeHandler(ref common.ReferenceCallback) c "features": { SchemaProps: spec.SchemaProps{ Description: "Supported features.", - Ref: ref("k8s.io/api/core/v1.NodeRuntimeHandlerFeatures"), + Ref: ref(corev1.NodeRuntimeHandlerFeatures{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.NodeRuntimeHandlerFeatures"}, + corev1.NodeRuntimeHandlerFeatures{}.OpenAPIModelName()}, } } @@ -48813,7 +55284,7 @@ func schema_k8sio_api_core_v1_NodeSelector(ref common.ReferenceCallback) common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NodeSelectorTerm"), + Ref: ref(corev1.NodeSelectorTerm{}.OpenAPIModelName()), }, }, }, @@ -48829,7 +55300,7 @@ func schema_k8sio_api_core_v1_NodeSelector(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.NodeSelectorTerm"}, + corev1.NodeSelectorTerm{}.OpenAPIModelName()}, } } @@ -48904,7 +55375,7 @@ func schema_k8sio_api_core_v1_NodeSelectorTerm(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), + Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), }, }, }, @@ -48923,7 +55394,7 @@ func schema_k8sio_api_core_v1_NodeSelectorTerm(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), + Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), }, }, }, @@ -48938,7 +55409,7 @@ func schema_k8sio_api_core_v1_NodeSelectorTerm(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "k8s.io/api/core/v1.NodeSelectorRequirement"}, + corev1.NodeSelectorRequirement{}.OpenAPIModelName()}, } } @@ -49004,7 +55475,7 @@ func schema_k8sio_api_core_v1_NodeSpec(ref common.ReferenceCallback) common.Open Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Taint"), + Ref: ref(corev1.Taint{}.OpenAPIModelName()), }, }, }, @@ -49013,7 +55484,7 @@ func schema_k8sio_api_core_v1_NodeSpec(ref common.ReferenceCallback) common.Open "configSource": { SchemaProps: spec.SchemaProps{ Description: "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.", - Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), + Ref: ref(corev1.NodeConfigSource{}.OpenAPIModelName()), }, }, "externalID": { @@ -49027,7 +55498,7 @@ func schema_k8sio_api_core_v1_NodeSpec(ref common.ReferenceCallback) common.Open }, }, Dependencies: []string{ - "k8s.io/api/core/v1.NodeConfigSource", "k8s.io/api/core/v1.Taint"}, + corev1.NodeConfigSource{}.OpenAPIModelName(), corev1.Taint{}.OpenAPIModelName()}, } } @@ -49046,7 +55517,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -49060,7 +55531,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -49086,13 +55557,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NodeCondition"), + Ref: ref(corev1.NodeCondition{}.OpenAPIModelName()), }, }, }, @@ -49110,13 +55581,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NodeAddress"), + Ref: ref(corev1.NodeAddress{}.OpenAPIModelName()), }, }, }, @@ -49126,14 +55597,14 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op SchemaProps: spec.SchemaProps{ Description: "Endpoints of daemons running on the Node.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NodeDaemonEndpoints"), + Ref: ref(corev1.NodeDaemonEndpoints{}.OpenAPIModelName()), }, }, "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"), + Ref: ref(corev1.NodeSystemInfo{}.OpenAPIModelName()), }, }, "images": { @@ -49149,7 +55620,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerImage"), + Ref: ref(corev1.ContainerImage{}.OpenAPIModelName()), }, }, }, @@ -49188,7 +55659,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.AttachedVolume"), + Ref: ref(corev1.AttachedVolume{}.OpenAPIModelName()), }, }, }, @@ -49197,7 +55668,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op "config": { SchemaProps: spec.SchemaProps{ Description: "Status of the config assigned to the node via the dynamic Kubelet config feature.", - Ref: ref("k8s.io/api/core/v1.NodeConfigStatus"), + Ref: ref(corev1.NodeConfigStatus{}.OpenAPIModelName()), }, }, "runtimeHandlers": { @@ -49213,7 +55684,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NodeRuntimeHandler"), + Ref: ref(corev1.NodeRuntimeHandler{}.OpenAPIModelName()), }, }, }, @@ -49222,14 +55693,54 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op "features": { SchemaProps: spec.SchemaProps{ Description: "Features describes the set of features implemented by the CRI implementation.", - Ref: ref("k8s.io/api/core/v1.NodeFeatures"), + Ref: ref(corev1.NodeFeatures{}.OpenAPIModelName()), + }, + }, + "declaredFeatures": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "DeclaredFeatures represents the features related to feature gates that are declared by the node.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.AttachedVolume", "k8s.io/api/core/v1.ContainerImage", "k8s.io/api/core/v1.NodeAddress", "k8s.io/api/core/v1.NodeCondition", "k8s.io/api/core/v1.NodeConfigStatus", "k8s.io/api/core/v1.NodeDaemonEndpoints", "k8s.io/api/core/v1.NodeFeatures", "k8s.io/api/core/v1.NodeRuntimeHandler", "k8s.io/api/core/v1.NodeSystemInfo", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.AttachedVolume{}.OpenAPIModelName(), corev1.ContainerImage{}.OpenAPIModelName(), corev1.NodeAddress{}.OpenAPIModelName(), corev1.NodeCondition{}.OpenAPIModelName(), corev1.NodeConfigStatus{}.OpenAPIModelName(), corev1.NodeDaemonEndpoints{}.OpenAPIModelName(), corev1.NodeFeatures{}.OpenAPIModelName(), corev1.NodeRuntimeHandler{}.OpenAPIModelName(), corev1.NodeSystemInfo{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, + } +} + +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", + }, + }, + }, + }, + }, } } @@ -49320,10 +55831,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(corev1.NodeSwapStatus{}.OpenAPIModelName()), + }, + }, }, Required: []string{"machineID", "systemUUID", "bootID", "kernelVersion", "osImage", "containerRuntimeVersion", "kubeletVersion", "kubeProxyVersion", "operatingSystem", "architecture"}, }, }, + Dependencies: []string{ + corev1.NodeSwapStatus{}.OpenAPIModelName()}, } } @@ -49453,28 +55972,28 @@ func schema_k8sio_api_core_v1_PersistentVolume(ref common.ReferenceCallback) com 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeSpec"), + Ref: ref(corev1.PersistentVolumeSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeStatus"), + Ref: ref(corev1.PersistentVolumeStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PersistentVolumeSpec", "k8s.io/api/core/v1.PersistentVolumeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.PersistentVolumeSpec{}.OpenAPIModelName(), corev1.PersistentVolumeStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -49503,28 +56022,28 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaim(ref common.ReferenceCallback 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), + Ref: ref(corev1.PersistentVolumeClaimSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimStatus"), + Ref: ref(corev1.PersistentVolumeClaimStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.PersistentVolumeClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.PersistentVolumeClaimSpec{}.OpenAPIModelName(), corev1.PersistentVolumeClaimStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -49537,28 +56056,30 @@ 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": { SchemaProps: spec.SchemaProps{ Description: "lastProbeTime is the time we probed the condition.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "lastTransitionTime is the time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -49580,7 +56101,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -49609,7 +56130,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref common.ReferenceCall 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -49620,7 +56141,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaim"), + Ref: ref(corev1.PersistentVolumeClaim{}.OpenAPIModelName()), }, }, }, @@ -49631,7 +56152,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PersistentVolumeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.PersistentVolumeClaim{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -49666,14 +56187,14 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCall "selector": { SchemaProps: spec.SchemaProps{ Description: "selector is a label query over volumes to consider for binding.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "resources": { SchemaProps: spec.SchemaProps{ - Description: "resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", + Description: "resources represents the minimum resources the volume should have. Users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeResourceRequirements"), + Ref: ref(corev1.VolumeResourceRequirements{}.OpenAPIModelName()), }, }, "volumeName": { @@ -49701,18 +56222,18 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCall "dataSource": { SchemaProps: spec.SchemaProps{ Description: "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.", - Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + Ref: ref(corev1.TypedLocalObjectReference{}.OpenAPIModelName()), }, }, "dataSourceRef": { SchemaProps: spec.SchemaProps{ Description: "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - Ref: ref("k8s.io/api/core/v1.TypedObjectReference"), + Ref: ref(corev1.TypedObjectReference{}.OpenAPIModelName()), }, }, "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: "", }, @@ -49721,7 +56242,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/api/core/v1.TypedObjectReference", "k8s.io/api/core/v1.VolumeResourceRequirements", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + corev1.TypedLocalObjectReference{}.OpenAPIModelName(), corev1.TypedObjectReference{}.OpenAPIModelName(), corev1.VolumeResourceRequirements{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -49769,7 +56290,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -49793,7 +56314,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimCondition"), + Ref: ref(corev1.PersistentVolumeClaimCondition{}.OpenAPIModelName()), }, }, }, @@ -49801,13 +56322,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa }, "allocatedResources": { SchemaProps: spec.SchemaProps{ - Description: "allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + Description: "allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -49820,7 +56341,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa }, }, SchemaProps: spec.SchemaProps{ - Description: "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + Description: "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, @@ -49837,22 +56358,22 @@ 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).", - Ref: ref("k8s.io/api/core/v1.ModifyVolumeStatus"), + Description: "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted.", + Ref: ref(corev1.ModifyVolumeStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ModifyVolumeStatus", "k8s.io/api/core/v1.PersistentVolumeClaimCondition", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.ModifyVolumeStatus{}.OpenAPIModelName(), corev1.PersistentVolumeClaimCondition{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } @@ -49867,14 +56388,14 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref common.Reference SchemaProps: spec.SchemaProps{ Description: "May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), + Ref: ref(corev1.PersistentVolumeClaimSpec{}.OpenAPIModelName()), }, }, }, @@ -49882,7 +56403,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.PersistentVolumeClaimSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -49940,7 +56461,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeList(ref common.ReferenceCallback) 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -49951,7 +56472,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolume"), + Ref: ref(corev1.PersistentVolume{}.OpenAPIModelName()), }, }, }, @@ -49962,7 +56483,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PersistentVolume", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.PersistentVolume{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -49975,141 +56496,141 @@ 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", - Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), + 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(corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName()), }, }, "awsElasticBlockStore": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Ref: ref(corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName()), }, }, "hostPath": { SchemaProps: spec.SchemaProps{ Description: "hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), + Ref: ref(corev1.HostPathVolumeSource{}.OpenAPIModelName()), }, }, "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", - Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), + 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(corev1.GlusterfsPersistentVolumeSource{}.OpenAPIModelName()), }, }, "nfs": { SchemaProps: spec.SchemaProps{ Description: "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), + Ref: ref(corev1.NFSVolumeSource{}.OpenAPIModelName()), }, }, "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", - Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), + 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(corev1.RBDPersistentVolumeSource{}.OpenAPIModelName()), }, }, "iscsi": { SchemaProps: spec.SchemaProps{ Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.", - Ref: ref("k8s.io/api/core/v1.ISCSIPersistentVolumeSource"), + Ref: ref(corev1.ISCSIPersistentVolumeSource{}.OpenAPIModelName()), }, }, "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", - Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Ref: ref(corev1.CinderPersistentVolumeSource{}.OpenAPIModelName()), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", + Ref: ref(corev1.CephFSPersistentVolumeSource{}.OpenAPIModelName()), }, }, "fc": { SchemaProps: spec.SchemaProps{ Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), + Ref: ref(corev1.FCVolumeSource{}.OpenAPIModelName()), }, }, "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", - Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), + 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(corev1.FlockerVolumeSource{}.OpenAPIModelName()), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", - Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", + Ref: ref(corev1.FlexPersistentVolumeSource{}.OpenAPIModelName()), }, }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", - Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", + Ref: ref(corev1.AzureFilePersistentVolumeSource{}.OpenAPIModelName()), }, }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", + Ref: ref(corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", + Ref: ref(corev1.QuobyteVolumeSource{}.OpenAPIModelName()), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", + Ref: ref(corev1.AzureDiskVolumeSource{}.OpenAPIModelName()), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", + Ref: ref(corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName()), }, }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", - Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", + Ref: ref(corev1.PortworxVolumeSource{}.OpenAPIModelName()), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", + Ref: ref(corev1.ScaleIOPersistentVolumeSource{}.OpenAPIModelName()), }, }, "local": { SchemaProps: spec.SchemaProps{ Description: "local represents directly-attached storage with node affinity", - Ref: ref("k8s.io/api/core/v1.LocalVolumeSource"), + Ref: ref(corev1.LocalVolumeSource{}.OpenAPIModelName()), }, }, "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", - Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), + 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(corev1.StorageOSPersistentVolumeSource{}.OpenAPIModelName()), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", - Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), + Description: "csi represents storage that is handled by an external CSI driver.", + Ref: ref(corev1.CSIPersistentVolumeSource{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource", "k8s.io/api/core/v1.AzureDiskVolumeSource", "k8s.io/api/core/v1.AzureFilePersistentVolumeSource", "k8s.io/api/core/v1.CSIPersistentVolumeSource", "k8s.io/api/core/v1.CephFSPersistentVolumeSource", "k8s.io/api/core/v1.CinderPersistentVolumeSource", "k8s.io/api/core/v1.FCVolumeSource", "k8s.io/api/core/v1.FlexPersistentVolumeSource", "k8s.io/api/core/v1.FlockerVolumeSource", "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource", "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource", "k8s.io/api/core/v1.HostPathVolumeSource", "k8s.io/api/core/v1.ISCSIPersistentVolumeSource", "k8s.io/api/core/v1.LocalVolumeSource", "k8s.io/api/core/v1.NFSVolumeSource", "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource", "k8s.io/api/core/v1.PortworxVolumeSource", "k8s.io/api/core/v1.QuobyteVolumeSource", "k8s.io/api/core/v1.RBDPersistentVolumeSource", "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource", "k8s.io/api/core/v1.StorageOSPersistentVolumeSource", "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"}, + corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(), corev1.AzureDiskVolumeSource{}.OpenAPIModelName(), corev1.AzureFilePersistentVolumeSource{}.OpenAPIModelName(), corev1.CSIPersistentVolumeSource{}.OpenAPIModelName(), corev1.CephFSPersistentVolumeSource{}.OpenAPIModelName(), corev1.CinderPersistentVolumeSource{}.OpenAPIModelName(), corev1.FCVolumeSource{}.OpenAPIModelName(), corev1.FlexPersistentVolumeSource{}.OpenAPIModelName(), corev1.FlockerVolumeSource{}.OpenAPIModelName(), corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.GlusterfsPersistentVolumeSource{}.OpenAPIModelName(), corev1.HostPathVolumeSource{}.OpenAPIModelName(), corev1.ISCSIPersistentVolumeSource{}.OpenAPIModelName(), corev1.LocalVolumeSource{}.OpenAPIModelName(), corev1.NFSVolumeSource{}.OpenAPIModelName(), corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.PortworxVolumeSource{}.OpenAPIModelName(), corev1.QuobyteVolumeSource{}.OpenAPIModelName(), corev1.RBDPersistentVolumeSource{}.OpenAPIModelName(), corev1.ScaleIOPersistentVolumeSource{}.OpenAPIModelName(), corev1.StorageOSPersistentVolumeSource{}.OpenAPIModelName(), corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()}, } } @@ -50128,7 +56649,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -50136,134 +56657,134 @@ 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", - Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), + 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(corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName()), }, }, "awsElasticBlockStore": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Ref: ref(corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName()), }, }, "hostPath": { SchemaProps: spec.SchemaProps{ Description: "hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), + Ref: ref(corev1.HostPathVolumeSource{}.OpenAPIModelName()), }, }, "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", - Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), + 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(corev1.GlusterfsPersistentVolumeSource{}.OpenAPIModelName()), }, }, "nfs": { SchemaProps: spec.SchemaProps{ Description: "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), + Ref: ref(corev1.NFSVolumeSource{}.OpenAPIModelName()), }, }, "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", - Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), + 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(corev1.RBDPersistentVolumeSource{}.OpenAPIModelName()), }, }, "iscsi": { SchemaProps: spec.SchemaProps{ Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.", - Ref: ref("k8s.io/api/core/v1.ISCSIPersistentVolumeSource"), + Ref: ref(corev1.ISCSIPersistentVolumeSource{}.OpenAPIModelName()), }, }, "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", - Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Ref: ref(corev1.CinderPersistentVolumeSource{}.OpenAPIModelName()), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", + Ref: ref(corev1.CephFSPersistentVolumeSource{}.OpenAPIModelName()), }, }, "fc": { SchemaProps: spec.SchemaProps{ Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), + Ref: ref(corev1.FCVolumeSource{}.OpenAPIModelName()), }, }, "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", - Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), + 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(corev1.FlockerVolumeSource{}.OpenAPIModelName()), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", - Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", + Ref: ref(corev1.FlexPersistentVolumeSource{}.OpenAPIModelName()), }, }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", - Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", + Ref: ref(corev1.AzureFilePersistentVolumeSource{}.OpenAPIModelName()), }, }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", + Ref: ref(corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", + Ref: ref(corev1.QuobyteVolumeSource{}.OpenAPIModelName()), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", + Ref: ref(corev1.AzureDiskVolumeSource{}.OpenAPIModelName()), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", + Ref: ref(corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName()), }, }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", - Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", + Ref: ref(corev1.PortworxVolumeSource{}.OpenAPIModelName()), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", + Ref: ref(corev1.ScaleIOPersistentVolumeSource{}.OpenAPIModelName()), }, }, "local": { SchemaProps: spec.SchemaProps{ Description: "local represents directly-attached storage with node affinity", - Ref: ref("k8s.io/api/core/v1.LocalVolumeSource"), + Ref: ref(corev1.LocalVolumeSource{}.OpenAPIModelName()), }, }, "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", - Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), + 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(corev1.StorageOSPersistentVolumeSource{}.OpenAPIModelName()), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", - Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), + Description: "csi represents storage that is handled by an external CSI driver.", + Ref: ref(corev1.CSIPersistentVolumeSource{}.OpenAPIModelName()), }, }, "accessModes": { @@ -50295,7 +56816,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, SchemaProps: spec.SchemaProps{ Description: "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding", - Ref: ref("k8s.io/api/core/v1.ObjectReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, "persistentVolumeReclaimPolicy": { @@ -50343,13 +56864,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "nodeAffinity": { SchemaProps: spec.SchemaProps{ - Description: "nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.", - Ref: ref("k8s.io/api/core/v1.VolumeNodeAffinity"), + Description: "nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. This field is mutable if MutablePVNodeAffinity feature gate is enabled.", + Ref: ref(corev1.VolumeNodeAffinity{}.OpenAPIModelName()), }, }, "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: "", }, @@ -50358,7 +56879,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource", "k8s.io/api/core/v1.AzureDiskVolumeSource", "k8s.io/api/core/v1.AzureFilePersistentVolumeSource", "k8s.io/api/core/v1.CSIPersistentVolumeSource", "k8s.io/api/core/v1.CephFSPersistentVolumeSource", "k8s.io/api/core/v1.CinderPersistentVolumeSource", "k8s.io/api/core/v1.FCVolumeSource", "k8s.io/api/core/v1.FlexPersistentVolumeSource", "k8s.io/api/core/v1.FlockerVolumeSource", "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource", "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource", "k8s.io/api/core/v1.HostPathVolumeSource", "k8s.io/api/core/v1.ISCSIPersistentVolumeSource", "k8s.io/api/core/v1.LocalVolumeSource", "k8s.io/api/core/v1.NFSVolumeSource", "k8s.io/api/core/v1.ObjectReference", "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource", "k8s.io/api/core/v1.PortworxVolumeSource", "k8s.io/api/core/v1.QuobyteVolumeSource", "k8s.io/api/core/v1.RBDPersistentVolumeSource", "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource", "k8s.io/api/core/v1.StorageOSPersistentVolumeSource", "k8s.io/api/core/v1.VolumeNodeAffinity", "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(), corev1.AzureDiskVolumeSource{}.OpenAPIModelName(), corev1.AzureFilePersistentVolumeSource{}.OpenAPIModelName(), corev1.CSIPersistentVolumeSource{}.OpenAPIModelName(), corev1.CephFSPersistentVolumeSource{}.OpenAPIModelName(), corev1.CinderPersistentVolumeSource{}.OpenAPIModelName(), corev1.FCVolumeSource{}.OpenAPIModelName(), corev1.FlexPersistentVolumeSource{}.OpenAPIModelName(), corev1.FlockerVolumeSource{}.OpenAPIModelName(), corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.GlusterfsPersistentVolumeSource{}.OpenAPIModelName(), corev1.HostPathVolumeSource{}.OpenAPIModelName(), corev1.ISCSIPersistentVolumeSource{}.OpenAPIModelName(), corev1.LocalVolumeSource{}.OpenAPIModelName(), corev1.NFSVolumeSource{}.OpenAPIModelName(), corev1.ObjectReference{}.OpenAPIModelName(), corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.PortworxVolumeSource{}.OpenAPIModelName(), corev1.QuobyteVolumeSource{}.OpenAPIModelName(), corev1.RBDPersistentVolumeSource{}.OpenAPIModelName(), corev1.ScaleIOPersistentVolumeSource{}.OpenAPIModelName(), corev1.StorageOSPersistentVolumeSource{}.OpenAPIModelName(), corev1.VolumeNodeAffinity{}.OpenAPIModelName(), corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } @@ -50394,14 +56915,14 @@ func schema_k8sio_api_core_v1_PersistentVolumeStatus(ref common.ReferenceCallbac "lastPhaseTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -50459,28 +56980,28 @@ func schema_k8sio_api_core_v1_Pod(ref common.ReferenceCallback) common.OpenAPIDe 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the pod. 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/core/v1.PodSpec"), + Ref: ref(corev1.PodSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodStatus"), + Ref: ref(corev1.PodStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodSpec", "k8s.io/api/core/v1.PodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.PodSpec{}.OpenAPIModelName(), corev1.PodStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -50504,7 +57025,7 @@ func schema_k8sio_api_core_v1_PodAffinity(ref common.ReferenceCallback) common.O Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), + Ref: ref(corev1.PodAffinityTerm{}.OpenAPIModelName()), }, }, }, @@ -50523,7 +57044,7 @@ func schema_k8sio_api_core_v1_PodAffinity(ref common.ReferenceCallback) common.O Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.WeightedPodAffinityTerm"), + Ref: ref(corev1.WeightedPodAffinityTerm{}.OpenAPIModelName()), }, }, }, @@ -50533,7 +57054,7 @@ func schema_k8sio_api_core_v1_PodAffinity(ref common.ReferenceCallback) common.O }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodAffinityTerm", "k8s.io/api/core/v1.WeightedPodAffinityTerm"}, + corev1.PodAffinityTerm{}.OpenAPIModelName(), corev1.WeightedPodAffinityTerm{}.OpenAPIModelName()}, } } @@ -50547,7 +57068,7 @@ func schema_k8sio_api_core_v1_PodAffinityTerm(ref common.ReferenceCallback) comm "labelSelector": { SchemaProps: spec.SchemaProps{ Description: "A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "namespaces": { @@ -50581,7 +57102,7 @@ func schema_k8sio_api_core_v1_PodAffinityTerm(ref common.ReferenceCallback) comm "namespaceSelector": { SchemaProps: spec.SchemaProps{ Description: "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "matchLabelKeys": { @@ -50591,7 +57112,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 +57132,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{ @@ -50629,7 +57150,7 @@ func schema_k8sio_api_core_v1_PodAffinityTerm(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -50653,7 +57174,7 @@ func schema_k8sio_api_core_v1_PodAntiAffinity(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), + Ref: ref(corev1.PodAffinityTerm{}.OpenAPIModelName()), }, }, }, @@ -50666,13 +57187,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.WeightedPodAffinityTerm"), + Ref: ref(corev1.WeightedPodAffinityTerm{}.OpenAPIModelName()), }, }, }, @@ -50682,7 +57203,7 @@ func schema_k8sio_api_core_v1_PodAntiAffinity(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodAffinityTerm", "k8s.io/api/core/v1.WeightedPodAffinityTerm"}, + corev1.PodAffinityTerm{}.OpenAPIModelName(), corev1.WeightedPodAffinityTerm{}.OpenAPIModelName()}, } } @@ -50748,6 +57269,78 @@ 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: "", + }, + }, + "userAnnotations": { + SchemaProps: spec.SchemaProps{ + Description: "userAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way.\n\nThese values are copied verbatim into the `spec.unverifiedUserAnnotations` field of the PodCertificateRequest objects that Kubelet creates.\n\nEntries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field.\n\nSigners should document the keys and values they support. Signers should deny requests that contain keys they do not recognize.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + 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 +57356,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. The PodObservedGenerationTracking feature gate must be enabled 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", @@ -50774,13 +57374,13 @@ func schema_k8sio_api_core_v1_PodCondition(ref common.ReferenceCallback) common. "lastProbeTime": { SchemaProps: spec.SchemaProps{ Description: "Last time we probed the condition.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -50802,7 +57402,7 @@ func schema_k8sio_api_core_v1_PodCondition(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -50866,7 +57466,7 @@ func schema_k8sio_api_core_v1_PodDNSConfig(ref common.ReferenceCallback) common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodDNSConfigOption"), + Ref: ref(corev1.PodDNSConfigOption{}.OpenAPIModelName()), }, }, }, @@ -50876,7 +57476,7 @@ func schema_k8sio_api_core_v1_PodDNSConfig(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodDNSConfigOption"}, + corev1.PodDNSConfigOption{}.OpenAPIModelName()}, } } @@ -50889,15 +57489,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 +57590,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(corev1.ContainerExtendedResourceRequest{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "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{ + corev1.ContainerExtendedResourceRequest{}.OpenAPIModelName()}, + } +} + func schema_k8sio_api_core_v1_PodIP(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -51036,7 +57680,7 @@ func schema_k8sio_api_core_v1_PodList(ref common.ReferenceCallback) common.OpenA 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -51047,7 +57691,7 @@ func schema_k8sio_api_core_v1_PodList(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Pod"), + Ref: ref(corev1.Pod{}.OpenAPIModelName()), }, }, }, @@ -51058,7 +57702,7 @@ func schema_k8sio_api_core_v1_PodList(ref common.ReferenceCallback) common.OpenA }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Pod", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.Pod{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -51114,7 +57758,7 @@ func schema_k8sio_api_core_v1_PodLogOptions(ref common.ReferenceCallback) common "sinceTime": { SchemaProps: spec.SchemaProps{ Description: "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "timestamps": { @@ -51126,7 +57770,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,11 +57789,18 @@ 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: "", + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -51375,13 +58026,13 @@ func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) c "seLinuxOptions": { SchemaProps: spec.SchemaProps{ Description: "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", - Ref: ref("k8s.io/api/core/v1.SELinuxOptions"), + Ref: ref(corev1.SELinuxOptions{}.OpenAPIModelName()), }, }, "windowsOptions": { SchemaProps: spec.SchemaProps{ Description: "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.", - Ref: ref("k8s.io/api/core/v1.WindowsSecurityContextOptions"), + Ref: ref(corev1.WindowsSecurityContextOptions{}.OpenAPIModelName()), }, }, "runAsUser": { @@ -51453,7 +58104,7 @@ func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Sysctl"), + Ref: ref(corev1.Sysctl{}.OpenAPIModelName()), }, }, }, @@ -51470,20 +58121,27 @@ func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) c "seccompProfile": { SchemaProps: spec.SchemaProps{ Description: "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows.", - Ref: ref("k8s.io/api/core/v1.SeccompProfile"), + Ref: ref(corev1.SeccompProfile{}.OpenAPIModelName()), }, }, "appArmorProfile": { SchemaProps: spec.SchemaProps{ Description: "appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows.", - Ref: ref("k8s.io/api/core/v1.AppArmorProfile"), + Ref: ref(corev1.AppArmorProfile{}.OpenAPIModelName()), + }, + }, + "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: "", }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.AppArmorProfile", "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.Sysctl", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, + corev1.AppArmorProfile{}.OpenAPIModelName(), corev1.SELinuxOptions{}.OpenAPIModelName(), corev1.SeccompProfile{}.OpenAPIModelName(), corev1.Sysctl{}.OpenAPIModelName(), corev1.WindowsSecurityContextOptions{}.OpenAPIModelName()}, } } @@ -51497,14 +58155,14 @@ func schema_k8sio_api_core_v1_PodSignature(ref common.ReferenceCallback) common. "podController": { SchemaProps: spec.SchemaProps{ Description: "Reference to controller whose pods should avoid this node.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), + Ref: ref(metav1.OwnerReference{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"}, + metav1.OwnerReference{}.OpenAPIModelName()}, } } @@ -51533,7 +58191,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Volume"), + Ref: ref(corev1.Volume{}.OpenAPIModelName()), }, }, }, @@ -51551,13 +58209,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Container"), + Ref: ref(corev1.Container{}.OpenAPIModelName()), }, }, }, @@ -51581,7 +58239,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Container"), + Ref: ref(corev1.Container{}.OpenAPIModelName()), }, }, }, @@ -51605,7 +58263,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EphemeralContainer"), + Ref: ref(corev1.EphemeralContainer{}.OpenAPIModelName()), }, }, }, @@ -51692,7 +58350,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: "", }, @@ -51721,7 +58379,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA "securityContext": { SchemaProps: spec.SchemaProps{ Description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", - Ref: ref("k8s.io/api/core/v1.PodSecurityContext"), + Ref: ref(corev1.PodSecurityContext{}.OpenAPIModelName()), }, }, "imagePullSecrets": { @@ -51742,7 +58400,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), }, }, }, @@ -51765,7 +58423,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA "affinity": { SchemaProps: spec.SchemaProps{ Description: "If specified, the pod's scheduling constraints", - Ref: ref("k8s.io/api/core/v1.Affinity"), + Ref: ref(corev1.Affinity{}.OpenAPIModelName()), }, }, "schedulerName": { @@ -51788,7 +58446,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Toleration"), + Ref: ref(corev1.Toleration{}.OpenAPIModelName()), }, }, }, @@ -51812,7 +58470,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.HostAlias"), + Ref: ref(corev1.HostAlias{}.OpenAPIModelName()), }, }, }, @@ -51835,7 +58493,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA "dnsConfig": { SchemaProps: spec.SchemaProps{ Description: "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.", - Ref: ref("k8s.io/api/core/v1.PodDNSConfig"), + Ref: ref(corev1.PodDNSConfig{}.OpenAPIModelName()), }, }, "readinessGates": { @@ -51851,7 +58509,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodReadinessGate"), + Ref: ref(corev1.PodReadinessGate{}.OpenAPIModelName()), }, }, }, @@ -51887,7 +58545,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -51912,7 +58570,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.TopologySpreadConstraint"), + Ref: ref(corev1.TopologySpreadConstraint{}.OpenAPIModelName()), }, }, }, @@ -51927,8 +58585,8 @@ 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", - Ref: ref("k8s.io/api/core/v1.PodOS"), + 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(corev1.PodOS{}.OpenAPIModelName()), }, }, "hostUsers": { @@ -51956,7 +58614,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodSchedulingGate"), + Ref: ref(corev1.PodSchedulingGate{}.OpenAPIModelName()), }, }, }, @@ -51974,24 +58632,43 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, }, SchemaProps: spec.SchemaProps{ - Description: "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + Description: "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is a stable field but requires that the DynamicResourceAllocation feature gate is enabled.\n\nThis field is immutable.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodResourceClaim"), + Ref: ref(corev1.PodResourceClaim{}.OpenAPIModelName()), }, }, }, }, }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\", \"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(corev1.ResourceRequirements{}.OpenAPIModelName()), + }, + }, + "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: "", + }, + }, + "workloadRef": { + SchemaProps: spec.SchemaProps{ + Description: "WorkloadRef provides a reference to the Workload object that this Pod belongs to. This field is used by the scheduler to identify the PodGroup and apply the correct group scheduling policies. The Workload object referenced by this field may not exist at the time the Pod is created. This field is immutable, but a Workload object with the same name may be recreated with different policies. Doing this during pod scheduling may result in the placement not conforming to the expected policies.", + Ref: ref(corev1.WorkloadReference{}.OpenAPIModelName()), + }, + }, }, 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"}, + corev1.Affinity{}.OpenAPIModelName(), corev1.Container{}.OpenAPIModelName(), corev1.EphemeralContainer{}.OpenAPIModelName(), corev1.HostAlias{}.OpenAPIModelName(), corev1.LocalObjectReference{}.OpenAPIModelName(), corev1.PodDNSConfig{}.OpenAPIModelName(), corev1.PodOS{}.OpenAPIModelName(), corev1.PodReadinessGate{}.OpenAPIModelName(), corev1.PodResourceClaim{}.OpenAPIModelName(), corev1.PodSchedulingGate{}.OpenAPIModelName(), corev1.PodSecurityContext{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), corev1.Toleration{}.OpenAPIModelName(), corev1.TopologySpreadConstraint{}.OpenAPIModelName(), corev1.Volume{}.OpenAPIModelName(), corev1.WorkloadReference{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } @@ -52002,6 +58679,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. The PodObservedGenerationTracking feature gate must be enabled 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)", @@ -52028,7 +58712,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodCondition"), + Ref: ref(corev1.PodCondition{}.OpenAPIModelName()), }, }, }, @@ -52077,7 +58761,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.HostIP"), + Ref: ref(corev1.HostIP{}.OpenAPIModelName()), }, }, }, @@ -52108,7 +58792,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodIP"), + Ref: ref(corev1.PodIP{}.OpenAPIModelName()), }, }, }, @@ -52117,7 +58801,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope "startTime": { SchemaProps: spec.SchemaProps{ Description: "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "initContainerStatuses": { @@ -52127,13 +58811,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerStatus"), + Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), }, }, }, @@ -52146,13 +58830,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerStatus"), + Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), }, }, }, @@ -52173,13 +58857,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerStatus"), + Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), }, }, }, @@ -52187,7 +58871,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: "", }, @@ -52210,17 +58894,43 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodResourceClaimStatus"), + Ref: ref(corev1.PodResourceClaimStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "extendedResourceClaimStatus": { + SchemaProps: spec.SchemaProps{ + Description: "Status of extended resource claim backed by DRA.", + Ref: ref(corev1.PodExtendedResourceClaimStatus{}.OpenAPIModelName()), + }, + }, + "allocatedResources": { + SchemaProps: spec.SchemaProps{ + Description: "AllocatedResources is the total requests allocated for this pod by the node. If pod-level requests are not set, this will be the total requests aggregated across containers in the pod.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, }, }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources represents the compute resource requests and limits that have been applied at the pod level if pod-level requests or limits are set in PodSpec.Resources", + Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), + }, + }, }, }, }, 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"}, + corev1.ContainerStatus{}.OpenAPIModelName(), corev1.HostIP{}.OpenAPIModelName(), corev1.PodCondition{}.OpenAPIModelName(), corev1.PodExtendedResourceClaimStatus{}.OpenAPIModelName(), corev1.PodIP{}.OpenAPIModelName(), corev1.PodResourceClaimStatus{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -52249,21 +58959,21 @@ func schema_k8sio_api_core_v1_PodStatusResult(ref common.ReferenceCallback) comm 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodStatus"), + Ref: ref(corev1.PodStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.PodStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -52292,21 +59002,21 @@ func schema_k8sio_api_core_v1_PodTemplate(ref common.ReferenceCallback) common.O 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -52335,7 +59045,7 @@ func schema_k8sio_api_core_v1_PodTemplateList(ref common.ReferenceCallback) comm 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -52346,7 +59056,7 @@ func schema_k8sio_api_core_v1_PodTemplateList(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplate"), + Ref: ref(corev1.PodTemplate{}.OpenAPIModelName()), }, }, }, @@ -52357,7 +59067,7 @@ func schema_k8sio_api_core_v1_PodTemplateList(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.PodTemplate{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -52372,21 +59082,21 @@ func schema_k8sio_api_core_v1_PodTemplateSpec(ref common.ReferenceCallback) comm 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the pod. 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/core/v1.PodSpec"), + Ref: ref(corev1.PodSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.PodSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -52394,7 +59104,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{ @@ -52474,13 +59185,13 @@ func schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "The class of pods.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodSignature"), + Ref: ref(corev1.PodSignature{}.OpenAPIModelName()), }, }, "evictionTime": { SchemaProps: spec.SchemaProps{ Description: "Time at which this entry was added to the list.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -52502,7 +59213,7 @@ func schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodSignature", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + corev1.PodSignature{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -52525,7 +59236,7 @@ func schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref common.ReferenceCallba SchemaProps: spec.SchemaProps{ Description: "A node selector term, associated with the corresponding weight.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NodeSelectorTerm"), + Ref: ref(corev1.NodeSelectorTerm{}.OpenAPIModelName()), }, }, }, @@ -52533,7 +59244,7 @@ func schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/api/core/v1.NodeSelectorTerm"}, + corev1.NodeSelectorTerm{}.OpenAPIModelName()}, } } @@ -52546,26 +59257,26 @@ 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.", - Ref: ref("k8s.io/api/core/v1.ExecAction"), + Description: "Exec specifies a command to execute in the container.", + Ref: ref(corev1.ExecAction{}.OpenAPIModelName()), }, }, "httpGet": { SchemaProps: spec.SchemaProps{ - Description: "HTTPGet specifies the http request to perform.", - Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), + Description: "HTTPGet specifies an HTTP GET request to perform.", + Ref: ref(corev1.HTTPGetAction{}.OpenAPIModelName()), }, }, "tcpSocket": { SchemaProps: spec.SchemaProps{ - Description: "TCPSocket specifies an action involving a TCP port.", - Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), + Description: "TCPSocket specifies a connection to a TCP port.", + Ref: ref(corev1.TCPSocketAction{}.OpenAPIModelName()), }, }, "grpc": { SchemaProps: spec.SchemaProps{ - Description: "GRPC specifies an action involving a GRPC port.", - Ref: ref("k8s.io/api/core/v1.GRPCAction"), + Description: "GRPC specifies a GRPC HealthCheckRequest.", + Ref: ref(corev1.GRPCAction{}.OpenAPIModelName()), }, }, "initialDelaySeconds": { @@ -52614,7 +59325,7 @@ func schema_k8sio_api_core_v1_Probe(ref common.ReferenceCallback) common.OpenAPI }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.GRPCAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, + corev1.ExecAction{}.OpenAPIModelName(), corev1.GRPCAction{}.OpenAPIModelName(), corev1.HTTPGetAction{}.OpenAPIModelName(), corev1.TCPSocketAction{}.OpenAPIModelName()}, } } @@ -52627,33 +59338,33 @@ 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.", - Ref: ref("k8s.io/api/core/v1.ExecAction"), + Description: "Exec specifies a command to execute in the container.", + Ref: ref(corev1.ExecAction{}.OpenAPIModelName()), }, }, "httpGet": { SchemaProps: spec.SchemaProps{ - Description: "HTTPGet specifies the http request to perform.", - Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), + Description: "HTTPGet specifies an HTTP GET request to perform.", + Ref: ref(corev1.HTTPGetAction{}.OpenAPIModelName()), }, }, "tcpSocket": { SchemaProps: spec.SchemaProps{ - Description: "TCPSocket specifies an action involving a TCP port.", - Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), + Description: "TCPSocket specifies a connection to a TCP port.", + Ref: ref(corev1.TCPSocketAction{}.OpenAPIModelName()), }, }, "grpc": { SchemaProps: spec.SchemaProps{ - Description: "GRPC specifies an action involving a GRPC port.", - Ref: ref("k8s.io/api/core/v1.GRPCAction"), + Description: "GRPC specifies a GRPC HealthCheckRequest.", + Ref: ref(corev1.GRPCAction{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.GRPCAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, + corev1.ExecAction{}.OpenAPIModelName(), corev1.GRPCAction{}.OpenAPIModelName(), corev1.HTTPGetAction{}.OpenAPIModelName(), corev1.TCPSocketAction{}.OpenAPIModelName()}, } } @@ -52677,7 +59388,7 @@ func schema_k8sio_api_core_v1_ProjectedVolumeSource(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeProjection"), + Ref: ref(corev1.VolumeProjection{}.OpenAPIModelName()), }, }, }, @@ -52694,7 +59405,7 @@ func schema_k8sio_api_core_v1_ProjectedVolumeSource(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/core/v1.VolumeProjection"}, + corev1.VolumeProjection{}.OpenAPIModelName()}, } } @@ -52825,7 +59536,7 @@ func schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref common.ReferenceCall "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - Ref: ref("k8s.io/api/core/v1.SecretReference"), + Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), }, }, "readOnly": { @@ -52840,7 +59551,7 @@ func schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/core/v1.SecretReference"}, + corev1.SecretReference{}.OpenAPIModelName()}, } } @@ -52913,7 +59624,7 @@ func schema_k8sio_api_core_v1_RBDVolumeSource(ref common.ReferenceCallback) comm "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), }, }, "readOnly": { @@ -52928,7 +59639,7 @@ func schema_k8sio_api_core_v1_RBDVolumeSource(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference"}, + corev1.LocalObjectReference{}.OpenAPIModelName()}, } } @@ -52957,7 +59668,7 @@ func schema_k8sio_api_core_v1_RangeAllocation(ref common.ReferenceCallback) comm 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "range": { @@ -52980,7 +59691,7 @@ func schema_k8sio_api_core_v1_RangeAllocation(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -53009,28 +59720,28 @@ func schema_k8sio_api_core_v1_ReplicationController(ref common.ReferenceCallback SchemaProps: spec.SchemaProps{ Description: "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec defines the specification of the desired behavior of the replication controller. 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/core/v1.ReplicationControllerSpec"), + Ref: ref(corev1.ReplicationControllerSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ReplicationControllerStatus"), + Ref: ref(corev1.ReplicationControllerStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ReplicationControllerSpec", "k8s.io/api/core/v1.ReplicationControllerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.ReplicationControllerSpec{}.OpenAPIModelName(), corev1.ReplicationControllerStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -53060,7 +59771,7 @@ func schema_k8sio_api_core_v1_ReplicationControllerCondition(ref common.Referenc "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "The last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -53082,7 +59793,7 @@ func schema_k8sio_api_core_v1_ReplicationControllerCondition(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -53111,7 +59822,7 @@ func schema_k8sio_api_core_v1_ReplicationControllerList(ref common.ReferenceCall 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -53122,7 +59833,7 @@ func schema_k8sio_api_core_v1_ReplicationControllerList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ReplicationController"), + Ref: ref(corev1.ReplicationController{}.OpenAPIModelName()), }, }, }, @@ -53133,7 +59844,7 @@ func schema_k8sio_api_core_v1_ReplicationControllerList(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ReplicationController", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.ReplicationController{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -53147,6 +59858,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 +59866,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", }, @@ -53182,14 +59895,14 @@ func schema_k8sio_api_core_v1_ReplicationControllerSpec(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. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template", - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodTemplateSpec"}, + corev1.PodTemplateSpec{}.OpenAPIModelName()}, } } @@ -53254,7 +59967,7 @@ func schema_k8sio_api_core_v1_ReplicationControllerStatus(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ReplicationControllerCondition"), + Ref: ref(corev1.ReplicationControllerCondition{}.OpenAPIModelName()), }, }, }, @@ -53265,7 +59978,7 @@ func schema_k8sio_api_core_v1_ReplicationControllerStatus(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ReplicationControllerCondition"}, + corev1.ReplicationControllerCondition{}.OpenAPIModelName()}, } } @@ -53323,7 +60036,7 @@ func schema_k8sio_api_core_v1_ResourceFieldSelector(ref common.ReferenceCallback "divisor": { SchemaProps: spec.SchemaProps{ Description: "Specifies the output format of the exposed resources, defaults to \"1\"", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -53336,7 +60049,7 @@ func schema_k8sio_api_core_v1_ResourceFieldSelector(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -53344,7 +60057,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": { @@ -53394,28 +60107,28 @@ func schema_k8sio_api_core_v1_ResourceQuota(ref common.ReferenceCallback) common 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceQuotaSpec"), + Ref: ref(corev1.ResourceQuotaSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceQuotaStatus"), + Ref: ref(corev1.ResourceQuotaStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ResourceQuotaSpec", "k8s.io/api/core/v1.ResourceQuotaStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.ResourceQuotaSpec{}.OpenAPIModelName(), corev1.ResourceQuotaStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -53444,7 +60157,7 @@ func schema_k8sio_api_core_v1_ResourceQuotaList(ref common.ReferenceCallback) co 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -53455,7 +60168,7 @@ func schema_k8sio_api_core_v1_ResourceQuotaList(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceQuota"), + Ref: ref(corev1.ResourceQuota{}.OpenAPIModelName()), }, }, }, @@ -53466,7 +60179,7 @@ func schema_k8sio_api_core_v1_ResourceQuotaList(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ResourceQuota", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.ResourceQuota{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -53485,7 +60198,7 @@ func schema_k8sio_api_core_v1_ResourceQuotaSpec(ref common.ReferenceCallback) co Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -53506,7 +60219,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"}, }, }, }, @@ -53515,14 +60228,14 @@ func schema_k8sio_api_core_v1_ResourceQuotaSpec(ref common.ReferenceCallback) co "scopeSelector": { SchemaProps: spec.SchemaProps{ Description: "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.", - Ref: ref("k8s.io/api/core/v1.ScopeSelector"), + Ref: ref(corev1.ScopeSelector{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ScopeSelector", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.ScopeSelector{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } @@ -53541,7 +60254,7 @@ func schema_k8sio_api_core_v1_ResourceQuotaStatus(ref common.ReferenceCallback) Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -53555,7 +60268,7 @@ func schema_k8sio_api_core_v1_ResourceQuotaStatus(ref common.ReferenceCallback) Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -53565,7 +60278,7 @@ func schema_k8sio_api_core_v1_ResourceQuotaStatus(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -53584,7 +60297,7 @@ func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback) Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -53598,7 +60311,7 @@ func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback) Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -53614,13 +60327,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceClaim"), + Ref: ref(corev1.ResourceClaim{}.OpenAPIModelName()), }, }, }, @@ -53630,7 +60343,7 @@ func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ResourceClaim", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.ResourceClaim{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } @@ -53638,11 +60351,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,13 +60372,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceHealth"), + Ref: ref(corev1.ResourceHealth{}.OpenAPIModelName()), }, }, }, @@ -53675,7 +60389,7 @@ func schema_k8sio_api_core_v1_ResourceStatus(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ResourceHealth"}, + corev1.ResourceHealth{}.OpenAPIModelName()}, } } @@ -53746,7 +60460,7 @@ func schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref common.Reference "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", - Ref: ref("k8s.io/api/core/v1.SecretReference"), + Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), }, }, "sslEnabled": { @@ -53805,7 +60519,7 @@ func schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/api/core/v1.SecretReference"}, + corev1.SecretReference{}.OpenAPIModelName()}, } } @@ -53835,7 +60549,7 @@ func schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref common.ReferenceCallback) "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), }, }, "sslEnabled": { @@ -53894,7 +60608,7 @@ func schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference"}, + corev1.LocalObjectReference{}.OpenAPIModelName()}, } } @@ -53918,7 +60632,7 @@ func schema_k8sio_api_core_v1_ScopeSelector(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ScopedResourceSelectorRequirement"), + Ref: ref(corev1.ScopedResourceSelectorRequirement{}.OpenAPIModelName()), }, }, }, @@ -53933,7 +60647,7 @@ func schema_k8sio_api_core_v1_ScopeSelector(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ScopedResourceSelectorRequirement"}, + corev1.ScopedResourceSelectorRequirement{}.OpenAPIModelName()}, } } @@ -53946,11 +60660,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": { @@ -54056,7 +60770,7 @@ func schema_k8sio_api_core_v1_Secret(ref common.ReferenceCallback) common.OpenAP 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "immutable": { @@ -54108,7 +60822,7 @@ func schema_k8sio_api_core_v1_Secret(ref common.ReferenceCallback) common.OpenAP }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -54207,7 +60921,7 @@ func schema_k8sio_api_core_v1_SecretList(ref common.ReferenceCallback) common.Op 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -54218,7 +60932,7 @@ func schema_k8sio_api_core_v1_SecretList(ref common.ReferenceCallback) common.Op Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Secret"), + Ref: ref(corev1.Secret{}.OpenAPIModelName()), }, }, }, @@ -54229,7 +60943,7 @@ func schema_k8sio_api_core_v1_SecretList(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Secret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.Secret{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -54261,7 +60975,7 @@ func schema_k8sio_api_core_v1_SecretProjection(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.KeyToPath"), + Ref: ref(corev1.KeyToPath{}.OpenAPIModelName()), }, }, }, @@ -54278,7 +60992,7 @@ func schema_k8sio_api_core_v1_SecretProjection(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "k8s.io/api/core/v1.KeyToPath"}, + corev1.KeyToPath{}.OpenAPIModelName()}, } } @@ -54341,7 +61055,7 @@ func schema_k8sio_api_core_v1_SecretVolumeSource(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.KeyToPath"), + Ref: ref(corev1.KeyToPath{}.OpenAPIModelName()), }, }, }, @@ -54365,7 +61079,7 @@ func schema_k8sio_api_core_v1_SecretVolumeSource(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/api/core/v1.KeyToPath"}, + corev1.KeyToPath{}.OpenAPIModelName()}, } } @@ -54379,7 +61093,7 @@ func schema_k8sio_api_core_v1_SecurityContext(ref common.ReferenceCallback) comm "capabilities": { SchemaProps: spec.SchemaProps{ Description: "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.", - Ref: ref("k8s.io/api/core/v1.Capabilities"), + Ref: ref(corev1.Capabilities{}.OpenAPIModelName()), }, }, "privileged": { @@ -54392,13 +61106,13 @@ func schema_k8sio_api_core_v1_SecurityContext(ref common.ReferenceCallback) comm "seLinuxOptions": { SchemaProps: spec.SchemaProps{ Description: "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", - Ref: ref("k8s.io/api/core/v1.SELinuxOptions"), + Ref: ref(corev1.SELinuxOptions{}.OpenAPIModelName()), }, }, "windowsOptions": { SchemaProps: spec.SchemaProps{ Description: "The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.", - Ref: ref("k8s.io/api/core/v1.WindowsSecurityContextOptions"), + Ref: ref(corev1.WindowsSecurityContextOptions{}.OpenAPIModelName()), }, }, "runAsUser": { @@ -54447,20 +61161,20 @@ func schema_k8sio_api_core_v1_SecurityContext(ref common.ReferenceCallback) comm "seccompProfile": { SchemaProps: spec.SchemaProps{ Description: "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.", - Ref: ref("k8s.io/api/core/v1.SeccompProfile"), + Ref: ref(corev1.SeccompProfile{}.OpenAPIModelName()), }, }, "appArmorProfile": { SchemaProps: spec.SchemaProps{ Description: "appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows.", - Ref: ref("k8s.io/api/core/v1.AppArmorProfile"), + Ref: ref(corev1.AppArmorProfile{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.AppArmorProfile", "k8s.io/api/core/v1.Capabilities", "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, + corev1.AppArmorProfile{}.OpenAPIModelName(), corev1.Capabilities{}.OpenAPIModelName(), corev1.SELinuxOptions{}.OpenAPIModelName(), corev1.SeccompProfile{}.OpenAPIModelName(), corev1.WindowsSecurityContextOptions{}.OpenAPIModelName()}, } } @@ -54489,14 +61203,14 @@ func schema_k8sio_api_core_v1_SerializedReference(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "The reference to an object in the system.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ObjectReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ObjectReference"}, + corev1.ObjectReference{}.OpenAPIModelName()}, } } @@ -54525,28 +61239,28 @@ func schema_k8sio_api_core_v1_Service(ref common.ReferenceCallback) common.OpenA 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ServiceSpec"), + Ref: ref(corev1.ServiceSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ServiceStatus"), + Ref: ref(corev1.ServiceStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ServiceSpec", "k8s.io/api/core/v1.ServiceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.ServiceSpec{}.OpenAPIModelName(), corev1.ServiceStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -54575,7 +61289,7 @@ func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) commo 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "secrets": { @@ -54590,13 +61304,13 @@ 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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ObjectReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, }, @@ -54615,7 +61329,7 @@ func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), }, }, }, @@ -54632,7 +61346,7 @@ func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.LocalObjectReference{}.OpenAPIModelName(), corev1.ObjectReference{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -54661,7 +61375,7 @@ func schema_k8sio_api_core_v1_ServiceAccountList(ref common.ReferenceCallback) c 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -54672,7 +61386,7 @@ func schema_k8sio_api_core_v1_ServiceAccountList(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ServiceAccount"), + Ref: ref(corev1.ServiceAccount{}.OpenAPIModelName()), }, }, }, @@ -54683,7 +61397,7 @@ func schema_k8sio_api_core_v1_ServiceAccountList(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ServiceAccount", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.ServiceAccount{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -54748,7 +61462,7 @@ func schema_k8sio_api_core_v1_ServiceList(ref common.ReferenceCallback) common.O 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -54759,7 +61473,7 @@ func schema_k8sio_api_core_v1_ServiceList(ref common.ReferenceCallback) common.O Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Service"), + Ref: ref(corev1.Service{}.OpenAPIModelName()), }, }, }, @@ -54770,7 +61484,7 @@ func schema_k8sio_api_core_v1_ServiceList(ref common.ReferenceCallback) common.O }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Service", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + corev1.Service{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -54815,7 +61529,7 @@ func schema_k8sio_api_core_v1_ServicePort(ref common.ReferenceCallback) common.O "targetPort": { SchemaProps: spec.SchemaProps{ Description: "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "nodePort": { @@ -54830,7 +61544,7 @@ func schema_k8sio_api_core_v1_ServicePort(ref common.ReferenceCallback) common.O }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -54894,7 +61608,7 @@ func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.O Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ServicePort"), + Ref: ref(corev1.ServicePort{}.OpenAPIModelName()), }, }, }, @@ -55043,7 +61757,7 @@ func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.O "sessionAffinityConfig": { SchemaProps: spec.SchemaProps{ Description: "sessionAffinityConfig contains the configurations of session affinity.", - Ref: ref("k8s.io/api/core/v1.SessionAffinityConfig"), + Ref: ref(corev1.SessionAffinityConfig{}.OpenAPIModelName()), }, }, "ipFamilies": { @@ -55099,7 +61813,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: "", }, @@ -55108,7 +61822,7 @@ func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.O }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ServicePort", "k8s.io/api/core/v1.SessionAffinityConfig"}, + corev1.ServicePort{}.OpenAPIModelName(), corev1.SessionAffinityConfig{}.OpenAPIModelName()}, } } @@ -55123,7 +61837,7 @@ func schema_k8sio_api_core_v1_ServiceStatus(ref common.ReferenceCallback) common SchemaProps: spec.SchemaProps{ Description: "LoadBalancer contains the current status of the load-balancer, if one is present.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.LoadBalancerStatus"), + Ref: ref(corev1.LoadBalancerStatus{}.OpenAPIModelName()), }, }, "conditions": { @@ -55144,7 +61858,7 @@ func schema_k8sio_api_core_v1_ServiceStatus(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), + Ref: ref(metav1.Condition{}.OpenAPIModelName()), }, }, }, @@ -55154,7 +61868,7 @@ func schema_k8sio_api_core_v1_ServiceStatus(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LoadBalancerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, + corev1.LoadBalancerStatus{}.OpenAPIModelName(), metav1.Condition{}.OpenAPIModelName()}, } } @@ -55168,14 +61882,14 @@ func schema_k8sio_api_core_v1_SessionAffinityConfig(ref common.ReferenceCallback "clientIP": { SchemaProps: spec.SchemaProps{ Description: "clientIP contains the configurations of Client IP based session affinity.", - Ref: ref("k8s.io/api/core/v1.ClientIPConfig"), + Ref: ref(corev1.ClientIPConfig{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ClientIPConfig"}, + corev1.ClientIPConfig{}.OpenAPIModelName()}, } } @@ -55239,14 +61953,14 @@ func schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref common.Referen "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", - Ref: ref("k8s.io/api/core/v1.ObjectReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ObjectReference"}, + corev1.ObjectReference{}.OpenAPIModelName()}, } } @@ -55288,14 +62002,14 @@ func schema_k8sio_api_core_v1_StorageOSVolumeSource(ref common.ReferenceCallback "secretRef": { SchemaProps: spec.SchemaProps{ Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.LocalObjectReference"}, + corev1.LocalObjectReference{}.OpenAPIModelName()}, } } @@ -55339,7 +62053,7 @@ func schema_k8sio_api_core_v1_TCPSocketAction(ref common.ReferenceCallback) comm "port": { SchemaProps: spec.SchemaProps{ Description: "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "host": { @@ -55354,7 +62068,7 @@ func schema_k8sio_api_core_v1_TCPSocketAction(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -55391,8 +62105,8 @@ 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.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "TimeAdded represents the time at which the taint was added.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, @@ -55400,7 +62114,7 @@ func schema_k8sio_api_core_v1_Taint(ref common.ReferenceCallback) common.OpenAPI }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -55420,10 +62134,10 @@ func schema_k8sio_api_core_v1_Toleration(ref common.ReferenceCallback) common.Op }, "operator": { SchemaProps: spec.SchemaProps{ - Description: "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.\n\nPossible enum values:\n - `\"Equal\"`\n - `\"Exists\"`", + Description: "Operator represents a key's relationship to the value. Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).\n\nPossible enum values:\n - `\"Equal\"`\n - `\"Exists\"`\n - `\"Gt\"`\n - `\"Lt\"`", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Equal", "Exists"}, + Enum: []interface{}{"Equal", "Exists", "Gt", "Lt"}, }, }, "value": { @@ -55516,7 +62230,7 @@ func schema_k8sio_api_core_v1_TopologySelectorTerm(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.TopologySelectorLabelRequirement"), + Ref: ref(corev1.TopologySelectorLabelRequirement{}.OpenAPIModelName()), }, }, }, @@ -55531,7 +62245,7 @@ func schema_k8sio_api_core_v1_TopologySelectorTerm(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/core/v1.TopologySelectorLabelRequirement"}, + corev1.TopologySelectorLabelRequirement{}.OpenAPIModelName()}, } } @@ -55570,7 +62284,7 @@ func schema_k8sio_api_core_v1_TopologySpreadConstraint(ref common.ReferenceCallb "labelSelector": { SchemaProps: spec.SchemaProps{ Description: "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "minDomains": { @@ -55582,7 +62296,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 +62304,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"}, @@ -55621,7 +62335,7 @@ func schema_k8sio_api_core_v1_TopologySpreadConstraint(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -55671,7 +62385,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{ @@ -55728,181 +62443,181 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP "hostPath": { SchemaProps: spec.SchemaProps{ Description: "hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), + Ref: ref(corev1.HostPathVolumeSource{}.OpenAPIModelName()), }, }, "emptyDir": { SchemaProps: spec.SchemaProps{ Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - Ref: ref("k8s.io/api/core/v1.EmptyDirVolumeSource"), + Ref: ref(corev1.EmptyDirVolumeSource{}.OpenAPIModelName()), }, }, "gcePersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Ref: ref(corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName()), }, }, "awsElasticBlockStore": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Ref: ref(corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName()), }, }, "gitRepo": { SchemaProps: spec.SchemaProps{ - Description: "gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", - Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), + Description: "gitRepo represents a git repository at a particular revision. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + Ref: ref(corev1.GitRepoVolumeSource{}.OpenAPIModelName()), }, }, "secret": { SchemaProps: spec.SchemaProps{ Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - Ref: ref("k8s.io/api/core/v1.SecretVolumeSource"), + Ref: ref(corev1.SecretVolumeSource{}.OpenAPIModelName()), }, }, "nfs": { SchemaProps: spec.SchemaProps{ Description: "nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), + Ref: ref(corev1.NFSVolumeSource{}.OpenAPIModelName()), }, }, "iscsi": { SchemaProps: spec.SchemaProps{ - Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md", - Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), + Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi", + Ref: ref(corev1.ISCSIVolumeSource{}.OpenAPIModelName()), }, }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md", - Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), + Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.", + Ref: ref(corev1.GlusterfsVolumeSource{}.OpenAPIModelName()), }, }, "persistentVolumeClaim": { SchemaProps: spec.SchemaProps{ Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource"), + Ref: ref(corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName()), }, }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", - Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.", + Ref: ref(corev1.RBDVolumeSource{}.OpenAPIModelName()), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", - Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", + Ref: ref(corev1.FlexVolumeSource{}.OpenAPIModelName()), }, }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Ref: ref(corev1.CinderVolumeSource{}.OpenAPIModelName()), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", + Ref: ref(corev1.CephFSVolumeSource{}.OpenAPIModelName()), }, }, "flocker": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", - Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), + Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", + Ref: ref(corev1.FlockerVolumeSource{}.OpenAPIModelName()), }, }, "downwardAPI": { SchemaProps: spec.SchemaProps{ Description: "downwardAPI represents downward API about the pod that should populate this volume", - Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeSource"), + Ref: ref(corev1.DownwardAPIVolumeSource{}.OpenAPIModelName()), }, }, "fc": { SchemaProps: spec.SchemaProps{ Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), + Ref: ref(corev1.FCVolumeSource{}.OpenAPIModelName()), }, }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", - Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", + Ref: ref(corev1.AzureFileVolumeSource{}.OpenAPIModelName()), }, }, "configMap": { SchemaProps: spec.SchemaProps{ Description: "configMap represents a configMap that should populate this volume", - Ref: ref("k8s.io/api/core/v1.ConfigMapVolumeSource"), + Ref: ref(corev1.ConfigMapVolumeSource{}.OpenAPIModelName()), }, }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", + Ref: ref(corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", + Ref: ref(corev1.QuobyteVolumeSource{}.OpenAPIModelName()), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", + Ref: ref(corev1.AzureDiskVolumeSource{}.OpenAPIModelName()), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", + Ref: ref(corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName()), }, }, "projected": { SchemaProps: spec.SchemaProps{ Description: "projected items for all in one resources secrets, configmaps, and downward API", - Ref: ref("k8s.io/api/core/v1.ProjectedVolumeSource"), + Ref: ref(corev1.ProjectedVolumeSource{}.OpenAPIModelName()), }, }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", - Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", + Ref: ref(corev1.PortworxVolumeSource{}.OpenAPIModelName()), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", + Ref: ref(corev1.ScaleIOVolumeSource{}.OpenAPIModelName()), }, }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", - Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), + Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.", + Ref: ref(corev1.StorageOSVolumeSource{}.OpenAPIModelName()), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", - Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), + Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.", + Ref: ref(corev1.CSIVolumeSource{}.OpenAPIModelName()), }, }, "ephemeral": { SchemaProps: spec.SchemaProps{ Description: "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time.", - Ref: ref("k8s.io/api/core/v1.EphemeralVolumeSource"), + Ref: ref(corev1.EphemeralVolumeSource{}.OpenAPIModelName()), }, }, "image": { SchemaProps: spec.SchemaProps{ - Description: "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", - Ref: ref("k8s.io/api/core/v1.ImageVolumeSource"), + Description: "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", + Ref: ref(corev1.ImageVolumeSource{}.OpenAPIModelName()), }, }, }, @@ -55910,7 +62625,7 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, }, Dependencies: []string{ - "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource", "k8s.io/api/core/v1.AzureDiskVolumeSource", "k8s.io/api/core/v1.AzureFileVolumeSource", "k8s.io/api/core/v1.CSIVolumeSource", "k8s.io/api/core/v1.CephFSVolumeSource", "k8s.io/api/core/v1.CinderVolumeSource", "k8s.io/api/core/v1.ConfigMapVolumeSource", "k8s.io/api/core/v1.DownwardAPIVolumeSource", "k8s.io/api/core/v1.EmptyDirVolumeSource", "k8s.io/api/core/v1.EphemeralVolumeSource", "k8s.io/api/core/v1.FCVolumeSource", "k8s.io/api/core/v1.FlexVolumeSource", "k8s.io/api/core/v1.FlockerVolumeSource", "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource", "k8s.io/api/core/v1.GitRepoVolumeSource", "k8s.io/api/core/v1.GlusterfsVolumeSource", "k8s.io/api/core/v1.HostPathVolumeSource", "k8s.io/api/core/v1.ISCSIVolumeSource", "k8s.io/api/core/v1.ImageVolumeSource", "k8s.io/api/core/v1.NFSVolumeSource", "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource", "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource", "k8s.io/api/core/v1.PortworxVolumeSource", "k8s.io/api/core/v1.ProjectedVolumeSource", "k8s.io/api/core/v1.QuobyteVolumeSource", "k8s.io/api/core/v1.RBDVolumeSource", "k8s.io/api/core/v1.ScaleIOVolumeSource", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.StorageOSVolumeSource", "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"}, + corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(), corev1.AzureDiskVolumeSource{}.OpenAPIModelName(), corev1.AzureFileVolumeSource{}.OpenAPIModelName(), corev1.CSIVolumeSource{}.OpenAPIModelName(), corev1.CephFSVolumeSource{}.OpenAPIModelName(), corev1.CinderVolumeSource{}.OpenAPIModelName(), corev1.ConfigMapVolumeSource{}.OpenAPIModelName(), corev1.DownwardAPIVolumeSource{}.OpenAPIModelName(), corev1.EmptyDirVolumeSource{}.OpenAPIModelName(), corev1.EphemeralVolumeSource{}.OpenAPIModelName(), corev1.FCVolumeSource{}.OpenAPIModelName(), corev1.FlexVolumeSource{}.OpenAPIModelName(), corev1.FlockerVolumeSource{}.OpenAPIModelName(), corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.GitRepoVolumeSource{}.OpenAPIModelName(), corev1.GlusterfsVolumeSource{}.OpenAPIModelName(), corev1.HostPathVolumeSource{}.OpenAPIModelName(), corev1.ISCSIVolumeSource{}.OpenAPIModelName(), corev1.ImageVolumeSource{}.OpenAPIModelName(), corev1.NFSVolumeSource{}.OpenAPIModelName(), corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName(), corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.PortworxVolumeSource{}.OpenAPIModelName(), corev1.ProjectedVolumeSource{}.OpenAPIModelName(), corev1.QuobyteVolumeSource{}.OpenAPIModelName(), corev1.RBDVolumeSource{}.OpenAPIModelName(), corev1.ScaleIOVolumeSource{}.OpenAPIModelName(), corev1.SecretVolumeSource{}.OpenAPIModelName(), corev1.StorageOSVolumeSource{}.OpenAPIModelName(), corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()}, } } @@ -56064,14 +62779,14 @@ func schema_k8sio_api_core_v1_VolumeNodeAffinity(ref common.ReferenceCallback) c "required": { SchemaProps: spec.SchemaProps{ Description: "required specifies hard node constraints that must be met.", - Ref: ref("k8s.io/api/core/v1.NodeSelector"), + Ref: ref(corev1.NodeSelector{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.NodeSelector"}, + corev1.NodeSelector{}.OpenAPIModelName()}, } } @@ -56085,38 +62800,44 @@ func schema_k8sio_api_core_v1_VolumeProjection(ref common.ReferenceCallback) com "secret": { SchemaProps: spec.SchemaProps{ Description: "secret information about the secret data to project", - Ref: ref("k8s.io/api/core/v1.SecretProjection"), + Ref: ref(corev1.SecretProjection{}.OpenAPIModelName()), }, }, "downwardAPI": { SchemaProps: spec.SchemaProps{ Description: "downwardAPI information about the downwardAPI data to project", - Ref: ref("k8s.io/api/core/v1.DownwardAPIProjection"), + Ref: ref(corev1.DownwardAPIProjection{}.OpenAPIModelName()), }, }, "configMap": { SchemaProps: spec.SchemaProps{ Description: "configMap information about the configMap data to project", - Ref: ref("k8s.io/api/core/v1.ConfigMapProjection"), + Ref: ref(corev1.ConfigMapProjection{}.OpenAPIModelName()), }, }, "serviceAccountToken": { SchemaProps: spec.SchemaProps{ Description: "serviceAccountToken is information about the serviceAccountToken data to project", - Ref: ref("k8s.io/api/core/v1.ServiceAccountTokenProjection"), + Ref: ref(corev1.ServiceAccountTokenProjection{}.OpenAPIModelName()), }, }, "clusterTrustBundle": { SchemaProps: spec.SchemaProps{ Description: "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time.", - Ref: ref("k8s.io/api/core/v1.ClusterTrustBundleProjection"), + Ref: ref(corev1.ClusterTrustBundleProjection{}.OpenAPIModelName()), + }, + }, + "podCertificate": { + SchemaProps: spec.SchemaProps{ + Description: "Projects an auto-rotating credential bundle (private key and certificate chain) that the pod can use either as a TLS client or server.\n\nKubelet generates a private key and uses it to send a PodCertificateRequest to the named signer. Once the signer approves the request and issues a certificate chain, Kubelet writes the key and certificate chain to the pod filesystem. The pod does not start until certificates have been issued for each podCertificate projected volume source in its spec.\n\nKubelet will begin trying to rotate the certificate at the time indicated by the signer using the PodCertificateRequest.Status.BeginRefreshAt timestamp.\n\nKubelet can write a single file, indicated by the credentialBundlePath field, or separate files, indicated by the keyPath and certificateChainPath fields.\n\nThe credential bundle is a single file in PEM format. The first PEM entry is the private key (in PKCS#8 format), and the remaining PEM entries are the certificate chain issued by the signer (typically, signers will return their certificate chain in leaf-to-root order).\n\nPrefer using the credential bundle format, since your application code can read it atomically. If you use keyPath and certificateChainPath, your application must make two separate file reads. If these coincide with a certificate rotation, it is possible that the private key and leaf certificate you read may not correspond to each other. Your application will need to check for this condition, and re-read until they are consistent.\n\nThe named signer controls chooses the format of the certificate it issues; consult the signer implementation's documentation to learn how to use the certificates it issues.", + Ref: ref(corev1.PodCertificateProjection{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "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"}, + corev1.ClusterTrustBundleProjection{}.OpenAPIModelName(), corev1.ConfigMapProjection{}.OpenAPIModelName(), corev1.DownwardAPIProjection{}.OpenAPIModelName(), corev1.PodCertificateProjection{}.OpenAPIModelName(), corev1.SecretProjection{}.OpenAPIModelName(), corev1.ServiceAccountTokenProjection{}.OpenAPIModelName()}, } } @@ -56135,7 +62856,7 @@ func schema_k8sio_api_core_v1_VolumeResourceRequirements(ref common.ReferenceCal Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -56149,7 +62870,7 @@ func schema_k8sio_api_core_v1_VolumeResourceRequirements(ref common.ReferenceCal Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -56159,7 +62880,7 @@ func schema_k8sio_api_core_v1_VolumeResourceRequirements(ref common.ReferenceCal }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -56173,188 +62894,188 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. "hostPath": { SchemaProps: spec.SchemaProps{ Description: "hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), + Ref: ref(corev1.HostPathVolumeSource{}.OpenAPIModelName()), }, }, "emptyDir": { SchemaProps: spec.SchemaProps{ Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - Ref: ref("k8s.io/api/core/v1.EmptyDirVolumeSource"), + Ref: ref(corev1.EmptyDirVolumeSource{}.OpenAPIModelName()), }, }, "gcePersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Ref: ref(corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName()), }, }, "awsElasticBlockStore": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Ref: ref(corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName()), }, }, "gitRepo": { SchemaProps: spec.SchemaProps{ - Description: "gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", - Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), + Description: "gitRepo represents a git repository at a particular revision. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + Ref: ref(corev1.GitRepoVolumeSource{}.OpenAPIModelName()), }, }, "secret": { SchemaProps: spec.SchemaProps{ Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - Ref: ref("k8s.io/api/core/v1.SecretVolumeSource"), + Ref: ref(corev1.SecretVolumeSource{}.OpenAPIModelName()), }, }, "nfs": { SchemaProps: spec.SchemaProps{ Description: "nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), + Ref: ref(corev1.NFSVolumeSource{}.OpenAPIModelName()), }, }, "iscsi": { SchemaProps: spec.SchemaProps{ - Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md", - Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), + Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi", + Ref: ref(corev1.ISCSIVolumeSource{}.OpenAPIModelName()), }, }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md", - Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), + Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.", + Ref: ref(corev1.GlusterfsVolumeSource{}.OpenAPIModelName()), }, }, "persistentVolumeClaim": { SchemaProps: spec.SchemaProps{ Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource"), + Ref: ref(corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName()), }, }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", - Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.", + Ref: ref(corev1.RBDVolumeSource{}.OpenAPIModelName()), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", - Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", + Ref: ref(corev1.FlexVolumeSource{}.OpenAPIModelName()), }, }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Ref: ref(corev1.CinderVolumeSource{}.OpenAPIModelName()), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", + Ref: ref(corev1.CephFSVolumeSource{}.OpenAPIModelName()), }, }, "flocker": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", - Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), + Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", + Ref: ref(corev1.FlockerVolumeSource{}.OpenAPIModelName()), }, }, "downwardAPI": { SchemaProps: spec.SchemaProps{ Description: "downwardAPI represents downward API about the pod that should populate this volume", - Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeSource"), + Ref: ref(corev1.DownwardAPIVolumeSource{}.OpenAPIModelName()), }, }, "fc": { SchemaProps: spec.SchemaProps{ Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), + Ref: ref(corev1.FCVolumeSource{}.OpenAPIModelName()), }, }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", - Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", + Ref: ref(corev1.AzureFileVolumeSource{}.OpenAPIModelName()), }, }, "configMap": { SchemaProps: spec.SchemaProps{ Description: "configMap represents a configMap that should populate this volume", - Ref: ref("k8s.io/api/core/v1.ConfigMapVolumeSource"), + Ref: ref(corev1.ConfigMapVolumeSource{}.OpenAPIModelName()), }, }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", + Ref: ref(corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", + Ref: ref(corev1.QuobyteVolumeSource{}.OpenAPIModelName()), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", + Ref: ref(corev1.AzureDiskVolumeSource{}.OpenAPIModelName()), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", + Ref: ref(corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName()), }, }, "projected": { SchemaProps: spec.SchemaProps{ Description: "projected items for all in one resources secrets, configmaps, and downward API", - Ref: ref("k8s.io/api/core/v1.ProjectedVolumeSource"), + Ref: ref(corev1.ProjectedVolumeSource{}.OpenAPIModelName()), }, }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", - Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", + Ref: ref(corev1.PortworxVolumeSource{}.OpenAPIModelName()), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", + Ref: ref(corev1.ScaleIOVolumeSource{}.OpenAPIModelName()), }, }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", - Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), + Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.", + Ref: ref(corev1.StorageOSVolumeSource{}.OpenAPIModelName()), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", - Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), + Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.", + Ref: ref(corev1.CSIVolumeSource{}.OpenAPIModelName()), }, }, "ephemeral": { SchemaProps: spec.SchemaProps{ Description: "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time.", - Ref: ref("k8s.io/api/core/v1.EphemeralVolumeSource"), + Ref: ref(corev1.EphemeralVolumeSource{}.OpenAPIModelName()), }, }, "image": { SchemaProps: spec.SchemaProps{ - Description: "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", - Ref: ref("k8s.io/api/core/v1.ImageVolumeSource"), + Description: "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", + Ref: ref(corev1.ImageVolumeSource{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource", "k8s.io/api/core/v1.AzureDiskVolumeSource", "k8s.io/api/core/v1.AzureFileVolumeSource", "k8s.io/api/core/v1.CSIVolumeSource", "k8s.io/api/core/v1.CephFSVolumeSource", "k8s.io/api/core/v1.CinderVolumeSource", "k8s.io/api/core/v1.ConfigMapVolumeSource", "k8s.io/api/core/v1.DownwardAPIVolumeSource", "k8s.io/api/core/v1.EmptyDirVolumeSource", "k8s.io/api/core/v1.EphemeralVolumeSource", "k8s.io/api/core/v1.FCVolumeSource", "k8s.io/api/core/v1.FlexVolumeSource", "k8s.io/api/core/v1.FlockerVolumeSource", "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource", "k8s.io/api/core/v1.GitRepoVolumeSource", "k8s.io/api/core/v1.GlusterfsVolumeSource", "k8s.io/api/core/v1.HostPathVolumeSource", "k8s.io/api/core/v1.ISCSIVolumeSource", "k8s.io/api/core/v1.ImageVolumeSource", "k8s.io/api/core/v1.NFSVolumeSource", "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource", "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource", "k8s.io/api/core/v1.PortworxVolumeSource", "k8s.io/api/core/v1.ProjectedVolumeSource", "k8s.io/api/core/v1.QuobyteVolumeSource", "k8s.io/api/core/v1.RBDVolumeSource", "k8s.io/api/core/v1.ScaleIOVolumeSource", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.StorageOSVolumeSource", "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"}, + corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(), corev1.AzureDiskVolumeSource{}.OpenAPIModelName(), corev1.AzureFileVolumeSource{}.OpenAPIModelName(), corev1.CSIVolumeSource{}.OpenAPIModelName(), corev1.CephFSVolumeSource{}.OpenAPIModelName(), corev1.CinderVolumeSource{}.OpenAPIModelName(), corev1.ConfigMapVolumeSource{}.OpenAPIModelName(), corev1.DownwardAPIVolumeSource{}.OpenAPIModelName(), corev1.EmptyDirVolumeSource{}.OpenAPIModelName(), corev1.EphemeralVolumeSource{}.OpenAPIModelName(), corev1.FCVolumeSource{}.OpenAPIModelName(), corev1.FlexVolumeSource{}.OpenAPIModelName(), corev1.FlockerVolumeSource{}.OpenAPIModelName(), corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.GitRepoVolumeSource{}.OpenAPIModelName(), corev1.GlusterfsVolumeSource{}.OpenAPIModelName(), corev1.HostPathVolumeSource{}.OpenAPIModelName(), corev1.ISCSIVolumeSource{}.OpenAPIModelName(), corev1.ImageVolumeSource{}.OpenAPIModelName(), corev1.NFSVolumeSource{}.OpenAPIModelName(), corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName(), corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.PortworxVolumeSource{}.OpenAPIModelName(), corev1.ProjectedVolumeSource{}.OpenAPIModelName(), corev1.QuobyteVolumeSource{}.OpenAPIModelName(), corev1.RBDVolumeSource{}.OpenAPIModelName(), corev1.ScaleIOVolumeSource{}.OpenAPIModelName(), corev1.SecretVolumeSource{}.OpenAPIModelName(), corev1.StorageOSVolumeSource{}.OpenAPIModelName(), corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()}, } } @@ -56420,7 +63141,7 @@ func schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref common.ReferenceCallba SchemaProps: spec.SchemaProps{ Description: "Required. A pod affinity term, associated with the corresponding weight.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), + Ref: ref(corev1.PodAffinityTerm{}.OpenAPIModelName()), }, }, }, @@ -56428,7 +63149,7 @@ func schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodAffinityTerm"}, + corev1.PodAffinityTerm{}.OpenAPIModelName()}, } } @@ -56473,6 +63194,43 @@ func schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref common.Reference } } +func schema_k8sio_api_core_v1_WorkloadReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "podGroup": { + SchemaProps: spec.SchemaProps{ + Description: "PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "podGroupReplicaKey": { + SchemaProps: spec.SchemaProps{ + Description: "PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "podGroup"}, + }, + }, + } +} + func schema_k8sio_api_events_v1beta1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -56498,19 +63256,19 @@ func schema_k8sio_api_events_v1beta1_Event(ref common.ReferenceCallback) common. 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "eventTime": { SchemaProps: spec.SchemaProps{ Description: "eventTime is the time when this Event was first observed. It is required.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), }, }, "series": { SchemaProps: spec.SchemaProps{ Description: "series is data about the Event series this event represents or nil if it's a singleton Event.", - Ref: ref("k8s.io/api/events/v1beta1.EventSeries"), + Ref: ref(eventsv1beta1.EventSeries{}.OpenAPIModelName()), }, }, "reportingController": { @@ -56545,13 +63303,13 @@ func schema_k8sio_api_events_v1beta1_Event(ref common.ReferenceCallback) common. SchemaProps: spec.SchemaProps{ Description: "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ObjectReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, "related": { SchemaProps: spec.SchemaProps{ Description: "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.", - Ref: ref("k8s.io/api/core/v1.ObjectReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, "note": { @@ -56572,19 +63330,19 @@ func schema_k8sio_api_events_v1beta1_Event(ref common.ReferenceCallback) common. SchemaProps: spec.SchemaProps{ Description: "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EventSource"), + Ref: ref(corev1.EventSource{}.OpenAPIModelName()), }, }, "deprecatedFirstTimestamp": { SchemaProps: spec.SchemaProps{ Description: "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "deprecatedLastTimestamp": { SchemaProps: spec.SchemaProps{ Description: "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "deprecatedCount": { @@ -56599,7 +63357,7 @@ func schema_k8sio_api_events_v1beta1_Event(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "k8s.io/api/core/v1.EventSource", "k8s.io/api/core/v1.ObjectReference", "k8s.io/api/events/v1beta1.EventSeries", "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + corev1.EventSource{}.OpenAPIModelName(), corev1.ObjectReference{}.OpenAPIModelName(), eventsv1beta1.EventSeries{}.OpenAPIModelName(), metav1.MicroTime{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -56628,7 +63386,7 @@ func schema_k8sio_api_events_v1beta1_EventList(ref common.ReferenceCallback) com 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -56639,7 +63397,7 @@ func schema_k8sio_api_events_v1beta1_EventList(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/events/v1beta1.Event"), + Ref: ref(eventsv1beta1.Event{}.OpenAPIModelName()), }, }, }, @@ -56650,7 +63408,7 @@ func schema_k8sio_api_events_v1beta1_EventList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "k8s.io/api/events/v1beta1.Event", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + eventsv1beta1.Event{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -56672,7 +63430,7 @@ func schema_k8sio_api_events_v1beta1_EventSeries(ref common.ReferenceCallback) c "lastObservedTime": { SchemaProps: spec.SchemaProps{ Description: "lastObservedTime is the time when last Event from the series was seen before last heartbeat.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), }, }, }, @@ -56680,7 +63438,7 @@ func schema_k8sio_api_events_v1beta1_EventSeries(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, + metav1.MicroTime{}.OpenAPIModelName()}, } } @@ -56709,28 +63467,28 @@ func schema_k8sio_api_extensions_v1beta1_DaemonSet(ref common.ReferenceCallback) 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.DaemonSetSpec"), + Ref: ref(extensionsv1beta1.DaemonSetSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.DaemonSetStatus"), + Ref: ref(extensionsv1beta1.DaemonSetStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.DaemonSetSpec", "k8s.io/api/extensions/v1beta1.DaemonSetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + extensionsv1beta1.DaemonSetSpec{}.OpenAPIModelName(), extensionsv1beta1.DaemonSetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -56760,7 +63518,7 @@ func schema_k8sio_api_extensions_v1beta1_DaemonSetCondition(ref common.Reference "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -56782,7 +63540,7 @@ func schema_k8sio_api_extensions_v1beta1_DaemonSetCondition(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -56811,7 +63569,7 @@ func schema_k8sio_api_extensions_v1beta1_DaemonSetList(ref common.ReferenceCallb 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -56822,7 +63580,7 @@ func schema_k8sio_api_extensions_v1beta1_DaemonSetList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.DaemonSet"), + Ref: ref(extensionsv1beta1.DaemonSet{}.OpenAPIModelName()), }, }, }, @@ -56833,7 +63591,7 @@ func schema_k8sio_api_extensions_v1beta1_DaemonSetList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.DaemonSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + extensionsv1beta1.DaemonSet{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -56847,21 +63605,21 @@ func schema_k8sio_api_extensions_v1beta1_DaemonSetSpec(ref common.ReferenceCallb "selector": { SchemaProps: spec.SchemaProps{ Description: "A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, "updateStrategy": { SchemaProps: spec.SchemaProps{ Description: "An update strategy to replace existing DaemonSet pods with new pods.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.DaemonSetUpdateStrategy"), + Ref: ref(extensionsv1beta1.DaemonSetUpdateStrategy{}.OpenAPIModelName()), }, }, "minReadySeconds": { @@ -56890,7 +63648,7 @@ func schema_k8sio_api_extensions_v1beta1_DaemonSetSpec(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/api/extensions/v1beta1.DaemonSetUpdateStrategy", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + corev1.PodTemplateSpec{}.OpenAPIModelName(), extensionsv1beta1.DaemonSetUpdateStrategy{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -56986,7 +63744,7 @@ func schema_k8sio_api_extensions_v1beta1_DaemonSetStatus(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.DaemonSetCondition"), + Ref: ref(extensionsv1beta1.DaemonSetCondition{}.OpenAPIModelName()), }, }, }, @@ -56997,7 +63755,7 @@ func schema_k8sio_api_extensions_v1beta1_DaemonSetStatus(ref common.ReferenceCal }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.DaemonSetCondition"}, + extensionsv1beta1.DaemonSetCondition{}.OpenAPIModelName()}, } } @@ -57018,14 +63776,14 @@ func schema_k8sio_api_extensions_v1beta1_DaemonSetUpdateStrategy(ref common.Refe "rollingUpdate": { SchemaProps: spec.SchemaProps{ Description: "Rolling update config params. Present only if type = \"RollingUpdate\".", - Ref: ref("k8s.io/api/extensions/v1beta1.RollingUpdateDaemonSet"), + Ref: ref(extensionsv1beta1.RollingUpdateDaemonSet{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.RollingUpdateDaemonSet"}, + extensionsv1beta1.RollingUpdateDaemonSet{}.OpenAPIModelName()}, } } @@ -57054,28 +63812,28 @@ func schema_k8sio_api_extensions_v1beta1_Deployment(ref common.ReferenceCallback SchemaProps: spec.SchemaProps{ Description: "Standard object metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the Deployment.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.DeploymentSpec"), + Ref: ref(extensionsv1beta1.DeploymentSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Most recently observed status of the Deployment.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.DeploymentStatus"), + Ref: ref(extensionsv1beta1.DeploymentStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.DeploymentSpec", "k8s.io/api/extensions/v1beta1.DeploymentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + extensionsv1beta1.DeploymentSpec{}.OpenAPIModelName(), extensionsv1beta1.DeploymentStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -57105,13 +63863,13 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentCondition(ref common.Referenc "lastUpdateTime": { SchemaProps: spec.SchemaProps{ Description: "The last time this condition was updated.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "Last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -57133,7 +63891,7 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentCondition(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -57162,7 +63920,7 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentList(ref common.ReferenceCall SchemaProps: spec.SchemaProps{ Description: "Standard list metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -57173,7 +63931,7 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.Deployment"), + Ref: ref(extensionsv1beta1.Deployment{}.OpenAPIModelName()), }, }, }, @@ -57184,7 +63942,7 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentList(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.Deployment", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + extensionsv1beta1.Deployment{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -57237,7 +63995,7 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentRollback(ref common.Reference SchemaProps: spec.SchemaProps{ Description: "The config of this deployment rollback.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.RollbackConfig"), + Ref: ref(extensionsv1beta1.RollbackConfig{}.OpenAPIModelName()), }, }, }, @@ -57245,7 +64003,7 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentRollback(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.RollbackConfig"}, + extensionsv1beta1.RollbackConfig{}.OpenAPIModelName()}, } } @@ -57266,14 +64024,14 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentSpec(ref common.ReferenceCall "selector": { SchemaProps: spec.SchemaProps{ Description: "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ Description: "Template describes the pods that will be created.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, "strategy": { @@ -57285,7 +64043,7 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentSpec(ref common.ReferenceCall SchemaProps: spec.SchemaProps{ Description: "The deployment strategy to use to replace existing pods with new ones.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.DeploymentStrategy"), + Ref: ref(extensionsv1beta1.DeploymentStrategy{}.OpenAPIModelName()), }, }, "minReadySeconds": { @@ -57312,7 +64070,7 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentSpec(ref common.ReferenceCall "rollbackTo": { SchemaProps: spec.SchemaProps{ Description: "DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.", - Ref: ref("k8s.io/api/extensions/v1beta1.RollbackConfig"), + Ref: ref(extensionsv1beta1.RollbackConfig{}.OpenAPIModelName()), }, }, "progressDeadlineSeconds": { @@ -57327,7 +64085,7 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentSpec(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/api/extensions/v1beta1.DeploymentStrategy", "k8s.io/api/extensions/v1beta1.RollbackConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + corev1.PodTemplateSpec{}.OpenAPIModelName(), extensionsv1beta1.DeploymentStrategy{}.OpenAPIModelName(), extensionsv1beta1.RollbackConfig{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -57347,28 +64105,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 +64138,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 a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).", + Type: []string{"integer"}, + Format: "int32", + }, + }, "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -57398,7 +64163,7 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentStatus(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.DeploymentCondition"), + Ref: ref(extensionsv1beta1.DeploymentCondition{}.OpenAPIModelName()), }, }, }, @@ -57415,7 +64180,7 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentStatus(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.DeploymentCondition"}, + extensionsv1beta1.DeploymentCondition{}.OpenAPIModelName()}, } } @@ -57436,14 +64201,14 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentStrategy(ref common.Reference "rollingUpdate": { SchemaProps: spec.SchemaProps{ Description: "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - Ref: ref("k8s.io/api/extensions/v1beta1.RollingUpdateDeployment"), + Ref: ref(extensionsv1beta1.RollingUpdateDeployment{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.RollingUpdateDeployment"}, + extensionsv1beta1.RollingUpdateDeployment{}.OpenAPIModelName()}, } } @@ -57472,7 +64237,7 @@ func schema_k8sio_api_extensions_v1beta1_HTTPIngressPath(ref common.ReferenceCal SchemaProps: spec.SchemaProps{ Description: "Backend defines the referenced service endpoint to which the traffic will be forwarded to.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.IngressBackend"), + Ref: ref(extensionsv1beta1.IngressBackend{}.OpenAPIModelName()), }, }, }, @@ -57480,7 +64245,7 @@ func schema_k8sio_api_extensions_v1beta1_HTTPIngressPath(ref common.ReferenceCal }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.IngressBackend"}, + extensionsv1beta1.IngressBackend{}.OpenAPIModelName()}, } } @@ -57504,7 +64269,7 @@ func schema_k8sio_api_extensions_v1beta1_HTTPIngressRuleValue(ref common.Referen Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.HTTPIngressPath"), + Ref: ref(extensionsv1beta1.HTTPIngressPath{}.OpenAPIModelName()), }, }, }, @@ -57515,7 +64280,7 @@ func schema_k8sio_api_extensions_v1beta1_HTTPIngressRuleValue(ref common.Referen }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.HTTPIngressPath"}, + extensionsv1beta1.HTTPIngressPath{}.OpenAPIModelName()}, } } @@ -57586,28 +64351,28 @@ func schema_k8sio_api_extensions_v1beta1_Ingress(ref common.ReferenceCallback) c 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.IngressSpec"), + Ref: ref(extensionsv1beta1.IngressSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.IngressStatus"), + Ref: ref(extensionsv1beta1.IngressStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.IngressSpec", "k8s.io/api/extensions/v1beta1.IngressStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + extensionsv1beta1.IngressSpec{}.OpenAPIModelName(), extensionsv1beta1.IngressStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -57628,20 +64393,20 @@ func schema_k8sio_api_extensions_v1beta1_IngressBackend(ref common.ReferenceCall "servicePort": { SchemaProps: spec.SchemaProps{ Description: "Specifies the port of the referenced service.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "resource": { SchemaProps: spec.SchemaProps{ Description: "Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified.", - Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + Ref: ref(corev1.TypedLocalObjectReference{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + corev1.TypedLocalObjectReference{}.OpenAPIModelName(), intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -57670,7 +64435,7 @@ func schema_k8sio_api_extensions_v1beta1_IngressList(ref common.ReferenceCallbac 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -57681,7 +64446,7 @@ func schema_k8sio_api_extensions_v1beta1_IngressList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.Ingress"), + Ref: ref(extensionsv1beta1.Ingress{}.OpenAPIModelName()), }, }, }, @@ -57692,7 +64457,7 @@ func schema_k8sio_api_extensions_v1beta1_IngressList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.Ingress", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + extensionsv1beta1.Ingress{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -57730,7 +64495,7 @@ func schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerIngress(ref common.R Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.IngressPortStatus"), + Ref: ref(extensionsv1beta1.IngressPortStatus{}.OpenAPIModelName()), }, }, }, @@ -57740,7 +64505,7 @@ func schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerIngress(ref common.R }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.IngressPortStatus"}, + extensionsv1beta1.IngressPortStatus{}.OpenAPIModelName()}, } } @@ -57764,7 +64529,7 @@ func schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerStatus(ref common.Re Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.IngressLoadBalancerIngress"), + Ref: ref(extensionsv1beta1.IngressLoadBalancerIngress{}.OpenAPIModelName()), }, }, }, @@ -57774,7 +64539,7 @@ func schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerStatus(ref common.Re }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.IngressLoadBalancerIngress"}, + extensionsv1beta1.IngressLoadBalancerIngress{}.OpenAPIModelName()}, } } @@ -57833,14 +64598,14 @@ func schema_k8sio_api_extensions_v1beta1_IngressRule(ref common.ReferenceCallbac "http": { SchemaProps: spec.SchemaProps{ Description: "http is a list of http selectors pointing to backends. A path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. A backend defines the referenced service endpoint to which the traffic will be forwarded to.", - Ref: ref("k8s.io/api/extensions/v1beta1.HTTPIngressRuleValue"), + Ref: ref(extensionsv1beta1.HTTPIngressRuleValue{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.HTTPIngressRuleValue"}, + extensionsv1beta1.HTTPIngressRuleValue{}.OpenAPIModelName()}, } } @@ -57854,14 +64619,14 @@ func schema_k8sio_api_extensions_v1beta1_IngressRuleValue(ref common.ReferenceCa "http": { SchemaProps: spec.SchemaProps{ Description: "http is a list of http selectors pointing to backends. A path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. A backend defines the referenced service endpoint to which the traffic will be forwarded to.", - Ref: ref("k8s.io/api/extensions/v1beta1.HTTPIngressRuleValue"), + Ref: ref(extensionsv1beta1.HTTPIngressRuleValue{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.HTTPIngressRuleValue"}, + extensionsv1beta1.HTTPIngressRuleValue{}.OpenAPIModelName()}, } } @@ -57882,7 +64647,7 @@ func schema_k8sio_api_extensions_v1beta1_IngressSpec(ref common.ReferenceCallbac "backend": { SchemaProps: spec.SchemaProps{ Description: "A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.", - Ref: ref("k8s.io/api/extensions/v1beta1.IngressBackend"), + Ref: ref(extensionsv1beta1.IngressBackend{}.OpenAPIModelName()), }, }, "tls": { @@ -57898,7 +64663,7 @@ func schema_k8sio_api_extensions_v1beta1_IngressSpec(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.IngressTLS"), + Ref: ref(extensionsv1beta1.IngressTLS{}.OpenAPIModelName()), }, }, }, @@ -57917,7 +64682,7 @@ func schema_k8sio_api_extensions_v1beta1_IngressSpec(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.IngressRule"), + Ref: ref(extensionsv1beta1.IngressRule{}.OpenAPIModelName()), }, }, }, @@ -57927,7 +64692,7 @@ func schema_k8sio_api_extensions_v1beta1_IngressSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.IngressBackend", "k8s.io/api/extensions/v1beta1.IngressRule", "k8s.io/api/extensions/v1beta1.IngressTLS"}, + extensionsv1beta1.IngressBackend{}.OpenAPIModelName(), extensionsv1beta1.IngressRule{}.OpenAPIModelName(), extensionsv1beta1.IngressTLS{}.OpenAPIModelName()}, } } @@ -57942,14 +64707,14 @@ func schema_k8sio_api_extensions_v1beta1_IngressStatus(ref common.ReferenceCallb SchemaProps: spec.SchemaProps{ Description: "LoadBalancer contains the current status of the load-balancer.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.IngressLoadBalancerStatus"), + Ref: ref(extensionsv1beta1.IngressLoadBalancerStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.IngressLoadBalancerStatus"}, + extensionsv1beta1.IngressLoadBalancerStatus{}.OpenAPIModelName()}, } } @@ -58018,21 +64783,21 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicy(ref common.ReferenceCallb 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior for this NetworkPolicy.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.NetworkPolicySpec"), + Ref: ref(extensionsv1beta1.NetworkPolicySpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.NetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + extensionsv1beta1.NetworkPolicySpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -58056,7 +64821,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicyEgressRule(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.NetworkPolicyPort"), + Ref: ref(extensionsv1beta1.NetworkPolicyPort{}.OpenAPIModelName()), }, }, }, @@ -58075,7 +64840,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicyEgressRule(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.NetworkPolicyPeer"), + Ref: ref(extensionsv1beta1.NetworkPolicyPeer{}.OpenAPIModelName()), }, }, }, @@ -58085,7 +64850,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicyEgressRule(ref common.Refe }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.NetworkPolicyPeer", "k8s.io/api/extensions/v1beta1.NetworkPolicyPort"}, + extensionsv1beta1.NetworkPolicyPeer{}.OpenAPIModelName(), extensionsv1beta1.NetworkPolicyPort{}.OpenAPIModelName()}, } } @@ -58109,7 +64874,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicyIngressRule(ref common.Ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.NetworkPolicyPort"), + Ref: ref(extensionsv1beta1.NetworkPolicyPort{}.OpenAPIModelName()), }, }, }, @@ -58128,7 +64893,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicyIngressRule(ref common.Ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.NetworkPolicyPeer"), + Ref: ref(extensionsv1beta1.NetworkPolicyPeer{}.OpenAPIModelName()), }, }, }, @@ -58138,7 +64903,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicyIngressRule(ref common.Ref }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.NetworkPolicyPeer", "k8s.io/api/extensions/v1beta1.NetworkPolicyPort"}, + extensionsv1beta1.NetworkPolicyPeer{}.OpenAPIModelName(), extensionsv1beta1.NetworkPolicyPort{}.OpenAPIModelName()}, } } @@ -58167,7 +64932,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicyList(ref common.ReferenceC 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -58178,7 +64943,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicyList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.NetworkPolicy"), + Ref: ref(extensionsv1beta1.NetworkPolicy{}.OpenAPIModelName()), }, }, }, @@ -58189,7 +64954,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicyList(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.NetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + extensionsv1beta1.NetworkPolicy{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -58203,26 +64968,26 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicyPeer(ref common.ReferenceC "podSelector": { SchemaProps: spec.SchemaProps{ Description: "This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "namespaceSelector": { SchemaProps: spec.SchemaProps{ Description: "Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "ipBlock": { SchemaProps: spec.SchemaProps{ Description: "IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.", - Ref: ref("k8s.io/api/extensions/v1beta1.IPBlock"), + Ref: ref(extensionsv1beta1.IPBlock{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.IPBlock", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + extensionsv1beta1.IPBlock{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -58244,7 +65009,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicyPort(ref common.ReferenceC "port": { SchemaProps: spec.SchemaProps{ Description: "The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "endPort": { @@ -58258,7 +65023,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicyPort(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -58273,7 +65038,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicySpec(ref common.ReferenceC SchemaProps: spec.SchemaProps{ Description: "Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "ingress": { @@ -58289,7 +65054,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicySpec(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.NetworkPolicyIngressRule"), + Ref: ref(extensionsv1beta1.NetworkPolicyIngressRule{}.OpenAPIModelName()), }, }, }, @@ -58308,7 +65073,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicySpec(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.NetworkPolicyEgressRule"), + Ref: ref(extensionsv1beta1.NetworkPolicyEgressRule{}.OpenAPIModelName()), }, }, }, @@ -58339,7 +65104,7 @@ func schema_k8sio_api_extensions_v1beta1_NetworkPolicySpec(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.NetworkPolicyEgressRule", "k8s.io/api/extensions/v1beta1.NetworkPolicyIngressRule", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + extensionsv1beta1.NetworkPolicyEgressRule{}.OpenAPIModelName(), extensionsv1beta1.NetworkPolicyIngressRule{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -58368,28 +65133,28 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSet(ref common.ReferenceCallback SchemaProps: spec.SchemaProps{ Description: "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.ReplicaSetSpec"), + Ref: ref(extensionsv1beta1.ReplicaSetSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.ReplicaSetStatus"), + Ref: ref(extensionsv1beta1.ReplicaSetStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.ReplicaSetSpec", "k8s.io/api/extensions/v1beta1.ReplicaSetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + extensionsv1beta1.ReplicaSetSpec{}.OpenAPIModelName(), extensionsv1beta1.ReplicaSetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -58419,7 +65184,7 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetCondition(ref common.Referenc "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "The last time the condition transitioned from one status to another.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -58441,7 +65206,7 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetCondition(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -58470,18 +65235,18 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetList(ref common.ReferenceCall 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "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{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.ReplicaSet"), + Ref: ref(extensionsv1beta1.ReplicaSet{}.OpenAPIModelName()), }, }, }, @@ -58492,7 +65257,7 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetList(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.ReplicaSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + extensionsv1beta1.ReplicaSet{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -58505,7 +65270,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", }, @@ -58520,21 +65285,21 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetSpec(ref common.ReferenceCall "selector": { SchemaProps: spec.SchemaProps{ Description: "Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "template": { SchemaProps: spec.SchemaProps{ - Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/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"), + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -58547,7 +65312,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 +65320,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 a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).", Type: []string{"integer"}, Format: "int32", }, @@ -58599,7 +65371,7 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetStatus(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.ReplicaSetCondition"), + Ref: ref(extensionsv1beta1.ReplicaSetCondition{}.OpenAPIModelName()), }, }, }, @@ -58610,7 +65382,7 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetStatus(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.ReplicaSetCondition"}, + extensionsv1beta1.ReplicaSetCondition{}.OpenAPIModelName()}, } } @@ -58644,20 +65416,20 @@ func schema_k8sio_api_extensions_v1beta1_RollingUpdateDaemonSet(ref common.Refer "maxUnavailable": { SchemaProps: spec.SchemaProps{ Description: "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "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.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + 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(intstr.IntOrString{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -58671,20 +65443,20 @@ func schema_k8sio_api_extensions_v1beta1_RollingUpdateDeployment(ref common.Refe "maxUnavailable": { SchemaProps: spec.SchemaProps{ Description: "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "maxSurge": { SchemaProps: spec.SchemaProps{ Description: "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -58713,28 +65485,28 @@ func schema_k8sio_api_extensions_v1beta1_Scale(ref common.ReferenceCallback) com 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "defines the behavior of the scale. 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/extensions/v1beta1.ScaleSpec"), + Ref: ref(extensionsv1beta1.ScaleSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/extensions/v1beta1.ScaleStatus"), + Ref: ref(extensionsv1beta1.ScaleStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/extensions/v1beta1.ScaleSpec", "k8s.io/api/extensions/v1beta1.ScaleStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + extensionsv1beta1.ScaleSpec{}.OpenAPIModelName(), extensionsv1beta1.ScaleStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -58748,6 +65520,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", }, @@ -58834,7 +65607,7 @@ func schema_k8sio_api_networking_v1_HTTPIngressPath(ref common.ReferenceCallback SchemaProps: spec.SchemaProps{ Description: "backend defines the referenced service endpoint to which the traffic will be forwarded to.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.IngressBackend"), + Ref: ref(networkingv1.IngressBackend{}.OpenAPIModelName()), }, }, }, @@ -58842,7 +65615,7 @@ func schema_k8sio_api_networking_v1_HTTPIngressPath(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.IngressBackend"}, + networkingv1.IngressBackend{}.OpenAPIModelName()}, } } @@ -58866,7 +65639,7 @@ func schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.HTTPIngressPath"), + Ref: ref(networkingv1.HTTPIngressPath{}.OpenAPIModelName()), }, }, }, @@ -58877,7 +65650,123 @@ func schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref common.ReferenceCal }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.HTTPIngressPath"}, + networkingv1.HTTPIngressPath{}.OpenAPIModelName()}, + } +} + +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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "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(networkingv1.IPAddressSpec{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + networkingv1.IPAddressSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "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(networkingv1.IPAddress{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + networkingv1.IPAddress{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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(networkingv1.ParentReference{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"parentRef"}, + }, + }, + Dependencies: []string{ + networkingv1.ParentReference{}.OpenAPIModelName()}, } } @@ -58948,28 +65837,28 @@ func schema_k8sio_api_networking_v1_Ingress(ref common.ReferenceCallback) common 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.IngressSpec"), + Ref: ref(networkingv1.IngressSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.IngressStatus"), + Ref: ref(networkingv1.IngressStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.IngressSpec", "k8s.io/api/networking/v1.IngressStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + networkingv1.IngressSpec{}.OpenAPIModelName(), networkingv1.IngressStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -58983,20 +65872,20 @@ func schema_k8sio_api_networking_v1_IngressBackend(ref common.ReferenceCallback) "service": { SchemaProps: spec.SchemaProps{ Description: "service references a service as a backend. This is a mutually exclusive setting with \"Resource\".", - Ref: ref("k8s.io/api/networking/v1.IngressServiceBackend"), + Ref: ref(networkingv1.IngressServiceBackend{}.OpenAPIModelName()), }, }, "resource": { SchemaProps: spec.SchemaProps{ Description: "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\".", - Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + Ref: ref(corev1.TypedLocalObjectReference{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/api/networking/v1.IngressServiceBackend"}, + corev1.TypedLocalObjectReference{}.OpenAPIModelName(), networkingv1.IngressServiceBackend{}.OpenAPIModelName()}, } } @@ -59025,21 +65914,21 @@ func schema_k8sio_api_networking_v1_IngressClass(ref common.ReferenceCallback) c 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.IngressClassSpec"), + Ref: ref(networkingv1.IngressClassSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.IngressClassSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + networkingv1.IngressClassSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -59068,7 +65957,7 @@ func schema_k8sio_api_networking_v1_IngressClassList(ref common.ReferenceCallbac SchemaProps: spec.SchemaProps{ Description: "Standard list metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -59079,7 +65968,7 @@ func schema_k8sio_api_networking_v1_IngressClassList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.IngressClass"), + Ref: ref(networkingv1.IngressClass{}.OpenAPIModelName()), }, }, }, @@ -59090,7 +65979,7 @@ func schema_k8sio_api_networking_v1_IngressClassList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.IngressClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + networkingv1.IngressClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -59162,14 +66051,14 @@ func schema_k8sio_api_networking_v1_IngressClassSpec(ref common.ReferenceCallbac "parameters": { SchemaProps: spec.SchemaProps{ Description: "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters.", - Ref: ref("k8s.io/api/networking/v1.IngressClassParametersReference"), + Ref: ref(networkingv1.IngressClassParametersReference{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.IngressClassParametersReference"}, + networkingv1.IngressClassParametersReference{}.OpenAPIModelName()}, } } @@ -59198,7 +66087,7 @@ func schema_k8sio_api_networking_v1_IngressList(ref common.ReferenceCallback) co 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -59209,7 +66098,7 @@ func schema_k8sio_api_networking_v1_IngressList(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.Ingress"), + Ref: ref(networkingv1.Ingress{}.OpenAPIModelName()), }, }, }, @@ -59220,7 +66109,7 @@ func schema_k8sio_api_networking_v1_IngressList(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.Ingress", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + networkingv1.Ingress{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -59258,7 +66147,7 @@ func schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref common.Refere Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.IngressPortStatus"), + Ref: ref(networkingv1.IngressPortStatus{}.OpenAPIModelName()), }, }, }, @@ -59268,7 +66157,7 @@ func schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.IngressPortStatus"}, + networkingv1.IngressPortStatus{}.OpenAPIModelName()}, } } @@ -59292,7 +66181,7 @@ func schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref common.Referen Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.IngressLoadBalancerIngress"), + Ref: ref(networkingv1.IngressLoadBalancerIngress{}.OpenAPIModelName()), }, }, }, @@ -59302,7 +66191,7 @@ func schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref common.Referen }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.IngressLoadBalancerIngress"}, + networkingv1.IngressLoadBalancerIngress{}.OpenAPIModelName()}, } } @@ -59360,14 +66249,14 @@ func schema_k8sio_api_networking_v1_IngressRule(ref common.ReferenceCallback) co }, "http": { SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/api/networking/v1.HTTPIngressRuleValue"), + Ref: ref(networkingv1.HTTPIngressRuleValue{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.HTTPIngressRuleValue"}, + networkingv1.HTTPIngressRuleValue{}.OpenAPIModelName()}, } } @@ -59380,14 +66269,14 @@ func schema_k8sio_api_networking_v1_IngressRuleValue(ref common.ReferenceCallbac Properties: map[string]spec.Schema{ "http": { SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/api/networking/v1.HTTPIngressRuleValue"), + Ref: ref(networkingv1.HTTPIngressRuleValue{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.HTTPIngressRuleValue"}, + networkingv1.HTTPIngressRuleValue{}.OpenAPIModelName()}, } } @@ -59410,7 +66299,7 @@ func schema_k8sio_api_networking_v1_IngressServiceBackend(ref common.ReferenceCa SchemaProps: spec.SchemaProps{ Description: "port of the referenced service. A port name or port number is required for a IngressServiceBackend.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.ServiceBackendPort"), + Ref: ref(networkingv1.ServiceBackendPort{}.OpenAPIModelName()), }, }, }, @@ -59418,7 +66307,7 @@ func schema_k8sio_api_networking_v1_IngressServiceBackend(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.ServiceBackendPort"}, + networkingv1.ServiceBackendPort{}.OpenAPIModelName()}, } } @@ -59439,7 +66328,7 @@ func schema_k8sio_api_networking_v1_IngressSpec(ref common.ReferenceCallback) co "defaultBackend": { SchemaProps: spec.SchemaProps{ Description: "defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller.", - Ref: ref("k8s.io/api/networking/v1.IngressBackend"), + Ref: ref(networkingv1.IngressBackend{}.OpenAPIModelName()), }, }, "tls": { @@ -59455,7 +66344,7 @@ func schema_k8sio_api_networking_v1_IngressSpec(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.IngressTLS"), + Ref: ref(networkingv1.IngressTLS{}.OpenAPIModelName()), }, }, }, @@ -59474,7 +66363,7 @@ func schema_k8sio_api_networking_v1_IngressSpec(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.IngressRule"), + Ref: ref(networkingv1.IngressRule{}.OpenAPIModelName()), }, }, }, @@ -59484,7 +66373,7 @@ func schema_k8sio_api_networking_v1_IngressSpec(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.IngressBackend", "k8s.io/api/networking/v1.IngressRule", "k8s.io/api/networking/v1.IngressTLS"}, + networkingv1.IngressBackend{}.OpenAPIModelName(), networkingv1.IngressRule{}.OpenAPIModelName(), networkingv1.IngressTLS{}.OpenAPIModelName()}, } } @@ -59499,14 +66388,14 @@ func schema_k8sio_api_networking_v1_IngressStatus(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "loadBalancer contains the current status of the load-balancer.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.IngressLoadBalancerStatus"), + Ref: ref(networkingv1.IngressLoadBalancerStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.IngressLoadBalancerStatus"}, + networkingv1.IngressLoadBalancerStatus{}.OpenAPIModelName()}, } } @@ -59575,21 +66464,21 @@ func schema_k8sio_api_networking_v1_NetworkPolicy(ref common.ReferenceCallback) 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec represents the specification of the desired behavior for this NetworkPolicy.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.NetworkPolicySpec"), + Ref: ref(networkingv1.NetworkPolicySpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.NetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + networkingv1.NetworkPolicySpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -59613,7 +66502,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref common.Reference Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPort"), + Ref: ref(networkingv1.NetworkPolicyPort{}.OpenAPIModelName()), }, }, }, @@ -59632,7 +66521,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref common.Reference Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPeer"), + Ref: ref(networkingv1.NetworkPolicyPeer{}.OpenAPIModelName()), }, }, }, @@ -59642,7 +66531,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.NetworkPolicyPeer", "k8s.io/api/networking/v1.NetworkPolicyPort"}, + networkingv1.NetworkPolicyPeer{}.OpenAPIModelName(), networkingv1.NetworkPolicyPort{}.OpenAPIModelName()}, } } @@ -59666,7 +66555,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPort"), + Ref: ref(networkingv1.NetworkPolicyPort{}.OpenAPIModelName()), }, }, }, @@ -59685,7 +66574,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPeer"), + Ref: ref(networkingv1.NetworkPolicyPeer{}.OpenAPIModelName()), }, }, }, @@ -59695,7 +66584,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.NetworkPolicyPeer", "k8s.io/api/networking/v1.NetworkPolicyPort"}, + networkingv1.NetworkPolicyPeer{}.OpenAPIModelName(), networkingv1.NetworkPolicyPort{}.OpenAPIModelName()}, } } @@ -59724,7 +66613,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicyList(ref common.ReferenceCallba 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -59735,7 +66624,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicyList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.NetworkPolicy"), + Ref: ref(networkingv1.NetworkPolicy{}.OpenAPIModelName()), }, }, }, @@ -59746,7 +66635,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicyList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.NetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + networkingv1.NetworkPolicy{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -59760,26 +66649,26 @@ func schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref common.ReferenceCallba "podSelector": { SchemaProps: spec.SchemaProps{ Description: "podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "namespaceSelector": { SchemaProps: spec.SchemaProps{ Description: "namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "ipBlock": { SchemaProps: spec.SchemaProps{ Description: "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.", - Ref: ref("k8s.io/api/networking/v1.IPBlock"), + Ref: ref(networkingv1.IPBlock{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.IPBlock", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + networkingv1.IPBlock{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -59801,7 +66690,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicyPort(ref common.ReferenceCallba "port": { SchemaProps: spec.SchemaProps{ Description: "port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "endPort": { @@ -59815,7 +66704,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicyPort(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -59828,9 +66717,9 @@ 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"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "ingress": { @@ -59846,7 +66735,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.NetworkPolicyIngressRule"), + Ref: ref(networkingv1.NetworkPolicyIngressRule{}.OpenAPIModelName()), }, }, }, @@ -59865,7 +66754,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1.NetworkPolicyEgressRule"), + Ref: ref(networkingv1.NetworkPolicyEgressRule{}.OpenAPIModelName()), }, }, }, @@ -59893,11 +66782,52 @@ func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallba }, }, }, - Required: []string{"podSelector"}, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1.NetworkPolicyEgressRule", "k8s.io/api/networking/v1.NetworkPolicyIngressRule", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + networkingv1.NetworkPolicyEgressRule{}.OpenAPIModelName(), networkingv1.NetworkPolicyIngressRule{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_networking_v1_ParentReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ParentReference describes a reference to a parent object.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { + SchemaProps: spec.SchemaProps{ + Description: "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"}, + }, + }, } } @@ -59933,6 +66863,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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "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(networkingv1.ServiceCIDRSpec{}.OpenAPIModelName()), + }, + }, + "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(networkingv1.ServiceCIDRStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + networkingv1.ServiceCIDRSpec{}.OpenAPIModelName(), networkingv1.ServiceCIDRStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of ServiceCIDRs.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(networkingv1.ServiceCIDR{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + networkingv1.ServiceCIDR{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.Condition{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + metav1.Condition{}.OpenAPIModelName()}, + } +} + func schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -59958,7 +67061,7 @@ func schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref common.ReferenceCal SchemaProps: spec.SchemaProps{ Description: "backend defines the referenced service endpoint to which the traffic will be forwarded to.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.IngressBackend"), + Ref: ref(networkingv1beta1.IngressBackend{}.OpenAPIModelName()), }, }, }, @@ -59966,7 +67069,7 @@ func schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref common.ReferenceCal }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.IngressBackend"}, + networkingv1beta1.IngressBackend{}.OpenAPIModelName()}, } } @@ -59990,7 +67093,7 @@ func schema_k8sio_api_networking_v1beta1_HTTPIngressRuleValue(ref common.Referen Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.HTTPIngressPath"), + Ref: ref(networkingv1beta1.HTTPIngressPath{}.OpenAPIModelName()), }, }, }, @@ -60001,7 +67104,7 @@ func schema_k8sio_api_networking_v1beta1_HTTPIngressRuleValue(ref common.Referen }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.HTTPIngressPath"}, + networkingv1beta1.HTTPIngressPath{}.OpenAPIModelName()}, } } @@ -60030,21 +67133,21 @@ func schema_k8sio_api_networking_v1beta1_IPAddress(ref common.ReferenceCallback) 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "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/v1beta1.IPAddressSpec"), + Ref: ref(networkingv1beta1.IPAddressSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.IPAddressSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + networkingv1beta1.IPAddressSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -60073,7 +67176,7 @@ func schema_k8sio_api_networking_v1beta1_IPAddressList(ref common.ReferenceCallb 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -60084,7 +67187,7 @@ func schema_k8sio_api_networking_v1beta1_IPAddressList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.IPAddress"), + Ref: ref(networkingv1beta1.IPAddress{}.OpenAPIModelName()), }, }, }, @@ -60095,7 +67198,7 @@ func schema_k8sio_api_networking_v1beta1_IPAddressList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.IPAddress", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + networkingv1beta1.IPAddress{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -60109,7 +67212,7 @@ func schema_k8sio_api_networking_v1beta1_IPAddressSpec(ref common.ReferenceCallb "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/v1beta1.ParentReference"), + Ref: ref(networkingv1beta1.ParentReference{}.OpenAPIModelName()), }, }, }, @@ -60117,7 +67220,7 @@ func schema_k8sio_api_networking_v1beta1_IPAddressSpec(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.ParentReference"}, + networkingv1beta1.ParentReference{}.OpenAPIModelName()}, } } @@ -60146,28 +67249,28 @@ func schema_k8sio_api_networking_v1beta1_Ingress(ref common.ReferenceCallback) c 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.IngressSpec"), + Ref: ref(networkingv1beta1.IngressSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.IngressStatus"), + Ref: ref(networkingv1beta1.IngressStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.IngressSpec", "k8s.io/api/networking/v1beta1.IngressStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + networkingv1beta1.IngressSpec{}.OpenAPIModelName(), networkingv1beta1.IngressStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -60188,20 +67291,20 @@ func schema_k8sio_api_networking_v1beta1_IngressBackend(ref common.ReferenceCall "servicePort": { SchemaProps: spec.SchemaProps{ Description: "servicePort Specifies the port of the referenced service.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "resource": { SchemaProps: spec.SchemaProps{ Description: "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified.", - Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + Ref: ref(corev1.TypedLocalObjectReference{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + corev1.TypedLocalObjectReference{}.OpenAPIModelName(), intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -60230,21 +67333,21 @@ func schema_k8sio_api_networking_v1beta1_IngressClass(ref common.ReferenceCallba 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.IngressClassSpec"), + Ref: ref(networkingv1beta1.IngressClassSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.IngressClassSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + networkingv1beta1.IngressClassSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -60273,7 +67376,7 @@ func schema_k8sio_api_networking_v1beta1_IngressClassList(ref common.ReferenceCa SchemaProps: spec.SchemaProps{ Description: "Standard list metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -60284,7 +67387,7 @@ func schema_k8sio_api_networking_v1beta1_IngressClassList(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.IngressClass"), + Ref: ref(networkingv1beta1.IngressClass{}.OpenAPIModelName()), }, }, }, @@ -60295,7 +67398,7 @@ func schema_k8sio_api_networking_v1beta1_IngressClassList(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.IngressClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + networkingv1beta1.IngressClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -60367,14 +67470,14 @@ func schema_k8sio_api_networking_v1beta1_IngressClassSpec(ref common.ReferenceCa "parameters": { SchemaProps: spec.SchemaProps{ Description: "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters.", - Ref: ref("k8s.io/api/networking/v1beta1.IngressClassParametersReference"), + Ref: ref(networkingv1beta1.IngressClassParametersReference{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.IngressClassParametersReference"}, + networkingv1beta1.IngressClassParametersReference{}.OpenAPIModelName()}, } } @@ -60403,7 +67506,7 @@ func schema_k8sio_api_networking_v1beta1_IngressList(ref common.ReferenceCallbac 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -60414,7 +67517,7 @@ func schema_k8sio_api_networking_v1beta1_IngressList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.Ingress"), + Ref: ref(networkingv1beta1.Ingress{}.OpenAPIModelName()), }, }, }, @@ -60425,7 +67528,7 @@ func schema_k8sio_api_networking_v1beta1_IngressList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.Ingress", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + networkingv1beta1.Ingress{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -60463,7 +67566,7 @@ func schema_k8sio_api_networking_v1beta1_IngressLoadBalancerIngress(ref common.R Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.IngressPortStatus"), + Ref: ref(networkingv1beta1.IngressPortStatus{}.OpenAPIModelName()), }, }, }, @@ -60473,7 +67576,7 @@ func schema_k8sio_api_networking_v1beta1_IngressLoadBalancerIngress(ref common.R }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.IngressPortStatus"}, + networkingv1beta1.IngressPortStatus{}.OpenAPIModelName()}, } } @@ -60497,7 +67600,7 @@ func schema_k8sio_api_networking_v1beta1_IngressLoadBalancerStatus(ref common.Re Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.IngressLoadBalancerIngress"), + Ref: ref(networkingv1beta1.IngressLoadBalancerIngress{}.OpenAPIModelName()), }, }, }, @@ -60507,7 +67610,7 @@ func schema_k8sio_api_networking_v1beta1_IngressLoadBalancerStatus(ref common.Re }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.IngressLoadBalancerIngress"}, + networkingv1beta1.IngressLoadBalancerIngress{}.OpenAPIModelName()}, } } @@ -60565,14 +67668,14 @@ func schema_k8sio_api_networking_v1beta1_IngressRule(ref common.ReferenceCallbac }, "http": { SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/api/networking/v1beta1.HTTPIngressRuleValue"), + Ref: ref(networkingv1beta1.HTTPIngressRuleValue{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.HTTPIngressRuleValue"}, + networkingv1beta1.HTTPIngressRuleValue{}.OpenAPIModelName()}, } } @@ -60585,14 +67688,14 @@ func schema_k8sio_api_networking_v1beta1_IngressRuleValue(ref common.ReferenceCa Properties: map[string]spec.Schema{ "http": { SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/api/networking/v1beta1.HTTPIngressRuleValue"), + Ref: ref(networkingv1beta1.HTTPIngressRuleValue{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.HTTPIngressRuleValue"}, + networkingv1beta1.HTTPIngressRuleValue{}.OpenAPIModelName()}, } } @@ -60613,7 +67716,7 @@ func schema_k8sio_api_networking_v1beta1_IngressSpec(ref common.ReferenceCallbac "backend": { SchemaProps: spec.SchemaProps{ Description: "backend is the default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.", - Ref: ref("k8s.io/api/networking/v1beta1.IngressBackend"), + Ref: ref(networkingv1beta1.IngressBackend{}.OpenAPIModelName()), }, }, "tls": { @@ -60629,7 +67732,7 @@ func schema_k8sio_api_networking_v1beta1_IngressSpec(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.IngressTLS"), + Ref: ref(networkingv1beta1.IngressTLS{}.OpenAPIModelName()), }, }, }, @@ -60648,7 +67751,7 @@ func schema_k8sio_api_networking_v1beta1_IngressSpec(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.IngressRule"), + Ref: ref(networkingv1beta1.IngressRule{}.OpenAPIModelName()), }, }, }, @@ -60658,7 +67761,7 @@ func schema_k8sio_api_networking_v1beta1_IngressSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.IngressBackend", "k8s.io/api/networking/v1beta1.IngressRule", "k8s.io/api/networking/v1beta1.IngressTLS"}, + networkingv1beta1.IngressBackend{}.OpenAPIModelName(), networkingv1beta1.IngressRule{}.OpenAPIModelName(), networkingv1beta1.IngressTLS{}.OpenAPIModelName()}, } } @@ -60673,14 +67776,14 @@ func schema_k8sio_api_networking_v1beta1_IngressStatus(ref common.ReferenceCallb SchemaProps: spec.SchemaProps{ Description: "loadBalancer contains the current status of the load-balancer.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.IngressLoadBalancerStatus"), + Ref: ref(networkingv1beta1.IngressLoadBalancerStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.IngressLoadBalancerStatus"}, + networkingv1beta1.IngressLoadBalancerStatus{}.OpenAPIModelName()}, } } @@ -60791,28 +67894,28 @@ func schema_k8sio_api_networking_v1beta1_ServiceCIDR(ref common.ReferenceCallbac 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "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/v1beta1.ServiceCIDRSpec"), + Ref: ref(networkingv1beta1.ServiceCIDRSpec{}.OpenAPIModelName()), }, }, "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/v1beta1.ServiceCIDRStatus"), + Ref: ref(networkingv1beta1.ServiceCIDRStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.ServiceCIDRSpec", "k8s.io/api/networking/v1beta1.ServiceCIDRStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + networkingv1beta1.ServiceCIDRSpec{}.OpenAPIModelName(), networkingv1beta1.ServiceCIDRStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -60841,7 +67944,7 @@ func schema_k8sio_api_networking_v1beta1_ServiceCIDRList(ref common.ReferenceCal 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -60852,7 +67955,7 @@ func schema_k8sio_api_networking_v1beta1_ServiceCIDRList(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/networking/v1beta1.ServiceCIDR"), + Ref: ref(networkingv1beta1.ServiceCIDR{}.OpenAPIModelName()), }, }, }, @@ -60863,7 +67966,7 @@ func schema_k8sio_api_networking_v1beta1_ServiceCIDRList(ref common.ReferenceCal }, }, Dependencies: []string{ - "k8s.io/api/networking/v1beta1.ServiceCIDR", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + networkingv1beta1.ServiceCIDR{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -60925,7 +68028,7 @@ func schema_k8sio_api_networking_v1beta1_ServiceCIDRStatus(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), + Ref: ref(metav1.Condition{}.OpenAPIModelName()), }, }, }, @@ -60935,7 +68038,7 @@ func schema_k8sio_api_networking_v1beta1_ServiceCIDRStatus(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, + metav1.Condition{}.OpenAPIModelName()}, } } @@ -60954,7 +68057,7 @@ func schema_k8sio_api_node_v1alpha1_Overhead(ref common.ReferenceCallback) commo Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -60964,7 +68067,7 @@ func schema_k8sio_api_node_v1alpha1_Overhead(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -60993,14 +68096,14 @@ func schema_k8sio_api_node_v1alpha1_RuntimeClass(ref common.ReferenceCallback) c 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec represents specification of the RuntimeClass 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/node/v1alpha1.RuntimeClassSpec"), + Ref: ref(v1alpha1.RuntimeClassSpec{}.OpenAPIModelName()), }, }, }, @@ -61008,7 +68111,7 @@ func schema_k8sio_api_node_v1alpha1_RuntimeClass(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/api/node/v1alpha1.RuntimeClassSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + v1alpha1.RuntimeClassSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -61037,7 +68140,7 @@ func schema_k8sio_api_node_v1alpha1_RuntimeClassList(ref common.ReferenceCallbac 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -61048,7 +68151,7 @@ func schema_k8sio_api_node_v1alpha1_RuntimeClassList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/node/v1alpha1.RuntimeClass"), + Ref: ref(v1alpha1.RuntimeClass{}.OpenAPIModelName()), }, }, }, @@ -61059,7 +68162,7 @@ func schema_k8sio_api_node_v1alpha1_RuntimeClassList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/node/v1alpha1.RuntimeClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + v1alpha1.RuntimeClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -61081,13 +68184,13 @@ func schema_k8sio_api_node_v1alpha1_RuntimeClassSpec(ref common.ReferenceCallbac "overhead": { SchemaProps: spec.SchemaProps{ Description: "overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md", - Ref: ref("k8s.io/api/node/v1alpha1.Overhead"), + Ref: ref(v1alpha1.Overhead{}.OpenAPIModelName()), }, }, "scheduling": { SchemaProps: spec.SchemaProps{ Description: "scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.", - Ref: ref("k8s.io/api/node/v1alpha1.Scheduling"), + Ref: ref(v1alpha1.Scheduling{}.OpenAPIModelName()), }, }, }, @@ -61095,7 +68198,7 @@ func schema_k8sio_api_node_v1alpha1_RuntimeClassSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/node/v1alpha1.Overhead", "k8s.io/api/node/v1alpha1.Scheduling"}, + v1alpha1.Overhead{}.OpenAPIModelName(), v1alpha1.Scheduling{}.OpenAPIModelName()}, } } @@ -61140,7 +68243,7 @@ func schema_k8sio_api_node_v1alpha1_Scheduling(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Toleration"), + Ref: ref(corev1.Toleration{}.OpenAPIModelName()), }, }, }, @@ -61150,7 +68253,7 @@ func schema_k8sio_api_node_v1alpha1_Scheduling(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Toleration"}, + corev1.Toleration{}.OpenAPIModelName()}, } } @@ -61169,7 +68272,7 @@ func schema_k8sio_api_node_v1beta1_Overhead(ref common.ReferenceCallback) common Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -61179,7 +68282,7 @@ func schema_k8sio_api_node_v1beta1_Overhead(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -61208,7 +68311,7 @@ func schema_k8sio_api_node_v1beta1_RuntimeClass(ref common.ReferenceCallback) co 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "handler": { @@ -61222,13 +68325,13 @@ func schema_k8sio_api_node_v1beta1_RuntimeClass(ref common.ReferenceCallback) co "overhead": { SchemaProps: spec.SchemaProps{ Description: "overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md", - Ref: ref("k8s.io/api/node/v1beta1.Overhead"), + Ref: ref(nodev1beta1.Overhead{}.OpenAPIModelName()), }, }, "scheduling": { SchemaProps: spec.SchemaProps{ Description: "scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.", - Ref: ref("k8s.io/api/node/v1beta1.Scheduling"), + Ref: ref(nodev1beta1.Scheduling{}.OpenAPIModelName()), }, }, }, @@ -61236,7 +68339,7 @@ func schema_k8sio_api_node_v1beta1_RuntimeClass(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/node/v1beta1.Overhead", "k8s.io/api/node/v1beta1.Scheduling", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + nodev1beta1.Overhead{}.OpenAPIModelName(), nodev1beta1.Scheduling{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -61265,7 +68368,7 @@ func schema_k8sio_api_node_v1beta1_RuntimeClassList(ref common.ReferenceCallback 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -61276,7 +68379,7 @@ func schema_k8sio_api_node_v1beta1_RuntimeClassList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/node/v1beta1.RuntimeClass"), + Ref: ref(nodev1beta1.RuntimeClass{}.OpenAPIModelName()), }, }, }, @@ -61287,7 +68390,7 @@ func schema_k8sio_api_node_v1beta1_RuntimeClassList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/node/v1beta1.RuntimeClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + nodev1beta1.RuntimeClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -61332,7 +68435,7 @@ func schema_k8sio_api_node_v1beta1_Scheduling(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Toleration"), + Ref: ref(corev1.Toleration{}.OpenAPIModelName()), }, }, }, @@ -61342,7 +68445,7 @@ func schema_k8sio_api_node_v1beta1_Scheduling(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Toleration"}, + corev1.Toleration{}.OpenAPIModelName()}, } } @@ -61371,20 +68474,20 @@ func schema_k8sio_api_policy_v1beta1_Eviction(ref common.ReferenceCallback) comm SchemaProps: spec.SchemaProps{ Description: "ObjectMeta describes the pod that is being evicted.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "deleteOptions": { SchemaProps: spec.SchemaProps{ Description: "DeleteOptions may be provided", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions"), + Ref: ref(metav1.DeleteOptions{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.DeleteOptions{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -61413,28 +68516,28 @@ func schema_k8sio_api_policy_v1beta1_PodDisruptionBudget(ref common.ReferenceCal 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the PodDisruptionBudget.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/policy/v1beta1.PodDisruptionBudgetSpec"), + Ref: ref(policyv1beta1.PodDisruptionBudgetSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Most recently observed status of the PodDisruptionBudget.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/policy/v1beta1.PodDisruptionBudgetStatus"), + Ref: ref(policyv1beta1.PodDisruptionBudgetStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetSpec", "k8s.io/api/policy/v1beta1.PodDisruptionBudgetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + policyv1beta1.PodDisruptionBudgetSpec{}.OpenAPIModelName(), policyv1beta1.PodDisruptionBudgetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -61463,7 +68566,7 @@ func schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetList(ref common.Referenc 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -61474,7 +68577,7 @@ func schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetList(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/policy/v1beta1.PodDisruptionBudget"), + Ref: ref(policyv1beta1.PodDisruptionBudget{}.OpenAPIModelName()), }, }, }, @@ -61485,7 +68588,7 @@ func schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetList(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/api/policy/v1beta1.PodDisruptionBudget", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + policyv1beta1.PodDisruptionBudget{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -61499,24 +68602,24 @@ func schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetSpec(ref common.Referenc "minAvailable": { SchemaProps: spec.SchemaProps{ Description: "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "selector": { SchemaProps: spec.SchemaProps{ Description: "Label query over pods whose evictions are managed by the disruption budget. A null selector selects no pods. An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods. In policy/v1, an empty selector will select all pods in the namespace.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "maxUnavailable": { SchemaProps: spec.SchemaProps{ Description: "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\".", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "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"}, @@ -61526,7 +68629,7 @@ func schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetSpec(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector", "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + metav1.LabelSelector{}.OpenAPIModelName(), intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -61552,7 +68655,7 @@ func schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetStatus(ref common.Refere Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, @@ -61608,7 +68711,7 @@ func schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetStatus(ref common.Refere Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), + Ref: ref(metav1.Condition{}.OpenAPIModelName()), }, }, }, @@ -61619,7 +68722,7 @@ func schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetStatus(ref common.Refere }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Condition", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Condition{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -61643,7 +68746,7 @@ func schema_k8sio_api_rbac_v1_AggregationRule(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, }, @@ -61653,7 +68756,7 @@ func schema_k8sio_api_rbac_v1_AggregationRule(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -61682,7 +68785,7 @@ func schema_k8sio_api_rbac_v1_ClusterRole(ref common.ReferenceCallback) common.O SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "rules": { @@ -61698,7 +68801,7 @@ func schema_k8sio_api_rbac_v1_ClusterRole(ref common.ReferenceCallback) common.O Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), + Ref: ref(rbacv1.PolicyRule{}.OpenAPIModelName()), }, }, }, @@ -61707,14 +68810,14 @@ func schema_k8sio_api_rbac_v1_ClusterRole(ref common.ReferenceCallback) common.O "aggregationRule": { SchemaProps: spec.SchemaProps{ Description: "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", - Ref: ref("k8s.io/api/rbac/v1.AggregationRule"), + Ref: ref(rbacv1.AggregationRule{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1.AggregationRule", "k8s.io/api/rbac/v1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1.AggregationRule{}.OpenAPIModelName(), rbacv1.PolicyRule{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -61743,7 +68846,7 @@ func schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref common.ReferenceCallback) c SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "subjects": { @@ -61759,7 +68862,7 @@ func schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.Subject"), + Ref: ref(rbacv1.Subject{}.OpenAPIModelName()), }, }, }, @@ -61769,7 +68872,7 @@ func schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref common.ReferenceCallback) c SchemaProps: spec.SchemaProps{ Description: "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.RoleRef"), + Ref: ref(rbacv1.RoleRef{}.OpenAPIModelName()), }, }, }, @@ -61777,7 +68880,7 @@ func schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1.RoleRef", "k8s.io/api/rbac/v1.Subject", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1.RoleRef{}.OpenAPIModelName(), rbacv1.Subject{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -61806,7 +68909,7 @@ func schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref common.ReferenceCallbac SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -61817,7 +68920,7 @@ func schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.ClusterRoleBinding"), + Ref: ref(rbacv1.ClusterRoleBinding{}.OpenAPIModelName()), }, }, }, @@ -61828,7 +68931,7 @@ func schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1.ClusterRoleBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + rbacv1.ClusterRoleBinding{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -61857,7 +68960,7 @@ func schema_k8sio_api_rbac_v1_ClusterRoleList(ref common.ReferenceCallback) comm SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -61868,7 +68971,7 @@ func schema_k8sio_api_rbac_v1_ClusterRoleList(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.ClusterRole"), + Ref: ref(rbacv1.ClusterRole{}.OpenAPIModelName()), }, }, }, @@ -61879,7 +68982,7 @@ func schema_k8sio_api_rbac_v1_ClusterRoleList(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1.ClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + rbacv1.ClusterRole{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -62022,7 +69125,7 @@ func schema_k8sio_api_rbac_v1_Role(ref common.ReferenceCallback) common.OpenAPID SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "rules": { @@ -62038,7 +69141,7 @@ func schema_k8sio_api_rbac_v1_Role(ref common.ReferenceCallback) common.OpenAPID Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), + Ref: ref(rbacv1.PolicyRule{}.OpenAPIModelName()), }, }, }, @@ -62048,7 +69151,7 @@ func schema_k8sio_api_rbac_v1_Role(ref common.ReferenceCallback) common.OpenAPID }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1.PolicyRule{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -62077,7 +69180,7 @@ func schema_k8sio_api_rbac_v1_RoleBinding(ref common.ReferenceCallback) common.O SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "subjects": { @@ -62093,7 +69196,7 @@ func schema_k8sio_api_rbac_v1_RoleBinding(ref common.ReferenceCallback) common.O Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.Subject"), + Ref: ref(rbacv1.Subject{}.OpenAPIModelName()), }, }, }, @@ -62103,7 +69206,7 @@ func schema_k8sio_api_rbac_v1_RoleBinding(ref common.ReferenceCallback) common.O SchemaProps: spec.SchemaProps{ Description: "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.RoleRef"), + Ref: ref(rbacv1.RoleRef{}.OpenAPIModelName()), }, }, }, @@ -62111,7 +69214,7 @@ func schema_k8sio_api_rbac_v1_RoleBinding(ref common.ReferenceCallback) common.O }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1.RoleRef", "k8s.io/api/rbac/v1.Subject", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1.RoleRef{}.OpenAPIModelName(), rbacv1.Subject{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -62140,7 +69243,7 @@ func schema_k8sio_api_rbac_v1_RoleBindingList(ref common.ReferenceCallback) comm SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -62151,7 +69254,7 @@ func schema_k8sio_api_rbac_v1_RoleBindingList(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.RoleBinding"), + Ref: ref(rbacv1.RoleBinding{}.OpenAPIModelName()), }, }, }, @@ -62162,7 +69265,7 @@ func schema_k8sio_api_rbac_v1_RoleBindingList(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1.RoleBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + rbacv1.RoleBinding{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -62191,7 +69294,7 @@ func schema_k8sio_api_rbac_v1_RoleList(ref common.ReferenceCallback) common.Open SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -62202,7 +69305,7 @@ func schema_k8sio_api_rbac_v1_RoleList(ref common.ReferenceCallback) common.Open Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.Role"), + Ref: ref(rbacv1.Role{}.OpenAPIModelName()), }, }, }, @@ -62213,7 +69316,7 @@ func schema_k8sio_api_rbac_v1_RoleList(ref common.ReferenceCallback) common.Open }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1.Role", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + rbacv1.Role{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -62329,7 +69432,7 @@ func schema_k8sio_api_rbac_v1alpha1_AggregationRule(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, }, @@ -62339,7 +69442,7 @@ func schema_k8sio_api_rbac_v1alpha1_AggregationRule(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -62368,7 +69471,7 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRole(ref common.ReferenceCallback) co SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "rules": { @@ -62384,7 +69487,7 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRole(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1alpha1.PolicyRule"), + Ref: ref(rbacv1alpha1.PolicyRule{}.OpenAPIModelName()), }, }, }, @@ -62393,14 +69496,14 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRole(ref common.ReferenceCallback) co "aggregationRule": { SchemaProps: spec.SchemaProps{ Description: "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", - Ref: ref("k8s.io/api/rbac/v1alpha1.AggregationRule"), + Ref: ref(rbacv1alpha1.AggregationRule{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1alpha1.AggregationRule", "k8s.io/api/rbac/v1alpha1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1alpha1.AggregationRule{}.OpenAPIModelName(), rbacv1alpha1.PolicyRule{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -62429,7 +69532,7 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRoleBinding(ref common.ReferenceCallb SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "subjects": { @@ -62445,7 +69548,7 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRoleBinding(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1alpha1.Subject"), + Ref: ref(rbacv1alpha1.Subject{}.OpenAPIModelName()), }, }, }, @@ -62455,7 +69558,7 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRoleBinding(ref common.ReferenceCallb SchemaProps: spec.SchemaProps{ Description: "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1alpha1.RoleRef"), + Ref: ref(rbacv1alpha1.RoleRef{}.OpenAPIModelName()), }, }, }, @@ -62463,7 +69566,7 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRoleBinding(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1alpha1.RoleRef", "k8s.io/api/rbac/v1alpha1.Subject", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1alpha1.RoleRef{}.OpenAPIModelName(), rbacv1alpha1.Subject{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -62492,7 +69595,7 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRoleBindingList(ref common.ReferenceC SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -62503,7 +69606,7 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRoleBindingList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1alpha1.ClusterRoleBinding"), + Ref: ref(rbacv1alpha1.ClusterRoleBinding{}.OpenAPIModelName()), }, }, }, @@ -62514,7 +69617,7 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRoleBindingList(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1alpha1.ClusterRoleBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + rbacv1alpha1.ClusterRoleBinding{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -62543,7 +69646,7 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRoleList(ref common.ReferenceCallback SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -62554,7 +69657,7 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRoleList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1alpha1.ClusterRole"), + Ref: ref(rbacv1alpha1.ClusterRole{}.OpenAPIModelName()), }, }, }, @@ -62565,7 +69668,7 @@ func schema_k8sio_api_rbac_v1alpha1_ClusterRoleList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1alpha1.ClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + rbacv1alpha1.ClusterRole{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -62708,7 +69811,7 @@ func schema_k8sio_api_rbac_v1alpha1_Role(ref common.ReferenceCallback) common.Op SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "rules": { @@ -62724,7 +69827,7 @@ func schema_k8sio_api_rbac_v1alpha1_Role(ref common.ReferenceCallback) common.Op Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1alpha1.PolicyRule"), + Ref: ref(rbacv1alpha1.PolicyRule{}.OpenAPIModelName()), }, }, }, @@ -62734,7 +69837,7 @@ func schema_k8sio_api_rbac_v1alpha1_Role(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1alpha1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1alpha1.PolicyRule{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -62763,7 +69866,7 @@ func schema_k8sio_api_rbac_v1alpha1_RoleBinding(ref common.ReferenceCallback) co SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "subjects": { @@ -62779,7 +69882,7 @@ func schema_k8sio_api_rbac_v1alpha1_RoleBinding(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1alpha1.Subject"), + Ref: ref(rbacv1alpha1.Subject{}.OpenAPIModelName()), }, }, }, @@ -62789,7 +69892,7 @@ func schema_k8sio_api_rbac_v1alpha1_RoleBinding(ref common.ReferenceCallback) co SchemaProps: spec.SchemaProps{ Description: "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1alpha1.RoleRef"), + Ref: ref(rbacv1alpha1.RoleRef{}.OpenAPIModelName()), }, }, }, @@ -62797,7 +69900,7 @@ func schema_k8sio_api_rbac_v1alpha1_RoleBinding(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1alpha1.RoleRef", "k8s.io/api/rbac/v1alpha1.Subject", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1alpha1.RoleRef{}.OpenAPIModelName(), rbacv1alpha1.Subject{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -62826,7 +69929,7 @@ func schema_k8sio_api_rbac_v1alpha1_RoleBindingList(ref common.ReferenceCallback SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -62837,7 +69940,7 @@ func schema_k8sio_api_rbac_v1alpha1_RoleBindingList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1alpha1.RoleBinding"), + Ref: ref(rbacv1alpha1.RoleBinding{}.OpenAPIModelName()), }, }, }, @@ -62848,7 +69951,7 @@ func schema_k8sio_api_rbac_v1alpha1_RoleBindingList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1alpha1.RoleBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + rbacv1alpha1.RoleBinding{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -62877,7 +69980,7 @@ func schema_k8sio_api_rbac_v1alpha1_RoleList(ref common.ReferenceCallback) commo SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -62888,7 +69991,7 @@ func schema_k8sio_api_rbac_v1alpha1_RoleList(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1alpha1.Role"), + Ref: ref(rbacv1alpha1.Role{}.OpenAPIModelName()), }, }, }, @@ -62899,7 +70002,7 @@ func schema_k8sio_api_rbac_v1alpha1_RoleList(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1alpha1.Role", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + rbacv1alpha1.Role{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -63005,7 +70108,7 @@ func schema_k8sio_api_rbac_v1beta1_AggregationRule(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, }, @@ -63015,7 +70118,7 @@ func schema_k8sio_api_rbac_v1beta1_AggregationRule(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } @@ -63044,7 +70147,7 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRole(ref common.ReferenceCallback) com SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "rules": { @@ -63060,7 +70163,7 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRole(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1beta1.PolicyRule"), + Ref: ref(rbacv1beta1.PolicyRule{}.OpenAPIModelName()), }, }, }, @@ -63069,14 +70172,14 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRole(ref common.ReferenceCallback) com "aggregationRule": { SchemaProps: spec.SchemaProps{ Description: "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", - Ref: ref("k8s.io/api/rbac/v1beta1.AggregationRule"), + Ref: ref(rbacv1beta1.AggregationRule{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1beta1.AggregationRule", "k8s.io/api/rbac/v1beta1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1beta1.AggregationRule{}.OpenAPIModelName(), rbacv1beta1.PolicyRule{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -63105,7 +70208,7 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRoleBinding(ref common.ReferenceCallba SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "subjects": { @@ -63121,7 +70224,7 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRoleBinding(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1beta1.Subject"), + Ref: ref(rbacv1beta1.Subject{}.OpenAPIModelName()), }, }, }, @@ -63131,7 +70234,7 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRoleBinding(ref common.ReferenceCallba SchemaProps: spec.SchemaProps{ Description: "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1beta1.RoleRef"), + Ref: ref(rbacv1beta1.RoleRef{}.OpenAPIModelName()), }, }, }, @@ -63139,7 +70242,7 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRoleBinding(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1beta1.RoleRef", "k8s.io/api/rbac/v1beta1.Subject", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1beta1.RoleRef{}.OpenAPIModelName(), rbacv1beta1.Subject{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -63168,7 +70271,7 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRoleBindingList(ref common.ReferenceCa SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -63179,7 +70282,7 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRoleBindingList(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1beta1.ClusterRoleBinding"), + Ref: ref(rbacv1beta1.ClusterRoleBinding{}.OpenAPIModelName()), }, }, }, @@ -63190,7 +70293,7 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRoleBindingList(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1beta1.ClusterRoleBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + rbacv1beta1.ClusterRoleBinding{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -63219,7 +70322,7 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRoleList(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -63230,7 +70333,7 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRoleList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1beta1.ClusterRole"), + Ref: ref(rbacv1beta1.ClusterRole{}.OpenAPIModelName()), }, }, }, @@ -63241,7 +70344,7 @@ func schema_k8sio_api_rbac_v1beta1_ClusterRoleList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1beta1.ClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + rbacv1beta1.ClusterRole{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -63384,7 +70487,7 @@ func schema_k8sio_api_rbac_v1beta1_Role(ref common.ReferenceCallback) common.Ope SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "rules": { @@ -63400,7 +70503,7 @@ func schema_k8sio_api_rbac_v1beta1_Role(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1beta1.PolicyRule"), + Ref: ref(rbacv1beta1.PolicyRule{}.OpenAPIModelName()), }, }, }, @@ -63410,7 +70513,7 @@ func schema_k8sio_api_rbac_v1beta1_Role(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1beta1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1beta1.PolicyRule{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -63439,7 +70542,7 @@ func schema_k8sio_api_rbac_v1beta1_RoleBinding(ref common.ReferenceCallback) com SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "subjects": { @@ -63455,7 +70558,7 @@ func schema_k8sio_api_rbac_v1beta1_RoleBinding(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1beta1.Subject"), + Ref: ref(rbacv1beta1.Subject{}.OpenAPIModelName()), }, }, }, @@ -63465,7 +70568,7 @@ func schema_k8sio_api_rbac_v1beta1_RoleBinding(ref common.ReferenceCallback) com SchemaProps: spec.SchemaProps{ Description: "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1beta1.RoleRef"), + Ref: ref(rbacv1beta1.RoleRef{}.OpenAPIModelName()), }, }, }, @@ -63473,7 +70576,7 @@ func schema_k8sio_api_rbac_v1beta1_RoleBinding(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1beta1.RoleRef", "k8s.io/api/rbac/v1beta1.Subject", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + rbacv1beta1.RoleRef{}.OpenAPIModelName(), rbacv1beta1.Subject{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -63502,7 +70605,7 @@ func schema_k8sio_api_rbac_v1beta1_RoleBindingList(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -63513,7 +70616,7 @@ func schema_k8sio_api_rbac_v1beta1_RoleBindingList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1beta1.RoleBinding"), + Ref: ref(rbacv1beta1.RoleBinding{}.OpenAPIModelName()), }, }, }, @@ -63524,7 +70627,7 @@ func schema_k8sio_api_rbac_v1beta1_RoleBindingList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1beta1.RoleBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + rbacv1beta1.RoleBinding{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -63553,7 +70656,7 @@ func schema_k8sio_api_rbac_v1beta1_RoleList(ref common.ReferenceCallback) common SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -63564,7 +70667,7 @@ func schema_k8sio_api_rbac_v1beta1_RoleList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1beta1.Role"), + Ref: ref(rbacv1beta1.Role{}.OpenAPIModelName()), }, }, }, @@ -63575,7 +70678,7 @@ func schema_k8sio_api_rbac_v1beta1_RoleList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1beta1.Role", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + rbacv1beta1.Role{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -63686,7 +70789,7 @@ func schema_k8sio_api_scheduling_v1_PriorityClass(ref common.ReferenceCallback) 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "value": { @@ -63724,7 +70827,7 @@ func schema_k8sio_api_scheduling_v1_PriorityClass(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -63753,7 +70856,7 @@ func schema_k8sio_api_scheduling_v1_PriorityClassList(ref common.ReferenceCallba 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -63764,7 +70867,7 @@ func schema_k8sio_api_scheduling_v1_PriorityClassList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/scheduling/v1.PriorityClass"), + Ref: ref(schedulingv1.PriorityClass{}.OpenAPIModelName()), }, }, }, @@ -63775,7 +70878,98 @@ func schema_k8sio_api_scheduling_v1_PriorityClassList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/api/scheduling/v1.PriorityClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + schedulingv1.PriorityClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_scheduling_v1alpha1_BasicSchedulingPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BasicSchedulingPolicy indicates that standard Kubernetes scheduling behavior should be used.", + Type: []string{"object"}, + }, + }, + } +} + +func schema_k8sio_api_scheduling_v1alpha1_GangSchedulingPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "GangSchedulingPolicy defines the parameters for gang scheduling.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "minCount": { + SchemaProps: spec.SchemaProps{ + Description: "MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"minCount"}, + }, + }, + } +} + +func schema_k8sio_api_scheduling_v1alpha1_PodGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodGroup represents a set of pods with a common scheduling policy.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is a unique identifier for the PodGroup within the Workload. It must be a DNS label. This field is immutable.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "policy": { + SchemaProps: spec.SchemaProps{ + Description: "Policy defines the scheduling policy for this PodGroup.", + Default: map[string]interface{}{}, + Ref: ref(schedulingv1alpha1.PodGroupPolicy{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"name", "policy"}, + }, + }, + Dependencies: []string{ + schedulingv1alpha1.PodGroupPolicy{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_scheduling_v1alpha1_PodGroupPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodGroupPolicy defines the scheduling configuration for a PodGroup.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "basic": { + SchemaProps: spec.SchemaProps{ + Description: "Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior.", + Ref: ref(schedulingv1alpha1.BasicSchedulingPolicy{}.OpenAPIModelName()), + }, + }, + "gang": { + SchemaProps: spec.SchemaProps{ + Description: "Gang specifies that the pods in this group should be scheduled using all-or-nothing semantics.", + Ref: ref(schedulingv1alpha1.GangSchedulingPolicy{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + schedulingv1alpha1.BasicSchedulingPolicy{}.OpenAPIModelName(), schedulingv1alpha1.GangSchedulingPolicy{}.OpenAPIModelName()}, } } @@ -63804,7 +70998,7 @@ func schema_k8sio_api_scheduling_v1alpha1_PriorityClass(ref common.ReferenceCall 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "value": { @@ -63842,7 +71036,7 @@ func schema_k8sio_api_scheduling_v1alpha1_PriorityClass(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -63871,7 +71065,7 @@ func schema_k8sio_api_scheduling_v1alpha1_PriorityClassList(ref common.Reference 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -63882,7 +71076,7 @@ func schema_k8sio_api_scheduling_v1alpha1_PriorityClassList(ref common.Reference Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/scheduling/v1alpha1.PriorityClass"), + Ref: ref(schedulingv1alpha1.PriorityClass{}.OpenAPIModelName()), }, }, }, @@ -63893,7 +71087,183 @@ func schema_k8sio_api_scheduling_v1alpha1_PriorityClassList(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/api/scheduling/v1alpha1.PriorityClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + schedulingv1alpha1.PriorityClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_scheduling_v1alpha1_TypedLocalObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TypedLocalObjectReference allows to reference typed object inside the same namespace.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "apiGroup": { + SchemaProps: spec.SchemaProps{ + Description: "APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is the type of resource being referenced. It must be a path segment name.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of resource being referenced. It must be a path segment name.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"kind", "name"}, + }, + }, + } +} + +func schema_k8sio_api_scheduling_v1alpha1_Workload(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Workload allows for expressing scheduling constraints that should be used when managing lifecycle of workloads from scheduling perspective, including scheduling, preemption, eviction and other phases.", + 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. Name must be a DNS subdomain.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "Spec defines the desired behavior of a Workload.", + Default: map[string]interface{}{}, + Ref: ref(schedulingv1alpha1.WorkloadSpec{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + schedulingv1alpha1.WorkloadSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_scheduling_v1alpha1_WorkloadList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "WorkloadList contains a list of Workload resources.", + 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.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "Items is the list of Workloads.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(schedulingv1alpha1.Workload{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + schedulingv1alpha1.Workload{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_scheduling_v1alpha1_WorkloadSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "WorkloadSpec defines the desired state of a Workload.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "controllerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ControllerRef is an optional reference to the controlling object, such as a Deployment or Job. This field is intended for use by tools like CLIs to provide a link back to the original workload definition. When set, it cannot be changed.", + Ref: ref(schedulingv1alpha1.TypedLocalObjectReference{}.OpenAPIModelName()), + }, + }, + "podGroups": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "PodGroups is the list of pod groups that make up the Workload. The maximum number of pod groups is 8. This field is immutable.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(schedulingv1alpha1.PodGroup{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"podGroups"}, + }, + }, + Dependencies: []string{ + schedulingv1alpha1.PodGroup{}.OpenAPIModelName(), schedulingv1alpha1.TypedLocalObjectReference{}.OpenAPIModelName()}, } } @@ -63922,7 +71292,7 @@ func schema_k8sio_api_scheduling_v1beta1_PriorityClass(ref common.ReferenceCallb 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "value": { @@ -63960,7 +71330,7 @@ func schema_k8sio_api_scheduling_v1beta1_PriorityClass(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -63989,7 +71359,7 @@ func schema_k8sio_api_scheduling_v1beta1_PriorityClassList(ref common.ReferenceC 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -64000,7 +71370,7 @@ func schema_k8sio_api_scheduling_v1beta1_PriorityClassList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/scheduling/v1beta1.PriorityClass"), + Ref: ref(schedulingv1beta1.PriorityClass{}.OpenAPIModelName()), }, }, }, @@ -64011,7 +71381,7 @@ func schema_k8sio_api_scheduling_v1beta1_PriorityClassList(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/scheduling/v1beta1.PriorityClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + schedulingv1beta1.PriorityClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -64040,14 +71410,14 @@ func schema_k8sio_api_storage_v1_CSIDriver(ref common.ReferenceCallback) common. SchemaProps: spec.SchemaProps{ Description: "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec represents the specification of the CSI Driver.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1.CSIDriverSpec"), + Ref: ref(apistoragev1.CSIDriverSpec{}.OpenAPIModelName()), }, }, }, @@ -64055,7 +71425,7 @@ func schema_k8sio_api_storage_v1_CSIDriver(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.CSIDriverSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apistoragev1.CSIDriverSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -64084,7 +71454,7 @@ func schema_k8sio_api_storage_v1_CSIDriverList(ref common.ReferenceCallback) com 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -64095,7 +71465,7 @@ func schema_k8sio_api_storage_v1_CSIDriverList(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1.CSIDriver"), + Ref: ref(apistoragev1.CSIDriver{}.OpenAPIModelName()), }, }, }, @@ -64106,7 +71476,7 @@ func schema_k8sio_api_storage_v1_CSIDriverList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.CSIDriver", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apistoragev1.CSIDriver{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -64119,7 +71489,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: "", }, @@ -64178,7 +71548,7 @@ func schema_k8sio_api_storage_v1_CSIDriverSpec(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1.TokenRequest"), + Ref: ref(apistoragev1.TokenRequest{}.OpenAPIModelName()), }, }, }, @@ -64198,11 +71568,25 @@ 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", + }, + }, + "serviceAccountTokenInSecrets": { + SchemaProps: spec.SchemaProps{ + Description: "serviceAccountTokenInSecrets is an opt-in for CSI drivers to indicate that service account tokens should be passed via the Secrets field in NodePublishVolumeRequest instead of the VolumeContext field. The CSI specification provides a dedicated Secrets field for sensitive information like tokens, which is the appropriate mechanism for handling credentials. This addresses security concerns where sensitive tokens were being logged as part of volume context.\n\nWhen \"true\", kubelet will pass the tokens only in the Secrets field with the key \"csi.storage.k8s.io/serviceAccount.tokens\". The CSI driver must be updated to read tokens from the Secrets field instead of VolumeContext.\n\nWhen \"false\" or not set, kubelet will pass the tokens in VolumeContext with the key \"csi.storage.k8s.io/serviceAccount.tokens\" (existing behavior). This maintains backward compatibility with existing CSI drivers.\n\nThis field can only be set when TokenRequests is configured. The API server will reject CSIDriver specs that set this field without TokenRequests.\n\nDefault behavior if unset is to pass tokens in the VolumeContext field.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.TokenRequest"}, + apistoragev1.TokenRequest{}.OpenAPIModelName()}, } } @@ -64231,14 +71615,14 @@ func schema_k8sio_api_storage_v1_CSINode(ref common.ReferenceCallback) common.Op SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata. metadata.name must be the Kubernetes node name.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec is the specification of CSINode", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1.CSINodeSpec"), + Ref: ref(apistoragev1.CSINodeSpec{}.OpenAPIModelName()), }, }, }, @@ -64246,7 +71630,7 @@ func schema_k8sio_api_storage_v1_CSINode(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.CSINodeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apistoragev1.CSINodeSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -64296,7 +71680,7 @@ func schema_k8sio_api_storage_v1_CSINodeDriver(ref common.ReferenceCallback) com "allocatable": { SchemaProps: spec.SchemaProps{ Description: "allocatable represents the volume resources of a node that are available for scheduling. This field is beta.", - Ref: ref("k8s.io/api/storage/v1.VolumeNodeResources"), + Ref: ref(apistoragev1.VolumeNodeResources{}.OpenAPIModelName()), }, }, }, @@ -64304,7 +71688,7 @@ func schema_k8sio_api_storage_v1_CSINodeDriver(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.VolumeNodeResources"}, + apistoragev1.VolumeNodeResources{}.OpenAPIModelName()}, } } @@ -64333,7 +71717,7 @@ func schema_k8sio_api_storage_v1_CSINodeList(ref common.ReferenceCallback) commo 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -64344,7 +71728,7 @@ func schema_k8sio_api_storage_v1_CSINodeList(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1.CSINode"), + Ref: ref(apistoragev1.CSINode{}.OpenAPIModelName()), }, }, }, @@ -64355,7 +71739,7 @@ func schema_k8sio_api_storage_v1_CSINodeList(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.CSINode", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apistoragev1.CSINode{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -64384,7 +71768,7 @@ func schema_k8sio_api_storage_v1_CSINodeSpec(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1.CSINodeDriver"), + Ref: ref(apistoragev1.CSINodeDriver{}.OpenAPIModelName()), }, }, }, @@ -64395,7 +71779,7 @@ func schema_k8sio_api_storage_v1_CSINodeSpec(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.CSINodeDriver"}, + apistoragev1.CSINodeDriver{}.OpenAPIModelName()}, } } @@ -64424,13 +71808,13 @@ func schema_k8sio_api_storage_v1_CSIStorageCapacity(ref common.ReferenceCallback SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "nodeTopology": { SchemaProps: spec.SchemaProps{ Description: "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "storageClassName": { @@ -64444,13 +71828,13 @@ func schema_k8sio_api_storage_v1_CSIStorageCapacity(ref common.ReferenceCallback "capacity": { SchemaProps: spec.SchemaProps{ Description: "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "maximumVolumeSize": { SchemaProps: spec.SchemaProps{ Description: "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -64458,7 +71842,7 @@ func schema_k8sio_api_storage_v1_CSIStorageCapacity(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -64487,7 +71871,7 @@ func schema_k8sio_api_storage_v1_CSIStorageCapacityList(ref common.ReferenceCall 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -64498,7 +71882,7 @@ func schema_k8sio_api_storage_v1_CSIStorageCapacityList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1.CSIStorageCapacity"), + Ref: ref(apistoragev1.CSIStorageCapacity{}.OpenAPIModelName()), }, }, }, @@ -64509,7 +71893,7 @@ func schema_k8sio_api_storage_v1_CSIStorageCapacityList(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.CSIStorageCapacity", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apistoragev1.CSIStorageCapacity{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -64538,7 +71922,7 @@ func schema_k8sio_api_storage_v1_StorageClass(ref common.ReferenceCallback) comm 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "provisioner": { @@ -64621,7 +72005,7 @@ func schema_k8sio_api_storage_v1_StorageClass(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.TopologySelectorTerm"), + Ref: ref(corev1.TopologySelectorTerm{}.OpenAPIModelName()), }, }, }, @@ -64632,7 +72016,7 @@ func schema_k8sio_api_storage_v1_StorageClass(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/core/v1.TopologySelectorTerm", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.TopologySelectorTerm{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -64661,7 +72045,7 @@ func schema_k8sio_api_storage_v1_StorageClassList(ref common.ReferenceCallback) 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -64672,7 +72056,7 @@ func schema_k8sio_api_storage_v1_StorageClassList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1.StorageClass"), + Ref: ref(apistoragev1.StorageClass{}.OpenAPIModelName()), }, }, }, @@ -64683,7 +72067,7 @@ func schema_k8sio_api_storage_v1_StorageClassList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.StorageClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apistoragev1.StorageClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -64741,21 +72125,21 @@ func schema_k8sio_api_storage_v1_VolumeAttachment(ref common.ReferenceCallback) 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1.VolumeAttachmentSpec"), + Ref: ref(apistoragev1.VolumeAttachmentSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1.VolumeAttachmentStatus"), + Ref: ref(apistoragev1.VolumeAttachmentStatus{}.OpenAPIModelName()), }, }, }, @@ -64763,7 +72147,7 @@ func schema_k8sio_api_storage_v1_VolumeAttachment(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.VolumeAttachmentSpec", "k8s.io/api/storage/v1.VolumeAttachmentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + apistoragev1.VolumeAttachmentSpec{}.OpenAPIModelName(), apistoragev1.VolumeAttachmentStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -64792,7 +72176,7 @@ func schema_k8sio_api_storage_v1_VolumeAttachmentList(ref common.ReferenceCallba 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -64803,7 +72187,7 @@ func schema_k8sio_api_storage_v1_VolumeAttachmentList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1.VolumeAttachment"), + Ref: ref(apistoragev1.VolumeAttachment{}.OpenAPIModelName()), }, }, }, @@ -64814,7 +72198,7 @@ func schema_k8sio_api_storage_v1_VolumeAttachmentList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.VolumeAttachment", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + apistoragev1.VolumeAttachment{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -64822,7 +72206,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": { @@ -64835,14 +72219,14 @@ func schema_k8sio_api_storage_v1_VolumeAttachmentSource(ref common.ReferenceCall "inlineVolumeSpec": { SchemaProps: spec.SchemaProps{ Description: "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature.", - Ref: ref("k8s.io/api/core/v1.PersistentVolumeSpec"), + Ref: ref(corev1.PersistentVolumeSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PersistentVolumeSpec"}, + corev1.PersistentVolumeSpec{}.OpenAPIModelName()}, } } @@ -64865,7 +72249,7 @@ func schema_k8sio_api_storage_v1_VolumeAttachmentSpec(ref common.ReferenceCallba SchemaProps: spec.SchemaProps{ Description: "source represents the volume that should be attached.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1.VolumeAttachmentSource"), + Ref: ref(apistoragev1.VolumeAttachmentSource{}.OpenAPIModelName()), }, }, "nodeName": { @@ -64881,7 +72265,7 @@ func schema_k8sio_api_storage_v1_VolumeAttachmentSpec(ref common.ReferenceCallba }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.VolumeAttachmentSource"}, + apistoragev1.VolumeAttachmentSource{}.OpenAPIModelName()}, } } @@ -64919,13 +72303,13 @@ func schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref common.ReferenceCall "attachError": { SchemaProps: spec.SchemaProps{ Description: "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - Ref: ref("k8s.io/api/storage/v1.VolumeError"), + Ref: ref(apistoragev1.VolumeError{}.OpenAPIModelName()), }, }, "detachError": { SchemaProps: spec.SchemaProps{ Description: "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.", - Ref: ref("k8s.io/api/storage/v1.VolumeError"), + Ref: ref(apistoragev1.VolumeError{}.OpenAPIModelName()), }, }, }, @@ -64933,7 +72317,119 @@ func schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/storage/v1.VolumeError"}, + apistoragev1.VolumeError{}.OpenAPIModelName()}, + } +} + +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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "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{ + metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of VolumeAttributesClass objects.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(apistoragev1.VolumeAttributesClass{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + apistoragev1.VolumeAttributesClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -64947,7 +72443,7 @@ func schema_k8sio_api_storage_v1_VolumeError(ref common.ReferenceCallback) commo "time": { SchemaProps: spec.SchemaProps{ Description: "time represents the time the error was encountered.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "message": { @@ -64957,11 +72453,18 @@ 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", + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -65010,13 +72513,13 @@ func schema_k8sio_api_storage_v1alpha1_CSIStorageCapacity(ref common.ReferenceCa SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "nodeTopology": { SchemaProps: spec.SchemaProps{ Description: "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "storageClassName": { @@ -65030,13 +72533,13 @@ func schema_k8sio_api_storage_v1alpha1_CSIStorageCapacity(ref common.ReferenceCa "capacity": { SchemaProps: spec.SchemaProps{ Description: "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "maximumVolumeSize": { SchemaProps: spec.SchemaProps{ Description: "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -65044,7 +72547,7 @@ func schema_k8sio_api_storage_v1alpha1_CSIStorageCapacity(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -65073,7 +72576,7 @@ func schema_k8sio_api_storage_v1alpha1_CSIStorageCapacityList(ref common.Referen 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -65084,7 +72587,7 @@ func schema_k8sio_api_storage_v1alpha1_CSIStorageCapacityList(ref common.Referen Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1alpha1.CSIStorageCapacity"), + Ref: ref(storagev1alpha1.CSIStorageCapacity{}.OpenAPIModelName()), }, }, }, @@ -65095,7 +72598,7 @@ func schema_k8sio_api_storage_v1alpha1_CSIStorageCapacityList(ref common.Referen }, }, Dependencies: []string{ - "k8s.io/api/storage/v1alpha1.CSIStorageCapacity", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + storagev1alpha1.CSIStorageCapacity{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -65124,21 +72627,21 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttachment(ref common.ReferenceCall 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1alpha1.VolumeAttachmentSpec"), + Ref: ref(storagev1alpha1.VolumeAttachmentSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1alpha1.VolumeAttachmentStatus"), + Ref: ref(storagev1alpha1.VolumeAttachmentStatus{}.OpenAPIModelName()), }, }, }, @@ -65146,7 +72649,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttachment(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/api/storage/v1alpha1.VolumeAttachmentSpec", "k8s.io/api/storage/v1alpha1.VolumeAttachmentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + storagev1alpha1.VolumeAttachmentSpec{}.OpenAPIModelName(), storagev1alpha1.VolumeAttachmentStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -65175,7 +72678,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttachmentList(ref common.Reference 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -65186,7 +72689,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttachmentList(ref common.Reference Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1alpha1.VolumeAttachment"), + Ref: ref(storagev1alpha1.VolumeAttachment{}.OpenAPIModelName()), }, }, }, @@ -65197,7 +72700,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttachmentList(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/api/storage/v1alpha1.VolumeAttachment", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + storagev1alpha1.VolumeAttachment{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -65205,7 +72708,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": { @@ -65218,14 +72721,14 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSource(ref common.Referen "inlineVolumeSpec": { SchemaProps: spec.SchemaProps{ Description: "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature.", - Ref: ref("k8s.io/api/core/v1.PersistentVolumeSpec"), + Ref: ref(corev1.PersistentVolumeSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PersistentVolumeSpec"}, + corev1.PersistentVolumeSpec{}.OpenAPIModelName()}, } } @@ -65248,7 +72751,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSpec(ref common.Reference SchemaProps: spec.SchemaProps{ Description: "source represents the volume that should be attached.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1alpha1.VolumeAttachmentSource"), + Ref: ref(storagev1alpha1.VolumeAttachmentSource{}.OpenAPIModelName()), }, }, "nodeName": { @@ -65264,7 +72767,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSpec(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/api/storage/v1alpha1.VolumeAttachmentSource"}, + storagev1alpha1.VolumeAttachmentSource{}.OpenAPIModelName()}, } } @@ -65302,13 +72805,13 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttachmentStatus(ref common.Referen "attachError": { SchemaProps: spec.SchemaProps{ Description: "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - Ref: ref("k8s.io/api/storage/v1alpha1.VolumeError"), + Ref: ref(storagev1alpha1.VolumeError{}.OpenAPIModelName()), }, }, "detachError": { SchemaProps: spec.SchemaProps{ Description: "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.", - Ref: ref("k8s.io/api/storage/v1alpha1.VolumeError"), + Ref: ref(storagev1alpha1.VolumeError{}.OpenAPIModelName()), }, }, }, @@ -65316,7 +72819,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttachmentStatus(ref common.Referen }, }, Dependencies: []string{ - "k8s.io/api/storage/v1alpha1.VolumeError"}, + storagev1alpha1.VolumeError{}.OpenAPIModelName()}, } } @@ -65345,7 +72848,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttributesClass(ref common.Referenc 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "driverName": { @@ -65377,7 +72880,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttributesClass(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -65406,7 +72909,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttributesClassList(ref common.Refe 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -65417,7 +72920,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttributesClassList(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1alpha1.VolumeAttributesClass"), + Ref: ref(storagev1alpha1.VolumeAttributesClass{}.OpenAPIModelName()), }, }, }, @@ -65428,7 +72931,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeAttributesClassList(ref common.Refe }, }, Dependencies: []string{ - "k8s.io/api/storage/v1alpha1.VolumeAttributesClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + storagev1alpha1.VolumeAttributesClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -65442,7 +72945,7 @@ func schema_k8sio_api_storage_v1alpha1_VolumeError(ref common.ReferenceCallback) "time": { SchemaProps: spec.SchemaProps{ Description: "time represents the time the error was encountered.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "message": { @@ -65452,11 +72955,18 @@ 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", + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -65485,14 +72995,14 @@ func schema_k8sio_api_storage_v1beta1_CSIDriver(ref common.ReferenceCallback) co SchemaProps: spec.SchemaProps{ Description: "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec represents the specification of the CSI Driver.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.CSIDriverSpec"), + Ref: ref(storagev1beta1.CSIDriverSpec{}.OpenAPIModelName()), }, }, }, @@ -65500,7 +73010,7 @@ func schema_k8sio_api_storage_v1beta1_CSIDriver(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.CSIDriverSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + storagev1beta1.CSIDriverSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -65529,7 +73039,7 @@ func schema_k8sio_api_storage_v1beta1_CSIDriverList(ref common.ReferenceCallback 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -65540,7 +73050,7 @@ func schema_k8sio_api_storage_v1beta1_CSIDriverList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.CSIDriver"), + Ref: ref(storagev1beta1.CSIDriver{}.OpenAPIModelName()), }, }, }, @@ -65551,7 +73061,7 @@ func schema_k8sio_api_storage_v1beta1_CSIDriverList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.CSIDriver", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + storagev1beta1.CSIDriver{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -65564,7 +73074,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: "", }, @@ -65623,7 +73133,7 @@ func schema_k8sio_api_storage_v1beta1_CSIDriverSpec(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.TokenRequest"), + Ref: ref(storagev1beta1.TokenRequest{}.OpenAPIModelName()), }, }, }, @@ -65643,11 +73153,25 @@ 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", + }, + }, + "serviceAccountTokenInSecrets": { + SchemaProps: spec.SchemaProps{ + Description: "serviceAccountTokenInSecrets is an opt-in for CSI drivers to indicate that service account tokens should be passed via the Secrets field in NodePublishVolumeRequest instead of the VolumeContext field. The CSI specification provides a dedicated Secrets field for sensitive information like tokens, which is the appropriate mechanism for handling credentials. This addresses security concerns where sensitive tokens were being logged as part of volume context.\n\nWhen \"true\", kubelet will pass the tokens only in the Secrets field with the key \"csi.storage.k8s.io/serviceAccount.tokens\". The CSI driver must be updated to read tokens from the Secrets field instead of VolumeContext.\n\nWhen \"false\" or not set, kubelet will pass the tokens in VolumeContext with the key \"csi.storage.k8s.io/serviceAccount.tokens\" (existing behavior). This maintains backward compatibility with existing CSI drivers.\n\nThis field can only be set when TokenRequests is configured. The API server will reject CSIDriver specs that set this field without TokenRequests.\n\nDefault behavior if unset is to pass tokens in the VolumeContext field.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.TokenRequest"}, + storagev1beta1.TokenRequest{}.OpenAPIModelName()}, } } @@ -65676,14 +73200,14 @@ func schema_k8sio_api_storage_v1beta1_CSINode(ref common.ReferenceCallback) comm SchemaProps: spec.SchemaProps{ Description: "metadata.name must be the Kubernetes node name.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec is the specification of CSINode", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.CSINodeSpec"), + Ref: ref(storagev1beta1.CSINodeSpec{}.OpenAPIModelName()), }, }, }, @@ -65691,7 +73215,7 @@ func schema_k8sio_api_storage_v1beta1_CSINode(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.CSINodeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + storagev1beta1.CSINodeSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -65741,7 +73265,7 @@ func schema_k8sio_api_storage_v1beta1_CSINodeDriver(ref common.ReferenceCallback "allocatable": { SchemaProps: spec.SchemaProps{ Description: "allocatable represents the volume resources of a node that are available for scheduling.", - Ref: ref("k8s.io/api/storage/v1beta1.VolumeNodeResources"), + Ref: ref(storagev1beta1.VolumeNodeResources{}.OpenAPIModelName()), }, }, }, @@ -65749,7 +73273,7 @@ func schema_k8sio_api_storage_v1beta1_CSINodeDriver(ref common.ReferenceCallback }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.VolumeNodeResources"}, + storagev1beta1.VolumeNodeResources{}.OpenAPIModelName()}, } } @@ -65778,7 +73302,7 @@ func schema_k8sio_api_storage_v1beta1_CSINodeList(ref common.ReferenceCallback) 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -65789,7 +73313,7 @@ func schema_k8sio_api_storage_v1beta1_CSINodeList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.CSINode"), + Ref: ref(storagev1beta1.CSINode{}.OpenAPIModelName()), }, }, }, @@ -65800,7 +73324,7 @@ func schema_k8sio_api_storage_v1beta1_CSINodeList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.CSINode", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + storagev1beta1.CSINode{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -65829,7 +73353,7 @@ func schema_k8sio_api_storage_v1beta1_CSINodeSpec(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.CSINodeDriver"), + Ref: ref(storagev1beta1.CSINodeDriver{}.OpenAPIModelName()), }, }, }, @@ -65840,7 +73364,7 @@ func schema_k8sio_api_storage_v1beta1_CSINodeSpec(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.CSINodeDriver"}, + storagev1beta1.CSINodeDriver{}.OpenAPIModelName()}, } } @@ -65869,13 +73393,13 @@ func schema_k8sio_api_storage_v1beta1_CSIStorageCapacity(ref common.ReferenceCal SchemaProps: spec.SchemaProps{ Description: "Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "nodeTopology": { SchemaProps: spec.SchemaProps{ Description: "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "storageClassName": { @@ -65889,13 +73413,13 @@ func schema_k8sio_api_storage_v1beta1_CSIStorageCapacity(ref common.ReferenceCal "capacity": { SchemaProps: spec.SchemaProps{ Description: "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, "maximumVolumeSize": { SchemaProps: spec.SchemaProps{ Description: "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -65903,7 +73427,7 @@ func schema_k8sio_api_storage_v1beta1_CSIStorageCapacity(ref common.ReferenceCal }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -65932,7 +73456,7 @@ func schema_k8sio_api_storage_v1beta1_CSIStorageCapacityList(ref common.Referenc 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -65943,7 +73467,7 @@ func schema_k8sio_api_storage_v1beta1_CSIStorageCapacityList(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.CSIStorageCapacity"), + Ref: ref(storagev1beta1.CSIStorageCapacity{}.OpenAPIModelName()), }, }, }, @@ -65954,7 +73478,7 @@ func schema_k8sio_api_storage_v1beta1_CSIStorageCapacityList(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.CSIStorageCapacity", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + storagev1beta1.CSIStorageCapacity{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -65983,7 +73507,7 @@ func schema_k8sio_api_storage_v1beta1_StorageClass(ref common.ReferenceCallback) 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "provisioner": { @@ -66065,7 +73589,7 @@ func schema_k8sio_api_storage_v1beta1_StorageClass(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.TopologySelectorTerm"), + Ref: ref(corev1.TopologySelectorTerm{}.OpenAPIModelName()), }, }, }, @@ -66076,7 +73600,7 @@ func schema_k8sio_api_storage_v1beta1_StorageClass(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "k8s.io/api/core/v1.TopologySelectorTerm", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + corev1.TopologySelectorTerm{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -66105,7 +73629,7 @@ func schema_k8sio_api_storage_v1beta1_StorageClassList(ref common.ReferenceCallb 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -66116,7 +73640,7 @@ func schema_k8sio_api_storage_v1beta1_StorageClassList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.StorageClass"), + Ref: ref(storagev1beta1.StorageClass{}.OpenAPIModelName()), }, }, }, @@ -66127,7 +73651,7 @@ func schema_k8sio_api_storage_v1beta1_StorageClassList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.StorageClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + storagev1beta1.StorageClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -66185,21 +73709,21 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttachment(ref common.ReferenceCallb 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ Description: "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.VolumeAttachmentSpec"), + Ref: ref(storagev1beta1.VolumeAttachmentSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.VolumeAttachmentStatus"), + Ref: ref(storagev1beta1.VolumeAttachmentStatus{}.OpenAPIModelName()), }, }, }, @@ -66207,7 +73731,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttachment(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.VolumeAttachmentSpec", "k8s.io/api/storage/v1beta1.VolumeAttachmentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + storagev1beta1.VolumeAttachmentSpec{}.OpenAPIModelName(), storagev1beta1.VolumeAttachmentStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -66236,7 +73760,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttachmentList(ref common.ReferenceC 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -66247,7 +73771,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttachmentList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.VolumeAttachment"), + Ref: ref(storagev1beta1.VolumeAttachment{}.OpenAPIModelName()), }, }, }, @@ -66258,7 +73782,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttachmentList(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.VolumeAttachment", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + storagev1beta1.VolumeAttachment{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -66266,7 +73790,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": { @@ -66279,14 +73803,14 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttachmentSource(ref common.Referenc "inlineVolumeSpec": { SchemaProps: spec.SchemaProps{ Description: "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature.", - Ref: ref("k8s.io/api/core/v1.PersistentVolumeSpec"), + Ref: ref(corev1.PersistentVolumeSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.PersistentVolumeSpec"}, + corev1.PersistentVolumeSpec{}.OpenAPIModelName()}, } } @@ -66309,7 +73833,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttachmentSpec(ref common.ReferenceC SchemaProps: spec.SchemaProps{ Description: "source represents the volume that should be attached.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.VolumeAttachmentSource"), + Ref: ref(storagev1beta1.VolumeAttachmentSource{}.OpenAPIModelName()), }, }, "nodeName": { @@ -66325,7 +73849,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttachmentSpec(ref common.ReferenceC }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.VolumeAttachmentSource"}, + storagev1beta1.VolumeAttachmentSource{}.OpenAPIModelName()}, } } @@ -66363,13 +73887,13 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttachmentStatus(ref common.Referenc "attachError": { SchemaProps: spec.SchemaProps{ Description: "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - Ref: ref("k8s.io/api/storage/v1beta1.VolumeError"), + Ref: ref(storagev1beta1.VolumeError{}.OpenAPIModelName()), }, }, "detachError": { SchemaProps: spec.SchemaProps{ Description: "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.", - Ref: ref("k8s.io/api/storage/v1beta1.VolumeError"), + Ref: ref(storagev1beta1.VolumeError{}.OpenAPIModelName()), }, }, }, @@ -66377,7 +73901,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttachmentStatus(ref common.Referenc }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.VolumeError"}, + storagev1beta1.VolumeError{}.OpenAPIModelName()}, } } @@ -66406,7 +73930,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttributesClass(ref common.Reference 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "driverName": { @@ -66438,7 +73962,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttributesClass(ref common.Reference }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -66467,7 +73991,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttributesClassList(ref common.Refer 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -66478,7 +74002,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttributesClassList(ref common.Refer Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/storage/v1beta1.VolumeAttributesClass"), + Ref: ref(storagev1beta1.VolumeAttributesClass{}.OpenAPIModelName()), }, }, }, @@ -66489,7 +74013,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeAttributesClassList(ref common.Refer }, }, Dependencies: []string{ - "k8s.io/api/storage/v1beta1.VolumeAttributesClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + storagev1beta1.VolumeAttributesClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } @@ -66503,7 +74027,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeError(ref common.ReferenceCallback) "time": { SchemaProps: spec.SchemaProps{ Description: "time represents the time the error was encountered.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "message": { @@ -66513,11 +74037,18 @@ 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", + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -66631,7 +74162,7 @@ func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), + Ref: ref(metav1.GroupVersionForDiscovery{}.OpenAPIModelName()), }, }, }, @@ -66641,7 +74172,7 @@ func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenA SchemaProps: spec.SchemaProps{ Description: "preferredVersion is the version preferred by the API server, which probably is the storage version.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), + Ref: ref(metav1.GroupVersionForDiscovery{}.OpenAPIModelName()), }, }, "serverAddressByClientCIDRs": { @@ -66657,7 +74188,7 @@ func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), + Ref: ref(metav1.ServerAddressByClientCIDR{}.OpenAPIModelName()), }, }, }, @@ -66668,7 +74199,7 @@ func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenA }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery", "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, + metav1.GroupVersionForDiscovery{}.OpenAPIModelName(), metav1.ServerAddressByClientCIDR{}.OpenAPIModelName()}, } } @@ -66706,7 +74237,7 @@ func schema_pkg_apis_meta_v1_APIGroupList(ref common.ReferenceCallback) common.O Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"), + Ref: ref(metav1.APIGroup{}.OpenAPIModelName()), }, }, }, @@ -66717,7 +74248,7 @@ func schema_pkg_apis_meta_v1_APIGroupList(ref common.ReferenceCallback) common.O }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"}, + metav1.APIGroup{}.OpenAPIModelName()}, } } @@ -66885,7 +74416,7 @@ func schema_pkg_apis_meta_v1_APIResourceList(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"), + Ref: ref(metav1.APIResource{}.OpenAPIModelName()), }, }, }, @@ -66896,7 +74427,7 @@ func schema_pkg_apis_meta_v1_APIResourceList(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"}, + metav1.APIResource{}.OpenAPIModelName()}, } } @@ -66954,7 +74485,7 @@ func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.Op Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), + Ref: ref(metav1.ServerAddressByClientCIDR{}.OpenAPIModelName()), }, }, }, @@ -66965,7 +74496,7 @@ func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, + metav1.ServerAddressByClientCIDR{}.OpenAPIModelName()}, } } @@ -67066,7 +74597,7 @@ func schema_pkg_apis_meta_v1_Condition(ref common.ReferenceCallback) common.Open "lastTransitionTime": { SchemaProps: spec.SchemaProps{ Description: "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "reason": { @@ -67090,7 +74621,7 @@ func schema_pkg_apis_meta_v1_Condition(ref common.ReferenceCallback) common.Open }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, } } @@ -67186,7 +74717,7 @@ func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common. "preconditions": { SchemaProps: spec.SchemaProps{ Description: "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"), + Ref: ref(metav1.Preconditions{}.OpenAPIModelName()), }, }, "orphanDependents": { @@ -67223,11 +74754,18 @@ 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: "", + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"}, + metav1.Preconditions{}.OpenAPIModelName()}, } } @@ -67539,15 +75077,12 @@ func schema_pkg_apis_meta_v1_InternalEvent(ref common.ReferenceCallback) common. "Object": { SchemaProps: spec.SchemaProps{ Description: "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Bookmark: the object (instance of a type being watched) where\n only ResourceVersion field is set. On successful restart of watch from a\n bookmark resourceVersion, client is guaranteed to not get repeat event\n nor miss any events.\n * If Type is Error: *api.Status is recommended; other types may make sense\n depending on context.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.Object"), }, }, }, Required: []string{"Type", "Object"}, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/runtime.Object"}, } } @@ -67587,7 +75122,7 @@ func schema_pkg_apis_meta_v1_LabelSelector(ref common.ReferenceCallback) common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), + Ref: ref(metav1.LabelSelectorRequirement{}.OpenAPIModelName()), }, }, }, @@ -67602,7 +75137,7 @@ func schema_pkg_apis_meta_v1_LabelSelector(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, + metav1.LabelSelectorRequirement{}.OpenAPIModelName()}, } } @@ -67681,7 +75216,7 @@ func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDe 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -67691,7 +75226,7 @@ func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDe Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, @@ -67702,7 +75237,7 @@ func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDe }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + metav1.ListMeta{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } @@ -67875,7 +75410,7 @@ func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) co "time": { SchemaProps: spec.SchemaProps{ Description: "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "fieldsType": { @@ -67888,7 +75423,7 @@ func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) co "fieldsV1": { SchemaProps: spec.SchemaProps{ Description: "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1"), + Ref: ref(metav1.FieldsV1{}.OpenAPIModelName()), }, }, "subresource": { @@ -67902,7 +75437,7 @@ func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.FieldsV1{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -67977,13 +75512,13 @@ func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.Ope "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"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "deletionTimestamp": { SchemaProps: spec.SchemaProps{ Description: "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "deletionGracePeriodSeconds": { @@ -68043,7 +75578,7 @@ func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), + Ref: ref(metav1.OwnerReference{}.OpenAPIModelName()), }, }, }, @@ -68083,7 +75618,7 @@ func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry"), + Ref: ref(metav1.ManagedFieldsEntry{}.OpenAPIModelName()), }, }, }, @@ -68093,7 +75628,7 @@ func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.ManagedFieldsEntry{}.OpenAPIModelName(), metav1.OwnerReference{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -68187,14 +75722,14 @@ func schema_pkg_apis_meta_v1_PartialObjectMetadata(ref common.ReferenceCallback) 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"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } @@ -68223,7 +75758,7 @@ func schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref common.ReferenceCallb 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { @@ -68234,7 +75769,7 @@ func schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"), + Ref: ref(metav1.PartialObjectMetadata{}.OpenAPIModelName()), }, }, }, @@ -68245,7 +75780,7 @@ func schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"}, + metav1.ListMeta{}.OpenAPIModelName(), metav1.PartialObjectMetadata{}.OpenAPIModelName()}, } } @@ -68444,7 +75979,7 @@ func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPI 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "status": { @@ -68469,14 +76004,9 @@ func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPI }, }, "details": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, SchemaProps: spec.SchemaProps{ Description: "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"), + Ref: ref(metav1.StatusDetails{}.OpenAPIModelName()), }, }, "code": { @@ -68490,7 +76020,7 @@ func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPI }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"}, + metav1.ListMeta{}.OpenAPIModelName(), metav1.StatusDetails{}.OpenAPIModelName()}, } } @@ -68576,7 +76106,7 @@ func schema_pkg_apis_meta_v1_StatusDetails(ref common.ReferenceCallback) common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"), + Ref: ref(metav1.StatusCause{}.OpenAPIModelName()), }, }, }, @@ -68593,7 +76123,7 @@ func schema_pkg_apis_meta_v1_StatusDetails(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"}, + metav1.StatusCause{}.OpenAPIModelName()}, } } @@ -68622,7 +76152,7 @@ func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPID 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"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "columnDefinitions": { @@ -68638,7 +76168,7 @@ func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPID Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition"), + Ref: ref(metav1.TableColumnDefinition{}.OpenAPIModelName()), }, }, }, @@ -68657,7 +76187,7 @@ func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPID Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"), + Ref: ref(metav1.TableRow{}.OpenAPIModelName()), }, }, }, @@ -68668,7 +76198,7 @@ func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPID }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition", "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"}, + metav1.ListMeta{}.OpenAPIModelName(), metav1.TableColumnDefinition{}.OpenAPIModelName(), metav1.TableRow{}.OpenAPIModelName()}, } } @@ -68799,7 +76329,7 @@ func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenA Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition"), + Ref: ref(metav1.TableRowCondition{}.OpenAPIModelName()), }, }, }, @@ -68808,7 +76338,7 @@ func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenA "object": { SchemaProps: spec.SchemaProps{ Description: "This field contains the requested additional information about each object based on the includeObject policy when requesting the Table. If \"None\", this field is empty, if \"Object\" this will be the default serialization of the object for the current API version, and if \"Metadata\" (the default) will contain the object metadata. Check the returned kind and apiVersion of the object before parsing. The media type of the object will always match the enclosing list - if this as a JSON table, these will be JSON encoded objects.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, @@ -68816,7 +76346,7 @@ func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenA }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + metav1.TableRowCondition{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } @@ -69011,7 +76541,7 @@ func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.Ope "object": { SchemaProps: spec.SchemaProps{ Description: "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, @@ -69019,7 +76549,7 @@ func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + runtime.RawExtension{}.OpenAPIModelName()}, } } @@ -69130,16 +76660,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": { @@ -69256,7 +76816,7 @@ func schema_pkg_apis_clientauthentication_v1beta1_Cluster(ref common.ReferenceCa "config": { SchemaProps: spec.SchemaProps{ Description: "Config holds additional config data that is specific to the exec plugin with regards to the cluster being authenticated to.\n\nThis data is sourced from the clientcmd Cluster object's extensions[client.authentication.k8s.io/exec] field:\n\nclusters: - name: my-cluster\n cluster:\n ...\n extensions:\n - name: client.authentication.k8s.io/exec # reserved extension name for per cluster exec config\n extension:\n audience: 06e3fbd18de8 # arbitrary config\n\nIn some environments, the user config may be exactly the same across many clusters (i.e. call this exec plugin) minus some details that are specific to each cluster such as the audience. This field allows the per cluster config to be directly specified with the cluster info. Using this field to store secret data is not recommended as one of the prime benefits of exec plugins is that no secrets need to be stored directly in the kubeconfig.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, @@ -69264,7 +76824,7 @@ func schema_pkg_apis_clientauthentication_v1beta1_Cluster(ref common.ReferenceCa }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + runtime.RawExtension{}.OpenAPIModelName()}, } } @@ -69293,20 +76853,20 @@ func schema_pkg_apis_clientauthentication_v1beta1_ExecCredential(ref common.Refe SchemaProps: spec.SchemaProps{ Description: "Spec holds information passed to the plugin by the transport.", Default: map[string]interface{}{}, - Ref: ref("k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialSpec"), + Ref: ref(clientauthenticationv1beta1.ExecCredentialSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is filled in by the plugin and holds the credentials that the transport should use to contact the API.", - Ref: ref("k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialStatus"), + Ref: ref(clientauthenticationv1beta1.ExecCredentialStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialSpec", "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialStatus"}, + clientauthenticationv1beta1.ExecCredentialSpec{}.OpenAPIModelName(), clientauthenticationv1beta1.ExecCredentialStatus{}.OpenAPIModelName()}, } } @@ -69320,7 +76880,7 @@ func schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialSpec(ref common. "cluster": { SchemaProps: spec.SchemaProps{ Description: "Cluster contains information to allow an exec plugin to communicate with the kubernetes cluster being authenticated to. Note that Cluster is non-nil only when provideClusterInfo is set to true in the exec provider config (i.e., ExecConfig.ProvideClusterInfo).", - Ref: ref("k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.Cluster"), + Ref: ref(clientauthenticationv1beta1.Cluster{}.OpenAPIModelName()), }, }, "interactive": { @@ -69336,7 +76896,7 @@ func schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialSpec(ref common. }, }, Dependencies: []string{ - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.Cluster"}, + clientauthenticationv1beta1.Cluster{}.OpenAPIModelName()}, } } @@ -69350,7 +76910,7 @@ func schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialStatus(ref commo "expirationTimestamp": { SchemaProps: spec.SchemaProps{ Description: "ExpirationTimestamp indicates a time when the provided credentials expire.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, "token": { @@ -69378,6 +76938,275 @@ func schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialStatus(ref commo }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + metav1.Time{}.OpenAPIModelName()}, + } +} + +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(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"name", "usage"}, + }, + }, + Dependencies: []string{ + resource.Quantity{}.OpenAPIModelName()}, + } +} + +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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "timestamp": { + SchemaProps: spec.SchemaProps{ + Description: "The following fields define time interval from which metrics were collected from the interval [Timestamp-Window, Timestamp].", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "window": { + SchemaProps: spec.SchemaProps{ + Ref: ref(metav1.Duration{}.OpenAPIModelName()), + }, + }, + "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(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"timestamp", "window", "usage"}, + }, + }, + Dependencies: []string{ + resource.Quantity{}.OpenAPIModelName(), metav1.Duration{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "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(metricsv1beta1.NodeMetrics{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + metav1.ListMeta{}.OpenAPIModelName(), metricsv1beta1.NodeMetrics{}.OpenAPIModelName()}, + } +} + +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(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "timestamp": { + SchemaProps: spec.SchemaProps{ + Description: "The following fields define time interval from which metrics were collected from the interval [Timestamp-Window, Timestamp].", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "window": { + SchemaProps: spec.SchemaProps{ + Ref: ref(metav1.Duration{}.OpenAPIModelName()), + }, + }, + "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(metricsv1beta1.ContainerMetrics{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"timestamp", "window", "containers"}, + }, + }, + Dependencies: []string{ + metav1.Duration{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName(), metricsv1beta1.ContainerMetrics{}.OpenAPIModelName()}, + } +} + +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(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "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(metricsv1beta1.PodMetrics{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + metav1.ListMeta{}.OpenAPIModelName(), metricsv1beta1.PodMetrics{}.OpenAPIModelName()}, } } 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"` } diff --git a/pkg/vclusterconfig/constants/snapshots.go b/pkg/vclusterconfig/constants/snapshots.go new file mode 100644 index 00000000..92245c65 --- /dev/null +++ b/pkg/vclusterconfig/constants/snapshots.go @@ -0,0 +1,8 @@ +package constants + +const ( + StorageTypeS3 string = "s3" + StorageTypeOCI string = "oci" + StorageTypeContainer string = "container" + SnapshotConfigMapKey string = "snapshotTaken" +) diff --git a/pkg/vclusterconfig/convert.go b/pkg/vclusterconfig/convert.go new file mode 100644 index 00000000..e5dce150 --- /dev/null +++ b/pkg/vclusterconfig/convert.go @@ -0,0 +1,305 @@ +package vclusterconfig + +import ( + "encoding/json" + "time" + + "sigs.k8s.io/yaml" +) + +// LegacyPlatformMutator is a function that can mutate a LegacyPlatformConfig before conversion. +// This allows callers to inject platform-specific logic (e.g., sleep mode migration from annotations). +type LegacyPlatformMutator func(*LegacyPlatformConfig) + +// ConvertPlatformConfig converts a LegacyPlatformConfig to the new PlatformConfig format +// and returns it as a YAML string. +func ConvertPlatformConfig(legacyConfig *LegacyPlatformConfig) (string, error) { + cfg := &PlatformConfig{} + + if legacyConfig.AutoSnapshot != nil { + cfg.Snapshots = convertAutoSnapshotToSnapshots(legacyConfig.AutoSnapshot) + } + if legacyConfig.AutoDelete != nil { + cfg.Deletion = convertAutoDeleteToDeletion(legacyConfig.AutoDelete) + } + if legacyConfig.AutoSleep != nil { + cfg.Sleep = convertAutoSleepToSleep(legacyConfig.AutoSleep) + } + if legacyConfig.APIKey != nil || legacyConfig.Project != "" { + cfg.Platform = convertLegacyPlatformToPlatform(legacyConfig) + } + + return marshalPruned(cfg) +} + +// ConvertSleepMode converts a LegacySleepMode to the new Sleep format +// and returns it as a YAML string. +func ConvertSleepMode(legacySleepMode *LegacySleepMode) (string, error) { + if legacySleepMode == nil { + return "", nil + } + + cfg := &PlatformConfig{ + Sleep: convertSleepModeToSleep(legacySleepMode), + } + + return marshalPruned(cfg) +} + +// ConvertExternalPlatformValues extracts the external.platform section from values, +// applies any mutators, converts it to the new format, and returns the result as a map. +// Returns nil if no external.platform section exists. +func ConvertExternalPlatformValues(values map[string]any, mutators ...LegacyPlatformMutator) (map[string]any, error) { + external, ok := values["external"].(map[string]any) + if !ok { + return nil, nil + } + platform, ok := external["platform"] + if !ok { + return nil, nil + } + + rawPlatform, err := yaml.Marshal(platform) + if err != nil { + return nil, err + } + + legacyConfig := &LegacyPlatformConfig{} + if err := yaml.UnmarshalStrict(rawPlatform, legacyConfig); err != nil { + return nil, err + } + + // Apply mutators (e.g., sleep mode migration from annotations) + for _, mutator := range mutators { + mutator(legacyConfig) + } + + rawConverted, err := ConvertPlatformConfig(legacyConfig) + if err != nil { + return nil, err + } + + var result map[string]any + if err := yaml.Unmarshal([]byte(rawConverted), &result); err != nil { + return nil, err + } + + return result, nil +} + +// ConvertSleepModeValues extracts the sleepMode section from values, +// converts it to the new format, and returns the result as a map. +// Returns nil if no sleepMode section exists. +func ConvertSleepModeValues(values map[string]any) (map[string]any, error) { + sleepMode, ok := values["sleepMode"] + if !ok { + return nil, nil + } + + rawSleepMode, err := yaml.Marshal(sleepMode) + if err != nil { + return nil, err + } + + legacySleepMode := &LegacySleepMode{} + if err := yaml.UnmarshalStrict(rawSleepMode, legacySleepMode); err != nil { + return nil, err + } + + rawConverted, err := ConvertSleepMode(legacySleepMode) + if err != nil { + return nil, err + } + + var result map[string]any + if err := yaml.Unmarshal([]byte(rawConverted), &result); err != nil { + return nil, err + } + + return result, nil +} + +// convertSleepModeToSleep converts deprecated SleepMode to new Sleep type +func convertSleepModeToSleep(sm *LegacySleepMode) *Sleep { + if sm == nil { + return nil + } + + var wakeup *SleepAutoWakeup + if sm.AutoWakeup != nil && sm.AutoWakeup.Schedule != "" { + wakeup = &SleepAutoWakeup{ + Schedule: sm.AutoWakeup.Schedule, + } + } + + auto := &SleepAuto{ + Wakeup: wakeup, + Timezone: sm.TimeZone, + } + + if sm.AutoSleep != nil { + auto.AfterInactivity = sm.AutoSleep.AfterInactivity + auto.Schedule = sm.AutoSleep.Schedule + auto.Exclude = sm.AutoSleep.Exclude + } + + return &Sleep{ + Auto: auto, + } +} + +// convertAutoSleepToSleep converts deprecated AutoSleep to new Sleep type +func convertAutoSleepToSleep(as *LegacyPlatformAutoSleep) *Sleep { + if as == nil { + return nil + } + + var afterInactivity string + if as.AfterInactivity > 0 { + afterInactivity = (time.Duration(as.AfterInactivity) * time.Second).String() + } + + var wakeup *SleepAutoWakeup + if as.AutoWakeup != nil && as.AutoWakeup.Schedule != "" { + wakeup = &SleepAutoWakeup{ + Schedule: as.AutoWakeup.Schedule, + } + } + + return &Sleep{ + Auto: &SleepAuto{ + AfterInactivity: Duration(afterInactivity), + Schedule: as.Schedule, + Wakeup: wakeup, + Timezone: as.Timezone, + }, + } +} + +// convertAutoSnapshotToSnapshots converts deprecated AutoSnapshot to new Snapshots type +func convertAutoSnapshotToSnapshots(as *LegacyAutoSnapshot) *Snapshots { + if as == nil { + return nil + } + return &Snapshots{ + Auto: &SnapshotsAuto{ + Schedule: as.Schedule, + Timezone: as.Timezone, + Retention: &SnapshotRetention{ + Period: as.Retention.Period, + MaxSnapshots: as.Retention.MaxSnapshots, + }, + Storage: &SnapshotStorage{ + Type: as.Storage.Type, + S3: SnapshotStorageS3{ + Url: as.Storage.S3.Url, + Credential: as.Storage.S3.Credential, + }, + OCI: SnapshotStorageOCI{ + Repository: as.Storage.OCI.Repository, + Credential: as.Storage.OCI.Credential, + Username: as.Storage.OCI.Username, + Password: as.Storage.OCI.Password, + }, + Container: SnapshotStorageContainer{ + Path: as.Storage.Container.Path, + Volume: SnapshotStorageContainerVolume{ + Name: as.Storage.Container.Volume.Name, + Path: as.Storage.Container.Volume.Path, + }, + }, + }, + Volumes: &SnapshotVolumes{ + Enabled: as.Volumes.Enabled, + }, + }, + } +} + +// convertAutoDeleteToDeletion converts deprecated AutoDelete to new Deletion type +func convertAutoDeleteToDeletion(ad *LegacyAutoDelete) *Deletion { + if ad == nil { + return nil + } + var afterInactivity string + if ad.AfterInactivity > 0 { + afterInactivity = (time.Duration(ad.AfterInactivity) * time.Second).String() + } + return &Deletion{ + Auto: &DeletionAuto{ + AfterInactivity: Duration(afterInactivity), + }, + } +} + +// convertLegacyPlatformToPlatform converts deprecated PlatformConfig fields to new Platform type +func convertLegacyPlatformToPlatform(pc *LegacyPlatformConfig) *Platform { + if pc == nil { + return nil + } + p := &Platform{ + Project: pc.Project, + } + // APIKey is interface{} in legacy, need to handle type assertion + if apiKey, ok := pc.APIKey.(map[string]any); ok { + if secretName, ok := apiKey["secretName"].(string); ok { + p.APIKey.SecretName = secretName + } + if namespace, ok := apiKey["namespace"].(string); ok { + p.APIKey.Namespace = namespace + } + if createRBAC, ok := apiKey["createRBAC"].(bool); ok { + p.APIKey.CreateRBAC = &createRBAC + } + } + return p +} + +// marshalPruned marshals the config to YAML, pruning empty nested maps. +func marshalPruned(cfg any) (string, error) { + raw := map[string]any{} + data, err := json.Marshal(cfg) + if err != nil { + return "", err + } + if err := json.Unmarshal(data, &raw); err != nil { + return "", err + } + + pruned := prune(raw) + if pruned == nil { + pruned = map[string]any{} + } + + out, err := yaml.Marshal(pruned) + if err != nil { + return "", err + } + return string(out), nil +} + +func prune(in any) any { + switch v := in.(type) { + case []any: + for i, elem := range v { + v[i] = prune(elem) + } + return v + case map[string]any: + if len(v) == 0 { + return nil + } + for k, val := range v { + v[k] = prune(val) + if v[k] == nil && val != nil { + delete(v, k) + } + } + if len(v) == 0 { + return nil + } + return v + default: + return in + } +} diff --git a/pkg/vclusterconfig/convert_test.go b/pkg/vclusterconfig/convert_test.go new file mode 100644 index 00000000..db573261 --- /dev/null +++ b/pkg/vclusterconfig/convert_test.go @@ -0,0 +1,193 @@ +package vclusterconfig + +import "testing" + +func TestConvertPlatformConfig(t *testing.T) { + type args struct { + legacyPlatformConfig *LegacyPlatformConfig + } + tests := []struct { + name string + args args + want string + wantErr bool + }{ + { + name: "empty config", + args: args{legacyPlatformConfig: &LegacyPlatformConfig{}}, + want: "{}\n", + wantErr: false, + }, + { + name: "AutoSnapshot basic", + args: args{ + legacyPlatformConfig: &LegacyPlatformConfig{ + AutoSnapshot: &LegacyAutoSnapshot{ + Enabled: true, + Schedule: "0 */12 * * *", + }, + }, + }, + want: `snapshots: + auto: + schedule: 0 */12 * * * +`, + wantErr: false, + }, + { + name: "AutoDelete conversion", + args: args{ + legacyPlatformConfig: &LegacyPlatformConfig{ + AutoDelete: &LegacyAutoDelete{AfterInactivity: 3600}, + }, + }, + want: `deletion: + auto: + afterInactivity: 1h0m0s +`, + wantErr: false, + }, + { + name: "AutoSleep basic", + args: args{ + legacyPlatformConfig: &LegacyPlatformConfig{ + AutoSleep: &LegacyPlatformAutoSleep{ + AfterInactivity: 1800, + Schedule: "0 22 * * *", + Timezone: "America/New_York", + }, + }, + }, + want: `sleep: + auto: + afterInactivity: 30m0s + schedule: 0 22 * * * + timezone: America/New_York +`, + wantErr: false, + }, + { + name: "AutoSleep with AutoWakeup", + args: args{ + legacyPlatformConfig: &LegacyPlatformConfig{ + AutoSleep: &LegacyPlatformAutoSleep{ + AfterInactivity: 1800, + AutoWakeup: &LegacyPlatformAutoWakeup{Schedule: "0 8 * * *"}, + }, + }, + }, + want: `sleep: + auto: + afterInactivity: 30m0s + wakeup: + schedule: 0 8 * * * +`, + wantErr: false, + }, + { + name: "Platform with Project only", + args: args{ + legacyPlatformConfig: &LegacyPlatformConfig{ + Project: "my-project", + }, + }, + want: `platform: + project: my-project +`, + wantErr: false, + }, + { + name: "Platform with APIKey", + args: args{ + legacyPlatformConfig: &LegacyPlatformConfig{ + APIKey: map[string]any{ + "secretName": "my-secret", + "namespace": "my-namespace", + "createRBAC": true, + }, + }, + }, + want: `platform: + apiKey: + createRBAC: true + namespace: my-namespace + secretName: my-secret +`, + wantErr: false, + }, + { + name: "Snapshots with S3 storage and retention", + args: args{ + legacyPlatformConfig: &LegacyPlatformConfig{ + AutoSnapshot: &LegacyAutoSnapshot{ + Enabled: true, + Timezone: "UTC", + Schedule: "0 0 * * *", + Storage: LegacyScheduledSnapshotStorage{ + Type: "s3", + S3: LegacyS3Storage{ + Url: "s3://my-bucket/snapshots", + Credential: &SnapshotSecretCredential{ + SecretName: "s3-creds", + SecretNamespace: "default", + }, + }, + }, + Retention: SnapshotRetention{Period: 30, MaxSnapshots: 10}, + }, + }, + }, + want: `snapshots: + auto: + retention: + maxSnapshots: 10 + period: 30 + schedule: 0 0 * * * + storage: + s3: + credential: + secretName: s3-creds + secretNamespace: default + url: s3://my-bucket/snapshots + type: s3 + timezone: UTC +`, + wantErr: false, + }, + { + name: "Combined conversions", + args: args{ + legacyPlatformConfig: &LegacyPlatformConfig{ + AutoDelete: &LegacyAutoDelete{AfterInactivity: 7200}, + Project: "combined-project", + AutoSnapshot: &LegacyAutoSnapshot{ + Enabled: true, + Schedule: "0 */6 * * *", + }, + }, + }, + want: `deletion: + auto: + afterInactivity: 2h0m0s +platform: + project: combined-project +snapshots: + auto: + schedule: 0 */6 * * * +`, + wantErr: false, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got, err := ConvertPlatformConfig(tt.args.legacyPlatformConfig) + if (err != nil) != tt.wantErr { + t.Errorf("ConvertPlatformConfig() error = %v, wantErr %v", err, tt.wantErr) + return + } + if got != tt.want { + t.Errorf("ConvertPlatformConfig() = %v, want %v", got, tt.want) + } + }) + } +} diff --git a/pkg/vclusterconfig/types.go b/pkg/vclusterconfig/types.go new file mode 100644 index 00000000..b504dec5 --- /dev/null +++ b/pkg/vclusterconfig/types.go @@ -0,0 +1,336 @@ +// Package vclusterconfig contains configuration types for vCluster Platform features. +// These types are used for parsing vCluster YAML configuration and are imported by vcluster. +package vclusterconfig + +import ( + "encoding/json" + "errors" + "time" +) + +type PlatformConfig struct { + Sleep *Sleep `json:"sleep,omitempty" yaml:"sleep,omitempty"` + Snapshots *Snapshots `json:"snapshots,omitempty" yaml:"snapshots,omitempty"` + Deletion *Deletion `json:"deletion,omitempty" yaml:"deletion,omitempty"` + Platform *Platform `json:"platform,omitempty" yaml:"platform,omitempty"` + NetrisIntegration *NetrisIntegration `json:"netris,omitempty" yaml:"netris,omitempty"` +} + +// NewDefaultPlatformConfig returns an empty platform config. +// All fields are optional and default to nil/zero values. +func NewDefaultPlatformConfig() *PlatformConfig { + return &PlatformConfig{} +} + +type Image struct { + // Registry is the registry of the container image, e.g. my-registry.com or ghcr.io. This setting can be globally + // overridden via the controlPlane.advanced.defaultImageRegistry option. Empty means docker hub. + Registry string `json:"registry,omitempty"` + + // Repository is the repository of the container image, e.g. my-repo/my-image + Repository string `json:"repository,omitempty"` + + // Tag is the tag of the container image, and is the default version. + Tag string `json:"tag,omitempty"` +} + +// Sleep holds configuration for automatically putting the virtual cluster to sleep. +// This replaces sleepMode. +type Sleep struct { + // Auto holds automatic sleep configuration + Auto *SleepAuto `json:"auto,omitempty" yaml:"auto,omitempty"` +} + +// SleepAuto holds configuration for automatic sleep and wakeup +type SleepAuto struct { + // AfterInactivity represents how long a vCluster can be idle before workloads are automatically put to sleep + AfterInactivity Duration `json:"afterInactivity,omitempty" yaml:"afterInactivity,omitempty"` + + // Schedule represents a cron schedule for when to sleep workloads + Schedule string `json:"schedule,omitempty" yaml:"schedule,omitempty"` + + // Exclude holds configuration for labels that, if present, will prevent a workload from going to sleep + Exclude SleepAutoExclusion `json:"exclude,omitempty"` + + // Wakeup holds configuration for waking the vCluster on a schedule + Wakeup *SleepAutoWakeup `json:"wakeup,omitempty" yaml:"wakeup,omitempty"` + + // Timezone specifies time zone used for scheduled sleep operations. Defaults to UTC. + // Accepts the same format as time.LoadLocation() in Go (https://pkg.go.dev/time#LoadLocation). + // The value should be a location name corresponding to a file in the IANA Time Zone database, such as "America/New_York". + // +optional + Timezone string `json:"timezone,omitempty" yaml:"timezone,omitempty"` +} + +// Duration allows for automatic Marshalling from strings like "1m" to a time.Duration +type Duration string + +// Parse the Duration to time.Duration +func (d Duration) Parse() (time.Duration, error) { + return time.ParseDuration(string(d)) +} + +// MarshalJSON implements Marshaler +func (d Duration) MarshalJSON() ([]byte, error) { + dur, err := time.ParseDuration(string(d)) + if err != nil { + return nil, err + } + return json.Marshal(dur.String()) +} + +// UnmarshalJSON implements Marshaler +func (d *Duration) UnmarshalJSON(b []byte) error { + var v any + if err := json.Unmarshal(b, &v); err != nil { + return err + } + + sval, ok := v.(string) + if !ok { + return errors.New("invalid duration") + } + + // Support empty string value + if sval == "" { + sval = "0" + } + + _, err := time.ParseDuration(sval) + if err != nil { + return err + } + *d = Duration(sval) + return nil +} + +// SleepAutoWakeup holds the cron schedule to wake workloads automatically +type SleepAutoWakeup struct { + Schedule string `json:"schedule,omitempty" yaml:"schedule,omitempty"` +} + +// SleepAutoExclusion holds conifiguration for excluding workloads from sleeping by label(s) +type SleepAutoExclusion struct { + Selector LabelSelector `json:"selector,omitempty"` +} + +type LabelSelector struct { + // Labels defines what labels should be looked for + Labels map[string]string `json:"labels,omitempty"` +} + +// Snapshots holds configuration for automatic vCluster snapshots. +// This replaces external.platform.autoSnapshot. +type Snapshots struct { + // Auto holds automatic snapshot configuration + // +optional + Auto *SnapshotsAuto `json:"auto,omitempty" yaml:"auto,omitempty"` +} + +// SnapshotsAuto holds automatic snapshot scheduling and retention configuration +type SnapshotsAuto struct { + // Schedule specifies a scheduled time in Cron format, see https://en.wikipedia.org/wiki/Cron for a virtual cluster snapshot to be taken + // +optional + Schedule string `json:"schedule,omitempty" yaml:"schedule,omitempty"` + + // Timezone specifies time zone used for scheduled snapshot operations. Defaults to UTC. + // Accepts the same format as time.LoadLocation() in Go (https://pkg.go.dev/time#LoadLocation). + // The value should be a location name corresponding to a file in the IANA Time Zone database, such as "America/New_York". + // +optional + Timezone string `json:"timezone,omitempty" yaml:"timezone,omitempty"` + + // Retention specifies how long snapshots will be kept + // +optional + Retention *SnapshotRetention `json:"retention,omitempty" yaml:"retention,omitempty"` + + // Storage specifies where the snapshot will be stored + // +optional + Storage *SnapshotStorage `json:"storage,omitempty" yaml:"storage,omitempty"` + + // Volumes specifies configuration for volume snapshots + // +optional + Volumes *SnapshotVolumes `json:"volumes,omitempty" yaml:"volumes,omitempty"` +} + +// SnapshotStorage holds snapshot storage configuration +type SnapshotStorage struct { + // Type specifies supported type of storage services for a snapshot S3/OCI/Container, see https://www.vcluster.com/docs/vcluster/manage/backup-restore#store-snapshots-in-s3-buckets + // +optional + Type string `json:"type,omitempty"` + + // S3 holds configuration for storing snapshots in S3-compatible bucket + // +optional + S3 SnapshotStorageS3 `json:"s3,omitempty"` + + // OCI holds configuration for storing snapshots in OCI image registries + // +optional + OCI SnapshotStorageOCI `json:"oci,omitempty"` + + // Container holds configuration for storing snapshots as local files inside a vCluster container + // +optional + Container SnapshotStorageContainer `json:"container,omitempty"` +} + +// SnapshotStorageS3 holds S3 storage configuration +type SnapshotStorageS3 struct { + // Url specifies url to the storage service + // +optional + Url string `json:"url,omitempty"` + + // Credential secret with the S3 Credentials, it should contain AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN + // +optional + Credential *SnapshotSecretCredential `json:"credential,omitempty"` +} + +// SnapshotStorageOCI holds OCI registry storage configuration +type SnapshotStorageOCI struct { + // Repository OCI repository to store the snapshot + // +optional + Repository string `json:"repository,omitempty"` + + // Credential secret with the OCI Credentials + // +optional + Credential *SnapshotSecretCredential `json:"credential,omitempty"` + + // Username to authenticate with the OCI registry + // +optional + Username string `json:"username,omitempty"` + + // Password to authenticate with the OCI registry + // +optional + Password string `json:"password,omitempty"` +} + +// SnapshotStorageContainer holds container local storage configuration +type SnapshotStorageContainer struct { + // Path specifies directory to store the snapshot + // +optional + Path string `json:"path,omitempty"` + + // Volume specifies which volume needs to be mounted into the container to store the snapshot + // +optional + Volume SnapshotStorageContainerVolume `json:"volume,omitempty"` +} + +// SnapshotStorageContainerVolume holds volume mount configuration +type SnapshotStorageContainerVolume struct { + // Name to be used to mount the volume + // +optional + Name string `json:"name,omitempty"` + + // Path to the volume mount + // +optional + Path string `json:"path,omitempty"` +} + +// SnapshotRetention holds snapshot retention configuration +type SnapshotRetention struct { + // Period defines the number of days a snapshot will be kept + // +optional + Period int `json:"period,omitempty"` + + // MaxSnapshots defines the number of snapshots that can be taken + // +optional + MaxSnapshots int `json:"maxSnapshots,omitempty"` +} + +// SnapshotVolumes holds volume snapshot configuration +type SnapshotVolumes struct { + // Enabled specifies whether a snapshot should also include volumes in the snapshot + // +optional + Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"` +} + +// SnapshotSecretCredential holds secret reference for credentials +type SnapshotSecretCredential struct { + // SecretName is the secret name with credential + // +optional + SecretName string `json:"secretName,omitempty"` + + // SecretNamespace is the secret namespace with credential + // +optional + SecretNamespace string `json:"secretNamespace,omitempty"` +} + +// Deletion holds configuration for automatic vCluster deletion. +// This replaces external.platform.autoDelete. +type Deletion struct { + // Prevent prevents the vCluster from being deleted + // +optional + Prevent bool `json:"prevent,omitempty" yaml:"prevent,omitempty"` + + // Auto holds automatic deletion configuration + // +optional + Auto *DeletionAuto `json:"auto,omitempty" yaml:"auto,omitempty"` +} + +// DeletionAuto holds automatic deletion configuration +type DeletionAuto struct { + // AfterInactivity specifies after how long of inactivity the virtual cluster will be deleted. + // Uses Go duration format (e.g., "720h" for 30 days). + // +optional + AfterInactivity Duration `json:"afterInactivity,omitempty" yaml:"afterInactivity,omitempty"` +} + +// Platform holds vCluster Platform specific configuration. +// This replaces the remaining fields from external.platform. +type Platform struct { + // APIKey defines where to find the platform access key and host. By default, vCluster will search in the following locations in this precedence: + // * environment variable called LICENSE + // * secret specified under platform.apiKey.secretName + // * secret called "vcluster-platform-api-key" in the vCluster namespace + APIKey PlatformAPIKey `json:"apiKey,omitempty"` + + // Project specifies which platform project the vcluster should be imported to + // +optional + Project string `json:"project,omitempty"` +} + +// PlatformAPIKey defines where to find the platform access key. The secret key name doesn't matter as long as the secret only contains a single key. +type PlatformAPIKey struct { + // SecretName is the name of the secret where the platform access key is stored. This defaults to vcluster-platform-api-key if undefined. + // +optional + SecretName string `json:"secretName,omitempty"` + + // Namespace defines the namespace where the access key secret should be retrieved from. If this is not equal to the namespace + // where the vCluster instance is deployed, you need to make sure vCluster has access to this other namespace. + // +optional + Namespace string `json:"namespace,omitempty"` + + // CreateRBAC will automatically create the necessary RBAC roles and role bindings to allow vCluster to read the secret specified + // in the above namespace, if specified. + // This defaults to true. + // +optional + CreateRBAC *bool `json:"createRBAC,omitempty"` +} + +// NetrisIntegration holds netris integration configuration. +// This provides type safety for the previously untyped integrations.netris field. +type NetrisIntegration struct { + // Enabled defines if netris integration is enabled + // +optional + Enabled bool `json:"enabled,omitempty"` + + // Connector specifies the netris connector name + // +optional + Connector string `json:"connector,omitempty"` + + // KubeVip holds kube-vip configuration for netris + // +optional + KubeVip NetrisKubeVipConfig `json:"kubeVip,omitempty"` +} + +// NetrisKubeVipConfig holds kube-vip configuration for netris integration +type NetrisKubeVipConfig struct { + // ServerCluster specifies the server cluster name + // +optional + ServerCluster string `json:"serverCluster,omitempty"` + + // Bridge specifies the bridge interface name + // +optional + Bridge string `json:"bridge,omitempty"` + + // IPRange specifies the IP range for kube-vip + // +optional + IPRange string `json:"ipRange,omitempty"` +} diff --git a/pkg/vclusterconfig/types_legacy.go b/pkg/vclusterconfig/types_legacy.go new file mode 100644 index 00000000..f55546d9 --- /dev/null +++ b/pkg/vclusterconfig/types_legacy.go @@ -0,0 +1,227 @@ +package vclusterconfig + +// LegacyPlatformConfig describes platform configuration for a vCluster. This is provided through the vcluster.yaml +// under "external.platform". +// +// Deprecated: Use the new top-level config types instead: +// - AutoSleep -> use top-level Sleep +// - AutoDelete -> use top-level Deletion +// - AutoSnapshot -> use top-level Snapshots +// - APIKey, Project -> use top-level Platform +type LegacyPlatformConfig struct { + APIKey interface{} `json:"apiKey,omitempty" yaml:"apiKey,omitempty"` + + // AutoSleep holds configuration for automatic sleep and wakeup + // Deprecated: Use top-level sleepMode instead. + // +optional + AutoSleep *LegacyPlatformAutoSleep `json:"autoSleep,omitempty" yaml:"autoSleep,omitempty"` + + // AutoDelete holds configuration for automatic delete + // Deprecated: Use top-level Deletion instead. + // +optional + AutoDelete *LegacyAutoDelete `json:"autoDelete,omitempty" yaml:"autoDelete,omitempty"` + + // Project holds project name where vcluster should be imported + Project string `json:"project,omitempty" yaml:"project,omitempty"` + + // AutoSnapshot holds configuration for automatic snapshot of vclusters + // Deprecated: Use top-level Snapshots instead. + // +optional + AutoSnapshot *LegacyAutoSnapshot `json:"autoSnapshot,omitempty" yaml:"autoSnapshot,omitempty"` +} + +// LegacyPlatformAutoSleep holds configuration for automatic sleep and wakeup. +// +// Deprecated: Use top-level sleepMode instead. +type LegacyPlatformAutoSleep struct { + // AfterInactivity specifies after how many seconds of inactivity the virtual cluster should sleep + // +optional + AfterInactivity int64 `json:"afterInactivity,omitempty" yaml:"afterInactivity,omitempty"` + + // Schedule specifies scheduled virtual cluster sleep in Cron format, see https://en.wikipedia.org/wiki/Cron. + // Note: timezone defined in the schedule string will be ignored. Use ".Timezone" field instead. + // +optional + Schedule string `json:"schedule,omitempty" yaml:"schedule,omitempty"` + + // Timezone specifies time zone used for scheduled virtual cluster operations. Defaults to UTC. + // Accepts the same format as time.LoadLocation() in Go (https://pkg.go.dev/time#LoadLocation). + // The value should be a location name corresponding to a file in the IANA Time Zone database, such as "America/New_York". + // +optional + Timezone string `json:"timezone,omitempty" yaml:"timezone,omitempty"` + + // AutoWakeup holds configuration for automatic wakeup + // +optional + AutoWakeup *LegacyPlatformAutoWakeup `json:"autoWakeup,omitempty" yaml:"autoWakeup,omitempty"` +} + +// LegacyPlatformAutoWakeup holds configuration for automatic wakeup. +// +// Deprecated: Use top-level sleepMode.autoWakeup instead. +type LegacyPlatformAutoWakeup struct { + // Schedule specifies scheduled wakeup from sleep in Cron format, see https://en.wikipedia.org/wiki/Cron. + // Note: timezone defined in the schedule string will be ignored. The timezone for the autoSleep schedule will be + // used + // +optional + Schedule string `json:"schedule,omitempty" yaml:"schedule,omitempty"` +} + +// LegacyAutoDelete holds configuration for automatic delete. +// +// Deprecated: Use top-level Deletion instead. +type LegacyAutoDelete struct { + // AfterInactivity specifies after how many seconds of inactivity the virtual cluster be deleted + // +optional + AfterInactivity int64 `json:"afterInactivity,omitempty" yaml:"afterInactivity,omitempty"` +} + +// LegacyAutoSnapshot holds configuration for automatic snapshot of vclusters. +// +// Deprecated: Use top-level Snapshots instead. +type LegacyAutoSnapshot struct { + // Enable defines whether auto snapshot is enabled for the virtual cluster + // +optional + Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"` + + // Timezone specifies time zone used for scheduled virtual cluster operations. Defaults to UTC. + // Accepts the same format as time.LoadLocation() in Go (https://pkg.go.dev/time#LoadLocation). + // The value should be a location name corresponding to a file in the IANA Time Zone database, such as "America/New_York". + // +optional + Timezone string `json:"timezone,omitempty" yaml:"timezone,omitempty"` + + // Schedule specifies a scheduled time in Cron format, see https://en.wikipedia.org/wiki/Cron for a virtual cluster snapshot to be taken + // +optional + Schedule string `json:"schedule,omitempty" yaml:"schedule,omitempty"` + + // Volumes specifies a set of configuration for the volume snapshot + // +optional + Volumes LegacyVolumeSnapshot `json:"volumes" yaml:"volumes"` + + // Storage specifies a set of configuration where the snapshot will be stored + // +optional + Storage LegacyScheduledSnapshotStorage `json:"storage,omitempty" yaml:"storage,omitempty"` + + // Retention specifies a set of configuration for how long the snapshot will be kept + // +optional + Retention SnapshotRetention `json:"retention,omitempty" yaml:"retention,omitempty"` +} + +// LegacyVolumeSnapshot holds volume snapshot configuration. +// +// Deprecated: Use SnapshotVolumes instead. +type LegacyVolumeSnapshot struct { + // Enabled specifies whether a snapshot should also include volumes in the snapshot + // +optional + Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"` +} + +// LegacyScheduledSnapshotStorage holds snapshot storage configuration. +// +// Deprecated: Use SnapshotStorage instead. +type LegacyScheduledSnapshotStorage struct { + // Type specifies supported type of storage services for a snapshot S3/OCI/Container, see https://www.vcluster.com/docs/vcluster/manage/backup-restore#store-snapshots-in-s3-buckets + // +optional + Type string `json:"type,omitempty" yaml:"type,omitempty"` + + // S3 holds configuration for storing snapshots in S3-compatible bucket + // +optional + S3 LegacyS3Storage `json:"s3,omitempty" yaml:"s3,omitempty"` + + // OCI holds configuration for storing snapshots in OCI image registries + // +optional + OCI LegacyOCIStorage `json:"oci,omitempty" yaml:"oci,omitempty"` + + // Container holds configuration for storing snapshots as local files inside a vCluster container + // +optional + Container LegacyContainerStorage `json:"container,omitempty" yaml:"container,omitempty"` +} + +// LegacyS3Storage holds S3 storage configuration. +// +// Deprecated: Use SnapshotStorageS3 instead. +type LegacyS3Storage struct { + // Url specifies url to the storage service + // +optional + Url string `json:"url,omitempty" yaml:"url,omitempty"` + + // Credential secret with the S3 Credentials, it should contain AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN + // +optional + Credential *SnapshotSecretCredential `json:"credential,omitempty" yaml:"credential,omitempty"` +} + +// LegacyOCIStorage holds OCI registry storage configuration. +// +// Deprecated: Use SnapshotStorageOCI instead. +type LegacyOCIStorage struct { + // Repository OCI repository to store the snapshot + // +optional + Repository string `json:"repository,omitempty" yaml:"repository,omitempty"` + + // Credential secret with the OCI Credentials + // +optional + Credential *SnapshotSecretCredential `json:"credential,omitempty" yaml:"credential,omitempty"` + + // Username to authenticate with the OCI registry + // +optional + Username string `json:"username,omitempty" yaml:"username,omitempty" url:"username"` + + // Password to authenticate with the OCI registry + // +optional + Password string `json:"password,omitempty" yaml:"password,omitempty" url:"password,base64"` +} + +// LegacyContainerStorage holds container local storage configuration. +// +// Deprecated: Use SnapshotStorageContainer instead. +type LegacyContainerStorage struct { + // Path specifies directory to store the snapshot + // +optional + Path string `json:"path,omitempty" yaml:"path,omitempty"` + + // Volume specifies which volume needs to be mounted into the container to store the snapshot + // +optional + Volume LegacyContainerStorageVolume `json:"volume,omitempty" yaml:"volume,omitempty"` +} + +// LegacyContainerStorageVolume holds volume mount configuration. +// +// Deprecated: Use SnapshotStorageContainerVolume instead. +type LegacyContainerStorageVolume struct { + // Name to be used to mount the volume + // +optional + Name string `json:"name,omitempty" yaml:"name,omitempty"` + + // Path to the volume mount + // +optional + Path string `json:"path,omitempty" yaml:"path,omitempty"` +} + +// LegacySleepMode holds the deprecated sleepMode configuration format. +// +// Deprecated: Use the top-level Sleep type instead. +type LegacySleepMode struct { + Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"` + TimeZone string `json:"timeZone,omitempty" yaml:"timeZone,omitempty"` + AutoSleep *LegacySleepAuto `json:"autoSleep,omitempty" yaml:"autoSleep,omitempty"` + AutoWakeup *LegacySleepAutoWakeup `json:"autoWakeup,omitempty" yaml:"autoWakeup,omitempty"` +} + +// LegacySleepAuto holds configuration for automatic sleep and wakeup +// +// Deprecated: Use SleepAuto instead. +type LegacySleepAuto struct { + // AfterInactivity represents how long a vCluster can be idle before workloads are automatically put to sleep + AfterInactivity Duration `json:"afterInactivity,omitempty" yaml:"afterInactivity,omitempty"` + + // Schedule represents a cron schedule for when to sleep workloads + Schedule string `json:"schedule,omitempty" yaml:"schedule,omitempty"` + + // Exclude holds configuration for labels that, if present, will prevent a workload from going to sleep + Exclude SleepAutoExclusion `json:"exclude,omitempty"` +} + +// LegacySleepAutoWakeup holds the cron schedule to wake workloads automatically +// +// Deprecated: Use SleepAutoWakeup instead. +type LegacySleepAutoWakeup struct { + Schedule string `json:"schedule,omitempty" yaml:"schedule,omitempty"` +} diff --git a/pkg/vclusterconfig/validate.go b/pkg/vclusterconfig/validate.go new file mode 100644 index 00000000..84561b28 --- /dev/null +++ b/pkg/vclusterconfig/validate.go @@ -0,0 +1,302 @@ +package vclusterconfig + +import ( + "fmt" + "strconv" + "strings" + "time" + + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + "github.com/loft-sh/api/v4/pkg/vclusterconfig/constants" + "github.com/robfig/cron/v3" + "golang.org/x/mod/semver" + "k8s.io/apimachinery/pkg/util/validation/field" +) + +func ValidatePlatformConfig(fldPath *field.Path, platformConfig PlatformConfig) field.ErrorList { + var errs field.ErrorList + + errs = append(errs, ValidateSleep(fldPath, platformConfig.Sleep)...) + errs = append(errs, ValidateSnapshots(fldPath, platformConfig.Snapshots)...) + errs = append(errs, ValidateDeletion(fldPath, platformConfig.Deletion)...) + + return errs +} + +// ValidateSleep validates the new top-level Sleep configuration +func ValidateSleep(fldPath *field.Path, sleep *Sleep) field.ErrorList { + if sleep == nil || sleep.Auto == nil { + return nil + } + + var errs field.ErrorList + auto := sleep.Auto + + if auto.Schedule != "" { + if err := validateCronSchedule(auto.Schedule); err != nil { + errs = append(errs, field.Invalid(fldPath.Child("sleep", "auto", "schedule"), auto.Schedule, err.Error())) + } + } + + if auto.Wakeup != nil && auto.Wakeup.Schedule != "" { + if err := validateCronSchedule(auto.Wakeup.Schedule); err != nil { + errs = append(errs, field.Invalid(fldPath.Child("sleep", "auto", "wakeup", "schedule"), auto.Wakeup.Schedule, err.Error())) + } + } + + if auto.Timezone != "" { + if err := validateTimezone(auto.Timezone); err != nil { + errs = append(errs, field.Invalid(fldPath.Child("sleep", "auto", "timezone"), auto.Timezone, err.Error())) + } + } + + return errs +} + +// ValidateSnapshots validates the new top-level Snapshots configuration +func ValidateSnapshots(fldPath *field.Path, snapshots *Snapshots) field.ErrorList { + if snapshots == nil || snapshots.Auto == nil { + return nil + } + + var errs field.ErrorList + auto := snapshots.Auto + + if auto.Schedule == "" { + errs = append(errs, field.Required(fldPath.Child("snapshots", "auto", "schedule"), "schedule is required when snapshots are configured")) + } else if err := validateCronSchedule(auto.Schedule); err != nil { + errs = append(errs, field.Invalid(fldPath.Child("snapshots", "auto", "schedule"), auto.Schedule, err.Error())) + } + + if auto.Timezone != "" { + if err := validateTimezone(auto.Timezone); err != nil { + errs = append(errs, field.Invalid(fldPath.Child("snapshots", "auto", "timezone"), auto.Timezone, err.Error())) + } + } + + if auto.Retention == nil || auto.Retention.MaxSnapshots == 0 || auto.Retention.Period == 0 { + errs = append(errs, field.Invalid( + fldPath.Child("snapshots", "auto", "retention"), + auto.Retention, + "retention.period and retention.maxSnapshots must both be greater than 0", + )) + } + + if auto.Storage == nil { + errs = append(errs, field.Required( + fldPath.Child("snapshots", "auto", "storage"), + "storage is required when snapshots are configured", + )) + } else { + switch auto.Storage.Type { + case constants.StorageTypeContainer: + container := auto.Storage.Container + if container.Path == "" || container.Volume.Name == "" || container.Volume.Path == "" { + errs = append(errs, field.Invalid( + fldPath.Child("snapshots", "auto", "storage", "container"), + container, + "storage type is set to 'container', but container configuration is missing (path, volume.name, volume.path required)", + )) + } + case constants.StorageTypeS3: + s3 := auto.Storage.S3 + if s3.Url == "" { + errs = append(errs, field.Invalid( + fldPath.Child("snapshots", "auto", "storage", "s3", "url"), + s3.Url, + "storage type is set to 's3', but url is missing", + )) + } + case constants.StorageTypeOCI: + oci := auto.Storage.OCI + if oci.Repository == "" && (oci.Credential == nil && oci.Username == "" && oci.Password == "") { + errs = append(errs, field.Invalid( + fldPath.Child("snapshots", "auto", "storage", "oci"), + oci, + "storage type is set to 'oci', but repository or credentials are missing", + )) + } + default: + errs = append(errs, field.Invalid( + fldPath.Child("snapshots", "auto", "storage", "type"), + auto.Storage.Type, + fmt.Sprintf("storage type must be one of: %s, %s, %s", constants.StorageTypeContainer, constants.StorageTypeS3, constants.StorageTypeOCI), + )) + } + } + + return errs +} + +// ValidateDeletion validates the new top-level Deletion configuration +func ValidateDeletion(fldPath *field.Path, deletion *Deletion) field.ErrorList { + if deletion == nil || deletion.Auto == nil { + return nil + } + + var errs field.ErrorList + + if deletion.Auto.AfterInactivity != "" { + _, err := time.ParseDuration(string(deletion.Auto.AfterInactivity)) + if err != nil { + errs = append(errs, field.Invalid( + fldPath.Child("deletion", "auto", "afterInactivity"), + deletion.Auto.AfterInactivity, + fmt.Sprintf("invalid duration format: %v (use Go duration format like '720h' or '30d')", err), + )) + } + } + + return errs +} + +// check if vcluster chart version is compatible with PV snapshots +func IsVolumeSnapshotCompatible(release storagev1.VirtualClusterHelmRelease) bool { + return semver.Compare("v"+release.Chart.Version, "v0.30.0-alpha.0") == 1 +} + +// validateCronSchedule validates a cron schedule string using the standard cron parser. +func validateCronSchedule(schedule string) error { + _, err := cron.NewParser(cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor).Parse(schedule) + return err +} + +func validateTimezone(timezone string) error { + if strings.Contains(timezone, "#") { + splitted := strings.Split(timezone, "#") + if len(splitted) == 2 { + _, err := strconv.Atoi(splitted[1]) + if err != nil { + return fmt.Errorf("error parsing offset: %w", err) + } + } + } else { + _, err := time.LoadLocation(timezone) + if err != nil { + return fmt.Errorf("error parsing timezone: %w", err) + } + } + return nil +} + +// ValidateLegacySleepMode validates the deprecated top-level sleepMode configuration +func ValidateLegacySleepMode(fldPath *field.Path, sleepMode *LegacySleepMode) field.ErrorList { + if sleepMode == nil { + return nil + } + + var errs field.ErrorList + autoSleep := sleepMode.AutoSleep + autoWakeup := sleepMode.AutoWakeup + + if autoSleep != nil && autoSleep.Schedule != "" { + if err := validateCronSchedule(autoSleep.Schedule); err != nil { + errs = append(errs, field.Invalid(fldPath.Child("autoSleep", "schedule"), autoSleep.Schedule, err.Error())) + } + } + + if autoWakeup != nil && autoWakeup.Schedule != "" { + if err := validateCronSchedule(autoWakeup.Schedule); err != nil { + errs = append(errs, field.Invalid(fldPath.Child("autoWakeup", "schedule"), autoWakeup.Schedule, err.Error())) + } + } + + if sleepMode.TimeZone != "" { + if err := validateTimezone(sleepMode.TimeZone); err != nil { + errs = append(errs, field.Invalid(fldPath.Child("timeZone"), sleepMode.TimeZone, err.Error())) + } + } + + return errs +} + +// ValidateLegacyPlatformConfig validates the deprecated external.platform configuration +func ValidateLegacyPlatformConfig(fldPath *field.Path, legacyPlatformConfig LegacyPlatformConfig) field.ErrorList { + var errs field.ErrorList + + if legacyPlatformConfig.AutoSleep != nil { + if legacyPlatformConfig.AutoSleep.Schedule != "" { + if err := validateCronSchedule(legacyPlatformConfig.AutoSleep.Schedule); err != nil { + errs = append(errs, field.Invalid(fldPath.Child("autoSleep", "schedule"), legacyPlatformConfig.AutoSleep.Schedule, err.Error())) + } + } + + if legacyPlatformConfig.AutoSleep.AutoWakeup != nil && legacyPlatformConfig.AutoSleep.AutoWakeup.Schedule != "" { + if err := validateCronSchedule(legacyPlatformConfig.AutoSleep.AutoWakeup.Schedule); err != nil { + errs = append(errs, field.Invalid(fldPath.Child("autoSleep", "autoWakeup", "schedule"), legacyPlatformConfig.AutoSleep.AutoWakeup.Schedule, err.Error())) + } + } + + if legacyPlatformConfig.AutoSleep.Timezone != "" { + if err := validateTimezone(legacyPlatformConfig.AutoSleep.Timezone); err != nil { + errs = append(errs, field.Invalid(fldPath.Child("autoSleep", "timezone"), legacyPlatformConfig.AutoSleep.Timezone, err.Error())) + } + } + } + + if legacyPlatformConfig.AutoSnapshot != nil { + if legacyPlatformConfig.AutoSnapshot.Schedule == "" { + errs = append(errs, field.Invalid(fldPath.Child("autoSnapshot", "schedule"), legacyPlatformConfig.AutoSnapshot.Schedule, "scheduled field is required.")) + } else if err := validateCronSchedule(legacyPlatformConfig.AutoSnapshot.Schedule); err != nil { + errs = append(errs, field.Invalid(fldPath.Child("autoSnapshot", "schedule"), legacyPlatformConfig.AutoSnapshot.Schedule, err.Error())) + } + + if legacyPlatformConfig.AutoSnapshot.Timezone != "" { + if err := validateTimezone(legacyPlatformConfig.AutoSnapshot.Timezone); err != nil { + errs = append(errs, field.Invalid( + fldPath.Child("autoSnapshot", "timezone"), + legacyPlatformConfig.AutoSnapshot.Timezone, + err.Error(), + )) + } + } + + if legacyPlatformConfig.AutoSnapshot.Retention.MaxSnapshots == 0 || legacyPlatformConfig.AutoSnapshot.Retention.Period == 0 { + errs = append(errs, field.Invalid( + fldPath.Child("autoSnapshot", "retention"), + legacyPlatformConfig.AutoSnapshot.Retention, + "retention should be configured", + )) + } + + switch legacyPlatformConfig.AutoSnapshot.Storage.Type { + case constants.StorageTypeContainer: + container := legacyPlatformConfig.AutoSnapshot.Storage.Container + if container.Path == "" || + container.Volume.Name == "" || + container.Volume.Path == "" { + errs = append(errs, field.Invalid( + fldPath.Child("autoSnapshot", "storage", "container"), + container, + "storage type is set to 'container', but container configuration is missing.", + )) + } + case constants.StorageTypeS3: + s3 := legacyPlatformConfig.AutoSnapshot.Storage.S3 + if s3.Url == "" { + errs = append(errs, field.Invalid( + fldPath.Child("autoSnapshot", "storage", "s3", "url"), + s3, + "storage type is set to 's3', but s3 configuration is missing.", + )) + } + case constants.StorageTypeOCI: + oci := legacyPlatformConfig.AutoSnapshot.Storage.OCI + if oci.Repository == "" && (oci.Credential == nil || (oci.Username == "" && oci.Password == "")) { + errs = append(errs, field.Invalid( + fldPath.Child("autoSnapshot", "storage", "oci"), + oci, + "storage type is set to 'oci', but oci configuration is missing.", + )) + } + default: + errs = append(errs, field.Invalid( + fldPath.Child("autoSnapshot", "storage", "type"), + legacyPlatformConfig.AutoSnapshot.Storage, + fmt.Sprintf("storage type is not set or is not equal to %s, %s or %s", constants.StorageTypeContainer, constants.StorageTypeS3, constants.StorageTypeOCI), + )) + } + } + + return errs +}